Deno 2.5 Brings Support for Permission Sets and Test API Hooks
Briefly

Deno 2.5 Brings Support for Permission Sets and Test API Hooks
"Deno, the JavaScript runtime built by Ryan Dahl, has launched version 2.5, bringing improvements with the addition of Permission Sets, new testing hooks and improvements to Websockets. There is also a number of performance improvements as part of the release. Deno 2.5 upgrades the runtime environment to V8 14.0 and TypeScript 5.9.2, unlocking access to newer JavaScript language features, performance improvements, and better TypeScript support."
"In addition, Deno has enhanced its test API by adding setup and teardown hooks, giving test authors lifecycle control directly in Deno.test. There are four new hooks: Deno.test.beforeAll, Deno.test.beforeEach, Deno.test.afterAll and Deno.test.afterEach. One user on reddit showed excitement towards the new hooks available in the testing API, however a comment over on YouTube argues the addition of beforeAll is a late addition, adding it should have had feature parity with node sooner."
Deno 2.5 upgrades the runtime to V8 14.0 and TypeScript 5.9.2, enabling newer JavaScript features and improved TypeScript support and performance. The Temporal API receives changes aimed at removing the --unstable-temporal flag in future releases. Permission sets can be declared in deno.json and applied at runtime with the new --permission-set flag to provide granular, declarative permission control per command. The testing API now includes lifecycle hooks: Deno.test.beforeAll, beforeEach, afterAll and afterEach to support setup and teardown. An experimental bundle runtime API enables programmatic bundling with an -unstable-bundle flag. WebSocket header handling was improved to allow custom headers on connection.
Read at InfoQ
Unable to calculate read time
[
|
]