Changelog

denoland/deno · · 3 commits

Node require compat tightened; canary test fixed

Deno’s Node compatibility got stricter around require.resolve, while the canary upgrade spec was made dynamic and Windows-safe.

Node require.resolve now matches Node more closely (bartlomieju2318a02)

Module._resolveLookupPaths now returns null for built-ins, require.resolve/.paths validate argument types, and options.paths entries are checked before use. The patch also fixes a panic with empty parent filenames and adjusts resolution behavior for node:unknown and ./relative requests, improving compatibility and reducing edge-case crashes.

Other misc changes

  • Fixed the specific canary upgrade test on Windows by using the .exe suffix and widening the platform gate. (bartlomiejuf0e5513)
  • Made the specific canary upgrade test fetch the latest canary hash dynamically and updated its golden outputs. (bartlomiejucfae922)