@wcstack/state 3.2.0 → 3.4.0

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 (57) hide show
  1. package/README.ja.md +140 -83
  2. package/README.md +141 -84
  3. package/dist/auto.min.js +1 -1
  4. package/dist/auto.min.js.map +1 -1
  5. package/dist/index.d.ts +74 -8
  6. package/dist/index.esm.js +1 -1
  7. package/dist/index.esm.js.map +1 -1
  8. package/dist/manifest.d.ts +28 -5
  9. package/dist/manifest.esm.js +253 -246
  10. package/dist/parser.d.ts +16 -2
  11. package/dist/parser.esm.js +223 -50
  12. package/dist/split/chunks/binder.js +1 -1
  13. package/dist/split/chunks/binder.js.map +1 -1
  14. package/dist/split/chunks/checkDependency.js +1 -1
  15. package/dist/split/chunks/checkDependency.js.map +1 -1
  16. package/dist/split/chunks/declarationAliases.js +1 -1
  17. package/dist/split/chunks/declarationAliases.js.map +1 -1
  18. package/dist/split/chunks/declarationHooks.js +2 -0
  19. package/dist/split/chunks/declarationHooks.js.map +1 -0
  20. package/dist/split/chunks/diagnosticsHooks.js.map +1 -1
  21. package/dist/split/chunks/featureBridge.js +2 -0
  22. package/dist/split/chunks/featureBridge.js.map +1 -0
  23. package/dist/split/chunks/filterRegistry.js +1 -1
  24. package/dist/split/chunks/filterRegistry.js.map +1 -1
  25. package/dist/split/chunks/getAllPropertyDescriptors.js +1 -1
  26. package/dist/split/chunks/getAllPropertyDescriptors.js.map +1 -1
  27. package/dist/split/chunks/lifecycleHooks.js +1 -1
  28. package/dist/split/chunks/pathDiagnostics.js +1 -1
  29. package/dist/split/chunks/pathDiagnostics.js.map +1 -1
  30. package/dist/split/chunks/registerComponents.js +1 -1
  31. package/dist/split/chunks/registerComponents.js.map +1 -1
  32. package/dist/split/chunks/setAll.js +1 -1
  33. package/dist/split/chunks/setAll.js.map +1 -1
  34. package/dist/split/chunks/version.js +1 -1
  35. package/dist/split/core.d.ts +64 -2
  36. package/dist/split/core.js +1 -1
  37. package/dist/split/core.js.map +1 -1
  38. package/dist/split/features/devtools.js +1 -1
  39. package/dist/split/features/devtools.js.map +1 -1
  40. package/dist/split/features/diagnostics.js +1 -1
  41. package/dist/split/features/diagnostics.js.map +1 -1
  42. package/dist/split/features/formats.js +1 -1
  43. package/dist/split/features/formats.js.map +1 -1
  44. package/dist/split/features/recursion.js +1 -1
  45. package/dist/split/features/recursion.js.map +1 -1
  46. package/dist/split/features/scopes.js +1 -1
  47. package/dist/split/features/scopes.js.map +1 -1
  48. package/dist/split/features/ssr.js +1 -1
  49. package/dist/split/features/ssr.js.map +1 -1
  50. package/dist/split/features/temporal.js +1 -1
  51. package/dist/split/features/temporal.js.map +1 -1
  52. package/dist/wcs-manifest.json +36 -21
  53. package/package.json +1 -1
  54. package/dist/split/chunks/mount.js +0 -2
  55. package/dist/split/chunks/mount.js.map +0 -1
  56. package/dist/split/chunks/watchRuntime.js +0 -2
  57. package/dist/split/chunks/watchRuntime.js.map +0 -1
@@ -39,12 +39,26 @@ declare const builtinFilterMeta: Record<string, IFilterMeta>;
39
39
  */
40
40
  declare const builtinFilterAliases: Readonly<Record<string, string>>;
41
41
 
42
+ declare const DECLARATION_ALIASES: Readonly<Record<string, string>>;
43
+
42
44
  type BindingType = 'text' | 'prop' | 'event' | 'for' | 'if' | 'elseif' | 'else' | 'radio' | 'checkbox' | 'spread';
43
45
 
44
46
  declare const STRUCTURAL_BINDING_TYPE_SET: Set<BindingType>;
45
47
 
46
- /** マニフェストのバージョン(構造を変えたら上げる)。 */
47
- declare const WCS_MANIFEST_VERSION = 1;
48
+ /**
49
+ * マニフェストのバージョン(構造を変えたら上げる)。
50
+ *
51
+ * 3.1 で `syntax.bindingTypes.explicitPropertyPrefix`、3.2 で `filterAliases`、
52
+ * 3.x の次で `declarationAliases` / `apiAliases` を足したので 2。
53
+ * 消費側(vscode-wcs)はまだこの定数を参照していないが、公開している以上ドリフトさせない。
54
+ */
55
+ declare const WCS_MANIFEST_VERSION = 2;
56
+ /**
57
+ * state API の旧名 → 正式名(要件 B12・docs/state-3x-naming.ja.md)。正本は
58
+ * `proxy/traps/get.ts` の case ラベルで、ここはそれを機械可読にした写し
59
+ * (一致は `__tests__/manifest.test.ts` が固定する)。
60
+ */
61
+ declare const STATE_API_ALIASES: Readonly<Record<string, string>>;
48
62
  interface IWcsManifest {
49
63
  version: number;
50
64
  syntax: {
@@ -109,13 +123,22 @@ interface IWcsManifest {
109
123
  filterMeta: Record<string, IFilterMeta>;
110
124
  /** 組み込みフィルタの旧名 → 正式名(要件 B12)。旧名も解決するが、ツールは正式名を提案する */
111
125
  filterAliases: Readonly<Record<string, string>>;
112
- /** 予約ライフサイクルフック名 */
126
+ /**
127
+ * 宣言キーの旧名 → 正式名(要件 B12。`$updatedCallback` → `$renderedCallback`、
128
+ * `$streams` → `$stream`)。ランタイムは旧名も受けるが、ツールは正式名を提案する。
129
+ * `reservedLifecycle` / `reservedStateApi` は**正式名だけ**なので、旧名が予約かどうかは
130
+ * この表と併せて判断する
131
+ */
132
+ declarationAliases: Readonly<Record<string, string>>;
133
+ /** state API の旧名 → 正式名(`$trackDependency` → `$dependOn` 等、要件 B12) */
134
+ apiAliases: Readonly<Record<string, string>>;
135
+ /** 予約ライフサイクルフック名(正式名のみ。旧名は `declarationAliases` を見る) */
113
136
  reservedLifecycle: readonly string[];
114
- /** 予約 state API(プロトコル系の `$` 名前空間) */
137
+ /** 予約 state API(プロトコル系の `$` 名前空間。正式名のみ) */
115
138
  reservedStateApi: readonly string[];
116
139
  }
117
140
  /** 機械可読な単一正本を返す。vscode-wcs はこれを消費する想定。 */
118
141
  declare function getWcsManifest(): IWcsManifest;
119
142
 
120
- export { STRUCTURAL_BINDING_TYPE_SET, WCS_MANIFEST_VERSION, builtinFilterAliases, builtinFilterMeta, getWcsManifest };
143
+ export { DECLARATION_ALIASES, STATE_API_ALIASES, STRUCTURAL_BINDING_TYPE_SET, WCS_MANIFEST_VERSION, builtinFilterAliases, builtinFilterMeta, getWcsManifest };
121
144
  export type { FilterArgType, FilterResultType, IFilterMeta, IWcsManifest };