@wcstack/state 1.3.11 → 1.3.13

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.
package/README.ja.md CHANGED
@@ -148,11 +148,15 @@ Web Components のための宣言的リアクティブ状態管理。
148
148
 
149
149
  ### プリミティブ・オブジェクトプロパティ
150
150
 
151
- 直接のプロパティ代入は任意の深さで検知されます:
151
+ 代入は**ドットパス記法**(ブラケット構文)を使用する必要があります。リアクティブ Proxy はトップレベルの `set` トラップのみを捕捉するため、通常のネストされたプロパティアクセスでは変更が検知されません:
152
152
 
153
153
  ```javascript
154
- this.count = 10; // ✅ 検知される
155
- this.user.name = "Bob"; // ✅ 検知される(ネストされた代入)
154
+ // ✅ パス代入 — 変更が検知される
155
+ this.count = 10;
156
+ this["user.name"] = "Bob";
157
+
158
+ // ❌ 直接のネストアクセス — 変更が検知されない
159
+ this.user.name = "Bob"; // Proxy の set トラップをバイパスする
156
160
  ```
157
161
 
158
162
  ### 配列
package/README.md CHANGED
@@ -148,11 +148,15 @@ State changes are detected through **property assignment** (the Proxy `set` trap
148
148
 
149
149
  ### Primitive and Object Properties
150
150
 
151
- Direct property assignment is detected at any depth:
151
+ Assignment must use **dot-path notation** (bracket syntax). The reactive proxy intercepts only top-level `set` traps, so standard nested property access bypasses change detection:
152
152
 
153
153
  ```javascript
154
- this.count = 10; // ✅ detected
155
- this.user.name = "Bob"; // ✅ detected (nested assignment)
154
+ // ✅ Path assignment — change detected
155
+ this.count = 10;
156
+ this["user.name"] = "Bob";
157
+
158
+ // ❌ Direct nested access — change NOT detected
159
+ this.user.name = "Bob"; // bypasses the Proxy set trap
156
160
  ```
157
161
 
158
162
  ### Arrays
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wcstack/state",
3
- "version": "1.3.11",
3
+ "version": "1.3.13",
4
4
  "description": "Reactive state management with declarative data binding for Web Components. Zero dependencies, buildless.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.esm.js",
@@ -40,14 +40,14 @@
40
40
  "declarative"
41
41
  ],
42
42
  "author": "mogera551",
43
- "homepage": "https://github.com/nicari/wcstack/tree/main/packages/state#readme",
43
+ "homepage": "https://wcstack.github.io",
44
44
  "repository": {
45
45
  "type": "git",
46
- "url": "git+https://github.com/nicari/wcstack.git",
46
+ "url": "https://github.com/wcstack/wcstack.git",
47
47
  "directory": "packages/state"
48
48
  },
49
49
  "bugs": {
50
- "url": "https://github.com/nicari/wcstack/issues"
50
+ "url": "https://github.com/wcstack/wcstack/issues"
51
51
  },
52
52
  "license": "MIT",
53
53
  "devDependencies": {