Introduced October 27, Deno 1.27 has language server and IDE enhancements, which includes taking gain of TypeScript 4.4 inlay hints. With this functionality, little snippets of facts are included to inline code, potentially building it additional readable and filling any gaps in details about the code.
Microsoft’s Visual Studio Code editor supports inlay hints, with the Deno VS Code extension supporting configuration solutions.
Deno also now capabilities enhanced registry completions in editors that support it, even though that functionality is not exclusively tied to the Deno 1.27 release.
Extra characteristics in Deno 1.27 involve:
- Deno will instantly pull in TypeScript kinds from NPM offers that distribute types.
- The Node-API, for building indigenous insert-ons in Node.js, is supported when made use of inside of NPM offers. Also, NPM package resolution and integrities now are saved when applying a lockfile.
navigator.languagenet API has been additional, providing a read-only home that returns a string representing the user’s desired language.
deno task, which executes tailor made commands unique to a codebase, a warning stating, “deno process is unstable and might drastically improve in the future” has been removed. Moving forward,
deno jobwill not considerably alter, even though some changes might be introduced for simplicity-of-use, such as new cross-system instructions or natural environment variables.
deno lintlinter has a new compact report format.
- APIs have been stabilized these as
readline/guaranteemodule has been applied, supplying a Guarantees-primarily based API for the
Deno consumers can upgrade to edition 1.27 by running:
Copyright © 2022 IDG Communications, Inc.