Skip to content

Releases: demergent-labs/kybra

0.7.0

10 Sep 18:59
690fbc0
Compare
Choose a tag to compare

Features

ic-cdk security vulnerability fixed

ic-cdk has been updated to address this vulnerability: GHSA-rwq6-crjg-9cpw

dfx extension

Kybra now has its own dfx extension. This allows the dfx.json canister configuration for Kybra canisters to be greatly simplified.

The extension must be installed before running dfx deploy. This should be done in the same virtual environment in which Kybra itself is installed. You can install the extension by running: python -m kybra install-dfx-extension.

Breaking Changes

Candid files will now automatically be stored in the .kybra directory if using "type": "kybra" in your dfx.json canister configuration. All examples have had their automatically generated Candid files removed.

What's Changed

Full Changelog: 0.6.0...0.7.0

0.7.0-rc.1

10 Sep 18:27
12b6127
Compare
Choose a tag to compare
0.7.0-rc.1 Pre-release
Pre-release
kybra-bot automated release 0.7.0-rc.1

0.7.0-rc.0

10 Sep 18:20
b8323e7
Compare
Choose a tag to compare
0.7.0-rc.0 Pre-release
Pre-release
kybra-bot automated release 0.7.0-rc.0

0.6.0

12 Apr 20:56
c04a410
Compare
Choose a tag to compare

This release focuses on removing the workarounds and necessary caveats in place because of the small Wasm binary limit implemented by the Internet Computer Protocol. This limit has been substantially lifted by the protocol itself, thus we were able to remove our workarounds. We've also made the initial installation process simpler and more robust.

New Features

  • ic-wasm has been removed
  • there is no longer a post_install step
  • memory ids 0, 1, 2, 252, 253, and 254 are no longer reserved
  • encrypted dfx identities are now supported
  • guard functions now only allowed on query and update methods
  • Wasm module hash caveat removed
  • ic.caller() now correct in init and post_upgrade
  • metadata is now defined by the developer in dfx.json, no Kybra version is exposed
  • init and post_upgrade caveats removed

Breaking Changes

The post_install canister property should no longer be used in the dfx.json file, and we now recommend a metadata canister property in the dfx.json file.

Example:

{
    "canisters": {
        "simple_erc20": {
            "type": "custom",
            "build": "python -m kybra simple_erc20 src/main.py src/main.did",
            "candid": "src/main.did",
            "wasm": ".kybra/simple_erc20/simple_erc20.wasm",
            "gzip": true,
            "metadata": [
                {
                    "name": "candid:service",
                    "path": "src/main.did"
                },
                {
                    "name": "cdk:name",
                    "content": "kybra"
                }
            ],
            "declarations": {
                "output": "test/dfx_generated/simple_erc20",
                "node_compatibility": true
            }
        }
    }
}

What's Changed

Full Changelog: 0.5.3...0.6.0

0.6.0rc5

12 Apr 20:31
e1033f5
Compare
Choose a tag to compare
0.6.0rc5 Pre-release
Pre-release
kybra-bot automated release 0.6.0rc5

0.6.0rc4

12 Apr 15:18
66f38bd
Compare
Choose a tag to compare
0.6.0rc4 Pre-release
Pre-release
kybra-bot automated release 0.6.0rc4

0.6.0rc3

12 Apr 14:23
a511fea
Compare
Choose a tag to compare
0.6.0rc3 Pre-release
Pre-release
kybra-bot automated release 0.6.0rc3

0.5.3

26 Mar 21:02
860882f
Compare
Choose a tag to compare

The main focus of this release is increasing the Kybra-internal Rust version to 1.77.0 to overcome ic-wasm installation issues.

What's Changed

  • Increasing dfx to 0.17.0, now using dfxvm, increasing node to 20 by @lastmjs in #462

Full Changelog: 0.5.2...0.5.3

0.5.2

22 Sep 19:58
d934d10
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.5.1...0.5.2

0.5.1

15 Sep 21:38
28310a8
Compare
Choose a tag to compare

What's Changed

  • add documentation by @lastmjs in #444
  • Refactored TryFromVmValue to return PyBaseExceptionRefs instead of CdkActTryFromVmValueErrors by @dansteren in #448
  • update rust version by @lastmjs in #450

Full Changelog: 0.5.0...0.5.1