Select the directory option from the above "Directory" header!

Menu
Deno 1.33 debuts built-in key-value database

Deno 1.33 debuts built-in key-value database

Currently in beta, Deno KV is a strongly consistent key-value database integrated into the open-source Deno runtime and designed for JavaScript, with the ability to store any JavaScript structured serializable value.

Credit: Dreamstime

With newly published Deno 1.33, the project’s developers are preparing users of the JavaScript/TypeScript runtime for the planned, ambitious Deno 2 release. Part of that push is the debut in Deno 1.33 of the Deno KV key-value database.

Unveiled April 28, Deno 1.33 takes steps toward meeting the goals of Deno 2.0, which is due in coming months. These goals include “effortless” coding, “best in class” performance, and “uncompromising” security.

In Deno 1.33, new capabilities include the built-in Deno KV key-value database for stateful app development, either locally or on the Deno Deploy serverless JavaScript hosting service. When running locally, Deno KV is backed by SQLite. When running on Deno Deploy, the database is backed by FoundationDB, managed by Deno, and globally replicated across 35 cloud regions. Currently in beta, Deno KV is an unstable API and long-term data durability is not yet guaranteed.

Also with Deno 1.33, the deno.json schema has been flattened to make it easier to read and write. Nested options such as "lint.files.exclude" or "fmt.options.lineWidth" now are available at the top level of their respective sections.

As a quality-of-life improvement, Deno 1.33 allows for fewer permission checks for dynamic imports, improving startup time. This change will make it easier to conditionally execute some code in certain conditions, such as when developers have a CLI tool with many subcommands and they want to conditionally load handlers only when the subcommand is invoked. Other use cases include only loading a polyform when needed and executing debugging code in a server application only when an environmental variable is present.

Deno 1.33 can be installed from deno.com. Other features in Deno 1.33 include:

  • To improve performance, overhauls have been made to the HTTP server and the client and server for WebSockets. Work continues on improving these.
  • For NPM and Node compatibility, node:crypto, node:http, and node:vm capabilities have been improved since the last release.
  • Pre-loading of files occurs when initialising the language server, mitigating a situation where certain functionality did not work unless a file had been opened.
  • For the CLI, a new –-no-run flag has been added to the deno bench subcommand to cache resolved bench files without running them. Also, a cross-platform unset command was added to the shell in deno task to allow deletion of environment and shell variables.
  • The Deno.run API is being deprecated. With the stabilisation of the Deno.Command API in Deno 1.31, Deno.Command is now the recommended way to spawn subprocesses.

Deno 1.33 follows the March 2023 release of Deno 1.32, which offered enhanced Node.js compatibility, and Deno 1.32.1, which fixed a critical security issue pertaining to the improper handling of the resizable ArrayBuffer in async built-in functions.


Follow Us

Join the newsletter!

Or

Sign up to gain exclusive access to email subscriptions, event invitations, competitions, giveaways, and much more.

Membership is free, and your security and privacy remain protected. View our privacy policy before signing up.

Error: Please check your email address.

Tags javascriptTypeScript

Show Comments