#12156 abd2b71 Thanks @irvinebroque! - Fix compatibility date detection failing when creating new projects
Previously, getLocalWorkerdCompatibilityDate() would fail to find the locally installed miniflare and workerd packages, causing npm create cloudflare@latest to 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 for node_modules in the parent directory rather than the intended directory. This is now fixed by appending package.json to the path, which ensures module resolution starts from the correct location.
Fixes #12155
#11969 9acb24b Thanks @emily-shen! - Validate environments for unexpected fields in Wrangler config
Previously, this check only applied to the top-level environment.
Fetched March 31, 2026