cloudflare-workers-svelte
cloudflare-workers-svelte copied to clipboard
chore(deps-dev): bump miniflare from 2.0.0-rc.5 to 2.12.1
Bumps miniflare from 2.0.0-rc.5 to 2.12.1.
Release notes
Sourced from miniflare's releases.
v2.12.1
⚠️ Security Update
Fixes
- Bump
undicito5.20.0, addressing GHSA-5r9g-qh6m-jxff and GHSA-r6ch-mqf9-qc9w. Thanks@WalshyDevand@Cherryfor the PR.- Ensure global uniqueness of Durable Objects across mounts. Previously, it was possible to have multiple Durable Object instances with the same ID if they were created from different mounts. Closes #461, thanks
@Finistere.- Return a
R2MultipartUploadinstead of aPromise<R2MultipartUpload>fromR2Bucket#resumeMultipartUpload(). Thanks@notorcafor the PR.- Copy known-lengths from
FixedLengthStreams andRequest/Responsebodystreams when callingReadableStream#tee(). Closes [issue #506](cloudflare/miniflare#506), thanks@notorca.v2.11.0
Features
- Add support for dead-letter queues. Thanks
@jbw1991for the PR.- Add
getMiniflareDurableObjectIds()global function to Miniflare's Jest/Vitest environments for listing active Durable Objects. CallinggetMiniflareDurableObjectIds("TEST_OBJECT")will return aPromisethat resolves to an array of activeDurableObjectIds for theTEST_OBJECTnamespace. Closes [issue #384](cloudflare/miniflare#384), thanks@DaniFoldifor the PR.Fixes
- Strip quotes from R2
onlyIfheader values. Closes [issue #402](cloudflare/miniflare#402), thanks@vincentbernatand@CraigglesOfor the PR.- Disable
r2Persistoption in Miniflare's Jest/Vitest environments. Thanks@hanfordfor the PR.v2.10.0
Features
- Add support for
TextEncoderStream/TextDecoderStream. Closes [issue #389](cloudflare/miniflare#389), thanks@vlovich.Fixes
- Fix reporting of server port when using
--port=0. Closes [issue #381](cloudflare/miniflare#381), thanks@GregBrimblefor the PR.- Return Durable Object
get()s in lexicographic order. Closes [issue #393](cloudflare/miniflare#393), thanks@vlovich.- Add missing
@miniflare/r2dependency to@miniflare/shared-test-environmentpackage. Thanks@askoufisfor the PR.- Return correct
Content-LengthfromCache#match()partial responses. Closes [issue #406](cloudflare/miniflare#406). Thanks@notorcafor the PR.- Fix links in Vitest test environment docs. Thanks
@eadmundofor the PR.v2.9.0
Features
💾 Add support for D1. Closes [issue #277](cloudflare/miniflare#277), thanks
@geelenfor the PR. Docs coming soon™... 👀🚪 Add
getMiniflareDurableObjectState()andrunWithMiniflareDurableObjectGates()functions to the Jest/Vitest environments. This allows you to construct and call instance methods of Durable Objects directly, without having to fetch through a stub. Closes [issue #157](cloudflare/miniflare#157), thanks@jorroll.// Durable Object class, would probably come from an import class Counter { constructor(state) { this.storage = state.storage; } async fetch() { const count = ((await this.storage.get("count")) ?? 0) + 1; void this.storage.put("count", count); return new Response(String(count));
... (truncated)
Changelog
Sourced from miniflare's changelog.
2.12.1
⚠️ Security Update
Fixes
- Bump
undicito5.20.0, addressing GHSA-5r9g-qh6m-jxff and GHSA-r6ch-mqf9-qc9w. Thanks@WalshyDevand@Cherryfor the PR.- Ensure global uniqueness of Durable Objects across mounts. Previously, it was possible to have multiple Durable Object instances with the same ID if they were created from different mounts. Closes #461, thanks
@Finistere.- Return a
R2MultipartUploadinstead of aPromise<R2MultipartUpload>fromR2Bucket#resumeMultipartUpload(). Thanks@notorcafor the PR.- Copy known-lengths from
FixedLengthStreams andRequest/Responsebodystreams when callingReadableStream#tee(). Closes [issue #506](cloudflare/miniflare#506), thanks@notorca.2.12.0
Features
- Add support for R2 multipart upload bindings.
- Add support for dynamic
import()s. Closes [issue #456](cloudflare/miniflare#456), thanks@calebmer.- Add support for the
new WebSocket()constructor. This is an alternative standard API tofetch-with-Upgrade: websocketfor creating WebSocket clients.- Add support for the
nodejs_compatcompatibility flag, specifically thenode:assert,node:async_hooks,node:buffer,node:events, andnode:utilmodules. For now, theexperimentalcompatibility flag must also be enabled to usenode:assert,node:bufferornode:events. Thanks@GregBrimblefor the PR.- Extract out types for test environment global helper functions. Add either
jest-environment-miniflare/globalsorvitest-environment-miniflare/globalsto yourtsconfig.json'stypesarray to include them. Closes [issue #94](cloudflare/miniflare#94), thanks@ryan-mars.
... (truncated)
Commits
3dfd60bBump versions to2.12.1, updateCHANGELOG.md(#514)c9acef1Bump undici (#510)f671590Bump versions to2.12.0, updateCHANGELOG.mdand docs (#502)f3f1ae9Bumpundicito5.11.0. closes #35107f3122Bump versions to2.11.0, updateCHANGELOG.mdand docsb55ab40Bump versions to2.10.0, updateCHANGELOG.mdand docs9265fa4Fix port 0 logging (#382)974c7c2Bump versions to2.9.0, updateCHANGELOG.mdand docs6bace6bD1 beta support (#329)2ca8115Add persistent history to REPL, closes #304- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot mergewill merge this PR after your CI passes on it@dependabot squash and mergewill squash and merge this PR after your CI passes on it@dependabot cancel mergewill cancel a previously requested merge and block automerging@dependabot reopenwill reopen this PR if it is closed@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)