Skip to content

chore(deps): update devdependency miniflare to v4 #52

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Mar 13, 2025

This PR contains the following updates:

Package Change Age Confidence
miniflare (source) ^3.20250718.1 -> ^4.20250813.1 age confidence

Release Notes

cloudflare/workers-sdk (miniflare)

v4.20250813.1

Compare Source

Minor Changes
  • #​10349 d54d8b7 Thanks @​edmundhung! - feat: add unsafeHandleDevRegistryUpdate callback option to Miniflare

    Adds a new option to Miniflare that allows users to register a callback function that gets invoked whenever the dev registry is updated with changes to external services that the current Worker depends on.

    This callback is useful for scenarios where you need to react to changes in bound services, such as updating bindings tables or reloading configurations when dependent Workers are added, removed, or modified in the dev registry.

    const mf = new Miniflare({
    	// ... other options
    	unsafeHandleDevRegistryUpdate(registry) {
    		console.log("Dev registry updated:", registry);
    		// Handle registry updates (e.g., reprint bindings, reload config)
    	},
    });
Patch Changes

v4.20250813.0

Compare Source

Patch Changes

v4.20250803.1

Compare Source

Patch Changes
  • #​10273 1479fd0 Thanks @​edmundhung! - fix: support WebSocket proxying to workerd

    The dev registry proxy server now correctly handles WebSocket upgrade requests and
    tunnels bidirectional frames between the workerd processes. Previously,
    handshakes would fail due to missing upgrade logic.

  • #​10281 05c5b28 Thanks @​edmundhung! - fix: enable HTTPS support when proxying to workerd

    The Miniflare dev-registry proxy previously assumed workerd would always use HTTP,
    so enabling https on miniflare might caused connection failures in some setups.

    This ensures proxying works whether the option is enabled or not.

  • #​10142 e3d9703 Thanks @​edmundhung! - fix: support mf.getBindings() when dev registry is enabled

    Fixes a deadlock when using bindings from mf.getBindings() with the dev registry enabled. The deadlock happened because the runtime attempted to resolve a worker address via the loopback server, which was blocked by the Node.js thread waiting on the same runtime.

    Address lookup has been moved to a proxy running in a worker thread to avoid blocking the main thread.

v4.20250803.0

Compare Source

Minor Changes
  • #​10004 b4d1373 Thanks @​dario-piotrowicz! - add structuredWorkerdLogs option

    add a new top-level option named structuredWorkerdLogs that makes workerd print to stdout structured logs (stringified jsons of the following shape: { timestamp: number, level: string, message: string }) instead of printing logs to stdout and stderr

  • #​9556 8ba7736 Thanks @​edmundhung! - Added a serviceName option to unsafeDirectSockets

    This allows registering the current worker in the dev registry under its own name, but routing to a different service.

Patch Changes

v4.20250730.0

Compare Source

Patch Changes

v4.20250726.0

Compare Source

Patch Changes

v4.20250712.2

Compare Source

Minor Changes

v4.20250712.1

Compare Source

Patch Changes
  • #​9866 7e5585d Thanks @​invisal! - Fix D1 SQL dump generation: escape identifiers and handle SQLite's dynamic typing

    Escape column and table names to prevent SQL syntax errors.
    Escape values based on their runtime type to support SQLite's flexible typing.

v4.20250712.0

Compare Source

Minor Changes
Patch Changes
  • #​9854 ac08e68 Thanks @​dario-piotrowicz! - fix incorrect bindings remote deduplication logic

    when bindings are registered deduplication logic is applied to make sure that the same binding is not unnecessarily registered multiple times, the changes here fix the fact that such deduplication logic doesn't currently take into account whether bindings are used or not in remote mode (which is problematic when the same binding is used both in remote and local mode)

  • #​9912 3bb69fa Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250709.0 1.20250710.0
    @​cloudflare/workers-types ^4.20250709.0 ^4.20250710.0
  • #​9930 274a826 Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250710.0 1.20250711.0
    @​cloudflare/workers-types ^4.20250710.0 ^4.20250711.0
  • #​9950 77d1cb2 Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250711.0 1.20250712.0
    @​cloudflare/workers-types ^4.20250711.0 ^4.20250712.0
  • #​9954 bf4c9ab Thanks @​penalosa! - Support Images binding in getPlatformProxy()

  • #​9847 14ce577 Thanks @​penalosa! - Upgrade Undici

v4.20250709.0

Compare Source

