@fluidframework/map 2.0.0-rc.1.0.6 → 2.0.0-rc.2.0.1
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/{.eslintrc.js → .eslintrc.cjs} +10 -1
- package/{.mocharc.js → .mocharc.cjs} +1 -1
- package/CHANGELOG.md +11 -0
- package/{api-extractor-esm.json → api-extractor-cjs.json} +5 -1
- package/api-extractor-lint.json +1 -1
- package/api-extractor.json +1 -1
- package/api-report/map.api.md +14 -57
- package/dist/directory.d.ts +10 -50
- package/dist/directory.d.ts.map +1 -1
- package/dist/directory.js +76 -164
- package/dist/directory.js.map +1 -1
- package/dist/index.d.ts +45 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -8
- package/dist/index.js.map +1 -1
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/interfaces.js.map +1 -1
- package/dist/internalInterfaces.d.ts +2 -2
- package/dist/internalInterfaces.d.ts.map +1 -1
- package/dist/internalInterfaces.js.map +1 -1
- package/dist/localValues.d.ts +3 -5
- package/dist/localValues.d.ts.map +1 -1
- package/dist/localValues.js +9 -8
- package/dist/localValues.js.map +1 -1
- package/dist/map-alpha.d.ts +31 -116
- package/dist/map-beta.d.ts +24 -105
- package/dist/map-public.d.ts +24 -105
- package/dist/map-untrimmed.d.ts +31 -116
- package/dist/map.d.ts +4 -23
- package/dist/map.d.ts.map +1 -1
- package/dist/map.js +6 -29
- package/dist/map.js.map +1 -1
- package/dist/mapKernel.d.ts +3 -4
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/mapKernel.js +30 -35
- package/dist/mapKernel.js.map +1 -1
- package/dist/package.json +3 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.js +1 -1
- package/dist/packageVersion.js.map +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/lib/{directory.d.mts → directory.d.ts} +11 -51
- package/lib/directory.d.ts.map +1 -0
- package/lib/{directory.mjs → directory.js} +77 -165
- package/lib/directory.js.map +1 -0
- package/lib/index.d.ts +61 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +55 -0
- package/lib/index.js.map +1 -0
- package/lib/{interfaces.d.mts → interfaces.d.ts} +1 -1
- package/lib/interfaces.d.ts.map +1 -0
- package/lib/{interfaces.mjs → interfaces.js} +1 -1
- package/lib/interfaces.js.map +1 -0
- package/lib/{internalInterfaces.d.mts → internalInterfaces.d.ts} +3 -3
- package/lib/internalInterfaces.d.ts.map +1 -0
- package/lib/{internalInterfaces.mjs → internalInterfaces.js} +1 -1
- package/lib/internalInterfaces.js.map +1 -0
- package/lib/{localValues.d.mts → localValues.d.ts} +4 -6
- package/lib/localValues.d.ts.map +1 -0
- package/lib/{localValues.mjs → localValues.js} +10 -9
- package/lib/localValues.js.map +1 -0
- package/lib/{map-alpha.d.mts → map-alpha.d.ts} +43 -116
- package/lib/{map-beta.d.mts → map-beta.d.ts} +36 -105
- package/lib/{map-public.d.mts → map-public.d.ts} +36 -105
- package/lib/{map-untrimmed.d.mts → map-untrimmed.d.ts} +43 -116
- package/lib/{map.d.mts → map.d.ts} +5 -24
- package/lib/map.d.ts.map +1 -0
- package/lib/{map.mjs → map.js} +5 -28
- package/lib/map.js.map +1 -0
- package/lib/{mapKernel.d.mts → mapKernel.d.ts} +4 -5
- package/lib/mapKernel.d.ts.map +1 -0
- package/lib/{mapKernel.mjs → mapKernel.js} +32 -37
- package/lib/mapKernel.js.map +1 -0
- package/lib/{packageVersion.d.mts → packageVersion.d.ts} +2 -2
- package/lib/packageVersion.d.ts.map +1 -0
- package/lib/{packageVersion.mjs → packageVersion.js} +2 -2
- package/lib/packageVersion.js.map +1 -0
- package/lib/test/memory/directory.spec.js +71 -0
- package/lib/test/memory/directory.spec.js.map +1 -0
- package/lib/test/memory/map.spec.js +71 -0
- package/lib/test/memory/map.spec.js.map +1 -0
- package/lib/test/mocha/directory.order.spec.js +422 -0
- package/lib/test/mocha/directory.order.spec.js.map +1 -0
- package/lib/test/mocha/directory.snapshot.spec.js +111 -0
- package/lib/test/mocha/directory.snapshot.spec.js.map +1 -0
- package/lib/test/mocha/directory.spec.js +1406 -0
- package/lib/test/mocha/directory.spec.js.map +1 -0
- package/lib/test/mocha/directoryEquivalenceUtils.js +36 -0
- package/lib/test/mocha/directoryEquivalenceUtils.js.map +1 -0
- package/lib/test/mocha/directoryFuzzTests.spec.js +337 -0
- package/lib/test/mocha/directoryFuzzTests.spec.js.map +1 -0
- package/lib/test/mocha/dirname.cjs +16 -0
- package/lib/test/mocha/dirname.cjs.map +1 -0
- package/lib/test/mocha/map.fuzz.spec.js +114 -0
- package/lib/test/mocha/map.fuzz.spec.js.map +1 -0
- package/lib/test/mocha/map.spec.js +685 -0
- package/lib/test/mocha/map.spec.js.map +1 -0
- package/lib/test/mocha/rebasing.spec.js +158 -0
- package/lib/test/mocha/rebasing.spec.js.map +1 -0
- package/lib/test/mocha/reconnection.spec.js +327 -0
- package/lib/test/mocha/reconnection.spec.js.map +1 -0
- package/lib/test/types/validateMapPrevious.generated.js +66 -0
- package/lib/test/types/validateMapPrevious.generated.js.map +1 -0
- package/package.json +55 -52
- package/src/directory.ts +122 -217
- package/src/index.ts +57 -4
- package/src/interfaces.ts +2 -2
- package/src/internalInterfaces.ts +2 -2
- package/src/localValues.ts +14 -9
- package/src/map.ts +7 -32
- package/src/mapKernel.ts +40 -42
- package/src/packageVersion.ts +1 -1
- package/tsconfig.cjs.json +7 -0
- package/tsconfig.json +2 -5
- package/lib/directory.d.mts.map +0 -1
- package/lib/directory.mjs.map +0 -1
- package/lib/index.d.mts +0 -9
- package/lib/index.d.mts.map +0 -1
- package/lib/index.mjs +0 -8
- package/lib/index.mjs.map +0 -1
- package/lib/interfaces.d.mts.map +0 -1
- package/lib/interfaces.mjs.map +0 -1
- package/lib/internalInterfaces.d.mts.map +0 -1
- package/lib/internalInterfaces.mjs.map +0 -1
- package/lib/localValues.d.mts.map +0 -1
- package/lib/localValues.mjs.map +0 -1
- package/lib/map.d.mts.map +0 -1
- package/lib/map.mjs.map +0 -1
- package/lib/mapKernel.d.mts.map +0 -1
- package/lib/mapKernel.mjs.map +0 -1
- package/lib/packageVersion.d.mts.map +0 -1
- package/lib/packageVersion.mjs.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/map",
|
|
3
|
-
"version": "2.0.0-rc.
|
|
3
|
+
"version": "2.0.0-rc.2.0.1",
|
|
4
4
|
"description": "Distributed map",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -11,60 +11,50 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
13
|
"sideEffects": false,
|
|
14
|
+
"type": "module",
|
|
14
15
|
"exports": {
|
|
15
16
|
".": {
|
|
16
17
|
"import": {
|
|
17
|
-
"types": "./lib/index.d.
|
|
18
|
-
"default": "./lib/index.
|
|
18
|
+
"types": "./lib/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
19
20
|
},
|
|
20
21
|
"require": {
|
|
21
22
|
"types": "./dist/index.d.ts",
|
|
22
23
|
"default": "./dist/index.js"
|
|
23
24
|
}
|
|
24
25
|
},
|
|
25
|
-
"./
|
|
26
|
+
"./public": {
|
|
26
27
|
"import": {
|
|
27
|
-
"types": "./lib/map-
|
|
28
|
-
"default": "./lib/index.
|
|
28
|
+
"types": "./lib/map-public.d.ts",
|
|
29
|
+
"default": "./lib/index.js"
|
|
29
30
|
},
|
|
30
31
|
"require": {
|
|
31
|
-
"types": "./dist/map-
|
|
32
|
+
"types": "./dist/map-public.d.ts",
|
|
32
33
|
"default": "./dist/index.js"
|
|
33
34
|
}
|
|
34
35
|
},
|
|
35
|
-
"./
|
|
36
|
+
"./alpha": {
|
|
36
37
|
"import": {
|
|
37
|
-
"types": "./lib/map-
|
|
38
|
-
"default": "./lib/index.
|
|
38
|
+
"types": "./lib/map-alpha.d.ts",
|
|
39
|
+
"default": "./lib/index.js"
|
|
39
40
|
},
|
|
40
41
|
"require": {
|
|
41
|
-
"types": "./dist/map-
|
|
42
|
+
"types": "./dist/map-alpha.d.ts",
|
|
42
43
|
"default": "./dist/index.js"
|
|
43
44
|
}
|
|
44
45
|
},
|
|
45
46
|
"./internal": {
|
|
46
47
|
"import": {
|
|
47
|
-
"types": "./lib/index.d.
|
|
48
|
-
"default": "./lib/index.
|
|
48
|
+
"types": "./lib/index.d.ts",
|
|
49
|
+
"default": "./lib/index.js"
|
|
49
50
|
},
|
|
50
51
|
"require": {
|
|
51
52
|
"types": "./dist/index.d.ts",
|
|
52
53
|
"default": "./dist/index.js"
|
|
53
54
|
}
|
|
54
|
-
},
|
|
55
|
-
"./public": {
|
|
56
|
-
"import": {
|
|
57
|
-
"types": "./lib/map-public.d.mts",
|
|
58
|
-
"default": "./lib/index.mjs"
|
|
59
|
-
},
|
|
60
|
-
"require": {
|
|
61
|
-
"types": "./dist/map-public.d.ts",
|
|
62
|
-
"default": "./dist/index.js"
|
|
63
|
-
}
|
|
64
55
|
}
|
|
65
56
|
},
|
|
66
57
|
"main": "dist/index.js",
|
|
67
|
-
"module": "lib/index.mjs",
|
|
68
58
|
"types": "dist/index.d.ts",
|
|
69
59
|
"c8": {
|
|
70
60
|
"all": true,
|
|
@@ -87,39 +77,40 @@
|
|
|
87
77
|
"temp-directory": "nyc/.nyc_output"
|
|
88
78
|
},
|
|
89
79
|
"dependencies": {
|
|
90
|
-
"@fluid-internal/client-utils": ">=2.0.0-rc.
|
|
91
|
-
"@fluidframework/core-interfaces": ">=2.0.0-rc.
|
|
92
|
-
"@fluidframework/core-utils": ">=2.0.0-rc.
|
|
93
|
-
"@fluidframework/datastore-definitions": ">=2.0.0-rc.
|
|
94
|
-
"@fluidframework/driver-utils": ">=2.0.0-rc.
|
|
95
|
-
"@fluidframework/merge-tree": ">=2.0.0-rc.
|
|
96
|
-
"@fluidframework/protocol-definitions": "^3.
|
|
97
|
-
"@fluidframework/runtime-definitions": ">=2.0.0-rc.
|
|
98
|
-
"@fluidframework/runtime-utils": ">=2.0.0-rc.
|
|
99
|
-
"@fluidframework/shared-object-base": ">=2.0.0-rc.
|
|
100
|
-
"@fluidframework/telemetry-utils": ">=2.0.0-rc.
|
|
80
|
+
"@fluid-internal/client-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
81
|
+
"@fluidframework/core-interfaces": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
82
|
+
"@fluidframework/core-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
83
|
+
"@fluidframework/datastore-definitions": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
84
|
+
"@fluidframework/driver-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
85
|
+
"@fluidframework/merge-tree": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
86
|
+
"@fluidframework/protocol-definitions": "^3.2.0",
|
|
87
|
+
"@fluidframework/runtime-definitions": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
88
|
+
"@fluidframework/runtime-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
89
|
+
"@fluidframework/shared-object-base": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
90
|
+
"@fluidframework/telemetry-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
101
91
|
"path-browserify": "^1.0.1"
|
|
102
92
|
},
|
|
103
93
|
"devDependencies": {
|
|
104
94
|
"@arethetypeswrong/cli": "^0.13.3",
|
|
105
|
-
"@fluid-
|
|
106
|
-
"@fluid-private/test-
|
|
95
|
+
"@fluid-internal/mocha-test-setup": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
96
|
+
"@fluid-private/stochastic-test-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
97
|
+
"@fluid-private/test-dds-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
107
98
|
"@fluid-tools/benchmark": "^0.48.0",
|
|
108
|
-
"@fluid-tools/build-cli": "^0.
|
|
99
|
+
"@fluid-tools/build-cli": "^0.34.0",
|
|
109
100
|
"@fluidframework/build-common": "^2.0.3",
|
|
110
|
-
"@fluidframework/build-tools": "^0.
|
|
111
|
-
"@fluidframework/
|
|
101
|
+
"@fluidframework/build-tools": "^0.34.0",
|
|
102
|
+
"@fluidframework/container-definitions": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
103
|
+
"@fluidframework/eslint-config-fluid": "^4.0.0",
|
|
112
104
|
"@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.8.0.0",
|
|
113
|
-
"@fluidframework/
|
|
114
|
-
"@
|
|
115
|
-
"@microsoft/api-extractor": "^7.38.3",
|
|
105
|
+
"@fluidframework/test-runtime-utils": ">=2.0.0-rc.2.0.1 <2.0.0-rc.2.1.0",
|
|
106
|
+
"@microsoft/api-extractor": "^7.42.3",
|
|
116
107
|
"@types/mocha": "^9.1.1",
|
|
117
108
|
"@types/node": "^18.19.0",
|
|
118
109
|
"@types/path-browserify": "^1.0.0",
|
|
119
110
|
"c8": "^8.0.1",
|
|
120
111
|
"copyfiles": "^2.4.1",
|
|
121
112
|
"cross-env": "^7.0.3",
|
|
122
|
-
"eslint": "~8.
|
|
113
|
+
"eslint": "~8.55.0",
|
|
123
114
|
"mocha": "^10.2.0",
|
|
124
115
|
"mocha-json-output-reporter": "^2.0.1",
|
|
125
116
|
"mocha-multi-reporters": "^1.5.1",
|
|
@@ -127,7 +118,6 @@
|
|
|
127
118
|
"prettier": "~3.0.3",
|
|
128
119
|
"replace-in-file": "^6.3.5",
|
|
129
120
|
"rimraf": "^4.4.0",
|
|
130
|
-
"tsc-multi": "^1.1.0",
|
|
131
121
|
"typescript": "~5.1.6"
|
|
132
122
|
},
|
|
133
123
|
"fluidBuild": {
|
|
@@ -143,19 +133,29 @@
|
|
|
143
133
|
}
|
|
144
134
|
},
|
|
145
135
|
"typeValidation": {
|
|
146
|
-
"broken": {
|
|
136
|
+
"broken": {
|
|
137
|
+
"RemovedClassDeclaration_SharedMap": {
|
|
138
|
+
"forwardCompat": false,
|
|
139
|
+
"backCompat": false
|
|
140
|
+
},
|
|
141
|
+
"ClassDeclaration_SharedMap": {
|
|
142
|
+
"backCompat": false
|
|
143
|
+
}
|
|
144
|
+
}
|
|
147
145
|
},
|
|
148
146
|
"scripts": {
|
|
149
147
|
"api": "fluid-build . --task api",
|
|
150
|
-
"api-extractor:commonjs": "api-extractor run --
|
|
151
|
-
"api-extractor:esnext": "api-extractor run --
|
|
148
|
+
"api-extractor:commonjs": "api-extractor run --config ./api-extractor-cjs.json",
|
|
149
|
+
"api-extractor:esnext": "api-extractor run --local",
|
|
152
150
|
"build": "fluid-build . --task build",
|
|
153
151
|
"build:commonjs": "fluid-build . --task commonjs",
|
|
154
152
|
"build:compile": "fluid-build . --task compile",
|
|
155
153
|
"build:docs": "fluid-build . --task api",
|
|
156
|
-
"build:esnext": "tsc
|
|
154
|
+
"build:esnext": "tsc --project ./tsconfig.json",
|
|
157
155
|
"build:genver": "gen-version",
|
|
158
|
-
"build:test": "
|
|
156
|
+
"build:test": "npm run build:test:esm && npm run build:test:cjs",
|
|
157
|
+
"build:test:cjs": "fluid-tsc commonjs --project ./src/test/tsconfig.cjs.json",
|
|
158
|
+
"build:test:esm": "tsc --project ./src/test/tsconfig.json",
|
|
159
159
|
"check:are-the-types-wrong": "attw --pack . --entrypoints .",
|
|
160
160
|
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
161
161
|
"ci:build:docs": "api-extractor run",
|
|
@@ -171,9 +171,12 @@
|
|
|
171
171
|
"test:coverage": "c8 npm test",
|
|
172
172
|
"test:memory": "mocha --config ./src/test/memory/.mocharc.cjs",
|
|
173
173
|
"test:memory-profiling:report": "mocha --config ./src/test/memory/.mocharc.cjs",
|
|
174
|
-
"test:mocha": "
|
|
174
|
+
"test:mocha": "npm run test:mocha:esm && echo skipping cjs to avoid overhead - npm run test:mocha:cjs",
|
|
175
|
+
"test:mocha:cjs": "mocha --recursive \"dist/test/**/*.spec.*js\" --exit",
|
|
176
|
+
"test:mocha:esm": "mocha --recursive \"lib/test/**/*.spec.*js\" --exit",
|
|
175
177
|
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
176
|
-
"
|
|
178
|
+
"test:snapshots:regen": "npm run test:mocha:esm -- --snapshot",
|
|
179
|
+
"tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
|
|
177
180
|
"typetests:gen": "fluid-type-test-generator",
|
|
178
181
|
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
179
182
|
}
|