Skip to content

0.22.0

Compare
Choose a tag to compare
@github-actions github-actions released this 12 Jun 20:14
· 1812 commits to main since this release
f1b5d80

Major New Features

NestJS

There is now initial support for NestJS.

Examples:

SQLite, Drizzle, and TypeORM

SQLite examples and tests have been greatly improved. Drizzle and TypeORM have good initial support.

Examples:

Bitcoin

Much improved Bitcoin examples.

Examples:

Management Canister Chunking

upload_chunk, clear_chunk_store, stored_chunks, and install_chunked_code have been implemented on the management canister Candid type object.

Examples:

azle dfx extension

Azle now has a dfx extension. You can use "type": "azle" in your dfx.json canister configuration object to vastly simplify it.

To use the extension you must have dfx 0.20.1 installed and then run npx azle install-dfx-extension.

This is the simplest possible dfx.json for an Azle HTTP server canister:

{
    "canisters": {
        "api": {
            "type": "azle",
            "main": "src/api.ts"
        }
    }
}

This is the simplest possible dfx.json for an Azle Candid RPC canister:

{
    "canisters": {
        "api": {
            "type": "azle",
            "main": "src/api.ts",
            "candid_gen": "automatic"
        }
    }
}

Breaking Changes

candid_gen

Candid RPC canisters without an already-existing candid_gen property must now add a "candid_gen": "automatic" property to their dfx.json canister configurations.

{
    "canisters": {
        "api": {
            "type": "azle",
            "main": "src/api.ts",
            "candid_gen": "automatic"
        }
    }
}

/candid

Everything previously stored automatically at the /candid directory in a canister has been moved to /candid/icp. This includes icrc.did and the previous aaaaa-aa.did, which has been renamed to management.did.

What's Changed

New Contributors

Full Changelog: 0.21.1...0.22.0