@fluidframework/driver-web-cache 2.100.0 → 2.101.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/.mocharc.cjs ADDED
@@ -0,0 +1,13 @@
1
+ /*!
2
+ * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
+ * Licensed under the MIT License.
4
+ */
5
+
6
+ "use strict";
7
+
8
+ const getFluidTestMochaConfig = require("@fluid-internal/mocha-test-setup/mocharc-common");
9
+
10
+ // Tests use fake-indexeddb v3 (CJS-only) and require browser-like globals.
11
+ // setup.cjs installs window/self aliases and fake-indexeddb before tests run.
12
+ const config = getFluidTestMochaConfig(__dirname, [`${__dirname}/src/test/setup.cjs`]);
13
+ module.exports = config;
package/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @fluidframework/driver-web-cache
2
2
 
3
+ ## 2.101.0
4
+
5
+ Dependency updates only.
6
+
3
7
  ## 2.100.0
4
8
 
5
9
  ### Minor Changes
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/driver-web-cache";
8
- export declare const pkgVersion = "2.100.0";
8
+ export declare const pkgVersion = "2.101.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -8,5 +8,5 @@
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
9
  exports.pkgVersion = exports.pkgName = void 0;
10
10
  exports.pkgName = "@fluidframework/driver-web-cache";
11
- exports.pkgVersion = "2.100.0";
11
+ exports.pkgVersion = "2.101.0";
12
12
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,kCAAkC,CAAC;AAC7C,QAAA,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/driver-web-cache\";\nexport const pkgVersion = \"2.100.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEU,QAAA,OAAO,GAAG,kCAAkC,CAAC;AAC7C,QAAA,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/driver-web-cache\";\nexport const pkgVersion = \"2.101.0\";\n"]}
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export declare const pkgName = "@fluidframework/driver-web-cache";
8
- export declare const pkgVersion = "2.100.0";
8
+ export declare const pkgVersion = "2.101.0";
9
9
  //# sourceMappingURL=packageVersion.d.ts.map
@@ -5,5 +5,5 @@
5
5
  * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY
6
6
  */
7
7
  export const pkgName = "@fluidframework/driver-web-cache";
8
- export const pkgVersion = "2.100.0";
8
+ export const pkgVersion = "2.101.0";
9
9
  //# sourceMappingURL=packageVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/driver-web-cache\";\nexport const pkgVersion = \"2.100.0\";\n"]}
1
+ {"version":3,"file":"packageVersion.js","sourceRoot":"","sources":["../src/packageVersion.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,CAAC,MAAM,OAAO,GAAG,kCAAkC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,SAAS,CAAC","sourcesContent":["/*!\n * Copyright (c) Microsoft Corporation and contributors. All rights reserved.\n * Licensed under the MIT License.\n *\n * THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY\n */\n\nexport const pkgName = \"@fluidframework/driver-web-cache\";\nexport const pkgVersion = \"2.101.0\";\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluidframework/driver-web-cache",
3
- "version": "2.100.0",
3
+ "version": "2.101.0",
4
4
  "description": "Implementation of the driver caching API for a web browser",
5
5
  "homepage": "https://fluidframework.com",
6
6
  "repository": {
@@ -47,31 +47,35 @@
47
47
  "main": "lib/index.js",
48
48
  "types": "lib/public.d.ts",
49
49
  "dependencies": {
50
- "@fluidframework/core-interfaces": "~2.100.0",
51
- "@fluidframework/core-utils": "~2.100.0",
52
- "@fluidframework/driver-definitions": "~2.100.0",
53
- "@fluidframework/driver-utils": "~2.100.0",
54
- "@fluidframework/telemetry-utils": "~2.100.0",
50
+ "@fluidframework/core-interfaces": "~2.101.0",
51
+ "@fluidframework/core-utils": "~2.101.0",
52
+ "@fluidframework/driver-definitions": "~2.101.0",
53
+ "@fluidframework/driver-utils": "~2.101.0",
54
+ "@fluidframework/telemetry-utils": "~2.101.0",
55
55
  "idb": "^6.1.2"
56
56
  },
57
57
  "devDependencies": {
58
58
  "@arethetypeswrong/cli": "^0.18.2",
59
59
  "@biomejs/biome": "~2.4.5",
60
+ "@fluid-internal/mocha-test-setup": "~2.101.0",
60
61
  "@fluid-tools/build-cli": "^0.65.0",
61
62
  "@fluidframework/build-common": "^2.0.3",
62
63
  "@fluidframework/build-tools": "^0.65.0",
63
64
  "@fluidframework/driver-web-cache-previous": "npm:@fluidframework/driver-web-cache@2.92.0",
64
65
  "@fluidframework/eslint-config-fluid": "^9.0.0",
65
66
  "@microsoft/api-extractor": "7.58.1",
66
- "@types/jest": "29.5.3",
67
+ "@types/mocha": "^10.0.10",
67
68
  "@types/node": "~22.19.17",
69
+ "@types/sinon": "^17.0.3",
68
70
  "concurrently": "^9.2.1",
69
71
  "copyfiles": "^2.4.1",
72
+ "cross-env": "^10.1.0",
70
73
  "eslint": "~9.39.1",
71
74
  "fake-indexeddb": "3.1.4",
72
- "jest": "^29.6.2",
73
75
  "jiti": "^2.6.1",
76
+ "mocha": "^11.7.5",
74
77
  "rimraf": "^6.1.3",
78
+ "sinon": "^18.0.1",
75
79
  "typescript": "~5.4.5"
76
80
  },
77
81
  "typeValidation": {
@@ -114,8 +118,9 @@
114
118
  "format:biome": "biome check . --write",
115
119
  "lint": "fluid-build . --task lint",
116
120
  "lint:fix": "fluid-build . --task eslint:fix --task format",
117
- "test": "npm run test:jest",
118
- "test:jest": "jest --ci",
121
+ "test": "npm run test:mocha",
122
+ "test:mocha": "cross-env FLUID_TEST_MODULE_SYSTEM=CJS mocha",
123
+ "test:mocha:verbose": "cross-env FLUID_TEST_VERBOSE=1 npm run test:mocha",
119
124
  "tsc": "fluid-tsc commonjs --project ./tsconfig.cjs.json && copyfiles -f ../../../common/build/build-common/src/cjs/package.json ./dist",
120
125
  "typetests:gen": "flub generate typetests --dir . -v"
121
126
  }
@@ -6,4 +6,4 @@
6
6
  */
7
7
 
8
8
  export const pkgName = "@fluidframework/driver-web-cache";
9
- export const pkgVersion = "2.100.0";
9
+ export const pkgVersion = "2.101.0";
package/jest.config.cjs DELETED
@@ -1,22 +0,0 @@
1
- /*!
2
- * Copyright (c) Microsoft Corporation and contributors. All rights reserved.
3
- * Licensed under the MIT License.
4
- */
5
-
6
- module.exports = {
7
- roots: ["<rootDir>/dist"],
8
- testEnvironment: "jsdom",
9
- testMatch: ["**/?(*.)+(spec|test).*js"],
10
- testPathIgnorePatterns: ["/node_modules/"],
11
- verbose: true,
12
- reporters: [
13
- "default",
14
- [
15
- "jest-junit",
16
- {
17
- outputDirectory: "nyc",
18
- outputName: "jest-junit-report.xml",
19
- },
20
- ],
21
- ],
22
- };