Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Miniflare multi-item get returns get order but production returns lexigrophical #393

Closed
vlovich opened this issue Sep 27, 2022 · 0 comments
Labels
behaviour mismatch Different behaviour to Workers runtime bug Something isn't working
Milestone

Comments

@vlovich
Copy link
Contributor

vlovich commented Sep 27, 2022

Durable Objects multi-item get returns in ascending lexicographical key order. However, Miniflare returns a Map in requested key order.

In other words:

const items = await storage.get(['c', 'b', 'a'])
console.error(JSON.stringify(Array.from(items.keys())))

will log different information between Miniflare and production.

@mrbbot mrbbot added bug Something isn't working behaviour mismatch Different behaviour to Workers runtime labels Sep 29, 2022
@mrbbot mrbbot added this to the 2.10.0 milestone Sep 29, 2022
@mrbbot mrbbot closed this as completed in ee675da Sep 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
behaviour mismatch Different behaviour to Workers runtime bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants