Here, -p 1993:1993 maps port 1993 on the container to 1993 on the host, -v $PWD:/app mounts the host working directory to /app on the container, and -

Deno 1.11 Release Notes

submited by
Style Pass
2021-06-09 18:30:09

Here, -p 1993:1993 maps port 1993 on the container to 1993 on the host, -v $PWD:/app mounts the host working directory to /app on the container, and --allow-net /app/main.ts is passed to deno on the container.

This release marks the start of our efforts to add the Web Crypto API to Deno. It exposes cryptographic primitives to your application, that can be used to easily build secure systems using cryptography. We have supported crypto.getRandomValues() since Deno 1.0, but we have now added support for hashing and UUID generation.

You can now securely hash data using the sha-256, sha-384, sha-512, or sha-1 algorithms using the SubtleCrypto.digest API, also available in browsers and Node.js. Here is an example:

Additionally we have added support for the recently standardized crypto.randomUUID function. It allows you to generate UUID v4 as per RFC 4122. This feature is already in Node.js and will ship in Chrome/Edge 92 by the end of next month.

Sometimes it is desirable to abort an ongoing fetch, for example if you want to time out a request if it has not responded after a few seconds. This release adds support for aborting fetch using an AbortSignal, the web standard API for aborting fetches. Here is an example of how this works:

Leave a Comment