@dialecte/core 0.6.1 → 0.6.3

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.
Files changed (31) hide show
  1. package/dist/document/query/any/any-query.d.ts +1 -0
  2. package/dist/document/query/any/any-query.d.ts.map +1 -1
  3. package/dist/document/query/find/descendant/find-descendant.d.ts +12 -0
  4. package/dist/document/query/find/descendant/find-descendant.d.ts.map +1 -1
  5. package/dist/document/query/find/descendant/record-source.d.ts +42 -0
  6. package/dist/document/query/find/descendant/record-source.d.ts.map +1 -0
  7. package/dist/document/query/get/attribute/get-attribute.d.ts +7 -6
  8. package/dist/document/query/get/attribute/get-attribute.d.ts.map +1 -1
  9. package/dist/document/query/get/attribute/get-attributes.d.ts +6 -5
  10. package/dist/document/query/get/attribute/get-attributes.d.ts.map +1 -1
  11. package/dist/document/query/get/record/index.d.ts +2 -0
  12. package/dist/document/query/get/record/index.d.ts.map +1 -1
  13. package/dist/document/query/get/record/load-live-records.d.ts +9 -0
  14. package/dist/document/query/get/record/load-live-records.d.ts.map +1 -0
  15. package/dist/document/query/get/record/resolve-record.d.ts +19 -0
  16. package/dist/document/query/get/record/resolve-record.d.ts.map +1 -0
  17. package/dist/document/query/main.d.ts +11 -0
  18. package/dist/document/query/main.d.ts.map +1 -1
  19. package/dist/index.js +3 -3
  20. package/dist/{project-sK-5Xc-5.js → project-DEiVpWVV.js} +1598 -1444
  21. package/dist/store/in-memory/in-memory-store.d.ts +1 -0
  22. package/dist/store/in-memory/in-memory-store.d.ts.map +1 -1
  23. package/dist/store/local/dexie-store.d.ts +6 -0
  24. package/dist/store/local/dexie-store.d.ts.map +1 -1
  25. package/dist/store/store.types.d.ts +6 -0
  26. package/dist/store/store.types.d.ts.map +1 -1
  27. package/dist/test/run-test-cases.d.ts.map +1 -1
  28. package/dist/test/run-test-cases.type.d.ts +8 -0
  29. package/dist/test/run-test-cases.type.d.ts.map +1 -1
  30. package/dist/test.js +33 -31
  31. package/package.json +1 -1
