Skip to content
All news
ReleaseAI-written

Deno 2.9.8 verifies dynamic import permissions and updates hyper

Deno 2.9.8 verifies read permissions for dynamic imports, keeps operation contexts alive until isolate disposal, and updates hyper dependencies to cancel idle intervals.

Deno 2.9.8 is a patch release that tightens security checks and improves runtime stability. The update introduces stricter permission verification for dynamic imports and updates core dependencies to address specific edge cases in the fetch and TLS layers.

The runtime now verifies read permission before dynamically importing local files. This change ensures that the import() function respects the same file access controls as static imports, preventing unauthorized access to local resources. Additionally, the runtime keeps operation contexts alive until the JavaScript isolate is fully disposed.

Coverage collection now skips the V8 code cache to improve accuracy, ensuring that generated reports reflect actual execution rather than cached bytecode. In the Node compatibility layer, the assert API now accepts message functions and formatted arguments, aligning its interface with standard Node.js behavior. The Node mock API also sees a fix where mock.reset() now restores previous method implementations, correcting state management in test suites.

The fetch extension updates hyper-util to 0.1.21 and hyper to 1.11.1. These updates allow idle intervals to be cancelled when the connection pool is empty, reducing unnecessary background activity. On the security front, TLS handling now distrusts compromised eMudhra certificate authorities. The Node compatibility layer also aligns X.509v1 certificate handling with OpenSSL behavior, ensuring consistent validation across environments.

  • Shell completions for the deno run command in zsh now suggest script file paths.
  • The NAPI extension adds overflow checks for napi_create_dataview arguments.
  • NAPI callbacks now ignore their return value when an exception is pending.
  • The npm integration validates the names of linked packages.
  • The bundled rand crate is upgraded to a patched 0.9.x version.