Patch Changes

v4.20250705.0

Compare Source

Minor Changes
Patch Changes

v4.20250617.5

Compare Source

Minor Changes
  • #​9535 56dc5c4 Thanks @​penalosa! - In 2023 we announced breakpoint debugging support for Workers, which meant that you could easily debug your Worker code in Wrangler's built-in devtools (accessible via the [d] hotkey) as well as multiple other devtools clients, including VSCode. For most developers, breakpoint debugging via VSCode is the most natural flow, but until now it's required manually configuring a launch.json file, running wrangler dev, and connecting via VSCode's built-in debugger.

    Now, using VSCode's built-in JavaScript Debug Terminals, there are just two steps: open a JS debug terminal and run wrangler dev (or vite dev). VSCode will automatically connect to your running Worker (even if you're running multiple Workers at once!) and start a debugging session.

v4.20250617.4

Compare Source

Patch Changes

v4.20250617.3

Compare Source

Minor Changes
  • #​9640 bfb791e Thanks @​emily-shen! - Add ability to dump workerd config into a file for debugging.

    You can enable this by setting MINIFLARE_WORKERD_CONFIG_DEBUG to a file path where you want the config to be written.

Patch Changes

v4.20250617.2

Compare Source

Patch Changes

v4.20250617.1

Compare Source

Patch Changes

v4.20250617.0

Compare Source

Patch Changes
  • #​9591 828b7df Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250612.0 1.20250617.0
    @​cloudflare/workers-types ^4.20250612.0 ^4.20250617.0
  • #​9576 2671e77 Thanks @​vicb! - Add core local dev functionality for containers.
    Adds a new WRANGLER_DOCKER_HOST env var to customise what socket to connect to.

v4.20250612.0

Compare Source

Patch Changes

v4.20250604.1

Compare Source

Minor Changes
Patch Changes

v4.20250604.0

Compare Source

Patch Changes

v4.20250525.1

Compare Source

Minor Changes
  • #​9173 fac2f9d Thanks @​edmundhung! - feat: export getDefaultDevRegistryPath() utility

    This provides a default XDG app-path for the Dev Registry, which can be used to set the unsafeDevRegistryPath option in Miniflare and will be used by both Wrangler and @​cloudflare/vite-plugin.

  • #​9313 92719a5 Thanks @​edmundhung! - feat: add Dev Registry support

    This change introduces two new options to support cross-process service bindings, durable objects and tail consumers via a file-system based registry, with backward compatibility to Wrangler’s implementation:

    • unsafeDevRegistryPath (string): Filesystem path to the Dev Registry directory.
    • unsafeDevRegistryDurableObjectProxy (boolean): When enabled, exposes internal Durable Objects to other local dev sessions and allows Workers to connect to external Durable Objects.

    Example usage:

    import { Miniflare } from "miniflare";
    
    const mf = new Miniflare({
    	scriptPath: "./dist/worker.js",
    	unsafeDevRegistryPath: "/registry",
    	unsafeDevRegistryDurableObjectProxy: true,
    	// ...other options
    });
Patch Changes

v4.20250525.0

Compare Source

Minor Changes
  • #​9387 e39a45f Thanks @​jamesopstad! - Add logReady method to Miniflare Log class. This makes it possible to override the messages printed on server start.

  • #​9376 fdae3f7 Thanks @​jamesopstad! - Add support for Node.js style custom handlers for service bindings and outbound services. This makes it easier to integrate Miniflare with existing Node.js middleware and libraries as req and res objects can be used directly.

    new Miniflare({
    	serviceBindings: {
    		CUSTOM: {
    			node: (req, res) => {
    				res.end(`Hello world`);
    			},
    		},
    	},
    });
Patch Changes

v4.20250523.0

Compare Source

Minor Changes
  • #​9330 34c71ce Thanks @​edmundhung! - Add a new defaultPersistRoot option to control where plugins persist data when no path is provided.

    // Before this change / No `defaultPersistRoot`
    new Miniflare({
    	kvPersist: undefined, // → "/(tmp)/kv"
    	d1Persist: true, // → "$PWD/.mf/d1"
    	r2Persist: false, // → "/(tmp)/r2"
    	cachePersist: "/my-cache", // → "/my-cache"
    });
    
    // With `defaultPersistRoot`
    new Miniflare({
    	defaultPersistRoot: "/storage",
    	kvPersist: undefined, // → "/storage/kv"
    	d1Persist: true, // → "/storage/d1"
    	r2Persist: false, // → "/(tmp)/r2"
    	cachePersist: "/my-cache", // → "/my-cache"
    });
