@xnetjs/data 2.5.0 → 3.0.0

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 (41) hide show
  1. package/README.md +5 -0
  2. package/dist/auth/index.d.ts +4 -4
  3. package/dist/chunk-GJAOMEQO.js +114 -0
  4. package/dist/chunk-KY62NUOI.js +67 -0
  5. package/dist/chunk-N37U6ZPI.js +789 -0
  6. package/dist/chunk-NFPEFD2I.js +42 -0
  7. package/dist/{chunk-ODOPVGUX.js → chunk-QKVIKVAL.js} +65 -26
  8. package/dist/{chunk-CY6EJUNV.js → chunk-S7SEN4LH.js} +5 -1
  9. package/dist/{chunk-4HJZJMPI.js → chunk-TN7LGV66.js} +1 -1
  10. package/dist/{chunk-YRFCXKJC.js → chunk-UQ2VFHU3.js} +2 -2
  11. package/dist/chunk-VZSEZNYA.js +83 -0
  12. package/dist/{chunk-JF4VCZER.js → chunk-WSINZHSR.js} +27 -1
  13. package/dist/{chunk-MAB662PR.js → chunk-YCBJDT23.js} +62 -48
  14. package/dist/{clone-VRVODkBn.d.ts → clone-ywzFVkID.d.ts} +4 -4
  15. package/dist/course-C5DXOIVO.js +24 -0
  16. package/dist/database/index.d.ts +5 -5
  17. package/dist/database/index.js +8 -8
  18. package/dist/event-VW3FBN4F.js +20 -0
  19. package/dist/{form-types-Dkqm9UO2.d.ts → form-types-BrHYdpi0.d.ts} +1 -1
  20. package/dist/{game-NEQP7OFX.js → game-7AXW7XKS.js} +1 -1
  21. package/dist/{grant-expiration-cleaner-CTsW0hvU.d.ts → grant-expiration-cleaner-CRS9OyhV.d.ts} +3 -3
  22. package/dist/index.d.ts +10 -320
  23. package/dist/index.js +292 -867
  24. package/dist/{moderation-HRMMBFVH.js → moderation-5Z4LKOKN.js} +5 -3
  25. package/dist/{page-MADZ5OHM.js → page-W4G6433H.js} +1 -1
  26. package/dist/portability/index.d.ts +330 -0
  27. package/dist/portability/index.js +34 -0
  28. package/dist/post-7IOO64MD.js +14 -0
  29. package/dist/{profile-5H6XWCK4.js → profile-KLHCAQY2.js} +1 -1
  30. package/dist/publication-3MN3WWKP.js +10 -0
  31. package/dist/{query-ast-h31svZnG.d.ts → query-ast-DQJO7yRV.d.ts} +1 -1
  32. package/dist/{registry-Dh4Kr3fo.d.ts → registry-C9IRLLeR.d.ts} +1 -1
  33. package/dist/schema/index.d.ts +366 -26
  34. package/dist/schema/index.js +195 -149
  35. package/dist/space-GBTEHZOK.js +1 -1
  36. package/dist/store/index.d.ts +4 -4
  37. package/dist/store/index.js +2 -2
  38. package/dist/{store-jukJYsvr.d.ts → store-D1oiFQuF.d.ts} +19 -2
  39. package/dist/{types-Z9dUzbDF.d.ts → types-gws1tSf-.d.ts} +1 -1
  40. package/package.json +27 -25
  41. package/dist/{chunk-TW5XJHNF.js → chunk-ANMAR3KY.js} +14 -14
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xnetjs/data",
3
- "version": "2.5.0",
3
+ "version": "3.0.0",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -11,36 +11,36 @@
11
11
  "types": "./dist/index.d.ts",
