opfs-mock 2.6.0 → 2.6.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/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # opfs-mock
2
2
 
3
3
  In-memory implementation of the [origin private file system](https://developer.mozilla.org/en-US/docs/Web/API/File_System_API/Origin_private_file_system). Its main utility is for testing OPFS-dependent code in Node.js. It's tested
4
- on Node.js versions 20-25.
4
+ on all supported Node.js versions (`22.x`, `24.x`, `25.x`, `26.x`).
5
5
 
6
6
  ## Installation
7
7
 
package/dist/index.mjs CHANGED
@@ -283,7 +283,8 @@ const fileSystemDirectoryHandleFactory = (name, permissions, onRemove) => {
283
283
  },
284
284
  entries: async function* () {
285
285
  await checkPermission("read");
286
- yield* getJoinedMaps().entries();
286
+ const joinedMaps = getJoinedMaps();
287
+ for (const [n, h] of joinedMaps.entries()) yield [n, h];
287
288
  },
288
289
  keys: async function* () {
289
290
  await checkPermission("read");
@@ -291,7 +292,8 @@ const fileSystemDirectoryHandleFactory = (name, permissions, onRemove) => {
291
292
  },
292
293
  values: async function* () {
293
294
  await checkPermission("read");
294
- yield* getJoinedMaps().values();
295
+ const joinedMaps = getJoinedMaps();
296
+ for (const h of joinedMaps.values()) yield h;
295
297
  },
296
298
  resolve: async function(possibleDescendant) {
297
299
  await checkPermission("read");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opfs-mock",
3
- "version": "2.6.0",
3
+ "version": "2.6.1",
4
4
  "type": "module",
5
5
  "description": "Mock all origin private file system APIs for your Jest or Vitest tests",
6
6
  "author": "Jure Rotar <hello@jurerotar.com>",
@@ -60,14 +60,14 @@
60
60
  "release": "npm publish --access public"
61
61
  },
62
62
  "devDependencies": {
63
- "@biomejs/biome": "2.4.6",
64
- "@typescript/native-preview": "7.0.0-dev.20260309.1",
65
- "@vitest/coverage-v8": "4.0.18",
63
+ "@biomejs/biome": "2.4.14",
64
+ "@typescript/native-preview": "7.0.0-dev.20260505.1",
65
+ "@vitest/coverage-v8": "4.1.5",
66
66
  "@web-std/file": "3.0.3",
67
- "happy-dom": "20.8.3",
68
- "jsdom": "28.1.0",
69
- "tsdown": "0.21.1",
70
- "typescript": "5.9.3",
71
- "vitest": "4.0.18"
67
+ "happy-dom": "20.9.0",
68
+ "jsdom": "29.1.1",
69
+ "tsdown": "0.21.10",
70
+ "typescript": "6.0.3",
71
+ "vitest": "4.1.5"
72
72
  }
73
73
  }