Socket
Socket
Sign inDemoInstall

solenya

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solenya - npm Package Compare versions

Comparing version 1.2.5 to 1.2.6

2

package.json
{
"name": "solenya",
"version": "1.2.5",
"version": "1.2.6",
"author": "solenya",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -264,3 +264,3 @@ # Solenya

All the HTML element helper functions such as `div` and `span`, call through to the `h` function. the `h` function merges multiple attribute objects using the `mergeAttrs` method, which you can also directly call yourself.
All the HTML element helper functions such as `div` and `span`, call through to the `h` function. The `h` function merges multiple attribute objects using the `mergeAttrs` method, which you can also directly call yourself.

@@ -399,3 +399,3 @@ Event handlers are specified as simply a name followed by the handler:

{
@Exclude() validator: Validator = new Validator (this)
@transient validator: Validator = new Validator (this)

@@ -497,4 +497,4 @@ @Label("Your User Name") @MinLength(3) @MaxLength(10) @IsNotEmpty() username?: string

{
@Exclude() router:Router = new Router (this)
@Exclude() routeName = ""
@transient router:Router = new Router (this)
@transient routeName = ""

@@ -591,4 +591,4 @@ counter = new Counter ()

{
@Exclude() router: Router = new Router (this)
@Exclude() routeName!: string
@transient router: Router = new Router (this)
@transient routeName!: string

@@ -798,3 +798,3 @@ attached() {

{
@Exclude() items = range (1, 20)
@transient items = range (1, 20)

@@ -942,3 +942,3 @@ view () {

As a general rule, don't gratuitously use component state, and instead try to use pure functions where you can. In particular, avoid storing UI styles in component state - instead pass styles from a parent view down to child views. If you must store a UI style in a component, you'll probably want to decorate it with `@Exclude` to avoid serialization.
As a general rule, don't gratuitously use component state, and instead try to use pure functions where you can. In particular, avoid storing UI styles in component state - instead pass styles from a parent view down to child views. If you must store a UI style in a component, you'll probably want to decorate it with `@transient` to avoid serialization.

@@ -945,0 +945,0 @@ Serialization, deserialization, and local storage are surpisingly fast. However, efficiency is still important. Avoid properties with large immutable objects, and instead indirectly reference them with a key. For example, instead of directly storing a localisation table of French data on your component, you'd merely store the string "fr", and return the localisation table based on that key. Minimize the state on your components to that which you need to respond to user actions; keep it as close to a state machine as possible.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc