@miniflare/durable-objects
Advanced tools
Comparing version 2.9.0 to 2.10.0
@@ -572,5 +572,5 @@ var __create = Object.create; | ||
} | ||
async function get(storage, keys, checkMaxKeys = true) { | ||
async function get(storage, keys, listing = false) { | ||
if (Array.isArray(keys)) { | ||
if (checkMaxKeys && keys.length > MAX_KEYS) { | ||
if (!listing && keys.length > MAX_KEYS) { | ||
throw new RangeError(`Maximum number of keys is ${MAX_KEYS}.`); | ||
@@ -585,2 +585,5 @@ } | ||
} | ||
if (!listing) { | ||
defined.sort(import_shared4.lexicographicCompare); | ||
} | ||
const res = new Map(); | ||
@@ -624,3 +627,3 @@ const values = await storage.getMany(defined); | ||
keyNames = keyNames.slice(0, originalLimit); | ||
return get(storage, keyNames, false); | ||
return get(storage, keyNames, true); | ||
} | ||
@@ -627,0 +630,0 @@ function normalisePutEntries(keyEntries, valueOptions) { |
{ | ||
"name": "@miniflare/durable-objects", | ||
"version": "2.9.0", | ||
"version": "2.10.0", | ||
"description": "Durable Objects module for Miniflare: a fun, full-featured, fully-local simulator for Cloudflare Workers", | ||
@@ -38,12 +38,12 @@ "keywords": [ | ||
"dependencies": { | ||
"@miniflare/core": "2.9.0", | ||
"@miniflare/shared": "2.9.0", | ||
"@miniflare/storage-memory": "2.9.0", | ||
"@miniflare/core": "2.10.0", | ||
"@miniflare/shared": "2.10.0", | ||
"@miniflare/storage-memory": "2.10.0", | ||
"undici": "5.9.1" | ||
}, | ||
"devDependencies": { | ||
"@miniflare/cache": "2.9.0", | ||
"@miniflare/runner-vm": "2.9.0", | ||
"@miniflare/shared-test": "2.9.0" | ||
"@miniflare/cache": "2.10.0", | ||
"@miniflare/runner-vm": "2.10.0", | ||
"@miniflare/shared-test": "2.10.0" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
75898
1395
+ Added@miniflare/core@2.10.0(transitive)
+ Added@miniflare/queues@2.10.0(transitive)
+ Added@miniflare/shared@2.10.0(transitive)
+ Added@miniflare/storage-memory@2.10.0(transitive)
+ Added@miniflare/watcher@2.10.0(transitive)
- Removed@miniflare/core@2.9.0(transitive)
- Removed@miniflare/queues@2.9.0(transitive)
- Removed@miniflare/shared@2.9.0(transitive)
- Removed@miniflare/storage-memory@2.9.0(transitive)
- Removed@miniflare/watcher@2.9.0(transitive)
Updated@miniflare/core@2.10.0
Updated@miniflare/shared@2.10.0