Patch Changes
-
#12156
abd2b71Thanks @irvinebroque! - Fix compatibility date detection failing when creating new projectsPreviously,
getLocalWorkerdCompatibilityDate()would fail to find the locally installedminiflareandworkerdpackages, causingnpm create cloudflare@latestto fall back to a hardcoded date (2025-09-27) instead of using the current workerd compatibility date.The issue was that
module.createRequire()was called with a directory path. Node.js treats this as a filename at that location and looks fornode_modulesin the parent directory rather than the intended directory. This is now fixed by appendingpackage.jsonto the path, which ensures module resolution starts from the correct location.Fixes #12155
-
#11969
9acb24bThanks @emily-shen! - Validate environments for unexpected fields in Wrangler configPreviously, this check only applied to the top-level environment.