@fabricorg/gen-events 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 +33 -0
- package/dist/index.cjs +22 -31
- 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 +21 -6
- package/dist/index.js.map +1 -1
- package/package.json +7 -6
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,34 +1,25 @@
|
|
|
1
|
-
"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
let _fabricorg_compiler = require("@fabricorg/compiler");
|
|
3
|
+
//#region index.ts
|
|
4
|
+
const eventsGenerator = {
|
|
5
|
+
name: "@fabricorg/gen-events",
|
|
6
|
+
version: "0.2.12",
|
|
7
|
+
generate(ir) {
|
|
8
|
+
return ir.modules.map((module) => ({
|
|
9
|
+
path: `${module.namespace}/events.json`,
|
|
10
|
+
content: (0, _fabricorg_compiler.stableStringify)({
|
|
11
|
+
generator: {
|
|
12
|
+
name: eventsGenerator.name,
|
|
13
|
+
version: eventsGenerator.version
|
|
14
|
+
},
|
|
15
|
+
manifestDigest: ir.manifestDigest,
|
|
16
|
+
module: module.namespace,
|
|
17
|
+
events: module.eventTypes
|
|
18
|
+
})
|
|
19
|
+
}));
|
|
20
|
+
}
|
|
9
21
|
};
|
|
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);
|
|
22
|
+
//#endregion
|
|
23
|
+
exports.eventsGenerator = eventsGenerator;
|
|
19
24
|
|
|
20
|
-
// index.ts
|
|
21
|
-
var index_exports = {};
|
|
22
|
-
__export(index_exports, {
|
|
23
|
-
eventsGenerator: () => eventsGenerator
|
|
24
|
-
});
|
|
25
|
-
module.exports = __toCommonJS(index_exports);
|
|
26
|
-
var import_compiler = require("@fabricorg/compiler");
|
|
27
|
-
var eventsGenerator = { name: "@fabricorg/gen-events", version: "0.2.10", generate(ir) {
|
|
28
|
-
return ir.modules.map((module2) => ({ path: `${module2.namespace}/events.json`, content: (0, import_compiler.stableStringify)({ generator: { name: eventsGenerator.name, version: eventsGenerator.version }, manifestDigest: ir.manifestDigest, module: module2.namespace, events: module2.eventTypes }) }));
|
|
29
|
-
} };
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
eventsGenerator
|
|
33
|
-
});
|
|
34
25
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nexport const eventsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-events\", version:\"0.2.
|
|
1
|
+
{"version":3,"file":"index.cjs","names":["stableStringify"],"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nexport const eventsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-events\", version:\"0.2.12\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/events.json`, content: stableStringify({ generator:{name:eventsGenerator.name,version:eventsGenerator.version}, manifestDigest:ir.manifestDigest, module:module.namespace, events:module.eventTypes }) })); } };\n"],"mappings":";;;AACA,MAAa,kBAAmC;CAAE,MAAK;CAAyB,SAAQ;CAAU,SAAS,IAAI;EAAE,OAAO,GAAG,QAAQ,KAAK,YAAY;GAAE,MAAK,GAAG,OAAO,UAAU;GAAe,UAAA,GAASA,oBAAAA,gBAAAA,CAAgB;IAAE,WAAU;KAAC,MAAK,gBAAgB;KAAK,SAAQ,gBAAgB;IAAO;IAAG,gBAAe,GAAG;IAAgB,QAAO,OAAO;IAAW,QAAO,OAAO;GAAW,CAAC;EAAE,EAAE;CAAG;AAAE"}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { GeneratorTarget } from
|
|
2
|
-
|
|
3
|
-
declare const eventsGenerator: GeneratorTarget;
|
|
4
|
-
|
|
5
|
-
export { eventsGenerator };
|
|
1
|
+
import { GeneratorTarget } from "@fabricorg/compiler";
|
|
2
|
+
//#region index.d.ts
|
|
3
|
+
export declare const eventsGenerator: GeneratorTarget;
|
|
4
|
+
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { GeneratorTarget } from
|
|
2
|
-
|
|
3
|
-
declare const eventsGenerator: GeneratorTarget;
|
|
4
|
-
|
|
5
|
-
export { eventsGenerator };
|
|
1
|
+
import { GeneratorTarget } from "@fabricorg/compiler";
|
|
2
|
+
//#region index.d.ts
|
|
3
|
+
export declare const eventsGenerator: GeneratorTarget;
|
|
4
|
+
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,24 @@
|
|
|
1
|
-
// index.ts
|
|
2
1
|
import { stableStringify } from "@fabricorg/compiler";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
//#region index.ts
|
|
3
|
+
const eventsGenerator = {
|
|
4
|
+
name: "@fabricorg/gen-events",
|
|
5
|
+
version: "0.2.12",
|
|
6
|
+
generate(ir) {
|
|
7
|
+
return ir.modules.map((module) => ({
|
|
8
|
+
path: `${module.namespace}/events.json`,
|
|
9
|
+
content: stableStringify({
|
|
10
|
+
generator: {
|
|
11
|
+
name: eventsGenerator.name,
|
|
12
|
+
version: eventsGenerator.version
|
|
13
|
+
},
|
|
14
|
+
manifestDigest: ir.manifestDigest,
|
|
15
|
+
module: module.namespace,
|
|
16
|
+
events: module.eventTypes
|
|
17
|
+
})
|
|
18
|
+
}));
|
|
19
|
+
}
|
|
8
20
|
};
|
|
21
|
+
//#endregion
|
|
22
|
+
export { eventsGenerator };
|
|
23
|
+
|
|
9
24
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nexport const eventsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-events\", version:\"0.2.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../index.ts"],"sourcesContent":["import { stableStringify, type GeneratorTarget } from \"@fabricorg/compiler\";\nexport const eventsGenerator: GeneratorTarget = { name:\"@fabricorg/gen-events\", version:\"0.2.12\", generate(ir) { return ir.modules.map((module) => ({ path:`${module.namespace}/events.json`, content: stableStringify({ generator:{name:eventsGenerator.name,version:eventsGenerator.version}, manifestDigest:ir.manifestDigest, module:module.namespace, events:module.eventTypes }) })); } };\n"],"mappings":";;AACA,MAAa,kBAAmC;CAAE,MAAK;CAAyB,SAAQ;CAAU,SAAS,IAAI;EAAE,OAAO,GAAG,QAAQ,KAAK,YAAY;GAAE,MAAK,GAAG,OAAO,UAAU;GAAe,SAAS,gBAAgB;IAAE,WAAU;KAAC,MAAK,gBAAgB;KAAK,SAAQ,gBAAgB;IAAO;IAAG,gBAAe,GAAG;IAAgB,QAAO,OAAO;IAAW,QAAO,OAAO;GAAW,CAAC;EAAE,EAAE;CAAG;AAAE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fabricorg/gen-events",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.12",
|
|
4
4
|
"description": "Event registry 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.10"
|
|
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
|
}
|