@inglorious/web 4.1.1 → 4.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +3 -3
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -1516,11 +1516,11 @@ const store = createStore({
1516
1516
  })
1517
1517
  ```
1518
1518
 
1519
- If you want to initialize an entity with specific data, you can use the `init()` event handler:
1519
+ If you want to initialize an entity with specific data, you can use the `create()` event handler:
1520
1520
 
1521
1521
  ```javascript
1522
1522
  const header = {
1523
- init(entity) {
1523
+ create(entity) {
1524
1524
  entity.title = "Welcome"
1525
1525
  },
1526
1526
 
@@ -1530,7 +1530,7 @@ const header = {
1530
1530
  }
1531
1531
  ```
1532
1532
 
1533
- The `init()` handler runs once when the entity is first created, making it perfect for setting up default values. This pattern works great for web apps where most entities are singletons that behave more like components than game objects.
1533
+ The `create()` handler runs for each entity of that type is first created, making it perfect for setting up default values. This pattern works great for web apps where most entities are singletons that behave more like components than game objects.
1534
1534
 
1535
1535
  **When to use `autoCreateEntities` in web apps:**
1536
1536
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@inglorious/web",
3
- "version": "4.1.1",
3
+ "version": "4.1.2",
4
4
  "description": "A new web framework that leverages the power of the Inglorious Store combined with the performance and simplicity of lit-html.",
5
5
  "author": "IceOnFire <antony.mistretta@gmail.com> (https://ingloriouscoderz.it)",
6
6
  "license": "MIT",
@@ -68,7 +68,7 @@
68
68
  "dependencies": {
69
69
  "@lit-labs/ssr-client": "^1.1.8",
70
70
  "lit-html": "^3.3.1",
71
- "@inglorious/store": "9.2.0",
71
+ "@inglorious/store": "9.3.0",
72
72
  "@inglorious/utils": "3.7.2"
73
73
  },
74
74
  "devDependencies": {