Skip to content

0.21.0

Compare
Choose a tag to compare
@github-actions github-actions released this 29 Mar 00:49
· 2029 commits to main since this release
1fe4837

New Features

Client Fetch Authentication

The azle/http_client import has been introduced. It exports a toJwt function that can be used for client-side authentication using fetch and the Authorization header.

Examples:

Canister Fetch HTTP

Canisters can now perform outgoing HTTP requests using fetch.

Examples:

Canister Fetch File

Canisters can now request files from their local filesystem using fetch:

Examples:

Hybrid HTTP/Candid Canisters

It is now easier to compose hybrid HTTP/Candid canisters e.g. an HTTP-based canister that exposes Candid methods, or a Candid canister that exposes HTTP endpoints.

Examples:

Optional Server Export

export default Server is no longer required for HTTP-based canisters.

Large Asset Uploads

Files up to 2 GiB in size can now be uploaded into a canister's local filesystem. There are some issues around authentication, not all dfx identity types are currently supported. We will soon release a new version of Azle with an improvement to this problem.

Examples:

Range Requests

Canisters can now easily respond to range requests, enabling experimentation with video streaming use cases:

Examples:

Native Compilation

A --native-compilation build flag allows for a canister to skip Podman and use a locally installed build environment.

Examples:

What's Changed

Full Changelog: 0.20.2...0.21.0