V0.6.9 of the SDK is now ready for download
0.6.9 release includes both user-visible new features and internal enhancements and fixes. The most significant new features and capabilities include the following:
You can now register, build, and deploy applications with a single command.
This release introduces a simplified developer workflow using the the
dfx deploycommand. You can use this command to replace running the following commands as separate steps:
dfx canister create --all
dfx canister install -all
For a preview of how to use the simplified developer workflow, see Developer Workflow Preview.
You can now specify arguments on the command-line when you deploy a single canister using an actor class with the
dfx canister installcommand.
For example, you might use the following command to add the
selfText argument when deploying the canister named
dfx canister install profile_map '("self")'
Note that you specify the argument you want to pass using the Candid interface description format.
--memory allocationcommand-line option enables you to specify a memory allocation when deploying a canister.
dfx identity newcommand has been enhanced to display a confirmation message when adding a new identify is successful.
Motoko updates in 0.6.9
Key updates for Motoko include backend support for the following features and changes:
- Preliminary support for importing and exporting actor classes and for dynamic canister installation.
- Improved error handling for actor classes and input/output exceptions.
- The Motoko compiler no longer supports arbitrary declarations preceding the main actor or an actor class. Only import declarations can be used as leading declarations for programs that define an actor or an actor class.
As a recommended workaround for this change, you can:
- Move the declarations that preceded the main actor into the actor’s body.
- Move the declarations into a new, imported module, referenced from the main actor.
- Use a combination of these strategies.
Check out the full release notes and more tips here.