@@ -53,6 +53,7 @@ export declare class AnyQuery<GenericConfig extends AnyDialecteConfig> {
53
53
  getSnapshot(options: GetSnapshotOptions<AnyDialecteConfig> & {
54
54
  as: 'both';
55
55
  }): Promise<SnapshotResult>;
56
+ /** Every descendant of the element, grouped by tag name; a group's records come in no guaranteed order. */
56
57
  findDescendants(refOrRecord: AnyRefOrRecord | undefined): Promise<Record<string, AnyTrackedRecord[]>>;
57
58
  findAncestors(refOrRecord: AnyRefOrRecord | undefined): Promise<AnyTrackedRecord[]>;
58
59
  findByAttributes(params: {
@@ -1 +1 @@
1
- {"version":3,"file":"any-query.d.ts","sourceRoot":"","sources":["../../../../src/document/query/any/any-query.ts"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAA;AAC3C,OAAO,KAAK,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAA;AACrE,OAAO,KAAK,EAAE,MAAM,EAAE,cAAc,EAAyB,MAAM,YAAY,CAAA;AAC/E,OAAO,KAAK,EACX,YAAY,EACZ,iBAAiB,EACjB,gBAAgB,EAChB,aAAa,EACb,UAAU,EACV,kBAAkB,EAClB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;GAKG;AACH,qBAAa,QAAQ,CAAC,aAAa,SAAS,iBAAiB;IAE3D,SAAS,CAAC,UAAU,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC;IAClD,SAAS,CAAC,cAAc,EAAE,aAAa;gBAD7B,UAAU,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,EACxC,cAAc,EAAE,aAAa;IAGlC,SAAS,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC;IAOnE,qIAAqI;IAC/H,aAAa,CAAC,GAAG,EAAE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E,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,GAC/D,OAAO,CAAC,aAAa,CAAC;IACnB,WAAW,CAAC,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;QAAE,EAAE,EAAE,KAAK,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC;IAC5F,WAAW,CAChB,OAAO,EAAE,kBAAkB,CAAC,iBAAiB,CAAC,GAAG;QAAE,EAAE,EAAE,MAAM,CAAA;KAAE,GAC7D,OAAO,CAAC,cAAc,CAAC;IAU1B,2GAA2G;IACrG,eAAe,CACpB,WAAW,EAAE,cAAc,GAAG,SAAS,GACrC,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,gBAAgB,EAAE,CAAC,CAAC;IAUxC,aAAa,CAAC,WAAW,EAAE,cAAc,GAAG,SAAS,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;IAQnF,gBAAgB,CAAC,MAAM,EAAE;QAC9B,OAAO,EAAE,MAAM,CAAA;QACf,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC,CAAA;KAC7C,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC;CAO/B"}
@@ -1,6 +1,18 @@
1
1
  import { Collect, FindDescendantsParams, FindDescendantsReturn } from './find-descendant.types';
2
2
  import { Context, Ref } from '../../..';
3
3
  import { AnyDialecteConfig, ElementsOf } from '../../../../types';
4
+ /**
5
+ * Collect the descendants of `ref` by tag name.
6
+ *
7
+ * Reads: the records come from one per-call {@link RecordSource} - the store first, each
8
+ * record once, then one whole-document read once the call has issued more store reads (by id
9
+ * or by tag name) than that read is worth for this document. A flat collect under the document
10
+ * root with no `omit` verifies no ancestry at all: it relies on every record of a document
11
+ * lying under its root.
12
+ *
13
+ * Order: the groups are keyed by tag name; the records of a group come in no guaranteed order
14
+ * (the store's own; it is not guaranteed to be document order).
15
+ */
4
16
  export declare function findDescendants<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericCollect extends Collect<GenericConfig, GenericElement>>(params: {
5
17
  context: Context<GenericConfig>;
6
18
  ref: Ref<GenericConfig, GenericElement>;
@@ -1 +1 @@
1
- {"version":3,"file":"find-descendant.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/find/descendant/find-descendant.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpG,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAa,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAA;AAM3E,wBAAsB,eAAe,CACpC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,cAAc,SAAS,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5D,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,GAAG,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;IACvC,OAAO,EAAE,qBAAqB,CAAC,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC,CAAA;CAC7E,GAAG,OAAO,CAAC,qBAAqB,CAAC,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CAmChF"}
1
+ {"version":3,"file":"find-descendant.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/find/descendant/find-descendant.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAEpG,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAa,MAAM,YAAY,CAAA;AACzD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAiB,MAAM,SAAS,CAAA;AAM3E;;;;;;;;;;;GAWG;AACH,wBAAsB,eAAe,CACpC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,cAAc,SAAS,OAAO,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5D,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,GAAG,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;IACvC,OAAO,EAAE,qBAAqB,CAAC,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC,CAAA;CAC7E,GAAG,OAAO,CAAC,qBAAqB,CAAC,aAAa,EAAE,cAAc,EAAE,cAAc,CAAC,CAAC,CA2ChF"}
@@ -0,0 +1,42 @@
1
+ import { Context, Ref } from '../../..';
2
+ import { AnyDialecteConfig, ElementsOf, TrackedRecord } from '../../../../types';
3
+ /**
4
+ * Store reads a call may issue before it asks the store how big the document is. Asking costs a
5
+ * count, which IndexedDB answers by iterating (about 50 ms for 90,000 records), so a call this
6
+ * small never asks: on IndexedDB 128 reads cost about 8 ms, the count of a 15,000-record document.
7
+ * It is also the floor of the switch: a document read is never due before this many reads.
8
+ */
9
+ export declare const READS_BEFORE_SIZING = 128;
10
+ /**
11
+ * What one record of a whole-document read costs, in by-id reads: the switch from climbing to
12
+ * reading the document once is due after `count × this` store reads.
13
+ *
14
+ * Measured on IndexedDB (Dexie, Chromium) on the 5 and 10 MB stress fixtures (92,000 and 184,000
15
+ * records): one `get` 0.065 ms, one `getByDocumentId` 351 and 664 ms, so a record of the whole
16
+ * read costs 1/17.4 and 1/17.7 of a `get`. The in-memory store reads too fast for it to matter.
17
+ */
18
+ export declare const DOCUMENT_READ_COST_PER_RECORD: number;
19
+ type AnyTracked<GenericConfig extends AnyDialecteConfig> = TrackedRecord<GenericConfig, ElementsOf<GenericConfig>>;
20
+ /**
21
+ * The records of one `findDescendants` call. Reads go to the store, each record once (a
22
+ * per-call memo), until the call has issued more store reads (by id or by tag name) than one
23
+ * whole-document read is worth for this document; from then on every record comes from one
24
+ * in-memory map of the document (staged operations overlaid), and no store read is issued any
25
+ * more. A record served by the staged operations or the transaction cache is not a store read.
26
+ *
27
+ * A ref whose tag name differs from the record stored under its id throws
28
+ * `ELEMENT_TAGNAME_MISMATCH`, as `getRecord` does, whichever way the record is served.
29
+ */
30
+ export type RecordSource<GenericConfig extends AnyDialecteConfig> = {
31
+ /** One record by ref. Staged operations come first, as with `getRecord`. */
32
+ get(ref: Ref<GenericConfig, ElementsOf<GenericConfig>>): Promise<AnyTracked<GenericConfig> | undefined>;
33
+ /** Several records by ref, in the order given; a missing record yields `undefined`. */
34
+ getMany(refs: Ref<GenericConfig, ElementsOf<GenericConfig>>[]): Promise<(AnyTracked<GenericConfig> | undefined)[]>;
35
+ /** Every live record of a tag name. */
36
+ byTag(tagName: ElementsOf<GenericConfig>): Promise<AnyTracked<GenericConfig>[]>;
37
+ };
38
+ export declare function createRecordSource<GenericConfig extends AnyDialecteConfig>(params: {
39
+ context: Context<GenericConfig>;
40
+ }): RecordSource<GenericConfig>;
41
+ export {};
42
+ //# sourceMappingURL=record-source.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"record-source.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/find/descendant/record-source.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3E;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,MAAM,CAAA;AAEtC;;;;;;;GAOG;AACH,eAAO,MAAM,6BAA6B,QAAS,CAAA;AAEnD,KAAK,UAAU,CAAC,aAAa,SAAS,iBAAiB,IAAI,aAAa,CACvE,aAAa,EACb,UAAU,CAAC,aAAa,CAAC,CACzB,CAAA;AAOD;;;;;;;;;GASG;AACH,MAAM,MAAM,YAAY,CAAC,aAAa,SAAS,iBAAiB,IAAI;IACnE,4EAA4E;IAC5E,GAAG,CACF,GAAG,EAAE,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,GAChD,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,CAAA;IACjD,uFAAuF;IACvF,OAAO,CACN,IAAI,EAAE,GAAG,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,EAAE,GACnD,OAAO,CAAC,CAAC,UAAU,CAAC,aAAa,CAAC,GAAG,SAAS,CAAC,EAAE,CAAC,CAAA;IACrD,uCAAuC;IACvC,KAAK,CAAC,OAAO,EAAE,UAAU,CAAC,aAAa,CAAC,GAAG,OAAO,CAAC,UAAU,CAAC,aAAa,CAAC,EAAE,CAAC,CAAA;CAC/E,CAAA;AAED,wBAAgB,kBAAkB,CAAC,aAAa,SAAS,iBAAiB,EAAE,MAAM,EAAE;IACnF,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;CAC/B,GAAG,YAAY,CAAC,aAAa,CAAC,CAkH9B"}
@@ -1,10 +1,11 @@
1
- import { Context, Ref } from '../../..';
1
+ import { Context, RefOrRecord } from '../../..';
2
2
  import { AnyDialecteConfig, ElementsOf, FullAttributeObjectOf } from '../../../../types';
3
3
  import { AttributeDefaults } from '../../../../utils';
4
4
  /**
5
- * Fetch a single attribute for the given ref.
5
+ * Fetch a single attribute for the given ref or record.
6
6
  *
7
- * Resolves the record via context (staged → cache → store), then extracts the named
7
+ * Resolves the record (a record given in full is read as it is, through the staged
8
+ * operations; a ref via staged → cache → store, see `resolveRecord`), then extracts the named
8
9
  * attribute. Pass `namespace` to scope by a namespace key (a local `name` is resolved
9
10
  * to the stored `prefix:local` key). `defaults` (default `'optional'`) controls the
10
11
  * fallback for an absent attribute: `'none'` → `''`; `'optional'` → `fixed` /
@@ -16,13 +17,13 @@ import { AttributeDefaults } from '../../../../utils';
16
17
  */
17
18
  export declare function getAttribute<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
18
19
  context: Context<GenericConfig>;
19
- ref: Ref<GenericConfig, GenericElement>;
20
+ ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
20
21
  name: string;
21
22
  namespace?: string;
22
23
  defaults?: AttributeDefaults;
23
24
  }): Promise<GenericAttribute['value'] | ''>;
24
25
  /**
25
- * Fetch a single attribute for the given ref as a full object (name + value +
26
+ * Fetch a single attribute for the given ref or record as a full object (name + value +
26
27
  * namespace). `defaults` (default `'optional'`) fills an absent schema attribute by
27
28
  * synthesizing its object; `'none'` returns `undefined` when the attribute is not
28
29
  * stored.
@@ -32,7 +33,7 @@ export declare function getAttribute<GenericConfig extends AnyDialecteConfig, Ge
32
33
  */
33
34
  export declare function getAttributeFullObject<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
34
35
  context: Context<GenericConfig>;
35
- ref: Ref<GenericConfig, GenericElement>;
36
+ ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
36
37
  name: string;
37
38
  namespace?: string;
38
39
  defaults?: AttributeDefaults;
@@ -1 +1 @@
1
- {"version":3,"file":"get-attribute.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attribute.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AACnF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;;;;GAYG;AACH,wBAAsB,YAAY,CACjC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EA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B,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,gBAAgB,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAmB1C;AAED;;;;;;;;GAQG;AACH,wBAAsB,sBAAsB,CAC3C,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAyBxC"}
@@ -1,8 +1,9 @@
1
- import { Context, Ref } from '../../..';
1
+ import { Context, RefOrRecord } from '../../..';
2
2
  import { AnyDialecteConfig, AttributesValueObjectOf, ElementsOf, FullAttributeObjectOf } from '../../../../types';
3
3
  import { AttributeDefaults } from '../../../../utils';
4
4
  /**
5
- * Fetch attributes for the given ref as a destructurable value object.
5
+ * Fetch attributes for the given ref or record as a destructurable value object. A record given in full is read as it
6
+ * is, through the staged operations, with no store round trip (see `resolveRecord`).
6
7
  *
7
8
  * Without `namespace`, every attribute under the name it is stored by (`aA`, `xsi:type`, `ext:cA`) - what a write takes
8
9
  * back. With a `namespace` key, only that namespace's attributes, with the prefix stripped from the keys
@@ -18,12 +19,12 @@ import { AttributeDefaults } from '../../../../utils';
18
19
  */
19
20
  export declare function getAttributes<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
20
21
  context: Context<GenericConfig>;
21
- ref: Ref<GenericConfig, GenericElement>;
22
+ ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
22
23
  namespace?: string;
23
24
  defaults?: AttributeDefaults;
24
25
  }): Promise<AttributesValueObjectOf<GenericConfig, GenericElement>>;
25
26
  /**
26
- * Fetch all attributes of a record as a full array (name + value + namespace).
27
+ * Fetch all attributes of the given ref or record as a full array (name + value + namespace).
27
28
  *
28
29
  * `defaults` (default `'optional'`) fills absent schema attributes just like
29
30
  * {@link getAttributes}: `'none'` returns the faithful stored-only set;
@@ -35,7 +36,7 @@ export declare function getAttributes<GenericConfig extends AnyDialecteConfig, G
35
36
  */
36
37
  export declare function getAttributesFullObject<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>, GenericAttribute extends FullAttributeObjectOf<GenericConfig, GenericElement>>(params: {
37
38
  context: Context<GenericConfig>;
38
- ref: Ref<GenericConfig, GenericElement>;
39
+ ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
39
40
  defaults?: AttributeDefaults;
40
41
  }): Promise<GenericAttribute[]>;
41
42
  //# sourceMappingURL=get-attributes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"get-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attributes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAA;AAC9C,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,UAAU,EACV,qBAAqB,EAErB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;;;;;;GAcG;AAEH,wBAAsB,aAAa,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,GAAG,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAqClE;AAmBD;;;;;;;;;;GAUG;AAEH,wBAAsB,uBAAuB,CAC5C,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,GAAG,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;IACvC,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CA6B9B"}
1
+ {"version":3,"file":"get-attributes.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/attribute/get-attributes.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,UAAU,EACV,qBAAqB,EAErB,MAAM,SAAS,CAAA;AAChB,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAA;AAEhD;;;;;;;;;;;;;;;GAeG;AAEH,wBAAsB,aAAa,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,uBAAuB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAC,CAqClE;AAmBD;;;;;;;;;;GAUG;AAEH,wBAAsB,uBAAuB,CAC5C,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAChD,gBAAgB,SAAS,qBAAqB,CAAC,aAAa,EAAE,cAAc,CAAC,EAC5E,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;IAC3D,QAAQ,CAAC,EAAE,iBAAiB,CAAA;CAC5B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CA6B9B"}
@@ -1,7 +1,9 @@
1
1
  export { getRecord } from './get-record';
2
+ export { resolveRecord } from './resolve-record';
2
3
  export { getRecords } from './get-records';
3
4
  export { getRecordsByTagName } from './get-records-by-tagname';
4
5
  export { getChild } from './get-child';
5
6
  export { getChildren } from './get-children';
6
7
  export { overlayAllStaged, indexStagedDeletesByParent } from './staged-lookup';
8
+ export { loadLiveRecords } from './load-live-records';
7
9
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AACxC,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAA;AAC1C,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAA;AAC5C,OAAO,EAAE,gBAAgB,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC9E,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA"}
@@ -0,0 +1,9 @@
1
+ import { Context } from '../../..';
2
+ import { AnyDialecteConfig, ElementsOf, TrackedRecord } from '../../../../types';
3
+ /**
4
+ * Read every record of the document once and overlay the staged operations: the in-memory
5
+ * data source of a whole-tree read (`getTree`) and of a descendant collect that has outgrown
6
+ * its climb (`findDescendants`). One `getByDocumentId` round trip, whatever the document size.
7
+ */
8
+ export declare function loadLiveRecords<GenericConfig extends AnyDialecteConfig>(context: Context<GenericConfig>): Promise<Map<string, TrackedRecord<GenericConfig, ElementsOf<GenericConfig>>>>;
9
+ //# sourceMappingURL=load-live-records.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load-live-records.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/load-live-records.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3E;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,aAAa,SAAS,iBAAiB,EAC5E,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAC7B,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,aAAa,EAAE,UAAU,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,CAQ/E"}
@@ -0,0 +1,19 @@
1
+ import { Context, RefOrRecord } from '../../..';
2
+ import { AnyDialecteConfig, ElementsOf, TrackedRecord } from '../../../../types';
3
+ /**
4
+ * The record a read works on.
5
+ *
6
+ * A record given in full (one carrying its `attributes`) is read as it is, with no store round trip: a transaction's
7
+ * staged operations still come first, so a record held from before a staged write reads as the transaction sees it
8
+ * and one deleted in the transaction reads as absent. Outside a transaction the record is a snapshot - pass its ref
9
+ * (`toRef(record)`) to read the store again. A ref, or a parent/child relationship, is fetched with {@link getRecord}.
10
+ *
11
+ * Perf: counts `core::query::getRecord.fromRecord` when the record given is the one read.
12
+ *
13
+ * @throws {@link DialecteError} when `ref` is undefined.
14
+ */
15
+ export declare function resolveRecord<GenericConfig extends AnyDialecteConfig, GenericElement extends ElementsOf<GenericConfig>>(params: {
16
+ context: Context<GenericConfig>;
17
+ ref: RefOrRecord<GenericConfig, GenericElement> | undefined;
18
+ }): Promise<TrackedRecord<GenericConfig, GenericElement> | undefined>;
19
+ //# sourceMappingURL=resolve-record.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve-record.d.ts","sourceRoot":"","sources":["../../../../../src/document/query/get/record/resolve-record.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AACtD,OAAO,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,SAAS,CAAA;AAE3E;;;;;;;;;;;GAWG;AACH,wBAAsB,aAAa,CAClC,aAAa,SAAS,iBAAiB,EACvC,cAAc,SAAS,UAAU,CAAC,aAAa,CAAC,EAC/C,MAAM,EAAE;IACT,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,CAAA;IAC/B,GAAG,EAAE,WAAW,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAA;CAC3D,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAAC,GAAG,SAAS,CAAC,CAoBpE"}
@@ -141,6 +141,17 @@ export declare class Query<GenericConfig extends AnyDialecteConfig> {
141
141
  /**
142
142
  * Find all descendants of an element, grouped by tag name.
143
143
  *
144
+ * The groups are keyed by tag name; the records of a group come in no guaranteed order (the
145
+ * store's own; it is not guaranteed to be document order) - walk a `getTree` result for
146
+ * document order.
147
+ *
148
+ * Reads: a flat collect reads each tag name's candidates from the store's tag index and
149
+ * climbs their parent chains, each ancestor read once per call; the path form reads level
150
+ * by level. Once a call has issued more store reads than one whole-document read is worth for
151
+ * this document (never before 128), it reads the document once and serves the rest from
152
+ * memory - a large collect costs one `getByDocumentId`, never one read per ancestor step. A
153
+ * flat collect under the document root with no `omit` climbs nothing.
154
+ *
144
155
  * @param refOrRecord - The ancestor element.
145
156
  * @param options - Collect spec and optional omit list. When omitted, collects all descendant tag names.
146
157
  * @returns Object keyed by tag name, each value an array of tracked records.
@@ -1 +1 @@
1
- {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../../src/document/query/main.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAA;AAgBhC,OAAO,KAAK,EAAE,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AACzD,OAAO,KAAK,EACX,oBAAoB,EACpB,gBAAgB,EAChB,OAAO,EACP,qBAAqB,EACrB,qBA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AU,CAAC,aAAa,CAAC,EAAE,MAAM,EAAE;QAChF,OAAO,EAAE,cAAc,CAAA;QACvB,UAAU,EAAE,gBAAgB,CAAC,aAAa,EAAE,cAAc,CAAC,CAAA;KAC3D,GAAG,OAAO,CAAC,aAAa,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,CAAC;CAG3D"}
package/dist/index.js CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, a as D, at as O, b as k, c as A, ct as j, d as M, dt as N, et as P, f as F, ft as I, g as L, h as R, ht as z, i as B, it as V, j as H, k as U, l as W, lt as G, m as K, n as q, nt as J, o as Y, ot as X, p as Z, pt as Q, q as $, r as ee, rt as te, s as ne, st as re, t as ie, tt as ae, u as oe, ut as se, v as ce, w as le, x as ue, y as de, z as fe } from "./project-sK-5Xc-5.js";
2
- import { F as pe, I as me, L as he, P as ge, R as _e, z as ve } from "./utils-CTBHUFs9.js";
3
- export { U as AnyQuery, i as AnyTransaction, M as BLOBS_SCHEMA, F as BLOB_DATA_SCHEMA, Z as CHANGELOG_SCHEMA, K as DOCUMENTS_SCHEMA, oe as DexieStore, le as Document, ve as ERROR_CATALOG, W as InMemoryStore, R as META_SCHEMA, m as NOOP_PERF, g as ParseSession, ie as Project, h as Query, L as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ce as TABLE_CHANGELOG, de as TABLE_DOCUMENTS, k as TABLE_META, ue as TABLE_RECORD_PREFIX, fe as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, z as bindExtensions, y as blobTableName, B as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, ge as createDialecteError, p as createPerf, Q as createStagedOperations, pe as defineErrors, f as downloadFile, Y as exportBlob, ne as exportDocument, O as findAncestors, te as findByAttributes, J as findDescendants, n as formatXml, P as getAttribute, ae as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, re as getChild, X as getChildren, T as getDefinition, se as getRecord, G as getRecords, j as getRecordsByTagName, t as getSnapshot, S as getTree, ee as importDocument, N as indexStagedDeletesByParent, q as initEmptyDocument, o as inspectXml, me as isKnownDialecteError, $ as isOmitted, b as isTransactionContext, V as matchesAttributeFilter, I as overlayAllStaged, u as parseOmit, H as parseXmlFile, D as reconcileDocumentState, r as recordTableName, c as recordsToTree, A as resolveStore, w as shouldStopTraversal, he as throwDialecteError, _e as toDialecteError, v as xmlDocumentToString };
1
+ import { $ as e, A as t, B as n, C as r, D as i, E as a, F as o, G as s, H as c, I as l, J as u, K as d, L as f, M as p, N as m, O as h, P as g, Q as _, R as v, S as y, T as b, U as x, W as S, X as C, Y as w, Z as T, _ as E, _t as D, a as O, at as k, b as A, c as j, ct as M, d as N, dt as P, et as F, f as I, ft as L, g as R, h as z, ht as B, i as V, it as H, j as U, k as W, l as G, lt as K, m as q, mt as J, n as Y, nt as X, o as Z, ot as Q, p as $, pt as ee, q as te, r as ne, rt as re, s as ie, st as ae, t as oe, tt as se, u as ce, ut as le, v as ue, w as de, x as fe, y as pe, z as me } from "./project-DEiVpWVV.js";
2
+ import { F as he, I as ge, L as _e, P as ve, R as ye, z as be } from "./utils-CTBHUFs9.js";
3
+ export { W as AnyQuery, i as AnyTransaction, N as BLOBS_SCHEMA, I as BLOB_DATA_SCHEMA, $ as CHANGELOG_SCHEMA, q as DOCUMENTS_SCHEMA, ce as DexieStore, de as Document, be as ERROR_CATALOG, G as InMemoryStore, z as META_SCHEMA, m as NOOP_PERF, g as ParseSession, oe as Project, h as Query, R as TABLE_BLOBS, E as TABLE_BLOB_PREFIX, ue as TABLE_CHANGELOG, pe as TABLE_DOCUMENTS, A as TABLE_META, fe as TABLE_RECORD_PREFIX, me as TEMP_IDB_ID_ATTRIBUTE_NAME, a as Transaction, d as applyOmit, s as applyOrder, C as applyUnwrap, D as bindExtensions, y as blobTableName, V as buildDocumentState, l as buildXmlDocument, x as collectSnapshotRecords, ve as createDialecteError, p as createPerf, B as createStagedOperations, he as defineErrors, f as downloadFile, Z as exportBlob, ie as exportDocument, k as findAncestors, re as findByAttributes, X as findDescendants, n as formatXml, F as getAttribute, se as getAttributeFullObject, _ as getAttributes, e as getAttributesFullObject, M as getChild, ae as getChildren, T as getDefinition, L as getRecord, le as getRecords, K as getRecordsByTagName, t as getSnapshot, S as getTree, ne as importDocument, ee as indexStagedDeletesByParent, Y as initEmptyDocument, o as inspectXml, ge as isKnownDialecteError, te as isOmitted, b as isTransactionContext, Q as loadLiveRecords, H as matchesAttributeFilter, J as overlayAllStaged, u as parseOmit, U as parseXmlFile, O as reconcileDocumentState, r as recordTableName, c as recordsToTree, P as resolveRecord, j as resolveStore, w as shouldStopTraversal, _e as throwDialecteError, ye as toDialecteError, v as xmlDocumentToString };