Patch Changes
-
#5026
04584722
Thanks @dario-piotrowicz! - fix: make suregetPlatformProxy
produces a production-likecaches
objectmake sure that the
caches
object returned togetPlatformProxy
behaves
in the same manner as the one present in production (where calling unsupported
methods throws a helpful error message)note: make sure that the unsupported methods are however not included in the
CacheStorage
type definition -
#5030
55ea0721
Thanks @mrbbot! - fix: don't suggest reporting user errors to GitHubWrangler has two different types of errors: internal errors caused by something going wrong, and user errors caused by an invalid configuration. Previously, we would encourage users to submit bug reports for user errors, even though there's nothing we can do to fix them. This change ensures we only suggest this for internal errors.
-
#4900
3389f2e9
Thanks @OilyLime! - feature: allow hyperdrive users to set local connection string as environment variableWrangler dev now supports the HYPERDRIVE_LOCAL_CONNECTION_STRING environmental variable for connecting to a local database instance when testing Hyperdrive in local development. This environmental variable takes precedence over the localConnectionString set in wrangler.toml.
-
#5033
b1ace91b
Thanks @mrbbot! - fix: wait for actual port before opening browser with--port=0
Previously, running
wrangler dev --remote --port=0
and then immediately pressingb
would openlocalhost:0
in your default browser. This change queues up opening the browser until Wrangler knows the port the dev server was started on. -
#5026
04584722
Thanks @dario-piotrowicz! - fix: relax thegetPlatformProxy
's' cache request/response typesprior to these changes the caches obtained from
getPlatformProxy
would useunknown
s as their types, this proved too restrictive
and incompatible with the equivalent@cloudflare/workers-types
types, we decided to useany
s instead to allow for more flexibility
whilst also making the type compatible with workers-types -
Updated dependencies [
7723ac17
,027f9719
,027f9719
,027f9719
,027f9719
,027f9719
,027f9719
]:- miniflare@3.20240129.3