Declared October 27, Deno 1.27 has language server and IDE enhancements, including getting edge of TypeScript 4.4 inlay hints. With this functionality, compact snippets of info are added to inline code, probably generating it extra readable and filling any gaps in info about the code.
Microsoft’s Visible Studio Code editor supports inlay hints, with the Deno VS Code extension supporting configuration choices.
Deno also now characteristics enhanced registry completions in editors that assistance it, whilst that capability is not especially tied to the Deno 1.27 launch.
Additional attributes in Deno 1.27 include:
- Deno will instantly pull in TypeScript types from NPM packages that distribute kinds.
- The Node-API, for creating native include-ons in Node.js, is supported when utilised in just NPM offers. Also, NPM bundle resolution and integrities now are stored when working with a lockfile.
navigator.languageweb API has been included, supplying a go through-only residence that returns a string representing the user’s preferred language.
deno endeavor, which executes tailor made instructions unique to a codebase, a warning stating, “deno task is unstable and may perhaps substantially improve in the future” has been eliminated. Relocating ahead,
deno taskwill not considerably transform, despite the fact that some changes could be launched for ease-of-use, these kinds of as new cross-system instructions or atmosphere variables.
deno lintlinter has a new compact report structure.
- APIs have been stabilized such as
readline/guaranteemodule has been carried out, providing a Promises-based mostly API for the
Deno customers can enhance to model 1.27 by working:
Copyright © 2022 IDG Communications, Inc.