@milaboratories/pl-model-middle-layer 1.30.2 → 1.30.4

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.
@@ -8,12 +8,12 @@ import { DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColu
8
8
  import { FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit } from "./find_columns.js";
9
9
  import { EvaluateQueryResponse, LegacyQuery, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4 } from "./api_wasm.js";
10
10
  import { ArtificialColumnJoinEntry, ColumnJoinEntry, CreateTableRequestV4, FullJoinV4, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, OuterJoinV4, SlicedColumnJoinEntry } from "./create_table.js";
11
- import { PFrameFactoryV8, PFrameOptionsV2, PFrameV17 } from "./pframe.js";
11
+ import { PFrameFactoryV8, PFrameFactoryV9, PFrameOptionsV2, PFrameV17, PFrameV18 } from "./pframe.js";
12
12
  import { SingleAxisSelector as SingleAxisSelector$1 } from "@milaboratories/pl-model-common";
13
13
 
14
14
  //#region src/pframe/internal_api/index.d.ts
15
15
  declare namespace index_d_exports {
16
- export { AddColumnEntryV2, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DataInfoV2, DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse, DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, EvaluateQueryResponse, FilePath, FileRange, FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit, FsStoreOptions, FullJoinV4, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, LegacyQuery, Logger, MatcherMap, MultiAxisSelector, MultiColumnSelector, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, OuterJoinV4, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV6, PFrameFactoryV8, PFrameId, PFrameOptionsV2, PFrameReadAPIV14, PFrameReadAPIV15, PFrameV17, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4, PTableId, PTableV11, PTableV12, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
16
+ export { AddColumnEntryV2, ArtificialColumnJoinEntry, AxisQualification, BaseObjectStore, ColumnAxesWithQualifications, ColumnJoinEntry, ConstantAxisFilter, CreateTableRequestV4, DataInfo, DataInfoExtension, DataInfoV2, DeleteColumnFromColumnsRequest, DeleteColumnFromColumnsResponse, DiscoverColumnsConstraints, DiscoverColumnsMappingVariant, DiscoverColumnsRequestV2, DiscoverColumnsResponse, DiscoverColumnsResponseHit, DiscoverColumnsResponseQualifications, DiscoverColumnsStepInfo, EvaluateQueryResponse, FilePath, FileRange, FindColumnResponseQualifications, FindColumnsMappingVariant, FindColumnsRequest, FindColumnsResponse, FindColumnsResponseHit, FsStoreOptions, FullJoinV4, HttpAuthorizationToken, HttpHelpers, HttpMethod, HttpRange, HttpServer, HttpServerInfo, HttpServerOptions, InlineColumnJoinEntry, InnerJoinV4, JoinEntryV4, LegacyQuery, Logger, MatcherMap, MultiAxisSelector, MultiColumnSelector, ObjectStore, ObjectStoreOptions, ObjectStoreResponse, ObjectStoreUrl, OuterJoinV4, PColumnValueTypeSpec, PFrameBlobId, PFrameDataSourceV2, PFrameFactoryAPIV6, PFrameFactoryV8, PFrameFactoryV9, PFrameId, PFrameOptionsV2, PFrameReadAPIV14, PFrameReadAPIV15, PFrameV17, PFrameV18, PFrameWasmAPIV2, PFrameWasmAPIV3, PFrameWasmAPIV4, PFrameWasmAPIV5, PFrameWasmV2, PFrameWasmV3, PFrameWasmV4, PTableId, PTableV11, PTableV12, ParquetExtension, ParquetFileName, PemCertificate, RequestHandlerOptions, SingleAxisSelector$1 as SingleAxisSelector, SlicedColumnJoinEntry, SpecExtension, StringMatcher, UniqueValuesRequestV2 };
17
17
  }
18
18
  //#endregion
19
19
  export { index_d_exports };
@@ -1,5 +1,5 @@
1
1
  import { Logger, PFrameId } from "./common.js";
2
- import { PFrameReadAPIV14 } from "./api_read.js";
2
+ import { PFrameReadAPIV14, PFrameReadAPIV15 } from "./api_read.js";
3
3
  import { PFrameFactoryAPIV6 } from "./api_factory.js";
4
4
 
5
5
  //#region src/pframe/internal_api/pframe.d.ts
@@ -10,6 +10,17 @@ import { PFrameFactoryAPIV6 } from "./api_factory.js";
10
10
  * column-index → header map.
11
11
  */
12
12
  interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
13
+ /**
14
+ * Full PFrame surface — factory operations plus data-side reads. Exposes
15
+ * the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
16
+ * `data`) plus {@link PFrameReadAPIV15}, whose tables' `export` takes an
17
+ * `ops.headers` list of `[column index, header name]` pairs.
18
+ *
19
+ * Same surface as {@link PFrameV17}; the only change is that the read side is
20
+ * upgraded from {@link PFrameReadAPIV14} to {@link PFrameReadAPIV15}, so
21
+ * {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
22
+ */
23
+ interface PFrameV18 extends PFrameFactoryAPIV6, PFrameReadAPIV15 {}
13
24
  type PFrameOptionsV2 = {
14
25
  /** PFrame ID for logging purposes */frameId: PFrameId; /** Path to directory where PFrame can create temporary files */
15
26
  spillPath: string; /** Logger instance, no logging is performed when not provided */
@@ -34,6 +45,29 @@ interface PFrameFactoryV8 {
34
45
  */
35
46
  pprofDump: () => Promise<Uint8Array>;
36
47
  }
48
+ /**
49
+ * PFrame management functions exposed by the PFrame module. Creates
50
+ * {@link PFrameV18} instances (self-contained column data info).
51
+ *
52
+ * Same surface as {@link PFrameFactoryV8}; the only change is that
53
+ * {@link PFrameFactoryV9.createPFrame} returns {@link PFrameV18}, whose tables'
54
+ * `export` takes an `ops.headers` list of `[column index, header name]` pairs.
55
+ */
56
+ interface PFrameFactoryV9 {
57
+ /**
58
+ * Create a new PFrame instance.
59
+ * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
60
+ */
61
+ createPFrame(options: PFrameOptionsV2): PFrameV18;
62
+ /**
63
+ * Dump active allocations from all PFrames instances in pprof format.
64
+ * The result of this function should be saved as `profile.pb.gz`.
65
+ * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
66
+ * to view the allocation flamechart.
67
+ * @warning This method will always reject on Windows!
68
+ */
69
+ pprofDump: () => Promise<Uint8Array>;
70
+ }
37
71
  //#endregion
38
- export { PFrameFactoryV8, PFrameOptionsV2, PFrameV17 };
72
+ export { PFrameFactoryV8, PFrameFactoryV9, PFrameOptionsV2, PFrameV17, PFrameV18 };
39
73
  //# sourceMappingURL=pframe.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AAWA;;;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAMK,qCAJf,OAAA,EAAS,QAAA,EAAA;EAET,SAAA,UAEA;EAAA,MAAA,GAAS,MAAA;AAAA;;AAOX;;;UAAiB,eAAA;EAKyB;;;;EAAxC,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EAAxC;;;;;;;EASA,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
1
+ {"version":3,"file":"pframe.d.ts","names":[],"sources":["../../../src/pframe/internal_api/pframe.ts"],"mappings":";;;;;;AAWA;;;;;UAAiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;;;;AAcvD;;;;;;;UAFiB,SAAA,SAAkB,kBAAA,EAAoB,gBAAA;AAAA,KAE3C,eAAA;EAMK,qCAJf,OAAA,EAAS,QAAA,EAWqB;EAT9B,SAAA,UAcsB;EAZtB,MAAA,GAAS,MAAA;AAAA;;;;;UAOM,eAAA;EAKF;;;;EAAb,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;EASL;;AAWrC;;;;;EAXE,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA;;;;;;;;;UAWV,eAAA;EAcoB;;;;EATnC,YAAA,CAAa,OAAA,EAAS,eAAA,GAAkB,SAAA;;;;;;;;EASxC,SAAA,QAAiB,OAAA,CAAQ,UAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/pl-model-middle-layer",
3
- "version": "1.30.2",
3
+ "version": "1.30.4",
4
4
  "description": "Common model between middle layer and non-block UI code",
5
5
  "files": [
6
6
  "./dist/**/*",
@@ -21,14 +21,14 @@
21
21
  "utility-types": "^3.11.0",
22
22
  "zod": "~3.25.76",
23
23
  "@milaboratories/helpers": "1.14.2",
24
- "@milaboratories/pl-model-common": "1.46.0"
24
+ "@milaboratories/pl-model-common": "1.46.1"
25
25
  },
26
26
  "devDependencies": {
27
27
  "@types/node": "~24.5.2",
28
28
  "typescript": "~5.9.3",
29
29
  "@milaboratories/ts-builder": "1.5.0",
30
- "@milaboratories/ts-configs": "1.2.3",
31
- "@milaboratories/build-configs": "2.0.0"
30
+ "@milaboratories/build-configs": "2.0.0",
31
+ "@milaboratories/ts-configs": "1.2.3"
32
32
  },
33
33
  "scripts": {
34
34
  "build": "ts-builder build --target node",
@@ -1,5 +1,5 @@
1
1
  import type { PFrameFactoryAPIV6 } from "./api_factory";
2
- import type { PFrameReadAPIV14 } from "./api_read";
2
+ import type { PFrameReadAPIV14, PFrameReadAPIV15 } from "./api_read";
3
3
  import type { Logger } from "./common";
4
4
  import type { PFrameId } from "./common";
5
5
 
@@ -11,6 +11,18 @@ import type { PFrameId } from "./common";
11
11
  */
12
12
  export interface PFrameV17 extends PFrameFactoryAPIV6, PFrameReadAPIV14 {}
13
13
 
14
+ /**
15
+ * Full PFrame surface — factory operations plus data-side reads. Exposes
16
+ * the self-contained {@link PFrameFactoryAPIV6} (column `typeSpec` embedded in
17
+ * `data`) plus {@link PFrameReadAPIV15}, whose tables' `export` takes an
18
+ * `ops.headers` list of `[column index, header name]` pairs.
19
+ *
20
+ * Same surface as {@link PFrameV17}; the only change is that the read side is
21
+ * upgraded from {@link PFrameReadAPIV14} to {@link PFrameReadAPIV15}, so
22
+ * {@link PFrameReadAPIV15.createTable} returns {@link PTableV12}.
23
+ */
24
+ export interface PFrameV18 extends PFrameFactoryAPIV6, PFrameReadAPIV15 {}
25
+
14
26
  export type PFrameOptionsV2 = {
15
27
  /** PFrame ID for logging purposes */
16
28
  frameId: PFrameId;
@@ -40,3 +52,28 @@ export interface PFrameFactoryV8 {
40
52
  */
41
53
  pprofDump: () => Promise<Uint8Array>;
42
54
  }
55
+
56
+ /**
57
+ * PFrame management functions exposed by the PFrame module. Creates
58
+ * {@link PFrameV18} instances (self-contained column data info).
59
+ *
60
+ * Same surface as {@link PFrameFactoryV8}; the only change is that
61
+ * {@link PFrameFactoryV9.createPFrame} returns {@link PFrameV18}, whose tables'
62
+ * `export` takes an `ops.headers` list of `[column index, header name]` pairs.
63
+ */
64
+ export interface PFrameFactoryV9 {
65
+ /**
66
+ * Create a new PFrame instance.
67
+ * @warning Use concurrency limiting to avoid OOM crashes when multiple instances are simultaneously in use.
68
+ */
69
+ createPFrame(options: PFrameOptionsV2): PFrameV18;
70
+
71
+ /**
72
+ * Dump active allocations from all PFrames instances in pprof format.
73
+ * The result of this function should be saved as `profile.pb.gz`.
74
+ * Use {@link https://pprof.me/} or {@link https://www.speedscope.app/}
75
+ * to view the allocation flamechart.
76
+ * @warning This method will always reject on Windows!
77
+ */
78
+ pprofDump: () => Promise<Uint8Array>;
79
+ }