@mindees/data 0.13.0 โ 0.15.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.
- package/README.md +10 -7
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -4,9 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
> Status: ๐งช **Experimental** โ Continuum Phases 10Aโ10F are implemented and tested:
|
|
6
6
|
> the reactive document store, Hybrid Logical Clock causality, CRDT conflict resolution
|
|
7
|
-
> (per-field LWW + add-wins OR-Set), a local-first delta-sync engine where
|
|
8
|
-
> converge offline, a capability-injected reference sync server, and a
|
|
9
|
-
> contract with export/restore
|
|
7
|
+
> (per-field LWW + add-wins OR-Set + PN-Counter), a local-first delta-sync engine where
|
|
8
|
+
> two peers converge offline, a capability-injected reference sync server, and a
|
|
9
|
+
> persistence contract with export/restore (in-memory + web-storage adapters). Native
|
|
10
|
+
> durable adapters, production sync hardening, and
|
|
10
11
|
> CRDT-library/rich-text interop are ๐ฌ research tracks. See the repository
|
|
11
12
|
> [STATUS.md](../../STATUS.md).
|
|
12
13
|
|
|
@@ -32,15 +33,17 @@ The package also ships the sync and durability pieces that build on the store:
|
|
|
32
33
|
|
|
33
34
|
- **Causality primitives** โ `createClock`, HLC encode/decode/compare helpers, and
|
|
34
35
|
version vectors for drift-guarded causal ordering.
|
|
35
|
-
- **CRDT conflict helpers** โ per-field LWW Register/Map
|
|
36
|
-
utilities, property-tested for
|
|
36
|
+
- **CRDT conflict helpers** โ per-field LWW Register/Map, add-wins OR-Set, and a
|
|
37
|
+
PN-Counter (increment/decrement integer counter) merge utilities, property-tested for
|
|
38
|
+
convergence.
|
|
37
39
|
- **Delta sync** โ `createSyncEngine`, `createMutationLog`, `createMemoryHub`, and the
|
|
38
40
|
`SyncTransport` contract for optimistic local writes plus push/pull/merge.
|
|
39
41
|
- **Reference sync server** โ `createSyncServer` from `@mindees/data/server` over an
|
|
40
42
|
injected `OpLogStore`, with a runnable `node:http` example in
|
|
41
43
|
[`examples/data-sync-server`](../../examples/data-sync-server).
|
|
42
|
-
- **Persistence contract** โ `Persistence`, `createMemoryPersistence`,
|
|
43
|
-
`export()`/restore so replicas keep stable
|
|
44
|
+
- **Persistence contract** โ `Persistence`, `createMemoryPersistence`,
|
|
45
|
+
`createWebStoragePersistence`, and engine `export()`/restore so replicas keep stable
|
|
46
|
+
identity across restarts.
|
|
44
47
|
|
|
45
48
|
```ts
|
|
46
49
|
import { createCollection } from '@mindees/data'
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import { Maturity, NotImplementedError, PackageInfo, notImplemented } from "@min
|
|
|
13
13
|
/** The npm package name. */
|
|
14
14
|
declare const name = "@mindees/data";
|
|
15
15
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
16
|
-
declare const VERSION = "0.
|
|
16
|
+
declare const VERSION = "0.15.0";
|
|
17
17
|
/** Current maturity of this package. See the repository `STATUS.md`. */
|
|
18
18
|
declare const maturity: Maturity;
|
|
19
19
|
/**
|
package/dist/index.js
CHANGED
|
@@ -12,7 +12,7 @@ import { NotImplementedError, notImplemented } from "@mindees/core";
|
|
|
12
12
|
/** The npm package name. */
|
|
13
13
|
const name = "@mindees/data";
|
|
14
14
|
/** The package version. All `@mindees/*` packages share one locked version line. */
|
|
15
|
-
const VERSION = "0.
|
|
15
|
+
const VERSION = "0.15.0";
|
|
16
16
|
/** Current maturity of this package. See the repository `STATUS.md`. */
|
|
17
17
|
const maturity = "experimental";
|
|
18
18
|
/**
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@mindees/data` (Continuum) โ local-first reactive store + sync.\n *\n * Phase 10 ships the **reactive document store**: {@link createCollection}, a\n * signals-native, in-memory collection with fine-grained reactive reads\n * (`get`/`has`/`all`/`where`/`size`), atomic mutations (`insert`/`upsert`/`update`/\n * `delete`/`clear`/`tx`), and {@link Collection.optimistic optimistic} changes that can\n * be rolled back. Built on `@mindees/core` signals only. Hybrid-logical-clock causality,\n * CRDT conflict resolution, the local-first sync engine, a reference sync server on the\n * `@mindees/data/server` subpath, and a persistence contract/export/restore path build\n * on this. Native durable adapters, production sync hardening, and CRDT-library/rich-text\n * interop remain research tracks.\n *\n * @module\n */\n\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** The npm package name. */\nexport const name = '@mindees/data'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../src/index.ts"],"sourcesContent":["/**\n * `@mindees/data` (Continuum) โ local-first reactive store + sync.\n *\n * Phase 10 ships the **reactive document store**: {@link createCollection}, a\n * signals-native, in-memory collection with fine-grained reactive reads\n * (`get`/`has`/`all`/`where`/`size`), atomic mutations (`insert`/`upsert`/`update`/\n * `delete`/`clear`/`tx`), and {@link Collection.optimistic optimistic} changes that can\n * be rolled back. Built on `@mindees/core` signals only. Hybrid-logical-clock causality,\n * CRDT conflict resolution, the local-first sync engine, a reference sync server on the\n * `@mindees/data/server` subpath, and a persistence contract/export/restore path build\n * on this. Native durable adapters, production sync hardening, and CRDT-library/rich-text\n * interop remain research tracks.\n *\n * @module\n */\n\nimport type { Maturity, PackageInfo } from '@mindees/core'\nimport { NotImplementedError, notImplemented } from '@mindees/core'\n\n/** The npm package name. */\nexport const name = '@mindees/data'\n\n/** The package version. All `@mindees/*` packages share one locked version line. */\nexport const VERSION = '0.15.0'\n\n/** Current maturity of this package. See the repository `STATUS.md`. */\nexport const maturity: Maturity = 'experimental'\n\n/**\n * Static identity + maturity metadata for this package. Frozen so the\n * self-reported identity tooling introspects cannot be mutated at runtime,\n * matching the `readonly` fields of {@link PackageInfo}.\n */\nexport const info: PackageInfo = Object.freeze({ name, version: VERSION, maturity })\n\nexport {\n type Collection,\n type CollectionOptions,\n createCollection,\n type Id,\n type OptimisticChange,\n} from './collection'\nexport {\n type Counter,\n counterDec,\n counterInc,\n counterValue,\n emptyCounter,\n mergeCounter,\n} from './counter'\nexport { DataError, type DataErrorCode } from './errors'\nexport {\n type Clock,\n type ClockOptions,\n compareHlc,\n createClock,\n decodeHlc,\n encodeHlc,\n type Hlc,\n} from './hlc'\nexport {\n type LwwMap,\n type LwwRegister,\n lwwDelete,\n lwwGet,\n lwwHas,\n lwwKeys,\n lwwSet,\n mergeLwwMap,\n mergeRegister,\n} from './lww'\nexport {\n emptyOrSet,\n mergeOrSet,\n type OrSet,\n orAdd,\n orHas,\n orRemove,\n orValues,\n} from './or-set'\nexport {\n createMemoryPersistence,\n createPersistentEngine,\n createWebStoragePersistence,\n loadSnapshot,\n type Persistence,\n type PersistentEngineOptions,\n persistEngine,\n type WebStorageLike,\n} from './persist'\nexport {\n type Cursor,\n createMemoryHub,\n createMutationLog,\n createSyncEngine,\n type MutationLog,\n type Op,\n type SyncEngine,\n type SyncEngineOptions,\n type SyncSnapshot,\n type SyncTransport,\n} from './sync'\nexport {\n type VersionVector,\n vvDominates,\n vvEquals,\n vvGet,\n vvMerge,\n vvObserve,\n} from './version-vector'\n\nexport type { Maturity, PackageInfo }\nexport { NotImplementedError, notImplemented }\n"],"mappings":";;;;;;;;;;;;AAoBA,MAAa,OAAO;;AAGpB,MAAa,UAAU;;AAGvB,MAAa,WAAqB;;;;;;AAOlC,MAAa,OAAoB,OAAO,OAAO;CAAE;CAAM,SAAS;CAAS;AAAS,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mindees/data",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.15.0",
|
|
4
4
|
"description": "MindeesNative Continuum - local-first reactive store and sync: a signals-native document store with fine-grained reactive queries, optimistic updates, CRDT conflict resolution, and delta sync.",
|
|
5
5
|
"license": "MIT OR Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
"directory": "packages/data"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@mindees/core": "0.
|
|
30
|
+
"@mindees/core": "0.15.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
33
|
"fast-check": "4.8.0"
|