@fluid-experimental/attributor 2.53.1 → 2.61.0-355054
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/.mocharc.cjs +1 -2
- package/CHANGELOG.md +4 -0
- package/dist/lz4Encoder.d.ts +1 -1
- package/dist/lz4Encoder.js +1 -1
- package/dist/lz4Encoder.js.map +1 -1
- package/lib/lz4Encoder.d.ts +1 -1
- package/lib/lz4Encoder.js +1 -1
- package/lib/lz4Encoder.js.map +1 -1
- package/lib/tsdoc-metadata.json +1 -1
- package/package.json +25 -25
- package/src/lz4Encoder.ts +1 -1
package/.mocharc.cjs
CHANGED
package/CHANGELOG.md
CHANGED
package/dist/lz4Encoder.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import type { Jsonable } from "@fluidframework/datastore-definitions/internal";
|
|
|
6
6
|
import type { Encoder } from "./encoders.js";
|
|
7
7
|
/**
|
|
8
8
|
* @legacy
|
|
9
|
-
* @
|
|
9
|
+
* @beta
|
|
10
10
|
*/
|
|
11
11
|
export declare function makeLZ4Encoder<T>(): Encoder<Jsonable<T>, string>;
|
|
12
12
|
//# sourceMappingURL=lz4Encoder.d.ts.map
|
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;;;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 * @
|
|
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 * @beta\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
|
@@ -6,7 +6,7 @@ import type { Jsonable } from "@fluidframework/datastore-definitions/internal";
|
|
|
6
6
|
import type { Encoder } from "./encoders.js";
|
|
7
7
|
/**
|
|
8
8
|
* @legacy
|
|
9
|
-
* @
|
|
9
|
+
* @beta
|
|
10
10
|
*/
|
|
11
11
|
export declare function makeLZ4Encoder<T>(): Encoder<Jsonable<T>, string>;
|
|
12
12
|
//# sourceMappingURL=lz4Encoder.d.ts.map
|
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;;;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 * @
|
|
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 * @beta\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/tsdoc-metadata.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-experimental/attributor",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.61.0-355054",
|
|
4
4
|
"description": "Operation attributor",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -49,36 +49,36 @@
|
|
|
49
49
|
"temp-directory": "nyc/.nyc_output"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@fluid-internal/client-utils": "
|
|
53
|
-
"@fluidframework/container-definitions": "
|
|
54
|
-
"@fluidframework/container-runtime": "
|
|
55
|
-
"@fluidframework/container-runtime-definitions": "
|
|
56
|
-
"@fluidframework/core-interfaces": "
|
|
57
|
-
"@fluidframework/core-utils": "
|
|
58
|
-
"@fluidframework/datastore": "
|
|
59
|
-
"@fluidframework/datastore-definitions": "
|
|
60
|
-
"@fluidframework/driver-definitions": "
|
|
61
|
-
"@fluidframework/runtime-definitions": "
|
|
62
|
-
"@fluidframework/runtime-utils": "
|
|
63
|
-
"@fluidframework/telemetry-utils": "
|
|
52
|
+
"@fluid-internal/client-utils": "2.61.0-355054",
|
|
53
|
+
"@fluidframework/container-definitions": "2.61.0-355054",
|
|
54
|
+
"@fluidframework/container-runtime": "2.61.0-355054",
|
|
55
|
+
"@fluidframework/container-runtime-definitions": "2.61.0-355054",
|
|
56
|
+
"@fluidframework/core-interfaces": "2.61.0-355054",
|
|
57
|
+
"@fluidframework/core-utils": "2.61.0-355054",
|
|
58
|
+
"@fluidframework/datastore": "2.61.0-355054",
|
|
59
|
+
"@fluidframework/datastore-definitions": "2.61.0-355054",
|
|
60
|
+
"@fluidframework/driver-definitions": "2.61.0-355054",
|
|
61
|
+
"@fluidframework/runtime-definitions": "2.61.0-355054",
|
|
62
|
+
"@fluidframework/runtime-utils": "2.61.0-355054",
|
|
63
|
+
"@fluidframework/telemetry-utils": "2.61.0-355054",
|
|
64
64
|
"lz4js": "^0.2.0"
|
|
65
65
|
},
|
|
66
66
|
"devDependencies": {
|
|
67
67
|
"@arethetypeswrong/cli": "^0.17.1",
|
|
68
68
|
"@biomejs/biome": "~1.9.3",
|
|
69
|
-
"@fluid-internal/mocha-test-setup": "
|
|
70
|
-
"@fluid-private/stochastic-test-utils": "
|
|
71
|
-
"@fluid-tools/build-cli": "^0.
|
|
69
|
+
"@fluid-internal/mocha-test-setup": "2.61.0-355054",
|
|
70
|
+
"@fluid-private/stochastic-test-utils": "2.61.0-355054",
|
|
71
|
+
"@fluid-tools/build-cli": "^0.58.2",
|
|
72
72
|
"@fluidframework/build-common": "^2.0.3",
|
|
73
|
-
"@fluidframework/build-tools": "^0.
|
|
74
|
-
"@fluidframework/eslint-config-fluid": "^
|
|
75
|
-
"@fluidframework/merge-tree": "
|
|
76
|
-
"@fluidframework/sequence": "
|
|
77
|
-
"@fluidframework/test-runtime-utils": "
|
|
78
|
-
"@microsoft/api-extractor": "7.52.
|
|
73
|
+
"@fluidframework/build-tools": "^0.58.2",
|
|
74
|
+
"@fluidframework/eslint-config-fluid": "^6.0.0",
|
|
75
|
+
"@fluidframework/merge-tree": "2.61.0-355054",
|
|
76
|
+
"@fluidframework/sequence": "2.61.0-355054",
|
|
77
|
+
"@fluidframework/test-runtime-utils": "2.61.0-355054",
|
|
78
|
+
"@microsoft/api-extractor": "7.52.11",
|
|
79
79
|
"@types/mocha": "^10.0.10",
|
|
80
80
|
"@types/node": "^18.19.0",
|
|
81
|
-
"c8": "^
|
|
81
|
+
"c8": "^10.1.3",
|
|
82
82
|
"concurrently": "^8.2.1",
|
|
83
83
|
"copyfiles": "^2.4.1",
|
|
84
84
|
"cross-env": "^7.0.3",
|
|
@@ -120,8 +120,8 @@
|
|
|
120
120
|
"test": "npm run test:mocha",
|
|
121
121
|
"test:coverage": "c8 npm test",
|
|
122
122
|
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
|
|
123
|
-
"test:mocha:cjs": "
|
|
124
|
-
"test:mocha:esm": "mocha
|
|
123
|
+
"test:mocha:cjs": "cross-env MOCHA_SPEC=dist/test mocha",
|
|
124
|
+
"test:mocha:esm": "mocha",
|
|
125
125
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
126
126
|
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
127
127
|
"typetests:gen": "flub generate typetests --dir . -v",
|
package/src/lz4Encoder.ts
CHANGED