12
12
  "exports": {
13
13
  ".": {
14
- "import": "./dist/index.js",
15
- "types": "./dist/index.d.ts"
14
+ "types": "./dist/index.d.ts",
15
+ "import": "./dist/index.js"
16
16
  },
17
17
  "./schema": {
18
- "import": "./dist/schema/index.js",
19
- "types": "./dist/schema/index.d.ts"
18
+ "types": "./dist/schema/index.d.ts",
19
+ "import": "./dist/schema/index.js"
20
20
  },
21
21
  "./store": {
22
- "import": "./dist/store/index.js",
23
- "types": "./dist/store/index.d.ts"
22
+ "types": "./dist/store/index.d.ts",
23
+ "import": "./dist/store/index.js"
24
24
  },
25
25
  "./database": {
26
- "import": "./dist/database/index.js",
27
- "types": "./dist/database/index.d.ts"
26
+ "types": "./dist/database/index.d.ts",
27
+ "import": "./dist/database/index.js"
28
28
  },
29
29
  "./auth": {
30
- "import": "./dist/auth/index.js",
31
- "types": "./dist/auth/index.d.ts"
30
+ "types": "./dist/auth/index.d.ts",
31
+ "import": "./dist/auth/index.js"
32
32
  },
33
33
  "./portability": {
34
- "import": "./dist/portability/index.js",
35
- "types": "./dist/portability/index.d.ts"
34
+ "types": "./dist/portability/index.d.ts",
35
+ "import": "./dist/portability/index.js"
36
36
  },
37
37
  "./updates": {
38
- "import": "./dist/updates.js",
39
- "types": "./dist/updates.d.ts"
38
+ "types": "./dist/updates.d.ts",
39
+ "import": "./dist/updates.js"
40
40
  },
41
41
  "./awareness": {
42
- "import": "./dist/sync/awareness.js",
43
- "types": "./dist/sync/awareness.d.ts"
42
+ "types": "./dist/sync/awareness.d.ts",
43
+ "import": "./dist/sync/awareness.js"
44
44
  },
45
45
  "./ts-plugin": {
46
46
  "types": "./dist/ts-plugin/index.d.ts",
@@ -61,21 +61,23 @@
61
61
  "nanoid": "^5.1.6",
62
62
  "y-protocols": "^1.0.6",
63
63
  "yjs": "^13.6.24",
64
- "@xnetjs/core": "2.5.0",
65
- "@xnetjs/crypto": "2.5.0",
66
- "@xnetjs/identity": "2.5.0",
67
- "@xnetjs/sqlite": "2.5.0",
68
- "@xnetjs/storage": "2.5.0",
69
- "@xnetjs/sync": "2.5.0"
64
+ "@xnetjs/core": "3.0.0",
65
+ "@xnetjs/crypto": "3.0.0",
66
+ "@xnetjs/identity": "3.0.0",
67
+ "@xnetjs/sqlite": "3.0.0",
68
+ "@xnetjs/storage": "3.0.0",
69
+ "@xnetjs/sync": "3.0.0"
70
70
  },
71
71
  "devDependencies": {
72
72
  "tsup": "^8.0.0",
73
73
  "typescript": "^5.4.0"
74
74
  },
75
75
  "scripts": {
76
- "build": "tsup src/index.ts src/schema/index.ts src/store/index.ts src/database/index.ts src/auth/index.ts src/updates.ts src/sync/awareness.ts --format esm --dts && tsup src/ts-plugin/index.ts --format cjs,esm --dts --outDir dist/ts-plugin",
76
+ "build": "tsup src/index.ts src/schema/index.ts src/store/index.ts src/database/index.ts src/auth/index.ts src/portability/index.ts src/updates.ts src/sync/awareness.ts --format esm --dts && tsup src/ts-plugin/index.ts --format cjs,esm --dts --outDir dist/ts-plugin",
77
77
  "test": "vitest run",
78
78
  "typecheck": "tsc --noEmit",
79
- "clean": "rm -rf dist"
79
+ "clean": "rm -rf dist",
80
+ "api:check": "api-extractor run",
81
+ "api:update": "api-extractor run --local"
80
82
  }
81
83
  }
@@ -1,9 +1,18 @@
1
- import {
2
- createNodeQueryDescriptor
3
- } from "./chunk-WOEFYS7Y.js";
4
1
  import {
5
2
  extKey
6
3
  } from "./chunk-PMUQACPY.js";
4
+ import {
5
+ DatabaseRowSchema
6
+ } from "./chunk-AKKBG7HW.js";
7
+ import {
8
+ DatabaseFieldSchema
9
+ } from "./chunk-IKREWSCX.js";
10
+ import {
11
+ DatabaseSelectOptionSchema
12
+ } from "./chunk-XP3VSSXD.js";
13
+ import {
14
+ DatabaseViewSchema
15
+ } from "./chunk-UFV5QWCL.js";
7
16
  import {
8
17
  ExtensionFieldSchema,
9
18
  SchemaExtensionSchema,
@@ -18,17 +27,8 @@ import {
18
27
  rebalanceSortKeys
19
28
  } from "./chunk-QWFTRZQT.js";
20
29
  import {
21
- DatabaseRowSchema
22
- } from "./chunk-AKKBG7HW.js";
23
- import {
24
- DatabaseFieldSchema
25
- } from "./chunk-IKREWSCX.js";
26
- import {
27
- DatabaseSelectOptionSchema
28
- } from "./chunk-XP3VSSXD.js";
29
- import {
30
- DatabaseViewSchema
31
- } from "./chunk-UFV5QWCL.js";
30
+ createNodeQueryDescriptor
31
+ } from "./chunk-WOEFYS7Y.js";
32
32
 
33
33
  // src/database/cell-types.ts
34
34
  var CELL_PREFIX = "cell_";