@dialecte/core 0.1.10 → 0.1.11

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/helpers.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as R } from "./index-BCraeB5h.js";
1
+ import { i as R } from "./index-aALGfPYv.js";
2
2
  const v = "db-id", C = {
3
3
  uri: "http://dialecte.dev/XML/DEV",
4
4
  prefix: "dev"
@@ -1,4 +1,4 @@
1
- import { t as je, a as Ue } from "./index-BCraeB5h.js";
1
+ import { t as je, i as Ue } from "./index-aALGfPYv.js";
2
2
  import { isRecordOf as lr, toRef as _e, toTreeRecord as fr, toRawRecord as sr, standardizeRecord as Ha, toFullAttributeArray as Za, CUSTOM_RECORD_ID_ATTRIBUTE as ua, mergeExtensions as Ja } from "./helpers.js";
3
3
  function ur(m, o) {
4
4
  if (!m) return {};
@@ -116,6 +116,6 @@ function D(o, e) {
116
116
  }
117
117
  export {
118
118
  c as E,
119
- D as a,
119
+ D as i,
120
120
  d as t
121
121
  };
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { D as s, a, Q as r, T as i, b as o, c as l, d, f as c, g as u, h as b, e as n, j as A, k as g, l as m, m as D, n as R, p, q as T, r as f, s as E, t as x, u as F, v as h, w as k, y as B, z as C, i as _, A as y, B as I, C as O, o as j } from "./index-YMhF8KTR.js";
2
- import { E as U, t as X } from "./index-BCraeB5h.js";
1
+ import { D as s, a, Q as r, T as i, b as o, c as l, d, f as c, g as u, h as b, e as n, j as A, k as g, l as m, m as D, n as R, p, q as T, r as f, s as E, t as x, u as F, v as h, w as k, y as B, z as C, i as _, A as y, B as I, C as O, o as j } from "./index-DRYqQRsA.js";
2
+ import { E as U, t as X } from "./index-aALGfPYv.js";
3
3
  export {
4
4
  s as DexieStore,
5
5
  a as Document,
package/dist/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { expect as f, it as p } from "vitest";
2
- import { x as X, D as q, i as S, o as D, e as h } from "./index-YMhF8KTR.js";
2
+ import { x as X, D as q, i as S, o as D, e as h } from "./index-DRYqQRsA.js";
3
3
  import { DIALECTE_DEV_NAMESPACE as T, standardizeRecord as L, toTreeRecord as w, toTrackedRecord as g } from "./helpers.js";
4
4
  function v(t) {
5
5
  const e = O(t);
@@ -3,10 +3,10 @@ import { DialecteErrorKey } from '../errors';
3
3
  * Assert a condition, throwing a structured DialecteError if it fails.
4
4
  *
5
5
  * @example
6
- * assert(record, { detail: 'addChild: parent not found' })
7
- * assert(ref.id, { detail: 'Singleton element has no id', key: 'ELEMENT_NOT_FOUND' })
6
+ * invariant(record, { detail: 'addChild: parent not found' })
7
+ * invariant(ref.id, { detail: 'Singleton element has no id', key: 'ELEMENT_NOT_FOUND' })
8
8
  */
9
- export declare function assert(condition: unknown, error: {
9
+ export declare function invariant(condition: unknown, error: {
10
10
  detail: string;
11
11
  key?: DialecteErrorKey;
12
12
  ref?: {
@@ -1 +1 @@
1
- {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../src/utils/assert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;;GAMG;AACH,wBAAgB,MAAM,CACrB,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE;IACN,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC,GACC,OAAO,CAAC,SAAS,CAInB"}
1
+ {"version":3,"file":"assert.d.ts","sourceRoot":"","sources":["../../src/utils/assert.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAEhD;;;;;;GAMG;AACH,wBAAgB,SAAS,CACxB,SAAS,EAAE,OAAO,EAClB,KAAK,EAAE;IACN,MAAM,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,gBAAgB,CAAA;IACtB,GAAG,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,EAAE,CAAC,EAAE,MAAM,CAAA;KAAE,CAAA;CACtC,GACC,OAAO,CAAC,SAAS,CAInB"}
package/dist/utils.js CHANGED
@@ -1,4 +1,4 @@
1
- import { a as s } from "./index-BCraeB5h.js";
1
+ import { i as r } from "./index-aALGfPYv.js";
2
2
  export {
3
- s as assert
3
+ r as invariant
4
4
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dialecte/core",
3
- "version": "0.1.10",
3
+ "version": "0.1.11",
4
4
  "description": "Dialecte - Core functionality for Dialecte SDK",
5
5
  "license": "MIT",
6
6
  "repository": {