@fluidframework/map 1.4.0-115997 → 2.0.0-dev-rc.1.0.0.224419
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 +12 -11
- package/.mocharc.js +12 -0
- package/CHANGELOG.md +162 -0
- package/README.md +24 -8
- package/api-extractor-lint.json +4 -0
- package/api-extractor.json +2 -2
- package/api-report/map.api.md +297 -0
- package/dist/{directory.js → directory.cjs} +749 -228
- package/dist/directory.cjs.map +1 -0
- package/dist/directory.d.ts +567 -34
- package/dist/directory.d.ts.map +1 -1
- package/dist/index.cjs +27 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.ts +5 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/{interfaces.js → interfaces.cjs} +1 -1
- package/dist/interfaces.cjs.map +1 -0
- package/dist/interfaces.d.ts +167 -184
- package/dist/interfaces.d.ts.map +1 -1
- package/dist/internalInterfaces.cjs +7 -0
- package/dist/internalInterfaces.cjs.map +1 -0
- package/dist/internalInterfaces.d.ts +101 -0
- package/dist/internalInterfaces.d.ts.map +1 -0
- package/dist/{localValues.js → localValues.cjs} +15 -3
- package/dist/localValues.cjs.map +1 -0
- package/dist/localValues.d.ts +17 -6
- package/dist/localValues.d.ts.map +1 -1
- package/dist/map-alpha.d.ts +982 -0
- package/dist/map-beta.d.ts +275 -0
- package/dist/map-public.d.ts +275 -0
- package/dist/map-untrimmed.d.ts +996 -0
- package/dist/{map.js → map.cjs} +39 -34
- package/dist/map.cjs.map +1 -0
- package/dist/map.d.ts +10 -17
- package/dist/map.d.ts.map +1 -1
- package/dist/{mapKernel.js → mapKernel.cjs} +122 -79
- package/dist/mapKernel.cjs.map +1 -0
- package/dist/mapKernel.d.ts +17 -48
- package/dist/mapKernel.d.ts.map +1 -1
- package/dist/{packageVersion.js → packageVersion.cjs} +2 -2
- package/dist/packageVersion.cjs.map +1 -0
- package/dist/packageVersion.d.ts +1 -1
- package/dist/packageVersion.d.ts.map +1 -1
- package/dist/tsdoc-metadata.json +11 -0
- package/lib/directory.d.mts +902 -0
- package/lib/directory.d.mts.map +1 -0
- package/lib/{directory.js → directory.mjs} +736 -199
- package/lib/directory.mjs.map +1 -0
- package/lib/index.d.mts +9 -0
- package/lib/index.d.mts.map +1 -0
- package/lib/index.mjs +8 -0
- package/lib/index.mjs.map +1 -0
- package/lib/{interfaces.d.ts → interfaces.d.mts} +167 -184
- package/lib/interfaces.d.mts.map +1 -0
- package/lib/{interfaces.js → interfaces.mjs} +1 -1
- package/lib/interfaces.mjs.map +1 -0
- package/lib/internalInterfaces.d.mts +101 -0
- package/lib/internalInterfaces.d.mts.map +1 -0
- package/lib/internalInterfaces.mjs +6 -0
- package/lib/internalInterfaces.mjs.map +1 -0
- package/lib/{localValues.d.ts → localValues.d.mts} +18 -7
- package/lib/localValues.d.mts.map +1 -0
- package/lib/{localValues.js → localValues.mjs} +15 -3
- package/lib/localValues.mjs.map +1 -0
- package/lib/map-alpha.d.mts +982 -0
- package/lib/map-beta.d.mts +275 -0
- package/lib/map-public.d.mts +275 -0
- package/lib/map-untrimmed.d.mts +996 -0
- package/lib/{map.d.ts → map.d.mts} +11 -18
- package/lib/map.d.mts.map +1 -0
- package/lib/{map.js → map.mjs} +40 -35
- package/lib/map.mjs.map +1 -0
- package/lib/{mapKernel.d.ts → mapKernel.d.mts} +18 -49
- package/lib/mapKernel.d.mts.map +1 -0
- package/lib/{mapKernel.js → mapKernel.mjs} +116 -73
- package/lib/mapKernel.mjs.map +1 -0
- package/lib/{packageVersion.d.ts → packageVersion.d.mts} +1 -1
- package/lib/{packageVersion.d.ts.map → packageVersion.d.mts.map} +1 -1
- package/lib/{packageVersion.js → packageVersion.mjs} +2 -2
- package/lib/packageVersion.mjs.map +1 -0
- package/map.test-files.tar +0 -0
- package/package.json +105 -65
- package/prettier.config.cjs +8 -0
- package/src/directory.ts +2544 -1727
- package/src/index.ts +31 -5
- package/src/interfaces.ts +346 -345
- package/src/internalInterfaces.ts +119 -0
- package/src/localValues.ts +103 -96
- package/src/map.ts +362 -351
- package/src/mapKernel.ts +755 -722
- package/src/packageVersion.ts +1 -1
- package/tsc-multi.test.json +4 -0
- package/tsconfig.json +10 -15
- package/dist/directory.js.map +0 -1
- package/dist/index.js +0 -34
- package/dist/index.js.map +0 -1
- package/dist/interfaces.js.map +0 -1
- package/dist/localValues.js.map +0 -1
- package/dist/map.js.map +0 -1
- package/dist/mapKernel.js.map +0 -1
- package/dist/packageVersion.js.map +0 -1
- package/lib/directory.d.ts +0 -369
- package/lib/directory.d.ts.map +0 -1
- package/lib/directory.js.map +0 -1
- package/lib/index.d.ts +0 -20
- package/lib/index.d.ts.map +0 -1
- package/lib/index.js +0 -20
- package/lib/index.js.map +0 -1
- package/lib/interfaces.d.ts.map +0 -1
- package/lib/interfaces.js.map +0 -1
- package/lib/localValues.d.ts.map +0 -1
- package/lib/localValues.js.map +0 -1
- package/lib/map.d.ts.map +0 -1
- package/lib/map.js.map +0 -1
- package/lib/mapKernel.d.ts.map +0 -1
- package/lib/mapKernel.js.map +0 -1
- package/lib/packageVersion.js.map +0 -1
- package/tsconfig.esnext.json +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluidframework/map",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.0.0-dev-rc.1.0.0.224419",
|
|
4
4
|
"description": "Distributed map",
|
|
5
5
|
"homepage": "https://fluidframework.com",
|
|
6
6
|
"repository": {
|
|
@@ -11,44 +11,32 @@
|
|
|
11
11
|
"license": "MIT",
|
|
12
12
|
"author": "Microsoft and contributors",
|
|
13
13
|
"sideEffects": false,
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"build:genver": "gen-version",
|
|
26
|
-
"build:test": "tsc --project ./src/test/tsconfig.json",
|
|
27
|
-
"ci:build:docs": "api-extractor run --typescript-compiler-folder ../../../node_modules/typescript && copyfiles -u 1 ./_api-extractor-temp/* ../../../_api-extractor-temp/",
|
|
28
|
-
"clean": "rimraf dist lib *.tsbuildinfo *.build.log",
|
|
29
|
-
"eslint": "eslint --format stylish src",
|
|
30
|
-
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
31
|
-
"lint": "npm run eslint",
|
|
32
|
-
"lint:fix": "npm run eslint:fix",
|
|
33
|
-
"test": "npm run test:mocha",
|
|
34
|
-
"test:coverage": "nyc npm test -- --reporter xunit --reporter-option output=nyc/junit-report.xml",
|
|
35
|
-
"test:mocha": "mocha --ignore 'dist/test/types/*' --recursive dist/test -r node_modules/@fluidframework/mocha-test-setup --unhandled-rejections=strict",
|
|
36
|
-
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
37
|
-
"tsc": "tsc",
|
|
38
|
-
"typetests:gen": "flub generate typetests --generate --dir . --no-generateInName",
|
|
39
|
-
"typetests:prepare": "flub generate typetests --prepare --dir . --pin"
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./lib/index.d.mts",
|
|
18
|
+
"default": "./lib/index.mjs"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
40
25
|
},
|
|
41
|
-
"
|
|
26
|
+
"main": "dist/index.cjs",
|
|
27
|
+
"module": "lib/index.mjs",
|
|
28
|
+
"types": "dist/index.d.ts",
|
|
29
|
+
"c8": {
|
|
42
30
|
"all": true,
|
|
43
31
|
"cache-dir": "nyc/.cache",
|
|
44
32
|
"exclude": [
|
|
45
|
-
"src/test
|
|
46
|
-
"dist/test
|
|
33
|
+
"src/test/**/*.*ts",
|
|
34
|
+
"dist/test/**/*.*js"
|
|
47
35
|
],
|
|
48
36
|
"exclude-after-remap": false,
|
|
49
37
|
"include": [
|
|
50
|
-
"src
|
|
51
|
-
"dist
|
|
38
|
+
"src/**/*.*ts",
|
|
39
|
+
"dist/**/*.*js"
|
|
52
40
|
],
|
|
53
41
|
"report-dir": "nyc/report",
|
|
54
42
|
"reporter": [
|
|
@@ -59,44 +47,96 @@
|
|
|
59
47
|
"temp-directory": "nyc/.nyc_output"
|
|
60
48
|
},
|
|
61
49
|
"dependencies": {
|
|
62
|
-
"@
|
|
63
|
-
"@fluidframework/
|
|
64
|
-
"@fluidframework/
|
|
65
|
-
"@fluidframework/
|
|
66
|
-
"@fluidframework/
|
|
67
|
-
"@fluidframework/
|
|
68
|
-
"@fluidframework/protocol-definitions": "^
|
|
69
|
-
"@fluidframework/runtime-definitions": "1.
|
|
70
|
-
"@fluidframework/runtime-utils": "1.
|
|
71
|
-
"@fluidframework/shared-object-base": "1.
|
|
50
|
+
"@fluid-internal/client-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
51
|
+
"@fluidframework/core-interfaces": "2.0.0-dev-rc.1.0.0.224419",
|
|
52
|
+
"@fluidframework/core-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
53
|
+
"@fluidframework/datastore-definitions": "2.0.0-dev-rc.1.0.0.224419",
|
|
54
|
+
"@fluidframework/driver-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
55
|
+
"@fluidframework/merge-tree": "2.0.0-dev-rc.1.0.0.224419",
|
|
56
|
+
"@fluidframework/protocol-definitions": "^3.1.0-223007",
|
|
57
|
+
"@fluidframework/runtime-definitions": "2.0.0-dev-rc.1.0.0.224419",
|
|
58
|
+
"@fluidframework/runtime-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
59
|
+
"@fluidframework/shared-object-base": "2.0.0-dev-rc.1.0.0.224419",
|
|
60
|
+
"@fluidframework/telemetry-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
72
61
|
"path-browserify": "^1.0.1"
|
|
73
62
|
},
|
|
74
63
|
"devDependencies": {
|
|
75
|
-
"@
|
|
76
|
-
"@
|
|
77
|
-
"@
|
|
78
|
-
"@
|
|
79
|
-
"@
|
|
80
|
-
"@fluidframework/
|
|
81
|
-
"@fluidframework/
|
|
82
|
-
"@
|
|
83
|
-
"@
|
|
64
|
+
"@arethetypeswrong/cli": "^0.13.3",
|
|
65
|
+
"@fluid-private/stochastic-test-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
66
|
+
"@fluid-private/test-dds-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
67
|
+
"@fluid-tools/benchmark": "^0.48.0",
|
|
68
|
+
"@fluid-tools/build-cli": "0.29.0-222379",
|
|
69
|
+
"@fluidframework/build-common": "^2.0.3",
|
|
70
|
+
"@fluidframework/build-tools": "0.29.0-222379",
|
|
71
|
+
"@fluidframework/eslint-config-fluid": "^3.1.0",
|
|
72
|
+
"@fluidframework/map-previous": "npm:@fluidframework/map@2.0.0-internal.7.2.0",
|
|
73
|
+
"@fluidframework/mocha-test-setup": "2.0.0-dev-rc.1.0.0.224419",
|
|
74
|
+
"@fluidframework/test-runtime-utils": "2.0.0-dev-rc.1.0.0.224419",
|
|
75
|
+
"@microsoft/api-extractor": "^7.38.3",
|
|
84
76
|
"@types/mocha": "^9.1.1",
|
|
85
|
-
"@types/node": "^
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
77
|
+
"@types/node": "^18.19.0",
|
|
78
|
+
"@types/path-browserify": "^1.0.0",
|
|
79
|
+
"c8": "^7.7.1",
|
|
80
|
+
"copyfiles": "^2.4.1",
|
|
81
|
+
"cross-env": "^7.0.3",
|
|
82
|
+
"eslint": "~8.50.0",
|
|
83
|
+
"mocha": "^10.2.0",
|
|
84
|
+
"mocha-json-output-reporter": "^2.0.1",
|
|
85
|
+
"mocha-multi-reporters": "^1.5.1",
|
|
86
|
+
"moment": "^2.21.0",
|
|
87
|
+
"prettier": "~3.0.3",
|
|
88
|
+
"renamer": "^4.0.0",
|
|
89
|
+
"replace-in-file": "^6.3.5",
|
|
90
|
+
"rimraf": "^4.4.0",
|
|
91
|
+
"tsc-multi": "^1.1.0",
|
|
92
|
+
"typescript": "~5.1.6"
|
|
93
|
+
},
|
|
94
|
+
"fluidBuild": {
|
|
95
|
+
"tasks": {
|
|
96
|
+
"build:docs": {
|
|
97
|
+
"dependsOn": [
|
|
98
|
+
"...",
|
|
99
|
+
"api-extractor:commonjs",
|
|
100
|
+
"api-extractor:esnext"
|
|
101
|
+
],
|
|
102
|
+
"script": false
|
|
103
|
+
}
|
|
104
|
+
}
|
|
95
105
|
},
|
|
96
106
|
"typeValidation": {
|
|
97
|
-
"version": "1.4.0",
|
|
98
|
-
"baselineRange": "~1.3.0",
|
|
99
|
-
"baselineVersion": "1.3.1",
|
|
100
107
|
"broken": {}
|
|
108
|
+
},
|
|
109
|
+
"scripts": {
|
|
110
|
+
"api": "fluid-build . --task api",
|
|
111
|
+
"api-extractor:commonjs": "api-extractor run --local",
|
|
112
|
+
"api-extractor:esnext": "copyfiles -u 1 \"dist/**/*-@(alpha|beta|public|untrimmed).d.ts\" lib",
|
|
113
|
+
"build": "fluid-build . --task build",
|
|
114
|
+
"build:commonjs": "fluid-build . --task commonjs",
|
|
115
|
+
"build:compile": "fluid-build . --task compile",
|
|
116
|
+
"build:docs": "fluid-build . --task api",
|
|
117
|
+
"build:esnext": "tsc-multi --config ../../../common/build/build-common/tsc-multi.esm.json",
|
|
118
|
+
"build:genver": "gen-version",
|
|
119
|
+
"build:rename-types": "renamer \"lib/**\" -f .d.ts -r .d.mts --force",
|
|
120
|
+
"build:test": "tsc-multi --config ./tsc-multi.test.json",
|
|
121
|
+
"check:are-the-types-wrong": "attw --pack",
|
|
122
|
+
"check:release-tags": "api-extractor run --local --config ./api-extractor-lint.json",
|
|
123
|
+
"ci:build:docs": "api-extractor run",
|
|
124
|
+
"clean": "rimraf --glob dist lib \"**/*.tsbuildinfo\" \"**/*.build.log\" _api-extractor-temp nyc",
|
|
125
|
+
"eslint": "eslint --format stylish src",
|
|
126
|
+
"eslint:fix": "eslint --format stylish src --fix --fix-type problem,suggestion,layout",
|
|
127
|
+
"format": "npm run prettier:fix",
|
|
128
|
+
"lint": "npm run prettier && npm run check:release-tags && npm run eslint",
|
|
129
|
+
"lint:fix": "npm run prettier:fix && npm run eslint:fix",
|
|
130
|
+
"prettier": "prettier --check . --cache --ignore-path ../../../.prettierignore",
|
|
131
|
+
"prettier:fix": "prettier --write . --cache --ignore-path ../../../.prettierignore",
|
|
132
|
+
"test": "npm run test:mocha",
|
|
133
|
+
"test:coverage": "c8 npm test",
|
|
134
|
+
"test:memory": "mocha --config ./src/test/memory/.mocharc.cjs",
|
|
135
|
+
"test:memory-profiling:report": "mocha --config ./src/test/memory/.mocharc.cjs",
|
|
136
|
+
"test:mocha": "mocha --recursive \"dist/test/mocha/**/*.spec.cjs\" -r node_modules/@fluidframework/mocha-test-setup --exit",
|
|
137
|
+
"test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
|
|
138
|
+
"tsc": "tsc-multi --config ../../../common/build/build-common/tsc-multi.cjs.json",
|
|
139
|
+
"typetests:gen": "fluid-type-test-generator",
|
|
140
|
+
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize"
|
|
101
141
|
}
|
|
102
|
-
}
|
|
142
|
+
}
|