@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.
- package/.turbo/turbo-build.log +6 -6
- package/CHANGELOG.md +6 -0
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +4 -4
- package/src/AbstractCrdtDocFactory.ts +3 -2
- package/src/index.ts +1 -0
- package/src/types.ts +2 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @pluv/crdt@3.
|
|
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
|
[34mCLI[39m Building entry: src/index.ts
|
|
@@ -9,10 +9,10 @@
|
|
|
9
9
|
[34mESM[39m Build start
|
|
10
10
|
[34mCJS[39m Build start
|
|
11
11
|
[32mCJS[39m [1mdist/index.js [22m[32m2.68 KB[39m
|
|
12
|
-
[32mCJS[39m ⚡️ Build success in
|
|
12
|
+
[32mCJS[39m ⚡️ Build success in 22ms
|
|
13
13
|
[32mESM[39m [1mdist/index.mjs [22m[32m1.55 KB[39m
|
|
14
|
-
[32mESM[39m ⚡️ Build success in
|
|
14
|
+
[32mESM[39m ⚡️ Build success in 22ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.
|
|
18
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 502ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.mts [22m[32m2.71 KB[39m
|
|
18
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m2.71 KB[39m
|
package/CHANGELOG.md
CHANGED
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.
|
|
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.
|
|
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
|
-
"
|
|
27
|
-
"
|
|
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
package/src/types.ts
CHANGED