Skip to content

Releases: dfinity/sdk

0.6.25

13 Mar 18:43
259a354
Compare
Choose a tag to compare

DFX

  • feat: dfx now provides CANISTER_ID_<canister_name> environment variables for all canisters to "npm build" when building the frontend.

Agents

Rust Agent

  • feat: AgentError due to request::Error will now include the reqwest error message
    in addition to "Could not reach the server"
  • feat: Add secp256k1 support (dfx support to follow)

0.6.24

05 Mar 21:41
4147586
Compare
Choose a tag to compare

DFX

  • feat: add option to specify initial cycles for newly created canisters (#1433)

Added option to dfx canister create and dfx deploy commands: --with-cycles <with-cycles>.
This allows the user to specify the initial cycle balance of a canister created by their wallet.
This option is a no-op for the Sodium network.

dfx canister create --with-cycles 8000000000 some_canister
dfx deploy --with-cycles 8000000000

Help string:

Specifies the initial cycle balance to deposit into the newly
created canister. The specified amount needs to take the
canister create fee into account. This amount is deducted
from the wallet's cycle balance
  • feat: install dfx by version or tag (#1426)

This feature adds a new dfx command toolchain which have intuitive subcommands.
The toolchain specifiers can be a complete version number, major minor version, or a tag name.

dfx toolchain install 0.6.24 # complete version
dfx toolchain install 0.6    # major minor
dfx toolchain install latest # tag name
dfx toolchain default latest
dfx toolchain list
dfx toolchain uninstall latest
  • fix: onboarding related fixups (#1420)

Now that the Mercury Alpha application subnetwork is up and we are getting ready to onboard devs, the dfx error message for wallet creation has changed:
For example,

dfx canister --network=alpha create hello
Creating canister "hello"...
Creating the canister using the wallet canister...
Creating a wallet canister on the alpha network.
Unable to create a wallet canister on alpha:
The Replica returned an error: code 3, message: "Sender not authorized to use method."
Wallet canisters on alpha may only be created by an administrator.
Please submit your Principal ("dfx identity get-principal") in the intake form to have one created for you.
  • feat: add deploy wallet subcommand to identity (#1414)

This feature adds the deploy-wallet subcommand to the dfx identity.
The User provides the ID of the canister onto which the wallet WASM is deployed.

dfx identity deploy-wallet --help
dfx-identity-deploy-wallet
Installs the wallet WASM to the provided canister id

USAGE:
    dfx identity deploy-wallet <canister-id>

ARGS:
    <canister-id>    The ID of the canister where the wallet WASM will be deployed

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

0.6.23

16 Feb 22:10
73be05d
Compare
Choose a tag to compare

Highlights of what's new in 0.6.23

The 0.6.23 release consists of changes to support new features and enhancements that are not yet complete.

The most significant new feature enables you to use a locally-installed @dfinity/bootstrap server.

SDK 0.6.22

17 May 22:13
cd3fd24
Compare
Choose a tag to compare

DFX

  • feat: dfx call random value when argument is not provided (#1376)

  • fix: canister call can take canister ids for local canisters even if … (#1368)

  • fix: address panic in dfx replica command (#1338)

  • fix: dfx new webpack.config.js does not encourage running 'js' through ts-… (#1341)

Sample apps

  • There have been updates, improvements, and new sample apps added to the examples repository.

    All of Motoko sample apps in the examples repository have been updated to work with the latest release of the SDK.

    There are new sample apps to illustrate using arrays (Quicksort) and building create/read/update/delete (CRUD) operations for a web application Superheroes.

  • The LinkedUp sample application has been updated to work with the latest release of Motoko and the SDK.

Motoko

Agents

Canister Development Kit (CDK)

SDK 0.6.21

17 May 22:12
89bb2d5
Compare
Choose a tag to compare
Release: 0.6.21

0.6.20

22 Jan 20:44
3fd593d
Compare
Choose a tag to compare

Highlights of what's new in 0.6.20

The0.6.20 release primarily both user-facing and internal enhancements, including fixes and updates to {proglang}, the {proglang} base library, and Candid.

The most significant new features and fixes include the following updates:

  • A new notification message that the DFINITY Canister SDK sends anonymous usage data to DFINITY Stiftung by
    default has been added to dfx commands. The notification message is only displayed once, the first time you run any dfx subcommand.
    For example, the first time you run dfx new to create a new project, the notification is displayed before any other project creation messages.

    The purpose of this notification is to inform you that dfx is configured to collect anonymous information about dfx command activity and errors. Collecting anonymous data is enabled by default in an effort to improve the developer experience based on usage patterns and behavior.

    If you want to prevent the collection of data about dfx usage, you can explicitly opt-out by setting the following environment
    variable:

    DFX_TELEMETRY_DISABLED=1
    

    To find out more about the data collected and what your consent means, see the DFINITY Canister SDK Terms and Conditions.

  • The dfx commands that support the --network option have been updated to support URLs when specifying the network value.

    Previously, the --network option required you to specify a network name that matched a network aliases configured in the project's dfx.json file.

Candid

The Candid web interface has been updated to provide easier navigation and a better user experience.
The updates to the Candid web interface include the following new features and improvements:

  • A new Console drawer provides quick access to method output and a list of all available methods as links for fast navigation.
  • Canister methods and their related form elements are more clearly separated and annotated.
  • Method output is selectable and easier to toggle between text, UI, and JSON formats.
  • The layout is now responsive to provide an optimized display when viewing service using mobile devices or other media.

Motoko

  • The Motoko base documentation examples are now executable in the browser.

  • The Motoko compiler supports specifying command-line arguments using --args <file> and --args0 <file>.

    The new options enable the compiler to read newline and NUL terminated arguments from a specified file name.

0.6.18

15 Jan 22:41
2803347
Compare
Choose a tag to compare

Highlights of what’s new in 0.6.18

The 0.6.18 release primarily includes user-visible new features, internal enhancements, and fixes and updates to the version of Motoko and, the Motoko base library that are supported, and Candid.

The most significant new features and fixes include the following updates:

  • A fix to dfx upgrade that prevents a main thread panic when Option::unwrap() is called on a None value.

  • A fix to the name of the language service command to restore its compatibility with IDEs.

Motoko

  • New syntax for option types: Option blocks do ? <block> and option checks <exp> !.

    Inside an option block, an option check validates that its operand expression is not null. If it is, the entire option block is aborted and evaluates to null. This simplifies consecutive null handling by avoiding verbose switch expressions.

    For example, the expression do? { f(x!, y!) + z!.a } evaluates to null if either x, y, or z is null; otherwise, it takes the options' contents and ultimately returns ?r, where r is the result of the addition.

    The argument to a do or do ? expression must be a block { ... }, never a simple expression.

0.6.17

04 Jan 22:42
5d23866
Compare
Choose a tag to compare
Release: 0.6.17

SDK 0.6.16

17 May 22:11
d142a9f
Compare
Choose a tag to compare
Release: 0.6.16

0.6.14

16 Nov 18:39
205e72b
Compare
Choose a tag to compare
Release: 0.6.14