Deno 1.14, the most current update to the TypeScript/JavaScript runtime and rival to Node.js, capabilities a quantity of new additions to the World-wide-web Crypto API. The Net Crypto API is a standard JavaScript API for carrying out cryptographic functions these as hashing, signature technology, and encryption and decryption. 

Released September 14, Deno 1.14 provides crypto.delicate.exportKey(), which permits HMAC (Hash-based Messaging Authentication Code) keys to be exported in equally JWK (Json Internet Critical) and “raw” formats, and will allow RSA keys to be exported in pkcs#8 format. Launch notes cite a quantity of other new World wide web Crypto APIs including crypto.delicate.encrypt() and crypto.delicate.decrypt(), which help RSA-OAEP (Ideal Asymetric Encryption Padding).

The developers of Deno hope to comprehensive Deno’s World-wide-web Crypto API assist by the conclusion of the yr. Other new options and enhancements in Deno 1.14:

  • The indigenous server-aspect WebSocket API has been stabilized.
  • A world wide web system API for matching URLs from patterns has been introduced, termed URLPatterncode. Take note that this API is presently unstable.
  • Four APIs have been released for file locking including Deno.flock, Deno.flockSync, Deno.funlock, and Deno.funlockSync. These APIs, at the moment unstable, will be essential for proper databases synchronization.
  • Guidance is launched for mutual TLS in fetch(). Mutual TLS is a way to authenticate a client to a server.
  • URL parsing is now more rapidly.
  • TypeScript 4.4 is involved, as is the V8 9.4 JavaScript/WebAssembly engine.
  • The std/http module is faster.
  • Array buffers can be transferred amongst workers without having needing copying, therefore dashing up transfers for huge buffers.
  • The formal Deno Visible Studio Code extension has been up to date. Highlights contain greater configuration aid when using the screening code lens and debug configuration improvements.

Deno 1.14 follows very last month’s launch of Deno 1.13, which stabilized the indigenous HTTP server API.

Copyright © 2021 IDG Communications, Inc.