Deno 1.16 also adds an experimental API for listening to operating system signals. The new unstable API supersedes the existing
Deno.signals API, which also was unstable. Other new features and improvements in Deno 1.16:
- Since Deno 1.13, the
Error.causeproperty has been supported as a way to attach a cause to an error. This is useful for debugging errors that happen deep inside of an application, so developers can wrap these errors in useful information to help debug issues. In Deno 1.16, the
Error.causeproperty will be displayed in the console when an error is thrown or logged via a
console.log. This matches the behavior of Node.js 17.
fetchnow supports fetching file URLs.
- Handshaking TLS connections now can be done explicitly.
- The Web Streams API now supports
- The Deno.startTlscode API, for writing an SMTP driver, is now stable.
- The per-test permissions feature introduced in Deno 1.10 is now stable.
Copyright © 2021 IDG Communications, Inc.