@fabricorg/gen-docs 0.2.10 → 0.2.12

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,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.2.12
4
+
5
+ ### Patch Changes
6
+
7
+ - d69dd7a: Republish against the patched `@fabricorg/platform` minimum. No code or behavior changes.
8
+ - Updated dependencies [d69dd7a]
9
+ - @fabricorg/compiler@2.2.10
10
+
11
+ ## 0.2.11
12
+
13
+ ### Patch Changes
14
+
15
+ - 939bcad: Build packages with tsdown in place of tsup. Preserve the published ESM/CommonJS
16
+ entry paths, ES2022 target, declaration filenames, and raw external module
17
+ specifier spellings, including the existing Node built-in spellings.
18
+
19
+ Generated JavaScript, source-map contents, declaration formatting, and internal
20
+ chunk layout change. Comparison with the saved tsup build found unchanged named
21
+ runtime exports and public declaration signatures. Declaration maps remain
22
+ unpublished. Facade maps are no longer published for Platform's root, evidence,
23
+ and policies entries, or experience-runtime's contracts entry (both `.js.map`
24
+ and `.cjs.map`). Their new JavaScript output has no source-map URL comment.
25
+
26
+ CommonJS interop: 29 of 72 baseline CJS files expose an `__esModule` marker;
27
+ 0 of 57 tsdown CJS files do. The compared package entries have no default runtime
28
+ export, and the emitted `.d.cts` files declare none. Typed consumers of the
29
+ unchanged declared exports are unaffected. For entries whose marker was removed,
30
+ an untyped CJS `import X from` compiled with a Babel-style default-interop helper
31
+ now yields the namespace instead of `undefined`.
32
+
33
+ - Updated dependencies [939bcad]
34
+ - @fabricorg/compiler@2.2.9
35
+
3
36
  ## 0.2.10
4
37
 
5
38
  ### Patch Changes
package/dist/index.cjs CHANGED
@@ -1,33 +1,35 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
1
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
2
+ //#region index.ts
3
+ const docsGenerator = {
4
+ name: "@fabricorg/gen-docs",
5
+ version: "0.2.12",
6
+ generate(ir) {
7
+ return ir.modules.map((module) => ({
8
+ path: `${module.namespace}/README.md`,
9
+ content: [
10
+ `# ${module.displayName ?? module.namespace}`,
11
+ "",
12
+ module.description ?? "Generated Fabric module contract.",
13
+ "",
14
+ `Manifest digest: \`${ir.manifestDigest}\``,
15
+ "",
16
+ "## Object types",
17
+ "",
18
+ ...module.objectTypes.map((item) => `- \`${item.type}\``),
19
+ "",
20
+ "## Actions",
21
+ "",
22
+ ...module.actions.map((item) => `- \`${item.actionId}\` v${item.version}`),
23
+ "",
24
+ "## Views",
25
+ "",
26
+ ...module.views.map((item) => `- \`${item.name}@${item.version}\``),
27
+ ""
28
+ ].join("\n")
29
+ }));
30
+ }
9
31
  };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+ //#endregion
33
+ exports.docsGenerator = docsGenerator;
19
34
 
