@pluv/crdt 3.0.0 → 3.1.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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @pluv/crdt@3.0.0 build /home/runner/work/pluv/pluv/packages/crdt
2
+ > @pluv/crdt@3.1.0 build /home/runner/work/pluv/pluv/packages/crdt
3
3
  > tsup src/index.ts --format esm,cjs --dts
4
4
 
5
5
  CLI Building entry: src/index.ts
@@ -9,10 +9,10 @@
9
9
  ESM Build start
10
10
  CJS Build start
11
11
  CJS dist/index.js 2.68 KB
12
- CJS ⚡️ Build success in 28ms
12
+ CJS ⚡️ Build success in 22ms
13
13
  ESM dist/index.mjs 1.55 KB
14
- ESM ⚡️ Build success in 29ms
14
+ ESM ⚡️ Build success in 22ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 514ms
17
- DTS dist/index.d.mts 2.64 KB
18
- DTS dist/index.d.ts 2.64 KB
16
+ DTS ⚡️ Build success in 502ms
17
+ DTS dist/index.d.mts 2.71 KB
18
+ DTS dist/index.d.ts 2.71 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @pluv/crdt
2
2
 
3
+ ## 3.1.0
4
+
5
+ ### Patch Changes
6
+
7
+ - @pluv/types@3.1.0
8
+
3
9
  ## 3.0.0
4
10
 
5
11
  ### Patch Changes
package/dist/index.d.mts CHANGED
@@ -1,7 +1,7 @@
1
- import { CrdtType, CrdtDocLike, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams } from '@pluv/types';
2
- export { CrdtDocLike, CrdtType, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams, InferCrdtJson } from '@pluv/types';
1
+ import { CrdtType, CrdtDocFactory, CrdtDocLike, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams } from '@pluv/types';
2
+ export { CrdtDocLike, CrdtLibraryType, CrdtType, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams, InferCrdtJson } from '@pluv/types';
3
3
 
4
- declare abstract class AbstractCrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtType<any, any>>> {
4
+ declare abstract class AbstractCrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtType<any, any>>> implements CrdtDocFactory<TDoc, TStorage> {
5
5
  _initialStorage: (builder: any) => TStorage;
6
6
  constructor(initialStorage: (builder: any) => TStorage);
7
7
  abstract getEmpty(): CrdtDocLike<TDoc, TStorage>;
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
- import { CrdtType, CrdtDocLike, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams } from '@pluv/types';
2
- export { CrdtDocLike, CrdtType, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams, InferCrdtJson } from '@pluv/types';
1
+ import { CrdtType, CrdtDocFactory, CrdtDocLike, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams } from '@pluv/types';
2
+ export { CrdtDocLike, CrdtLibraryType, CrdtType, DocApplyEncodedStateParams, DocBatchApplyEncodedStateParams, DocSubscribeCallbackParams, InferCrdtJson } from '@pluv/types';
3
3
 
4
- declare abstract class AbstractCrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtType<any, any>>> {
4
+ declare abstract class AbstractCrdtDocFactory<TDoc extends any, TStorage extends Record<string, CrdtType<any, any>>> implements CrdtDocFactory<TDoc, TStorage> {
5
5
  _initialStorage: (builder: any) => TStorage;
6
6
  constructor(initialStorage: (builder: any) => TStorage);
7
7
  abstract getEmpty(): CrdtDocLike<TDoc, TStorage>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pluv/crdt",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "crdt base for @pluv/io",
5
5
  "author": "leedavidcs",
6
6
  "license": "MIT",
@@ -17,14 +17,14 @@
17
17
  "access": "public"
18
18
  },
19
19
  "dependencies": {
20
- "@pluv/types": "^3.0.0"
20
+ "@pluv/types": "^3.1.0"
21
21
  },
22
22
  "devDependencies": {
23
23
  "eslint": "^9.27.0",
24
24
  "tsup": "^8.5.0",
25
25
  "typescript": "^5.8.3",
26
- "eslint-config-pluv": "^3.0.0",
27
- "@pluv/tsconfig": "^3.0.0"
26
+ "@pluv/tsconfig": "^3.1.0",
27
+ "eslint-config-pluv": "^3.1.0"
28
28
  },
29
29
  "scripts": {
30
30
  "build": "tsup src/index.ts --format esm,cjs --dts",
@@ -1,9 +1,10 @@
1
- import type { CrdtDocLike, CrdtType } from "@pluv/types";
1
+ import type { CrdtDocFactory, CrdtDocLike, CrdtType } from "@pluv/types";
2
2
 
3
3
  export abstract class AbstractCrdtDocFactory<
4
4
  TDoc extends any,
5
5
  TStorage extends Record<string, CrdtType<any, any>>,
6
- > {
6
+ > implements CrdtDocFactory<TDoc, TStorage>
7
+ {
7
8
  public _initialStorage: (builder: any) => TStorage;
8
9
 
9
10
  constructor(initialStorage: (builder: any) => TStorage) {
package/src/index.ts CHANGED
@@ -11,6 +11,7 @@ export { noop } from "./noop";
11
11
  export { NoopCrdtDoc } from "./NoopCrdtDoc";
12
12
  export { NoopCrdtDocFactory } from "./NoopCrdtDocFactory";
13
13
  export type {
14
+ CrdtLibraryType,
14
15
  InferBuilder,
15
16
  InferDoc,
16
17
  InferDocLike,
package/src/types.ts CHANGED
@@ -1,5 +1,7 @@
1
1
  import type { AbstractCrdtDocFactory } from "./AbstractCrdtDocFactory";
2
2
 
3
+ export type { CrdtLibraryType } from "@pluv/types";
4
+
3
5
  export type InferDoc<TFactory extends AbstractCrdtDocFactory<any, any>> =
4
6
  InferDocLike<TFactory>["value"];
5
7