The latest version of the Deno runtime for JavaScript and TypeScript is enhanced with inline tooltip capabilities.

Announced on October 27, Deno 1.27 has improvements to the language server and IDE, including taking advantage of TypeScript 4.4’s inline hints. With this capability, small snippets of information are added to the embedded code, potentially making it more readable and filling in any information gaps about the code.

Microsoft’s Visual Studio Code editor supports inline tooltips, with Deno VS Code extension supporting configuration options.

Deno also features improved registry completions in editors that support it, although this capability is not specifically tied to Deno version 1.27.

Additional features in Deno 1.27 include:

  • Deno will automatically download TypeScript types from NPM packages that distribute types.
  • The Node-API, for building custom plugins in Node.js, is supported when used within NPM packages. Additionally, NPM package resolution and integrity are now preserved when using a lock file.
  • A navigator.language added a web API providing a read-only property that returns a string representing the user’s preferred language.
  • For deno task, which executes codebase-specific custom commands, the warning stating that “the deno task is unstable and may change dramatically in the future” has been removed. I’m moving forward deno task will not change drastically, although some changes may be introduced for ease of use, such as new cross-platform commands or environment variables.
  • The deno lint linter has a new compact report format.
  • APIs are stabilized as e.g Deno.consoleSize(), Deno.futime()and Deno.loadavg().
  • The readline/promise a module providing a Promises-based API for readline module.
  • Version 1.27 updates the V8 10.8 JavaScript engine.

Deno users can upgrade to version 1.27 by running: deno upgrade.

Copyright © 2022 IDG Communications, Inc.