@dialecte/scl 0.2.23 → 0.2.24
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/dist/{extensions-DzEZ0dCq.js → extensions-DY4WzfhV.js} +398 -324
- package/dist/v2019C1/extensions/data-model/transaction/import-types.d.ts +6 -1
- package/dist/v2019C1/extensions/data-model/transaction/import-types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/data-model/transaction/import-types.types.d.ts +2 -0
- package/dist/v2019C1/extensions/data-model/transaction/import-types.types.d.ts.map +1 -1
- package/dist/v2019C1/extensions/extraction/transaction/deep.d.ts.map +1 -1
- package/dist/v2019C1/index.js +1 -1
- package/dist/v2019C1/test.js +1 -1
- package/package.json +1 -1
|
@@ -9,7 +9,12 @@ export type { ImportTypesParams, ImportTypesResult, ImportTypesStats } from './i
|
|
|
9
9
|
* - **R1** structurally-equal type already in the target → reuse its id (dedup);
|
|
10
10
|
* - **R2** no match and the source id is free → clone, preserving the id;
|
|
11
11
|
* - **R3** no match but the id is taken by different content → fork under a new
|
|
12
|
-
* content-hash id (`<forkPrefix><id>_<hash>`) and propagate the fork upward
|
|
12
|
+
* content-hash id (`<forkPrefix><id>_<hash>`) and propagate the fork upward; then,
|
|
13
|
+
* if the displaced target type is left with **no** file-wide referrers (an update
|
|
14
|
+
* whose old version is no longer consumed), prune that orphan and reclaim its id
|
|
15
|
+
* for the fork. Pruning is refcount-based and cascades to descendants only where
|
|
16
|
+
* their own referrer count hits zero, so a child type still shared elsewhere keeps
|
|
17
|
+
* its fork.
|
|
13
18
|
*
|
|
14
19
|
* Child type references inside the imported types — and the `lnType` of the
|
|
15
20
|
* instances in `cloneMappings` (the caller's instance clone) — are repointed to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"import-types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EACX,iBAAiB,EACjB,iBAAiB,EAGjB,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAc3C,YAAY,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAA;AAElG;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAsB,WAAW,CAChC,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,iBAAiB,GACvB,OAAO,CAAC,iBAAiB,CAAC,CA8F5B"}
|
|
@@ -6,6 +6,8 @@ export type ImportTypesStats = {
|
|
|
6
6
|
reused: number;
|
|
7
7
|
preserved: number;
|
|
8
8
|
forked: number;
|
|
9
|
+
/** Forks whose id was reclaimed from a now-orphaned superseded type. */
|
|
10
|
+
reclaimed: number;
|
|
9
11
|
};
|
|
10
12
|
export type ImportTypesResult = {
|
|
11
13
|
/** source type id -> target type id (reused, preserved, or forked). */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-types.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,gEAAgE;AAChE,MAAM,MAAM,UAAU,GACnB,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,GAC7B,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC3B,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC3B,GAAG,CAAC,aAAa,CAAC,WAAW,CAAC,CAAA;AAEjC,MAAM,MAAM,gBAAgB,GAAG;
|
|
1
|
+
{"version":3,"file":"import-types.types.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/data-model/transaction/import-types.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C,gEAAgE;AAChE,MAAM,MAAM,UAAU,GACnB,GAAG,CAAC,aAAa,CAAC,UAAU,CAAC,GAC7B,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC3B,GAAG,CAAC,aAAa,CAAC,QAAQ,CAAC,GAC3B,GAAG,CAAC,aAAa,CAAC,WAAW,CAAC,CAAA;AAEjC,MAAM,MAAM,gBAAgB,GAAG;IAC9B,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,MAAM,CAAA;IACjB,MAAM,EAAE,MAAM,CAAA;IACd,wEAAwE;IACxE,SAAS,EAAE,MAAM,CAAA;CACjB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC/B,uEAAuE;IACvE,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC5B,KAAK,EAAE,gBAAgB,CAAA;CACvB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG;IAC/B,WAAW,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;IAC/B,OAAO,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,GAAG,GAAG,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,EAAE,CAAA;IACjE;;;;;OAKG;IACH,aAAa,CAAC,EAAE,GAAG,CAAC,YAAY,EAAE,CAAA;IAClC;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAA;CACnB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deep.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/extraction/transaction/deep.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,IAAI,CACzB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,
|
|
1
|
+
{"version":3,"file":"deep.d.ts","sourceRoot":"","sources":["../../../../../src/v2019C1/extensions/extraction/transaction/deep.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAA;AACtE,OAAO,KAAK,EAAO,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACnD,OAAO,KAAK,KAAK,IAAI,MAAM,gBAAgB,CAAA;AAE3C;;;;;;;;;;;;;GAaG;AACH,wBAAsB,IAAI,CACzB,EAAE,EAAE,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAC5B,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CA4B3B"}
|
package/dist/v2019C1/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "../extensions-
|
|
1
|
+
import { S as e, _ as t, a as n, b as r, c as i, d as a, f as o, g as s, h as c, i as l, l as u, m as d, n as f, o as p, p as m, r as h, s as g, t as _, u as v, v as y, x as b, y as x } from "../extensions-DY4WzfhV.js";
|
|
2
2
|
import { Project as S } from "@dialecte/core";
|
|
3
3
|
//#region src/v2019C1/dialecte.ts
|
|
4
4
|
function C(e) {
|
package/dist/v2019C1/test.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as e, s as t, t as n } from "../extensions-
|
|
1
|
+
import { i as e, s as t, t as n } from "../extensions-DY4WzfhV.js";
|
|
2
2
|
import { CUSTOM_RECORD_ID_ATTRIBUTE as r, CUSTOM_RECORD_ID_ATTRIBUTE_NAME as i, XMLNS_XSI_NAMESPACE as a } from "@dialecte/core/helpers";
|
|
3
3
|
import { XMLNS_DEV_NAMESPACE as o, createTestProject as s, createTestRecordFactory as c, createTestRunner as l, createXmlAssertions as u } from "@dialecte/core/test";
|
|
4
4
|
//#region src/v2019C1/test/hydrated-test.ts
|