20
- // index.ts
21
- var index_exports = {};
22
- __export(index_exports, {
23
- docsGenerator: () => docsGenerator
24
- });
25
- module.exports = __toCommonJS(index_exports);
26
- var docsGenerator = { name: "@fabricorg/gen-docs", version: "0.2.10", generate(ir) {
27
- return ir.modules.map((module2) => ({ path: `${module2.namespace}/README.md`, content: [`# ${module2.displayName ?? module2.namespace}`, "", module2.description ?? "Generated Fabric module contract.", "", `Manifest digest: \`${ir.manifestDigest}\``, "", "## Object types", "", ...module2.objectTypes.map((item) => `- \`${item.type}\``), "", "## Actions", "", ...module2.actions.map((item) => `- \`${item.actionId}\` v${item.version}`), "", "## Views", "", ...module2.views.map((item) => `- \`${item.name}@${item.version}\``), ""].join("\n") }));
28
- } };
29
- // Annotate the CommonJS export names for ESM import in node:
30
- 0 && (module.exports = {
31
- docsGenerator
32
- });
33
35
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nexport const docsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-docs\", version:\"0.2.10\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/README.md`, content:[`# ${module.displayName??module.namespace}`,\"\",module.description??\"Generated Fabric module contract.\",\"\",`Manifest digest: \\`${ir.manifestDigest}\\``,\"\", \"## Object types\",\"\",...module.objectTypes.map((item)=>`- \\`${item.type}\\``),\"\", \"## Actions\",\"\",...module.actions.map((item)=>`- \\`${item.actionId}\\` v${item.version}`),\"\", \"## Views\",\"\",...module.views.map((item)=>`- \\`${item.name}@${item.version}\\``),\"\"].join(\"\\n\") })); } };\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACO,IAAM,gBAAiC,EAAE,MAAK,uBAAuB,SAAQ,UAAU,SAAS,IAAI;AAAE,SAAO,GAAG,QAAQ,IAAI,CAACA,aAAY,EAAE,MAAK,GAAGA,QAAO,SAAS,cAAc,SAAQ,CAAC,KAAKA,QAAO,eAAaA,QAAO,SAAS,IAAG,IAAGA,QAAO,eAAa,qCAAoC,IAAG,sBAAsB,GAAG,cAAc,MAAK,IAAI,mBAAkB,IAAG,GAAGA,QAAO,YAAY,IAAI,CAAC,SAAO,OAAO,KAAK,IAAI,IAAI,GAAE,IAAI,cAAa,IAAG,GAAGA,QAAO,QAAQ,IAAI,CAAC,SAAO,OAAO,KAAK,QAAQ,OAAO,KAAK,OAAO,EAAE,GAAE,IAAI,YAAW,IAAG,GAAGA,QAAO,MAAM,IAAI,CAAC,SAAO,OAAO,KAAK,IAAI,IAAI,KAAK,OAAO,IAAI,GAAE,EAAE,EAAE,KAAK,IAAI,EAAE,EAAE;AAAG,EAAE;","names":["module"]}
1
+ {"version":3,"file":"index.cjs","names":[],"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nexport const docsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-docs\", version:\"0.2.12\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/README.md`, content:[`# ${module.displayName??module.namespace}`,\"\",module.description??\"Generated Fabric module contract.\",\"\",`Manifest digest: \\`${ir.manifestDigest}\\``,\"\", \"## Object types\",\"\",...module.objectTypes.map((item)=>`- \\`${item.type}\\``),\"\", \"## Actions\",\"\",...module.actions.map((item)=>`- \\`${item.actionId}\\` v${item.version}`),\"\", \"## Views\",\"\",...module.views.map((item)=>`- \\`${item.name}@${item.version}\\``),\"\"].join(\"\\n\") })); } };\n"],"mappings":";;AACA,MAAa,gBAAiC;CAAE,MAAK;CAAuB,SAAQ;CAAU,SAAS,IAAI;EAAE,OAAO,GAAG,QAAQ,KAAK,YAAY;GAAE,MAAK,GAAG,OAAO,UAAU;GAAa,SAAQ;IAAC,KAAK,OAAO,eAAa,OAAO;IAAY;IAAG,OAAO,eAAa;IAAoC;IAAG,sBAAsB,GAAG,eAAe;IAAI;IAAI;IAAkB;IAAG,GAAG,OAAO,YAAY,KAAK,SAAO,OAAO,KAAK,KAAK,GAAG;IAAE;IAAI;IAAa;IAAG,GAAG,OAAO,QAAQ,KAAK,SAAO,OAAO,KAAK,SAAS,MAAM,KAAK,SAAS;IAAE;IAAI;IAAW;IAAG,GAAG,OAAO,MAAM,KAAK,SAAO,OAAO,KAAK,KAAK,GAAG,KAAK,QAAQ,GAAG;IAAE;GAAE,CAAC,CAAC,KAAK,IAAI;EAAE,EAAE;CAAG;AAAE"}
package/dist/index.d.cts CHANGED
@@ -1,5 +1,4 @@
1
- import { GeneratorTarget } from '@fabricorg/compiler';
2
-
3
- declare const docsGenerator: GeneratorTarget;
4
-
5
- export { docsGenerator };
1
+ import { GeneratorTarget } from "@fabricorg/compiler";
2
+ //#region index.d.ts
3
+ export declare const docsGenerator: GeneratorTarget;
4
+ //#endregion
package/dist/index.d.ts CHANGED
@@ -1,5 +1,4 @@
1
- import { GeneratorTarget } from '@fabricorg/compiler';
2
-
3
- declare const docsGenerator: GeneratorTarget;
4
-
5
- export { docsGenerator };
1
+ import { GeneratorTarget } from "@fabricorg/compiler";
2
+ //#region index.d.ts
3
+ export declare const docsGenerator: GeneratorTarget;
4
+ //#endregion
package/dist/index.js CHANGED
@@ -1,8 +1,34 @@
1
- // index.ts
2
- var docsGenerator = { name: "@fabricorg/gen-docs", version: "0.2.10", generate(ir) {
3
- return ir.modules.map((module) => ({ path: `${module.namespace}/README.md`, content: [`# ${module.displayName ?? module.namespace}`, "", module.description ?? "Generated Fabric module contract.", "", `Manifest digest: \`${ir.manifestDigest}\``, "", "## Object types", "", ...module.objectTypes.map((item) => `- \`${item.type}\``), "", "## Actions", "", ...module.actions.map((item) => `- \`${item.actionId}\` v${item.version}`), "", "## Views", "", ...module.views.map((item) => `- \`${item.name}@${item.version}\``), ""].join("\n") }));
4
- } };
5
- export {
6
- docsGenerator
1
+ //#region index.ts
2
+ const docsGenerator = {
3
+ name: "@fabricorg/gen-docs",
4
+ version: "0.2.12",
5
+ generate(ir) {
6
+ return ir.modules.map((module) => ({
7
+ path: `${module.namespace}/README.md`,
8
+ content: [
9
+ `# ${module.displayName ?? module.namespace}`,
10
+ "",
11
+ module.description ?? "Generated Fabric module contract.",
12
+ "",
13
+ `Manifest digest: \`${ir.manifestDigest}\``,
14
+ "",
15
+ "## Object types",
16
+ "",
17
+ ...module.objectTypes.map((item) => `- \`${item.type}\``),
18
+ "",
19
+ "## Actions",
20
+ "",
21
+ ...module.actions.map((item) => `- \`${item.actionId}\` v${item.version}`),
22
+ "",
23
+ "## Views",
24
+ "",
25
+ ...module.views.map((item) => `- \`${item.name}@${item.version}\``),
26
+ ""
27
+ ].join("\n")
28
+ }));
29
+ }
7
30
  };
31
+ //#endregion
32
+ export { docsGenerator };
33
+
8
34
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nexport const docsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-docs\", version:\"0.2.10\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/README.md`, content:[`# ${module.displayName??module.namespace}`,\"\",module.description??\"Generated Fabric module contract.\",\"\",`Manifest digest: \\`${ir.manifestDigest}\\``,\"\", \"## Object types\",\"\",...module.objectTypes.map((item)=>`- \\`${item.type}\\``),\"\", \"## Actions\",\"\",...module.actions.map((item)=>`- \\`${item.actionId}\\` v${item.version}`),\"\", \"## Views\",\"\",...module.views.map((item)=>`- \\`${item.name}@${item.version}\\``),\"\"].join(\"\\n\") })); } };\n"],"mappings":";AACO,IAAM,gBAAiC,EAAE,MAAK,uBAAuB,SAAQ,UAAU,SAAS,IAAI;AAAE,SAAO,GAAG,QAAQ,IAAI,CAAC,YAAY,EAAE,MAAK,GAAG,OAAO,SAAS,cAAc,SAAQ,CAAC,KAAK,OAAO,eAAa,OAAO,SAAS,IAAG,IAAG,OAAO,eAAa,qCAAoC,IAAG,sBAAsB,GAAG,cAAc,MAAK,IAAI,mBAAkB,IAAG,GAAG,OAAO,YAAY,IAAI,CAAC,SAAO,OAAO,KAAK,IAAI,IAAI,GAAE,IAAI,cAAa,IAAG,GAAG,OAAO,QAAQ,IAAI,CAAC,SAAO,OAAO,KAAK,QAAQ,OAAO,KAAK,OAAO,EAAE,GAAE,IAAI,YAAW,IAAG,GAAG,OAAO,MAAM,IAAI,CAAC,SAAO,OAAO,KAAK,IAAI,IAAI,KAAK,OAAO,IAAI,GAAE,EAAE,EAAE,KAAK,IAAI,EAAE,EAAE;AAAG,EAAE;","names":[]}
1
+ {"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["import type { GeneratorTarget } from \"@fabricorg/compiler\";\nexport const docsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-docs\", version:\"0.2.12\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/README.md`, content:[`# ${module.displayName??module.namespace}`,\"\",module.description??\"Generated Fabric module contract.\",\"\",`Manifest digest: \\`${ir.manifestDigest}\\``,\"\", \"## Object types\",\"\",...module.objectTypes.map((item)=>`- \\`${item.type}\\``),\"\", \"## Actions\",\"\",...module.actions.map((item)=>`- \\`${item.actionId}\\` v${item.version}`),\"\", \"## Views\",\"\",...module.views.map((item)=>`- \\`${item.name}@${item.version}\\``),\"\"].join(\"\\n\") })); } };\n"],"mappings":";AACA,MAAa,gBAAiC;CAAE,MAAK;CAAuB,SAAQ;CAAU,SAAS,IAAI;EAAE,OAAO,GAAG,QAAQ,KAAK,YAAY;GAAE,MAAK,GAAG,OAAO,UAAU;GAAa,SAAQ;IAAC,KAAK,OAAO,eAAa,OAAO;IAAY;IAAG,OAAO,eAAa;IAAoC;IAAG,sBAAsB,GAAG,eAAe;IAAI;IAAI;IAAkB;IAAG,GAAG,OAAO,YAAY,KAAK,SAAO,OAAO,KAAK,KAAK,GAAG;IAAE;IAAI;IAAa;IAAG,GAAG,OAAO,QAAQ,KAAK,SAAO,OAAO,KAAK,SAAS,MAAM,KAAK,SAAS;IAAE;IAAI;IAAW;IAAG,GAAG,OAAO,MAAM,KAAK,SAAO,OAAO,KAAK,KAAK,GAAG,KAAK,QAAQ,GAAG;IAAE;GAAE,CAAC,CAAC,KAAK,IAAI;EAAE,EAAE;CAAG;AAAE"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fabricorg/gen-docs",
3
- "version": "0.2.10",
3
+ "version": "0.2.12",
4
4
  "description": "Markdown contract generator for Fabric compiler IR.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -32,13 +32,14 @@
32
32
  "CHANGELOG.md"
33
33
  ],
34
34
  "dependencies": {
35
- "@fabricorg/compiler": "^2.2.8"
35
+ "@fabricorg/compiler": "^2.2.10"
36
36
  },
37
37
  "devDependencies": {
38
38
  "@types/node": "^22.10.0",
39
- "tsup": "^8.5.0",
39
+ "tsdown": "^0.23.1",
40
40
  "typescript": "^5.7.3",
41
- "vitest": "^4.1.5"
41
+ "vitest": "^4.1.5",
42
+ "@fabric-platform/bundling": "0.0.0"
42
43
  },
43
44
  "engines": {
44
45
  "node": ">=20"
@@ -48,8 +49,8 @@
48
49
  },
49
50
  "scripts": {
50
51
  "clean": "rm -rf dist tsconfig.tsbuildinfo",
51
- "build": "tsup",
52
- "type-check": "tsc --noEmit",
52
+ "build": "tsdown",
53
+ "type-check": "tsgo --noEmit",
53
54
  "test": "vitest run"
54
55
  }
55
56
  }