@fabricorg/gen-sdui 0.5.18 → 0.6.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 0b437ed: Report action and view discovery-surface changes in manifest compatibility analysis. Document that
8
+ first-party generator artifacts retain internal contracts for trusted assembly, not external catalogs.
9
+ - Updated dependencies [0b437ed]
10
+ - @fabricorg/compiler@2.5.1
11
+
12
+ ## 0.6.0
13
+
14
+ ### Minor Changes
15
+
16
+ - 9bee610: Require Node.js 22 or newer. `engines.node` moves from `>=20` to `>=22`, because Node 20 reached end-of-life on 2026-04-30 and has no release with the fix for CVE-2026-111497. No API changes. npm and pnpm only warn on an engines mismatch by default, so installs on Node 20 still proceed, but Node 20 is no longer tested or supported. In production, run Node 22.23.4, 24.22.1, or 26.12.1 or newer in the same release line.
17
+
18
+ ### Patch Changes
19
+
20
+ - Updated dependencies [9bee610]
21
+ - @fabricorg/compiler@2.5.0
22
+ - @fabricorg/experience-contracts@1.2.0
23
+
3
24
  ## 0.5.18
4
25
 
5
26
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
2
  let _fabricorg_compiler = require("@fabricorg/compiler");
3
3
  let _fabricorg_experience_contracts = require("@fabricorg/experience-contracts");
4
- //#region index.ts
4
+ // index.ts
5
5
  /**
6
6
  * Trusted assembly/code-generation artifact, not an external audience catalog.
7
7
  * Internal surface declarations do not remove contracts here: assemblers and workers need
@@ -9,7 +9,7 @@ let _fabricorg_experience_contracts = require("@fabricorg/experience-contracts")
9
9
  */
