Repository navigation
@cloudflare/vite-plugin@2.0.0-rc.8
Pre-releaseMinor Changes
-
#16678
7d57524Thanks @mglewis! - Add local development support for/cdn-cgi/image/URL transformationsWhen
images.url_transformations(orimages.urlTransformationsincloudflare.config.ts) is enabled, Miniflare now handles/cdn-cgi/image/<options>/<source>requests locally before they reach your Worker. Requests return a 404 when URL transformations aren't enabled for the Worker, and a 403 when the source image isn't allowed byallowed_origins. Transforms use the same low-fidelity Sharp-backed mock ascf.imagefetches, so only resize, rotate, format conversion and a small set of options are applied.This is a change in behaviour: previously
/cdn-cgi/image/requests were passed through to the Worker during local development.Requests made through
SELFin@cloudflare/vitest-pluginbypass Miniflare's routing and are not intercepted.
Patch Changes
-
#17284
5b6e6bfThanks @dependabot! - UpdateDEFAULT_COMPAT_DATEto 2026-11-29Use the bundled workerd release's compatibility date by default when scaffolding new projects or when no compatibility date is configured.
-
#17211
b91cef9Thanks @jamesopstad! - Keep remote bindings working after a failed change to the account or API token is revertedPreviously, changing the account ID or API token to credentials that failed to start a remote session (for example, a malformed account ID) disposed the existing session first. Reverting the change then reused that disposed session, so remote bindings stayed offline until the development server was restarted. The existing session is now disposed only once its replacement is ready, so it keeps working if the new credentials fail to start a session.
-
#17244
a332568Thanks @dario-piotrowicz! - Explain where misplaced fields belong incloudflare.config.tsvalidation errorsErrors for top-level fields such as
accountIdplaced underworkernow explain that they belong at the top level. Worker fields placed at the top level also include a hint to move them insideworker. -
Updated dependencies [
7d57524,97bb683,5b6e6bf,5b6e6bf,7d57524,97bb683,a332568]:- miniflare@5.20261129.0-beta
- @cloudflare/config@1.0.0-rc.6
- @cloudflare/build-output-utils@1.0.0-rc.7
- @cloudflare/runtime-types@0.1.37