@milaboratories/pf-spec 1.0.10 → 1.0.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/dist/index.d.ts CHANGED
@@ -1,10 +1,9 @@
1
- import { axes_d_exports, collapse, expand, find } from "./axes.js";
2
- import { build, build_query_d_exports } from "./build-query.js";
1
+ import { collapse, expand, find } from "./axes.js";
2
+ import { build } from "./build-query.js";
3
3
  import { LegacyQuery, PFrame } from "./p-frame.js";
4
- import { rewriteLegacyFilters as rewriteLegacyFilters$1, rewrite_filters_d_exports } from "./rewrite-filters.js";
5
- import { findColumn, table_d_exports } from "./table.js";
4
+ import { rewriteLegacyFilters as rewriteLegacyFilters$1 } from "./rewrite-filters.js";
5
+ import { findColumn } from "./table.js";
6
6
  import { PColumnSpec } from "@milaboratories/pl-model-common";
7
- //#region src/index.d.ts
8
7
  /** Creates a {@link PFrame} from a map of column ids to column specifications. */
9
8
  export declare const createPFrame: (spec: Record<string, PColumnSpec>) => PFrame;
10
9
  /** Expands an `AxesSpec` into `AxesId`s and resolves the parent information. */
@@ -34,6 +33,5 @@ export declare const buildQuery: typeof build;
34
33
  * spec.
35
34
  */
36
35
  export declare const rewriteLegacyFilters: typeof rewriteLegacyFilters$1;
37
- //#endregion
38
36
  export { type LegacyQuery, PFrame };
39
37
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;qBAUa,eAAY,MAAU,eAAe,iBAAe;;qBAGpD,mBAAU;;qBAGV,qBAAY;;qBAGZ,iBAAQ;;;;;qBAMR,wBAAe;;;;;;;;;;qBAWf,mBAAU;;;;;;qBAOV,6BAAoB"}
1
+ {"version":3,"file":"index.d.ts","names":["axes.expand","axes.collapse","axes.find","table.findColumn","buildQueryModule.build","rewriteFiltersModule.rewriteLegacyFilters"],"sources":["../src/index.ts"],"mappings":";;;;;;;qBAUa,eAAY,MAAU,eAAe,iBAAe;;qBAGpD,mBAAUA;;qBAGV,qBAAYC;;qBAGZ,iBAAQC;;;;;qBAMR,wBAAeC;;;;;;;;;;qBAWf,mBAAUC;;;;;;qBAOV,6BAAoBC"}
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { build } from "./build-query.js";
3
3
  import { PFrame } from "./p-frame.js";
4
4
  import { rewriteLegacyFilters as rewriteLegacyFilters$1 } from "./rewrite-filters.js";
5
5
  import { findColumn } from "./table.js";
6
- //#region src/index.ts
6
+ // src/index.ts
7
7
  /** Creates a {@link PFrame} from a map of column ids to column specifications. */
8
8
  const createPFrame = (spec) => new PFrame(spec);
9
9
  /** Expands an `AxesSpec` into `AxesId`s and resolves the parent information. */
@@ -33,7 +33,6 @@ const buildQuery = build;
33
33
  * spec.
34
34
  */
35
35
  const rewriteLegacyFilters = rewriteLegacyFilters$1;
36
- //#endregion
37
36
  export { PFrame, buildQuery, collapseAxes, createPFrame, expandAxes, findAxis, findTableColumn, rewriteLegacyFilters };
38
37
 
39
38
  //# sourceMappingURL=index.js.map
package/dist/p-frame.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { EvaluateQueryResponse, JoinEntry, PColumnIdAndSpec, PColumnSpec, PObjectId, PTableRecordFilter, PTableSorting, SpecQuery } from "@milaboratories/pl-model-common";
2
2
  import { PFrameInternal } from "@milaboratories/pl-model-middle-layer";
3
- //#region src/p-frame.d.ts
4
3
  /** A legacy (V4) query. Code used this type before the unified `SpecQuery`. */