10
10
  const sduiGenerator = {
11
11
  name: "@fabricorg/gen-sdui",
12
- version: "0.5.18",
12
+ version: "0.6.1",
13
13
  generate(ir) {
14
14
  return ir.modules.map((module) => {
15
15
  const experience = (0, _fabricorg_experience_contracts.readExperienceMetadata)(module.capability);
@@ -37,7 +37,6 @@ const sduiGenerator = {
37
37
  });
38
38
  }
39
39
  };
40
- //#endregion
41
40
  exports.sduiGenerator = sduiGenerator;
42
41
 
43
42
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.18\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,cAAA,GAAaA,gCAAAA,uBAAAA,CAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,UAAA,GAASC,oBAAAA,gBAAAA,CAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"index.cjs","names":["readExperienceMetadata","stableStringify"],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.6.1\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,cAAA,GAAaA,gCAAAA,uBAAAA,CAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,UAAA,GAASC,oBAAAA,gBAAAA,CAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
package/dist/index.d.cts CHANGED
@@ -1,4 +1,7 @@
1
+ /**
2
+ * Trusted assembly/code-generation artifact, not an external audience catalog.
3
+ * Internal surface declarations do not remove contracts here: assemblers and workers need
4
+ * their schemas. External catalogs must filter internal definitions and apply audience rules.
5
+ */
1
6
  import { GeneratorTarget } from "@fabricorg/compiler";
2
- //#region index.d.ts
3
- export declare const sduiGenerator: GeneratorTarget;
4
- //#endregion
7
+ export declare const sduiGenerator: GeneratorTarget;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,7 @@
1
+ /**
2
+ * Trusted assembly/code-generation artifact, not an external audience catalog.
3
+ * Internal surface declarations do not remove contracts here: assemblers and workers need
4
+ * their schemas. External catalogs must filter internal definitions and apply audience rules.
5
+ */
1
6
  import { GeneratorTarget } from "@fabricorg/compiler";
2
- //#region index.d.ts
3
- export declare const sduiGenerator: GeneratorTarget;
4
- //#endregion
7
+ export declare const sduiGenerator: GeneratorTarget;
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { stableStringify } from "@fabricorg/compiler";
2
2
  import { readExperienceMetadata } from "@fabricorg/experience-contracts";
3
- //#region index.ts
3
+ // index.ts
4
4
  /**
5
5
  * Trusted assembly/code-generation artifact, not an external audience catalog.
6
6
  * Internal surface declarations do not remove contracts here: assemblers and workers need
@@ -8,7 +8,7 @@ import { readExperienceMetadata } from "@fabricorg/experience-contracts";
8
8
  */
9
9
  const sduiGenerator = {
10
10
  name: "@fabricorg/gen-sdui",
11
- version: "0.5.18",
11
+ version: "0.6.1",
12
12
  generate(ir) {
13
13
  return ir.modules.map((module) => {
14
14
  const experience = readExperienceMetadata(module.capability);
@@ -36,7 +36,6 @@ const sduiGenerator = {
36
36
  });
37
37
  }
38
38
  };
39
- //#endregion
40
39
  export { sduiGenerator };
41
40
 
42
41
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.5.18\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,aAAa,uBAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,SAAS,gBAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["/**\n * Trusted assembly/code-generation artifact, not an external audience catalog.\n * Internal surface declarations do not remove contracts here: assemblers and workers need\n * their schemas. External catalogs must filter internal definitions and apply audience rules.\n */\nimport { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nimport { readExperienceMetadata } from \"@fabricorg/experience-contracts\";\n\nexport const sduiGenerator: GeneratorTarget = {\n\tname: \"@fabricorg/gen-sdui\",\n\tversion: \"0.6.1\",\n\tgenerate(ir) {\n\t\treturn ir.modules.map((module) => {\n\t\t\tconst experience = readExperienceMetadata(module.capability);\n\t\t\treturn {\n\t\t\t\tpath: `${module.namespace}/data-shapes.json`,\n\t\t\t\tcontent: stableStringify({\n\t\t\t\t\tgenerator: { name: sduiGenerator.name, version: sduiGenerator.version },\n\t\t\t\t\tmanifestDigest: ir.manifestDigest,\n\t\t\t\t\troles: experience?.roles ?? [],\n\t\t\t\t\tactionIntents: experience?.actionIntents ?? [],\n\t\t\t\t\tslots: experience?.slots ?? [],\n\t\t\t\t\tbindings: module.views.map((view) => ({\n\t\t\t\t\t\turi: `capability://${view.name}`,\n\t\t\t\t\t\tversion: view.version,\n\t\t\t\t\t\tshape: view.shape,\n\t\t\t\t\t\t...(view.parameterSchema ? { parameterSchema: view.parameterSchema } : {}),\n\t\t\t\t\t\tscope: view.scope,\n\t\t\t\t\t\tusage: view.usage,\n\t\t\t\t\t})),\n\t\t\t\t}),\n\t\t\t};\n\t\t});\n\t},\n};\n"],"mappings":";;;;;;;;AAQA,MAAa,gBAAiC;CAC7C,MAAM;CACN,SAAS;CACT,SAAS,IAAI;EACZ,OAAO,GAAG,QAAQ,KAAK,WAAW;GACjC,MAAM,aAAa,uBAAuB,OAAO,UAAU;GAC3D,OAAO;IACN,MAAM,GAAG,OAAO,UAAU;IAC1B,SAAS,gBAAgB;KACxB,WAAW;MAAE,MAAM,cAAc;MAAM,SAAS,cAAc;KAAQ;KACtE,gBAAgB,GAAG;KACnB,OAAO,YAAY,SAAS,CAAC;KAC7B,eAAe,YAAY,iBAAiB,CAAC;KAC7C,OAAO,YAAY,SAAS,CAAC;KAC7B,UAAU,OAAO,MAAM,KAAK,UAAU;MACrC,KAAK,gBAAgB,KAAK;MAC1B,SAAS,KAAK;MACd,OAAO,KAAK;MACZ,GAAI,KAAK,kBAAkB,EAAE,iBAAiB,KAAK,gBAAgB,IAAI,CAAC;MACxE,OAAO,KAAK;MACZ,OAAO,KAAK;KACb,EAAE;IACH,CAAC;GACF;EACD,CAAC;CACF;AACD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/gen-sdui",
3
- "version": "0.5.18",
3
+ "version": "0.6.1",
4
4
  "description": "SDUI data-shape binding generator for Fabric compiler IR.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,19 +32,18 @@
32
32
  "CHANGELOG.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@fabricorg/experience-contracts": "^1.1.1",
36
- "@fabricorg/compiler": "^2.4.3"
35
+ "@fabricorg/compiler": "^2.5.1",
36
+ "@fabricorg/experience-contracts": "^1.2.0"
37
37
  },
38
38
  "devDependencies": {
39
- "@types/node": "^22.10.0",
40
- "tsdown": "^0.23.1",
39
+ "@types/node": "^22.20.5",
40
+ "tsdown": "^0.23.7",
41
41
  "typescript": "^5.7.3",
42
- "vitest": "^4.1.5",
43
- "@fabric-platform/bundling": "0.0.0",
44
- "@fabricorg/platform": "^1.18.0"
42
+ "vitest": "^5.1.0",
43
+ "@fabricorg/platform": "^1.20.0"
45
44
  },
46
45
  "engines": {
47
- "node": ">=20"
46
+ "node": ">=22"
48
47
  },
49
48
  "publishConfig": {
50
49
  "access": "public"