@fabricorg/gen-docs 0.2.10 → 0.2.11
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 +25 -0
- package/dist/index.cjs +32 -30
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +32 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.11
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 939bcad: Build packages with tsdown in place of tsup. Preserve the published ESM/CommonJS
|
|
8
|
+
entry paths, ES2022 target, declaration filenames, and raw external module
|
|
9
|
+
specifier spellings, including the existing Node built-in spellings.
|
|
10
|
+
|
|
11
|
+
Generated JavaScript, source-map contents, declaration formatting, and internal
|
|
12
|
+
chunk layout change. Comparison with the saved tsup build found unchanged named
|
|
13
|
+
runtime exports and public declaration signatures. Declaration maps remain
|
|
14
|
+
unpublished. Facade maps are no longer published for Platform's root, evidence,
|
|
15
|
+
and policies entries, or experience-runtime's contracts entry (both `.js.map`
|
|
16
|
+
and `.cjs.map`). Their new JavaScript output has no source-map URL comment.
|
|
17
|
+
|
|
18
|
+
CommonJS interop: 29 of 72 baseline CJS files expose an `__esModule` marker;
|
|
19
|
+
0 of 57 tsdown CJS files do. The compared package entries have no default runtime
|
|
20
|
+
export, and the emitted `.d.cts` files declare none. Typed consumers of the
|
|
21
|
+
unchanged declared exports are unaffected. For entries whose marker was removed,
|
|
22
|
+
an untyped CJS `import X from` compiled with a Babel-style default-interop helper
|
|
23
|
+
now yields the namespace instead of `undefined`.
|
|
24
|
+
|
|
25
|
+
- Updated dependencies [939bcad]
|
|
26
|
+
- @fabricorg/compiler@2.2.9
|
|
27
|
+
|
|
3
28
|
## 0.2.10
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
package/dist/index.cjs
CHANGED
|
@@ -1,33 +1,35 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
//#region index.ts
|
|
3
|
+
const docsGenerator = {
|
|
4
|
+
name: "@fabricorg/gen-docs",
|
|
5
|
+
version: "0.2.11",
|
|
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
|
-
|
|
11
|
-
|
|
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
|
package/dist/index.cjs.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.
|
|
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.11\", 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
|
|
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
|
|
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
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
//#region index.ts
|
|
2
|
+
const docsGenerator = {
|
|
3
|
+
name: "@fabricorg/gen-docs",
|
|
4
|
+
version: "0.2.11",
|
|
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.
|
|
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.11\", 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.
|
|
3
|
+
"version": "0.2.11",
|
|
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.
|
|
35
|
+
"@fabricorg/compiler": "^2.2.9"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/node": "^22.10.0",
|
|
39
|
-
"
|
|
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": "
|
|
52
|
-
"type-check": "
|
|
52
|
+
"build": "tsdown",
|
|
53
|
+
"type-check": "tsgo --noEmit",
|
|
53
54
|
"test": "vitest run"
|
|
54
55
|
}
|
|
55
56
|
}
|