Change8

@cloudflare/vite-plugin@1.36.0

📦 cloudflare-workersView on GitHub →
2 features🐛 1 fixes🔧 1 symbols

Summary

This release stabilizes the 'secrets' configuration property in Wrangler, adding validation for required secrets, and enhances security by preventing the Vite dev server from fetching credential files.

Migration Steps

  1. If using the 'secrets' configuration, ensure required secrets are listed under the 'required' key if you rely on validation or type generation based on this configuration.

✨ New Features

  • The 'secrets' configuration property in Wrangler config is stabilized, removing the experimental warning.
  • Required secrets defined in 'secrets' configuration are now validated during local development and deployment, and used as the source of truth for type generation.

🐛 Bug Fixes

  • The Cloudflare Vite plugin now denies fetching common credential files (like .npmrc, .yarnrc, .yarnrc.yml, and certificate/key files) during local development by adding them to 'server.fs.deny'.

Affected Symbols