5
4
  export type LegacyQuery = {
6
5
  /** The source join entry. It defines the data sources and the join structure. */
@@ -45,5 +44,4 @@ export declare class PFrame implements Disposable {
45
44
  rewriteLegacyQuery(request: LegacyQuery): SpecQuery;
46
45
  [Symbol.dispose](): void;
47
46
  }
48
- //#endregion
49
47
  //# sourceMappingURL=p-frame.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-frame.d.ts","names":[],"sources":["../src/p-frame.ts"],"mappings":";;;;YAeY;;EAEV,KAAK,UAAU;;EAEf,UAAU;;EAEV,UAAU;;;;;;;;;;;qBAYC,kBAAkB;;EAG7B,YAAY,MAAM,eAAe;;EAKjC,cACE,SAAS,eAAe,iCACvB,eAAe;;EAKlB,UAAU,UAAU,YAAY;;EAKhC,eAAe;;;;;;;;;EAaf,gBACE,SAAS,eAAe,2BACvB,eAAe;;EAKlB,YAAY,SAAS,eAAe,qBAAqB,eAAe;;EAKxE,cAAc,SAAS,YAAY;;EAKnC,mBAAmB,SAAS,cAAc;GAKzC,OAAO"}
1
+ {"version":3,"file":"p-frame.d.ts","names":[],"sources":["../src/p-frame.ts"],"mappings":";;;YAeY;;EAEV,KAAK,UAAU;;EAEf,UAAU;;EAEV,UAAU;;;;;;;;;;;qBAYC,kBAAkB;;EAG7B,YAAY,MAAM,eAAe;;EAKjC,cACE,SAAS,eAAe,iCACvB,eAAe;;EAKlB,UAAU,UAAU,YAAY;;EAKhC,eAAe;;;;;;;;;EAaf,gBACE,SAAS,eAAe,2BACvB,eAAe;;EAKlB,YAAY,SAAS,eAAe,qBAAqB,eAAe;;EAKxE,cAAc,SAAS,YAAY;;EAKnC,mBAAmB,SAAS,cAAc;GAKzC,OAAO"}
package/dist/p-frame.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { spec } from "./generated/pframes_rs_wasip2.js";
2
- //#region src/p-frame.ts
2
+ // src/p-frame.ts
3
3
  /**
4
4
  * A set of registered column specs, and the spec-plane operations on them.
5
5
  *
@@ -103,7 +103,6 @@ function joinEntryToInternal(entry) {
103
103
  default: throw new Error(`unsupported PFrame join entry type: ${type}`);
104
104
  }
105
105
  }
106
- //#endregion
107
106
  export { PFrame };
108
107
 
109
108
  //# sourceMappingURL=p-frame.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"p-frame.js","names":["#frame","bindings","spec"],"sources":["../src/p-frame.ts"],"sourcesContent":["import type {\n EvaluateQueryResponse,\n JoinEntry,\n PColumnIdAndSpec,\n PColumnSpec,\n PColumnValue,\n PObjectId,\n PTableRecordFilter,\n PTableSorting,\n SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { PFrameInternal } from \"@milaboratories/pl-model-middle-layer\";\nimport { spec as bindings } from \"./generated/pframes_rs_wasip2.js\";\n\n/** A legacy (V4) query. Code used this type before the unified `SpecQuery`. */\nexport type LegacyQuery = {\n /** The source join entry. It defines the data sources and the join structure. */\n src: JoinEntry<PObjectId>;\n /** Optional record-level filters. The query applies these to its results. */\n filters?: PTableRecordFilter[];\n /** Optional sort specifications. They set the order of the results. */\n sorting?: PTableSorting[];\n};\n\n/**\n * A set of registered column specs, and the spec-plane operations on them.\n *\n * Each method uses the specs that this frame holds. No method reads data. The module\n * surface holds the spec operations that do not need a frame.\n *\n * This class holds a WASM resource. Use a `using` declaration to release it. Garbage\n * collection also releases the resource, but not at a known time.\n */\nexport class PFrame implements Disposable {\n #frame: bindings.Frame;\n\n constructor(spec: Record<string, PColumnSpec>) {\n this.#frame = bindings.Frame.fromJson(JSON.stringify(spec));\n }\n\n /** Deletes columns from a columns specification. */\n deleteColumns(\n request: PFrameInternal.DeleteColumnFromColumnsRequest,\n ): PFrameInternal.DeleteColumnFromColumnsResponse {\n return JSON.parse(bindings.Frame.deleteColumns(JSON.stringify(request)));\n }\n\n /** Returns `null` if this frame has no column with the id `columnId`. */\n getColumn(columnId: PObjectId): PColumnIdAndSpec | null {\n return JSON.parse(this.#frame.getColumn(JSON.stringify(columnId)));\n }\n\n /** Lists each column in this frame with its id and its spec. */\n listColumns(): PColumnIdAndSpec[] {\n const columns = JSON.parse(this.#frame.listColumns()) as Record<string, PColumnIdAndSpec>;\n return Object.values(columns);\n }\n\n /**\n * Discovers the columns that are compatible with a given axes integration.\n *\n * The include filters and the exclude filters apply in order. The exclude filters\n * remove matches from the include set. Each hit has its own traversal `path`. To\n * materialize a hit as a `SpecQueryJoinEntry`, give the hit's column id and `path`\n * to {@link buildQuery}.\n */\n discoverColumns(\n request: PFrameInternal.DiscoverColumnsRequestV2,\n ): PFrameInternal.DiscoverColumnsResponse {\n return JSON.parse(this.#frame.discoverColumns(JSON.stringify(request)));\n }\n\n /** Finds the columns in this frame that match the given filter criteria. */\n findColumns(request: PFrameInternal.FindColumnsRequest): PFrameInternal.FindColumnsResponse {\n return JSON.parse(this.#frame.findColumns(JSON.stringify(request)));\n }\n\n /** Resolves a query against this frame's specs. Returns a table spec and a data query. */\n evaluateQuery(request: SpecQuery): EvaluateQueryResponse {\n return JSON.parse(this.#frame.evaluateQuery(JSON.stringify(request)));\n }\n\n /** Upgrades a {@link LegacyQuery} to the current `SpecQuery` format. */\n rewriteLegacyQuery(request: LegacyQuery): SpecQuery {\n const src = joinEntryToInternal(request.src);\n return JSON.parse(this.#frame.rewriteLegacyQuery(JSON.stringify({ ...request, src })));\n }\n\n [Symbol.dispose](): void {\n this.#frame[Symbol.dispose]();\n }\n}\n\nfunction joinEntryToInternal(entry: JoinEntry<PObjectId>): PFrameInternal.JoinEntryV4 {\n const type = entry.type;\n switch (type) {\n case \"column\":\n return {\n type: \"column\",\n columnId: entry.column,\n };\n case \"slicedColumn\":\n return {\n type: \"slicedColumn\",\n columnId: entry.column,\n newId: entry.newId,\n axisFilters: entry.axisFilters,\n };\n case \"artificialColumn\":\n return {\n type: \"artificialColumn\",\n columnId: entry.column,\n newId: entry.newId,\n axesIndices: entry.axesIndices,\n };\n case \"inlineColumn\":\n return {\n type: \"inlineColumn\",\n newId: entry.column.id,\n spec: entry.column.spec,\n dataInfo: {\n type: \"Json\",\n keyLength: entry.column.spec.axesSpec.length,\n data: entry.column.data.reduce(\n (acc, row) => {\n acc[JSON.stringify(row.key)] = row.val;\n return acc;\n },\n {} as Record<string, PColumnValue>,\n ),\n },\n };\n case \"inner\":\n case \"full\":\n return {\n type: entry.type,\n entries: entry.entries.map((col) => joinEntryToInternal(col)),\n };\n case \"outer\":\n return {\n type: \"outer\",\n primary: joinEntryToInternal(entry.primary),\n secondary: entry.secondary.map((col) => joinEntryToInternal(col)),\n };\n default:\n throw new Error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AO,MAAM;GACb,aAAa,MAAM;EACrB;EACF,KAAK,oBACH,OAAO;GACL,MAAM;GACN,UAAU,MAAM;GAChB,OAAO,MAAM;GACb,aAAa,MAAM;EACrB;EACF,KAAK,gBACH,OAAO;GACL,MAAM;GACN,OAAO,MAAM,OAAO;GACpB,MAAM,MAAM,OAAO;GACnB,UAAU;IACR,MAAM;IACN,WAAW,MAAM,OAAO,KAAK,SAAS;IACtC,MAAM,MAAM,OAAO,KAAK,QACrB,KAAK,QAAQ;KACZ,IAAI,KAAK,UAAU,IAAI,GAAG,KAAK,IAAI;KACnC,OAAO;IACT,GACA,CAAC,CACH;GACF;EACF;EACF,KAAK;EACL,KAAK,QACH,OAAO;GACL,MAAM,MAAM;GACZ,SAAS,MAAM,QAAQ,KAAK,QAAQ,oBAAoB,GAAG,CAAC;EAC9D;EACF,KAAK,SACH,OAAO;GACL,MAAM;GACN,SAAS,oBAAoB,MAAM,OAAO;GAC1C,WAAW,MAAM,UAAU,KAAK,QAAQ,oBAAoB,GAAG,CAAC;EAClE;EACF,SACE,MAAM,IAAI,MAAM,uCAAuC,MAAsB;CACjF;AACF"}
1
+ {"version":3,"file":"p-frame.js","names":["bindings","spec"],"sources":["../src/p-frame.ts"],"sourcesContent":["import type {\n EvaluateQueryResponse,\n JoinEntry,\n PColumnIdAndSpec,\n PColumnSpec,\n PColumnValue,\n PObjectId,\n PTableRecordFilter,\n PTableSorting,\n SpecQuery,\n} from \"@milaboratories/pl-model-common\";\nimport type { PFrameInternal } from \"@milaboratories/pl-model-middle-layer\";\nimport { spec as bindings } from \"./generated/pframes_rs_wasip2.js\";\n\n/** A legacy (V4) query. Code used this type before the unified `SpecQuery`. */\nexport type LegacyQuery = {\n /** The source join entry. It defines the data sources and the join structure. */\n src: JoinEntry<PObjectId>;\n /** Optional record-level filters. The query applies these to its results. */\n filters?: PTableRecordFilter[];\n /** Optional sort specifications. They set the order of the results. */\n sorting?: PTableSorting[];\n};\n\n/**\n * A set of registered column specs, and the spec-plane operations on them.\n *\n * Each method uses the specs that this frame holds. No method reads data. The module\n * surface holds the spec operations that do not need a frame.\n *\n * This class holds a WASM resource. Use a `using` declaration to release it. Garbage\n * collection also releases the resource, but not at a known time.\n */\nexport class PFrame implements Disposable {\n #frame: bindings.Frame;\n\n constructor(spec: Record<string, PColumnSpec>) {\n this.#frame = bindings.Frame.fromJson(JSON.stringify(spec));\n }\n\n /** Deletes columns from a columns specification. */\n deleteColumns(\n request: PFrameInternal.DeleteColumnFromColumnsRequest,\n ): PFrameInternal.DeleteColumnFromColumnsResponse {\n return JSON.parse(bindings.Frame.deleteColumns(JSON.stringify(request)));\n }\n\n /** Returns `null` if this frame has no column with the id `columnId`. */\n getColumn(columnId: PObjectId): PColumnIdAndSpec | null {\n return JSON.parse(this.#frame.getColumn(JSON.stringify(columnId)));\n }\n\n /** Lists each column in this frame with its id and its spec. */\n listColumns(): PColumnIdAndSpec[] {\n const columns = JSON.parse(this.#frame.listColumns()) as Record<string, PColumnIdAndSpec>;\n return Object.values(columns);\n }\n\n /**\n * Discovers the columns that are compatible with a given axes integration.\n *\n * The include filters and the exclude filters apply in order. The exclude filters\n * remove matches from the include set. Each hit has its own traversal `path`. To\n * materialize a hit as a `SpecQueryJoinEntry`, give the hit's column id and `path`\n * to {@link buildQuery}.\n */\n discoverColumns(\n request: PFrameInternal.DiscoverColumnsRequestV2,\n ): PFrameInternal.DiscoverColumnsResponse {\n return JSON.parse(this.#frame.discoverColumns(JSON.stringify(request)));\n }\n\n /** Finds the columns in this frame that match the given filter criteria. */\n findColumns(request: PFrameInternal.FindColumnsRequest): PFrameInternal.FindColumnsResponse {\n return JSON.parse(this.#frame.findColumns(JSON.stringify(request)));\n }\n\n /** Resolves a query against this frame's specs. Returns a table spec and a data query. */\n evaluateQuery(request: SpecQuery): EvaluateQueryResponse {\n return JSON.parse(this.#frame.evaluateQuery(JSON.stringify(request)));\n }\n\n /** Upgrades a {@link LegacyQuery} to the current `SpecQuery` format. */\n rewriteLegacyQuery(request: LegacyQuery): SpecQuery {\n const src = joinEntryToInternal(request.src);\n return JSON.parse(this.#frame.rewriteLegacyQuery(JSON.stringify({ ...request, src })));\n }\n\n [Symbol.dispose](): void {\n this.#frame[Symbol.dispose]();\n }\n}\n\nfunction joinEntryToInternal(entry: JoinEntry<PObjectId>): PFrameInternal.JoinEntryV4 {\n const type = entry.type;\n switch (type) {\n case \"column\":\n return {\n type: \"column\",\n columnId: entry.column,\n };\n case \"slicedColumn\":\n return {\n type: \"slicedColumn\",\n columnId: entry.column,\n newId: entry.newId,\n axisFilters: entry.axisFilters,\n };\n case \"artificialColumn\":\n return {\n type: \"artificialColumn\",\n columnId: entry.column,\n newId: entry.newId,\n axesIndices: entry.axesIndices,\n };\n case \"inlineColumn\":\n return {\n type: \"inlineColumn\",\n newId: entry.column.id,\n spec: entry.column.spec,\n dataInfo: {\n type: \"Json\",\n keyLength: entry.column.spec.axesSpec.length,\n data: entry.column.data.reduce(\n (acc, row) => {\n acc[JSON.stringify(row.key)] = row.val;\n return acc;\n },\n {} as Record<string, PColumnValue>,\n ),\n },\n };\n case \"inner\":\n case \"full\":\n return {\n type: entry.type,\n entries: entry.entries.map((col) => joinEntryToInternal(col)),\n };\n case \"outer\":\n return {\n type: \"outer\",\n primary: joinEntryToInternal(entry.primary),\n secondary: entry.secondary.map((col) => joinEntryToInternal(col)),\n };\n default:\n throw new Error(`unsupported PFrame join entry type: ${type satisfies never}`);\n }\n}\n"],"mappings":";;;;;;;;;;;AAiCA,IAAa,SAAb,MAA0C;CACxC;CAEA,YAAY,QAAmC;EAC7C,KAAK,SAASA,KAAS,MAAM,SAAS,KAAK,UAAUC,MAAI,CAAC;CAC5D;;CAGA,cACE,SACgD;EAChD,OAAO,KAAK,MAAMD,KAAS,MAAM,cAAc,KAAK,UAAU,OAAO,CAAC,CAAC;CACzE;;CAGA,UAAU,UAA8C;EACtD,OAAO,KAAK,MAAM,KAAK,OAAO,UAAU,KAAK,UAAU,QAAQ,CAAC,CAAC;C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,CACH;GACF;EACF;EACF,KAAK;EACL,KAAK,QACH,OAAO;GACL,MAAM,MAAM;GACZ,SAAS,MAAM,QAAQ,KAAK,QAAQ,oBAAoB,GAAG,CAAC;EAC9D;EACF,KAAK,SACH,OAAO;GACL,MAAM;GACN,SAAS,oBAAoB,MAAM,OAAO;GAC1C,WAAW,MAAM,UAAU,KAAK,QAAQ,oBAAoB,GAAG,CAAC;EAClE;EACF,SACE,MAAM,IAAI,MAAM,uCAAuC,MAAsB;CACjF;AACF"}
@@ -1,7 +1,4 @@
1
1
  import { DataQueryBooleanExpression, PTableColumnSpec, PTableRecordFilter } from "@milaboratories/pl-model-common";
2
- declare namespace rewrite_filters_d_exports {
3
- export { rewriteLegacyFilters };
4
- }
5
2
  /**
6
3
  * Upgrades the selector-based legacy record filters into index-based boolean
7
4
  * expressions for the data layer. It resolves them against the given unified
@@ -16,6 +13,4 @@ export declare function rewriteLegacyFilters(request: {
16
13
  tableSpec: PTableColumnSpec[];
17
14
  filters: PTableRecordFilter[];
18
15
  }): DataQueryBooleanExpression[];
19
- //#endregion
20
- export { rewrite_filters_d_exports };
21
16
  //# sourceMappingURL=rewrite-filters.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"rewrite-filters.d.ts","names":[],"sources":["../src/rewrite-filters.ts"],"mappings":";;;;;;;;;;;;;;wBAiBgB,qBAAqB;EACnC,WAAW;EACX,SAAS;IACP"}
1
+ {"version":3,"file":"rewrite-filters.d.ts","names":[],"sources":["../src/rewrite-filters.ts"],"mappings":";;;;;;;;;;;wBAiBgB,qBAAqB;EACnC,WAAW;EACX,SAAS;IACP"}
@@ -1,5 +1,5 @@
1
1
  import { spec } from "./generated/pframes_rs_wasip2.js";
2
- //#region src/rewrite-filters.ts
2
+ // src/rewrite-filters.ts
3
3
  /**
4
4
  * Upgrades the selector-based legacy record filters into index-based boolean
5
5
  * expressions for the data layer. It resolves them against the given unified
@@ -13,7 +13,6 @@ import { spec } from "./generated/pframes_rs_wasip2.js";
13
13
  function rewriteLegacyFilters(request) {
14
14
  return JSON.parse(spec.Frame.rewriteLegacyFilters(JSON.stringify(request)));
15
15
  }
16
- //#endregion
17
16
  export { rewriteLegacyFilters };
18
17
 
19
18
  //# sourceMappingURL=rewrite-filters.js.map
package/dist/table.d.ts CHANGED
@@ -1,8 +1,3 @@
1
1
  import { PTableColumnId, PTableColumnSpec } from "@milaboratories/pl-model-common";
2
- declare namespace table_d_exports {
3
- export { findColumn };
4
- }
5
2
  export declare function findColumn(tableSpec: PTableColumnSpec[], selector: PTableColumnId): number;
6
- //#endregion
7
- export { table_d_exports };
8
3
  //# sourceMappingURL=table.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.d.ts","names":[],"sources":["../src/table.ts"],"mappings":";;;;wBAGgB,WAAW,WAAW,oBAAoB,UAAU"}
1
+ {"version":3,"file":"table.d.ts","names":[],"sources":["../src/table.ts"],"mappings":";wBAGgB,WAAW,WAAW,oBAAoB,UAAU"}
package/dist/table.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { spec } from "./generated/pframes_rs_wasip2.js";
2
- import _usingCtx from "./_virtual/_@oxc-project_runtime@0.137.0/helpers/esm/usingCtx.js";
3
- //#region src/table.ts
2
+ import _usingCtx from "./_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/usingCtx.js";
3
+ // src/table.ts
4
4
  function findColumn(tableSpec, selector) {
5
5
  try {
6
6
  var _usingCtx$1 = _usingCtx();
@@ -16,7 +16,6 @@ function findColumn(tableSpec, selector) {
16
16
  _usingCtx$1.d();
17
17
  }
18
18
  }
19
- //#endregion
20
19
  export { findColumn };
21
20
 
22
21
  //# sourceMappingURL=table.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pf-spec",
3
- "version": "1.0.10",
3
+ "version": "1.0.12",
4
4
  "description": "Spec-plane PFrame operations: bindings to the pframes WASM component",
5
5
  "keywords": [],
6
6
  "license": "UNLICENSED",
@@ -16,24 +16,24 @@
16
16
  }
17
17
  },
18
18
  "dependencies": {
19
- "@milaboratories/pl-model-middle-layer": "1.34.4",
20
- "@milaboratories/pl-model-common": "1.54.0"
19
+ "@milaboratories/pl-model-common": "1.54.2",
20
+ "@milaboratories/pl-model-middle-layer": "1.34.6"
21
21
  },
22
22
  "devDependencies": {
23
- "@bytecodealliance/jco-transpile": "^0.6.3",
24
- "@bytecodealliance/preview2-shim": "^0.20.1",
25
- "@milaboratories/pframes-rs-wasip2": "1.1.61",
26
- "@types/node": "~24.5.2",
27
- "@vitest/coverage-istanbul": "^4.1.3",
23
+ "@bytecodealliance/jco-transpile": "^0.20.0",
24
+ "@bytecodealliance/preview2-shim": "^0.30.0",
25
+ "@milaboratories/build-configs": "2.0.2",
26
+ "@milaboratories/pframes-rs-wasip2": "1.2.0",
27
+ "@milaboratories/ts-builder": "1.7.3",
28
+ "@milaboratories/ts-configs": "1.4.0",
29
+ "@types/node": "~24.19.2",
30
+ "@vitest/coverage-istanbul": "^4.1.12",
28
31
  "rollup-plugin-copy": "^3.5.0",
29
32
  "typescript": "7.0.2",
30
- "vitest": "^4.1.3",
31
- "@milaboratories/ts-builder": "1.7.2",
32
- "@milaboratories/build-configs": "2.0.2",
33
- "@milaboratories/ts-configs": "1.4.0"
33
+ "vitest": "^4.1.12"
34
34
  },
35
35
  "peerDependencies": {
36
- "@bytecodealliance/preview2-shim": "^0.20.1"
36
+ "@bytecodealliance/preview2-shim": "^0.30.0"
37
37
  },
38
38
  "repository": {
39
39
  "type": "git",
@@ -1,13 +0,0 @@
1
- //#region \0rolldown/runtime.js
2
- var __defProp = Object.defineProperty;
3
- var __exportAll = (all, no_symbols) => {
4
- let target = {};
5
- for (var name in all) __defProp(target, name, {
6
- get: all[name],
7
- enumerable: true
8
- });
9
- if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
10
- return target;
11
- };
12
- //#endregion
13
- export { __exportAll };