@fluid-experimental/attributor 2.0.2 → 2.1.0-276326
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/api-report/attributor.alpha.api.md +0 -4
- package/api-report/attributor.beta.api.md +0 -4
- package/api-report/attributor.public.api.md +0 -4
- package/dist/lz4Encoder.d.ts +1 -0
- package/dist/lz4Encoder.d.ts.map +1 -1
- package/dist/lz4Encoder.js +1 -0
- package/dist/lz4Encoder.js.map +1 -1
- package/lib/lz4Encoder.d.ts +1 -0
- package/lib/lz4Encoder.d.ts.map +1 -1
- package/lib/lz4Encoder.js +1 -0
- package/lib/lz4Encoder.js.map +1 -1
- package/package.json +18 -18
- package/src/lz4Encoder.ts +1 -0
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { AttributionInfo } from '@fluidframework/runtime-definitions/internal';
|
|
8
|
-
import { AttributionKey } from '@fluidframework/runtime-definitions/internal';
|
|
9
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
10
|
-
|
|
11
7
|
// (No @packageDocumentation comment for this package)
|
|
12
8
|
|
|
13
9
|
```
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { AttributionInfo } from '@fluidframework/runtime-definitions/internal';
|
|
8
|
-
import { AttributionKey } from '@fluidframework/runtime-definitions/internal';
|
|
9
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
10
|
-
|
|
11
7
|
// (No @packageDocumentation comment for this package)
|
|
12
8
|
|
|
13
9
|
```
|
|
@@ -4,10 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
```ts
|
|
6
6
|
|
|
7
|
-
import { AttributionInfo } from '@fluidframework/runtime-definitions/internal';
|
|
8
|
-
import { AttributionKey } from '@fluidframework/runtime-definitions/internal';
|
|
9
|
-
import { ContainerRuntime } from '@fluidframework/container-runtime/internal';
|
|
10
|
-
|
|
11
7
|
// (No @packageDocumentation comment for this package)
|
|
12
8
|
|
|
13
9
|
```
|
package/dist/lz4Encoder.d.ts
CHANGED
package/dist/lz4Encoder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lz4Encoder.d.ts","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAG/E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAI7C
|
|
1
|
+
{"version":3,"file":"lz4Encoder.d.ts","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAG/E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAI7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAgBhE"}
|
package/dist/lz4Encoder.js
CHANGED
package/dist/lz4Encoder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lz4Encoder.js","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAA8E;AAE9E,iCAA6C;AAI7C,sBAAsB;AACtB,qDAAqD;AACrD
|
|
1
|
+
{"version":3,"file":"lz4Encoder.js","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,+DAA8E;AAE9E,iCAA6C;AAI7C,sBAAsB;AACtB,qDAAqD;AACrD;;;GAGG;AACH,SAAgB,cAAc;IAC7B,OAAO;QACN,MAAM,EAAE,CAAC,OAAoB,EAAU,EAAE;YACxC,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YACvE,6DAA6D;YAC7D,MAAM,UAAU,GAAG,IAAA,gBAAQ,EAAC,YAAY,CAAoB,CAAC;YAC7D,OAAO,IAAA,6BAAc,EAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,MAAM,EAAE,CAAC,iBAAyB,EAAe,EAAE;YAClD,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,IAAA,6BAAc,EAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC/E,6DAA6D;YAC7D,MAAM,YAAY,GAAG,IAAA,kBAAU,EAAC,UAAU,CAAiB,CAAC;YAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAgB,CAAC;YAClF,OAAO,OAAO,CAAC;QAChB,CAAC;KACD,CAAC;AACH,CAAC;AAhBD,wCAgBC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { bufferToString, stringToBuffer } from \"@fluid-internal/client-utils\";\nimport { type Jsonable } from \"@fluidframework/datastore-definitions/internal\";\nimport { compress, decompress } from \"lz4js\";\n\nimport { type Encoder } from \"./encoders.js\";\n\n// TODO: document this\n// eslint-disable-next-line jsdoc/require-description\n/**\n * @legacy\n * @alpha\n */\nexport function makeLZ4Encoder<T>(): Encoder<Jsonable<T>, string> {\n\treturn {\n\t\tencode: (decoded: Jsonable<T>): string => {\n\t\t\tconst uncompressed = new TextEncoder().encode(JSON.stringify(decoded));\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n\t\t\tconst compressed = compress(uncompressed) as ArrayBufferLike;\n\t\t\treturn bufferToString(compressed, \"base64\");\n\t\t},\n\t\tdecode: (serializedSummary: string): Jsonable<T> => {\n\t\t\tconst compressed = new Uint8Array(stringToBuffer(serializedSummary, \"base64\"));\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n\t\t\tconst uncompressed = decompress(compressed) as BufferSource;\n\t\t\tconst decoded = JSON.parse(new TextDecoder().decode(uncompressed)) as Jsonable<T>;\n\t\t\treturn decoded;\n\t\t},\n\t};\n}\n"]}
|
package/lib/lz4Encoder.d.ts
CHANGED
package/lib/lz4Encoder.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lz4Encoder.d.ts","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAG/E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAI7C
|
|
1
|
+
{"version":3,"file":"lz4Encoder.d.ts","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,gDAAgD,CAAC;AAG/E,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,eAAe,CAAC;AAI7C;;;GAGG;AACH,wBAAgB,cAAc,CAAC,CAAC,KAAK,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAgBhE"}
|
package/lib/lz4Encoder.js
CHANGED
package/lib/lz4Encoder.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lz4Encoder.js","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAI7C,sBAAsB;AACtB,qDAAqD;AACrD
|
|
1
|
+
{"version":3,"file":"lz4Encoder.js","sourceRoot":"","sources":["../src/lz4Encoder.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAE9E,OAAO,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,OAAO,CAAC;AAI7C,sBAAsB;AACtB,qDAAqD;AACrD;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC7B,OAAO;QACN,MAAM,EAAE,CAAC,OAAoB,EAAU,EAAE;YACxC,MAAM,YAAY,GAAG,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC,CAAC;YACvE,6DAA6D;YAC7D,MAAM,UAAU,GAAG,QAAQ,CAAC,YAAY,CAAoB,CAAC;YAC7D,OAAO,cAAc,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;QAC7C,CAAC;QACD,MAAM,EAAE,CAAC,iBAAyB,EAAe,EAAE;YAClD,MAAM,UAAU,GAAG,IAAI,UAAU,CAAC,cAAc,CAAC,iBAAiB,EAAE,QAAQ,CAAC,CAAC,CAAC;YAC/E,6DAA6D;YAC7D,MAAM,YAAY,GAAG,UAAU,CAAC,UAAU,CAAiB,CAAC;YAC5D,MAAM,OAAO,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,WAAW,EAAE,CAAC,MAAM,CAAC,YAAY,CAAC,CAAgB,CAAC;YAClF,OAAO,OAAO,CAAC;QAChB,CAAC;KACD,CAAC;AACH,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n */\n\nimport { bufferToString, stringToBuffer } from \"@fluid-internal/client-utils\";\nimport { type Jsonable } from \"@fluidframework/datastore-definitions/internal\";\nimport { compress, decompress } from \"lz4js\";\n\nimport { type Encoder } from \"./encoders.js\";\n\n// TODO: document this\n// eslint-disable-next-line jsdoc/require-description\n/**\n * @legacy\n * @alpha\n */\nexport function makeLZ4Encoder<T>(): Encoder<Jsonable<T>, string> {\n\treturn {\n\t\tencode: (decoded: Jsonable<T>): string => {\n\t\t\tconst uncompressed = new TextEncoder().encode(JSON.stringify(decoded));\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n\t\t\tconst compressed = compress(uncompressed) as ArrayBufferLike;\n\t\t\treturn bufferToString(compressed, \"base64\");\n\t\t},\n\t\tdecode: (serializedSummary: string): Jsonable<T> => {\n\t\t\tconst compressed = new Uint8Array(stringToBuffer(serializedSummary, \"base64\"));\n\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-call\n\t\t\tconst uncompressed = decompress(compressed) as BufferSource;\n\t\t\tconst decoded = JSON.parse(new TextDecoder().decode(uncompressed)) as Jsonable<T>;\n\t\t\treturn decoded;\n\t\t},\n\t};\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/attributor",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0-276326",
|
|
4
4
|
"description": "Operation attributor",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -47,31 +47,31 @@
|
|
|
47
47
|
"temp-directory": "nyc/.nyc_output"
|
|
48
48
|
},
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@fluid-internal/client-utils": "
|
|
51
|
-
"@fluidframework/container-definitions": "
|
|
52
|
-
"@fluidframework/container-runtime": "
|
|
53
|
-
"@fluidframework/container-runtime-definitions": "
|
|
54
|
-
"@fluidframework/core-interfaces": "
|
|
55
|
-
"@fluidframework/core-utils": "
|
|
56
|
-
"@fluidframework/datastore-definitions": "
|
|
57
|
-
"@fluidframework/driver-definitions": "
|
|
58
|
-
"@fluidframework/runtime-definitions": "
|
|
59
|
-
"@fluidframework/runtime-utils": "
|
|
60
|
-
"@fluidframework/telemetry-utils": "
|
|
50
|
+
"@fluid-internal/client-utils": "2.1.0-276326",
|
|
51
|
+
"@fluidframework/container-definitions": "2.1.0-276326",
|
|
52
|
+
"@fluidframework/container-runtime": "2.1.0-276326",
|
|
53
|
+
"@fluidframework/container-runtime-definitions": "2.1.0-276326",
|
|
54
|
+
"@fluidframework/core-interfaces": "2.1.0-276326",
|
|
55
|
+
"@fluidframework/core-utils": "2.1.0-276326",
|
|
56
|
+
"@fluidframework/datastore-definitions": "2.1.0-276326",
|
|
57
|
+
"@fluidframework/driver-definitions": "2.1.0-276326",
|
|
58
|
+
"@fluidframework/runtime-definitions": "2.1.0-276326",
|
|
59
|
+
"@fluidframework/runtime-utils": "2.1.0-276326",
|
|
60
|
+
"@fluidframework/telemetry-utils": "2.1.0-276326",
|
|
61
61
|
"lz4js": "^0.2.0"
|
|
62
62
|
},
|
|
63
63
|
"devDependencies": {
|
|
64
64
|
"@arethetypeswrong/cli": "^0.15.2",
|
|
65
65
|
"@biomejs/biome": "^1.7.3",
|
|
66
|
-
"@fluid-internal/mocha-test-setup": "
|
|
67
|
-
"@fluid-private/stochastic-test-utils": "
|
|
66
|
+
"@fluid-internal/mocha-test-setup": "2.1.0-276326",
|
|
67
|
+
"@fluid-private/stochastic-test-utils": "2.1.0-276326",
|
|
68
68
|
"@fluid-tools/build-cli": "^0.39.0",
|
|
69
69
|
"@fluidframework/build-common": "^2.0.3",
|
|
70
70
|
"@fluidframework/build-tools": "^0.39.0",
|
|
71
71
|
"@fluidframework/eslint-config-fluid": "^5.3.0",
|
|
72
|
-
"@fluidframework/merge-tree": "
|
|
73
|
-
"@fluidframework/sequence": "
|
|
74
|
-
"@fluidframework/test-runtime-utils": "
|
|
72
|
+
"@fluidframework/merge-tree": "2.1.0-276326",
|
|
73
|
+
"@fluidframework/sequence": "2.1.0-276326",
|
|
74
|
+
"@fluidframework/test-runtime-utils": "2.1.0-276326",
|
|
75
75
|
"@microsoft/api-extractor": "^7.45.1",
|
|
76
76
|
"@types/mocha": "^9.1.1",
|
|
77
77
|
"@types/node": "^18.19.0",
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
|
|
126
126
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
127
127
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
128
|
-
"typetests:gen": "flub generate typetests --dir . -v
|
|
128
|
+
"typetests:gen": "flub generate typetests --dir . -v",
|
|
129
129
|
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
130
130
|
}
|
|
131
131
|
}
|
package/src/lz4Encoder.ts
CHANGED