@calcit/procs 0.12.46 → 0.12.47

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.
@@ -0,0 +1,36 @@
1
+ import { Hash } from "@calcit/ternary-tree";
2
+ import { CalcitValue } from "./js-primes.mjs";
3
+ import { CalcitImpl } from "./js-impl.mjs";
4
+ import { CalcitTag } from "./calcit-data.mjs";
5
+ import { CalcitStruct } from "./js-struct.mjs";
6
+ export declare class CalcitRecord {
7
+ name: CalcitTag;
8
+ fields: Array<CalcitTag>;
9
+ values: Array<CalcitValue>;
10
+ structRef: CalcitStruct;
11
+ cachedHash: Hash;
12
+ constructor(name: CalcitTag, fields: Array<CalcitTag>, values?: Array<CalcitValue>, structRef?: CalcitStruct);
13
+ get(k: CalcitValue): CalcitValue;
14
+ getOrNil(k: CalcitValue): CalcitValue;
15
+ assoc(k: CalcitValue, v: CalcitValue): CalcitRecord;
16
+ /** return -1 for missing */
17
+ findIndex(k: CalcitValue): number;
18
+ contains(k: CalcitValue): boolean;
19
+ toString(disableJsDataWarning?: boolean): string;
20
+ withImpls(impl: CalcitValue | CalcitImpl[]): CalcitRecord;
21
+ }
22
+ export declare let new_record: (name: CalcitValue, ...fields: Array<CalcitValue>) => CalcitValue;
23
+ export declare let new_impl_record: (impl: CalcitImpl, name: CalcitValue, ...fields: Array<CalcitValue>) => CalcitValue;
24
+ /** Loose record: `?{} :field1 val1 :field2 val2` – record without a declared struct.
25
+ * Fields are sorted by tag index. The record name is "?" (sentinel). */
26
+ export declare let _$q__$M_: (...xs: Array<CalcitValue>) => CalcitValue;
27
+ export declare let fieldsEqual: (xs: Array<CalcitTag>, ys: Array<CalcitTag>) => boolean;
28
+ export declare let _$n__PCT__$M_: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
29
+ export declare let _$n__PCT__$M__$q_: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
30
+ export declare let _$n_record_$o_with: (proto: CalcitValue, ...xs: Array<CalcitValue>) => CalcitValue;
31
+ export declare let _$n_record_$o_get_name: (x: CalcitValue) => CalcitTag;
32
+ export declare let _$n_record_$o_struct: (x: CalcitValue) => CalcitValue;
33
+ export declare let _$n_record_$o_from_map: (proto: CalcitValue, data: CalcitValue) => CalcitValue;
34
+ export declare let _$n_record_$o_to_map: (x: CalcitValue) => CalcitValue;
35
+ export declare let _$n_record_$o_matches_$q_: (x: CalcitValue, y: CalcitValue) => boolean;
36
+ export declare function _$n_record_$o_extend_as(obj: CalcitValue, new_name: CalcitValue, new_key: CalcitValue, new_value: CalcitValue): CalcitRecord;
@@ -0,0 +1,12 @@
1
+ import { Hash } from "@calcit/ternary-tree";
2
+ import type { CalcitFn } from "./calcit-data.mjs";
3
+ import type { CalcitValue } from "./js-primes.mts";
4
+ export declare class CalcitRef {
5
+ value: CalcitValue;
6
+ path: string;
7
+ listeners: Map<CalcitValue, CalcitFn>;
8
+ cachedHash: Hash;
9
+ constructor(x: CalcitValue, path: string);
10
+ toString(): string;
11
+ }
12
+ export declare let atom: (x: CalcitValue) => CalcitValue;
@@ -0,0 +1,23 @@
1
+ import { CalcitValue } from "./js-primes.mjs";
2
+ import { TernaryTreeMap, Hash } from "@calcit/ternary-tree";
3
+ import { CalcitSliceList } from "./js-list.mjs";
4
+ /** need to compare by Calcit */
5
+ declare let DATA_EQUAL: (x: CalcitValue, y: CalcitValue) => boolean;
6
+ export declare let overwriteSetComparator: (f: typeof DATA_EQUAL) => void;
7
+ export declare class CalcitSet {
8
+ value: TernaryTreeMap<CalcitValue, boolean>;
9
+ cachedHash: Hash;
10
+ constructor(value: TernaryTreeMap<CalcitValue, boolean> | Array<CalcitValue>);
11
+ len(): number;
12
+ contains(y: CalcitValue): boolean;
13
+ include(y: CalcitValue): CalcitSet;
14
+ exclude(y: CalcitValue): CalcitSet;
15
+ difference(ys: CalcitSet): CalcitSet;
16
+ union(ys: CalcitSet): CalcitSet;
17
+ intersection(ys: CalcitSet): CalcitSet;
18
+ destruct(): CalcitSliceList;
19
+ toString(disableJsDataWarning?: boolean): string;
20
+ values(): CalcitValue[];
21
+ nestedDataInChildren(): boolean;
22
+ }
23
+ export {};
@@ -0,0 +1,13 @@
1
+ import { CalcitTag } from "./calcit-data.mjs";
2
+ import { CalcitValue } from "./js-primes.mjs";
3
+ import { CalcitImpl } from "./js-impl.mjs";
4
+ export declare class CalcitStruct {
5
+ name: CalcitTag;
6
+ fields: CalcitTag[];
7
+ fieldTypes: CalcitValue[];
8
+ impls: CalcitImpl[];
9
+ cachedHash: number;
10
+ constructor(name: CalcitTag, fields: CalcitTag[], fieldTypes: CalcitValue[], impls?: CalcitImpl[]);
11
+ withImpls(impls: CalcitImpl | CalcitImpl[]): CalcitStruct;
12
+ toString(disableJsDataWarning?: boolean): string;
13
+ }
@@ -0,0 +1,2 @@
1
+ import { CalcitTag } from "./calcit-data.mjs";
2
+ export declare let init_tags: (arr: string[]) => Record<string, CalcitTag>;
@@ -0,0 +1,9 @@
1
+ import { CalcitTag } from "./calcit-data.mjs";
2
+ import { CalcitValue } from "./js-primes.mjs";
3
+ export declare class CalcitTrait {
4
+ name: CalcitTag;
5
+ methods: CalcitTag[];
6
+ methodTypes: CalcitValue[];
7
+ constructor(name: CalcitValue, methods: CalcitValue[], methodTypes: CalcitValue[]);
8
+ toString(disableJsDataWarning?: boolean): string;
9
+ }
@@ -0,0 +1,18 @@
1
+ import { Hash } from "@calcit/ternary-tree";
2
+ import { CalcitValue } from "./js-primes.mjs";
3
+ import { CalcitImpl } from "./js-impl.mjs";
4
+ import { CalcitRecord } from "./js-record.mjs";
5
+ import { CalcitEnum } from "./js-enum.mjs";
6
+ export declare class CalcitTuple {
7
+ tag: CalcitValue;
8
+ extra: CalcitValue[];
9
+ enumPrototype: CalcitRecord | CalcitEnum;
10
+ cachedHash: Hash;
11
+ constructor(tagName: CalcitValue, extra: CalcitValue[], enumPrototype?: CalcitRecord | CalcitEnum);
12
+ get impls(): CalcitImpl[];
13
+ get(n: number): CalcitValue;
14
+ assoc(n: number, v: CalcitValue): CalcitTuple;
15
+ count(): number;
16
+ eq(y: CalcitTuple): boolean;
17
+ toString(disableJsDataWarning?: boolean): string;
18
+ }
package/lib/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.12.46",
3
+ "version": "0.12.47",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@calcit/procs",
3
- "version": "0.12.46",
3
+ "version": "0.12.47",
4
4
  "main": "./lib/calcit.procs.mjs",
5
5
  "devDependencies": {
6
6
  "@types/node": "^25.7.0",