Patch Changes
  • #​9184 f7c82a4 Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250508.0 1.20250520.0
    @​cloudflare/workers-types ^4.20250508.0 ^4.20250520.0
  • #​9346 7ddd865 Thanks @​dependabot! - chore: update dependencies of "miniflare" package

    The following dependency versions have been updated:

    Dependency From To
    workerd 1.20250520.0 1.20250523.0
    @​cloudflare/workers-types ^4.20250520.0 ^4.20250523.0
  • #​9335 6479fc5 Thanks @​penalosa! - Redesign wrangler dev to more clearly present information and have a bit of a glow up ✨
    Screenshot 2025-05-22 at 01 11 43

  • #​9106 e5ae13a Thanks @​edmundhung! - fix: decouple KV plugin from secrets store plugin

    The KV plugin previously configured both KV namespace and secrets store bindings with the same service name but different persistence paths, causing conflicts when both were defined. This change copies the KV binding implementation into the secrets store plugin and customizes its service name to prevent collisions.

v4.20250508.3

Compare Source

Patch Changes

v4.20250508.2

Compare Source

Patch Changes

v4.20250508.1

Compare Source

Patch Changes
  • #​9246 d033a7d Thanks @​edmundhung! - fix: strip CF-Connecting-IP header within fetch

    In v4.15.0, Miniflare began stripping the CF-Connecting-IP header via a global outbound service, which led to a TCP connection regression due to a bug in Workerd. This PR patches the fetch API to strip the header during local wrangler dev sessions as a temporary workaround until the underlying issue is resolved.

v4.20250508.0

Compare Source

Patch Changes

v4.20250507.0

Compare Source

Patch Changes

v4.20250428.1

Compare Source

Patch Changes

v4.20250428.0

Compare Source

Minor Changes
Patch Changes

v4.20250424.1

Compare Source

Patch Changes

v4.20250424.0

Compare Source

Patch Changes

v4.20250422.0

Compare Source

Minor Changes
  • #​8640 5ce70bd Thanks @​kentonv! - Add support for defining props on a Service binding.

    In your configuration file, you can define a service binding with props:

    {
    	"services": [
    		{
    			"binding": "MY_SERVICE",
    			"service": "some-worker",
    			"props": { "foo": 123, "bar": "value" }
    		}
    	]
    }

    These can then be accessed by the callee:

    import { WorkerEntrypoint } from "cloudflare:workers";
    
    export default class extends WorkerEntrypoint {
    	fetch() {
    		return new Response(JSON.stringify(this.ctx.props));
    	}
    }
Patch Changes

v4.20250417.0

Compare Source

Minor Changes
Patch Changes

v4.20250416.0

Compare Source

Patch Changes

v4.20250410.1

Compare Source

Minor Changes

v4.20250410.0

Compare Source

Patch Changes

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from e4d9d3b to c738057 Compare March 27, 2025 20:42
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 5 times, most recently from 7f8b5e9 to 2a70a31 Compare April 10, 2025 21:07
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from f1b19d2 to 125ea91 Compare April 17, 2025 08:46
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 4 times, most recently from 7b16240 to 8cd8d53 Compare April 25, 2025 11:03
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from 22b440c to dafb6b1 Compare May 1, 2025 20:31
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from 5dbc1d3 to 9e2964f Compare May 13, 2025 15:46
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from c9d11ff to 8856e94 Compare May 20, 2025 10:12
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from 8fb10be to 1fb9787 Compare June 3, 2025 13:04
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from 0d6a66d to 63cd292 Compare June 12, 2025 18:32
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from 1422de5 to 7e0f7bf Compare June 18, 2025 18:09
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from 3e37d56 to 71d0093 Compare June 24, 2025 18:38
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from d9f0153 to 98c83f3 Compare July 8, 2025 15:33
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from 58e15ef to 97d7f10 Compare July 16, 2025 18:53
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from 055b198 to bb43eb8 Compare July 29, 2025 13:09
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 2 times, most recently from b6c10f6 to 2e18004 Compare August 5, 2025 19:09
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch 3 times, most recently from 28ba3ce to 3f3754e Compare August 13, 2025 13:14
@renovate renovate bot force-pushed the renovate/miniflare-4.x branch from 3f3754e to 7316863 Compare August 14, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants