From 5d91dfe79db1eeb7a54828a20a5f99f59f553be8 Mon Sep 17 00:00:00 2001 From: alexabsmith Date: Tue, 21 Jul 2020 16:07:00 -0700 Subject: [PATCH 01/13] Release notes draft for V0.6.0 (Tungsten Release) --- .../pages/sdk-release-notes.adoc | 69 +++++++++---------- 1 file changed, 34 insertions(+), 35 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index d1a75e714..8d53914a2 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -10,7 +10,7 @@ :page-layout: releasenotes :sdk-short-name: DFINITY Canister SDK :sdk-long-name: DFINITY Canister Software Development Kit (SDK) -:release: 0.5.7 +:release: 0.6.0 ifdef::env-github,env-browser[:outfilesuffix:.adoc] The {sdk-long-name} enables developers to develop applications for the {IC} using the {proglang} programing language. @@ -35,48 +35,52 @@ This {release} version of the software and programming language should not be us The {release} release includes the following new features and capabilities: -- {proglang} and the JavaScript library now support floating point numbers (Float). -- When using the Candid UI, you can view return values in text, UI, and JSON formats. -+ -You can switch between the formats for representing values by clicking the results bar. -- Internal updates that are not yet user-visible to support future features. +=== SDK -== Breaking change -The {release} release includes the following changes that might require updates to existing programs: - -- The name of the built-in {proglang} library has changed from `stdlib` to `base`. -- All of the module names in the `base` library start with an upper case letter. -- The `principalId` module has been changed to `Principal`. +- You can now look up a canister identifier using the command `dfx canister id `. +- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. +- Both canister name and identifiers are printed upon canister creation. +- Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping. -=== Modifying existing programs +=== Tungsten (Developer Network) -If you have programs that rely on modules in the `stdlib` library, you must change the `import` statement to use the new `base` library name. -For example, you might have previously imported the Array module using the following statement: +- HTTP authorization and credentials management for onboarded Tungsten users. +- `Tungsten` added as a provider in `dfx.json` +- You can use the `dfx ping` command to access and toggle between local and Tungsten networks. +- The `--network ` flag can be used to build and install canisters to the specified provider. +- Canister ID formatting for accessing Tungsten-deployed apps in the browser. -[source,motoko] ----- -import Array "mo:stdlib/array"; ----- +=== Motoko -With this release, you would change the statement like this: +- Stable variable support +- Improved type checking of literals as payload for variant tags. The following will now type-check: +`func () : { #tag : Nat8 } = #tag 42;` +- Warning when the read file has a different name from the requested file. +- `debug_show` implemented for `Principal` +- Type hash implementation -[source,motoko] ----- -import Array "mo:base/Array"; ----- -=== Addressing case-sensitivity +== Breaking changes +The {release} release includes the following changes that might require updates to existing programs: -If your local development environment runs on macOS, you might be able to build your {proglang} program using a lower case module name because the macOS file system is not case-sensitive by default. - -If you use lower case module names, however, the same code will not compile on Linux computers. -Therefore, the recommended best practice is to always capitalize module names. -For example, use `import Array "mo:base/Array"`, not `import Array "mo:base/array"`. +- The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. +- You must now create empty canisters before building and installing using the subcommand `dfx canister create`. +- `string` and `number` are no longer supported as arguments to the `--type` flag for `dfx canister call` commands. +- Methods starting with `__` will break, as those are not implemented anymore. +- When creating an actor, you need to pass in the canister ID. == Issues fixed in this release This section covers the issues fixed in this release. The {release} release includes internal fixes and improvements to the Candid user interface, the interface description library, and some refactoring of `dfx` commands. +- `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes. +- Various references changed from `client` to `replica`. +- Allow lowercase hex in Canister ID. +- Canister name now used for WASM and DID output. +- Allow installation without sudo when possible. +- Install script issue resolved for Ubuntu. +- Check added to forbid starting webserver with a forwarded port. + == Known issues and limitations This section covers any known issues or limitations that might affect how you work with the {sdk-short-name} in specific environments or scenarios. @@ -84,11 +88,6 @@ If there are workarounds to any of the issues described in this section, you can The {release} release includes the following known issues and limitations: -- Using fixed-length Word data type arguments when running `+dfx+` commands. -+ -Fixed-length Word32 data types are not yet supported in the `+dfx+` command-line interface. -As an alternative, you can convert integers to Word32 using the standard library function `+int32ToWord32(intToInt32(value))+`` until the support for fixed-length Word32 and Nat32 data types is added. - == Additional questions and feedback Check out link:../developers-guide/troubleshooting{outfilesuffix}[Troubleshooting] for additional technical support. From f3a07a947515b5153a63d58e08b0def90d6e6a38 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Tue, 21 Jul 2020 16:54:35 -0700 Subject: [PATCH 02/13] Update modules/release-notes/pages/sdk-release-notes.adoc Co-authored-by: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> --- modules/release-notes/pages/sdk-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 8d53914a2..4e6015173 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -64,7 +64,7 @@ The {release} release includes the following changes that might require updates - The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. - You must now create empty canisters before building and installing using the subcommand `dfx canister create`. -- `string` and `number` are no longer supported as arguments to the `--type` flag for `dfx canister call` commands. +- `dfx canister call` will consult the candid file for method types. There is no need to use `--type string/number` anymore. The arguments are therefore deprecated. - Methods starting with `__` will break, as those are not implemented anymore. - When creating an actor, you need to pass in the canister ID. From 4ba30dcb9b79573df354dde566d425e03f1e445f Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Tue, 21 Jul 2020 17:23:00 -0700 Subject: [PATCH 03/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 4e6015173..b39ec2ea6 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -52,12 +52,10 @@ The {release} release includes the following new features and capabilities: === Motoko +- The `motoko-base` repository is now open. We encourage developers to use Vessel package manager to download the latest `base` from `master`. +- Major breaking changes and updates as detailed here: dfinity/motoko-base#37 +- Motoko style guide published to sdk.dfinity.org - Stable variable support -- Improved type checking of literals as payload for variant tags. The following will now type-check: -`func () : { #tag : Nat8 } = #tag 42;` -- Warning when the read file has a different name from the requested file. -- `debug_show` implemented for `Principal` -- Type hash implementation == Breaking changes The {release} release includes the following changes that might require updates to existing programs: @@ -65,8 +63,6 @@ The {release} release includes the following changes that might require updates - The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. - You must now create empty canisters before building and installing using the subcommand `dfx canister create`. - `dfx canister call` will consult the candid file for method types. There is no need to use `--type string/number` anymore. The arguments are therefore deprecated. -- Methods starting with `__` will break, as those are not implemented anymore. -- When creating an actor, you need to pass in the canister ID. == Issues fixed in this release From 2694474efcf7d25031fa7e75b591e3998c9aa181 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Wed, 22 Jul 2020 09:29:48 -0700 Subject: [PATCH 04/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index b39ec2ea6..c1298989b 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -41,6 +41,7 @@ The {release} release includes the following new features and capabilities: - The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. - Both canister name and identifiers are printed upon canister creation. - Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping. +- Local network defaults to `127.0.0.1:8000`. === Tungsten (Developer Network) @@ -74,7 +75,7 @@ The {release} release includes internal fixes and improvements to the Candid use - Allow lowercase hex in Canister ID. - Canister name now used for WASM and DID output. - Allow installation without sudo when possible. -- Install script issue resolved for Ubuntu. +- Install script issues resolved for Ubuntu and Mac. - Check added to forbid starting webserver with a forwarded port. == Known issues and limitations From 1a2dd9c23bd32d765d4a16277da14d6361aed175 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Wed, 22 Jul 2020 09:57:44 -0700 Subject: [PATCH 05/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index c1298989b..d5fca117a 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -71,12 +71,12 @@ This section covers the issues fixed in this release. The {release} release includes internal fixes and improvements to the Candid user interface, the interface description library, and some refactoring of `dfx` commands. - `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes. -- Various references changed from `client` to `replica`. - Allow lowercase hex in Canister ID. - Canister name now used for WASM and DID output. - Allow installation without sudo when possible. - Install script issues resolved for Ubuntu and Mac. - Check added to forbid starting webserver with a forwarded port. +- Cache directory management and error messages. == Known issues and limitations From c6f984767d4a1c8ea2b79b6b37210c7e3a74f3b8 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Wed, 22 Jul 2020 09:59:36 -0700 Subject: [PATCH 06/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index d5fca117a..3ee33bb01 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -41,6 +41,7 @@ The {release} release includes the following new features and capabilities: - The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. - Both canister name and identifiers are printed upon canister creation. - Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping. +- Asset canisters include `.did.js`. - Local network defaults to `127.0.0.1:8000`. === Tungsten (Developer Network) From 119dd5f13eb3901852ac1adf6137884f17581465 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 09:23:28 -0700 Subject: [PATCH 07/13] Update modules/release-notes/pages/sdk-release-notes.adoc Co-authored-by: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> --- modules/release-notes/pages/sdk-release-notes.adoc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 3ee33bb01..99f3325ec 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -58,7 +58,10 @@ The {release} release includes the following new features and capabilities: - Major breaking changes and updates as detailed here: dfinity/motoko-base#37 - Motoko style guide published to sdk.dfinity.org - Stable variable support - +- Released `mo-doc` for generating documentation from Motoko comments +- Better support for `Char` and `Text` module +- `Error` module for rejecting messages +- `Buf` module renamed to `Buffer` == Breaking changes The {release} release includes the following changes that might require updates to existing programs: From f65e6560238c363f232ac6f941013f5bcd9c873b Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 09:23:38 -0700 Subject: [PATCH 08/13] Update modules/release-notes/pages/sdk-release-notes.adoc Co-authored-by: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> --- modules/release-notes/pages/sdk-release-notes.adoc | 2 -- 1 file changed, 2 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 99f3325ec..214902e2d 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -87,8 +87,6 @@ The {release} release includes internal fixes and improvements to the Candid use This section covers any known issues or limitations that might affect how you work with the {sdk-short-name} in specific environments or scenarios. If there are workarounds to any of the issues described in this section, you can find them in the link:../developers-guide/troubleshooting{outfilesuffix}[Troubleshooting] section. -The {release} release includes the following known issues and limitations: - == Additional questions and feedback Check out link:../developers-guide/troubleshooting{outfilesuffix}[Troubleshooting] for additional technical support. From 94057203f05ee39ad3112344bc802545c7bfe203 Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 09:25:05 -0700 Subject: [PATCH 09/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 214902e2d..c5d185af6 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -41,7 +41,6 @@ The {release} release includes the following new features and capabilities: - The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. - Both canister name and identifiers are printed upon canister creation. - Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping. -- Asset canisters include `.did.js`. - Local network defaults to `127.0.0.1:8000`. === Tungsten (Developer Network) @@ -55,16 +54,17 @@ The {release} release includes the following new features and capabilities: === Motoko - The `motoko-base` repository is now open. We encourage developers to use Vessel package manager to download the latest `base` from `master`. -- Major breaking changes and updates as detailed here: dfinity/motoko-base#37 - Motoko style guide published to sdk.dfinity.org - Stable variable support - Released `mo-doc` for generating documentation from Motoko comments - Better support for `Char` and `Text` module - `Error` module for rejecting messages -- `Buf` module renamed to `Buffer` +- `Buf` module renamed to `Buffer`. + == Breaking changes The {release} release includes the following changes that might require updates to existing programs: +- Major breaking changes and updates to Motoko as detailed here: dfinity/motoko-base#37 - The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. - You must now create empty canisters before building and installing using the subcommand `dfx canister create`. - `dfx canister call` will consult the candid file for method types. There is no need to use `--type string/number` anymore. The arguments are therefore deprecated. @@ -76,7 +76,6 @@ The {release} release includes internal fixes and improvements to the Candid use - `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes. - Allow lowercase hex in Canister ID. -- Canister name now used for WASM and DID output. - Allow installation without sudo when possible. - Install script issues resolved for Ubuntu and Mac. - Check added to forbid starting webserver with a forwarded port. From d08eee352046b6b949a6c7cf7aa70052b537b4dd Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 16:35:05 -0700 Subject: [PATCH 10/13] Update sdk-release-notes.adoc --- .../pages/sdk-release-notes.adoc | 28 ++++++++++--------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index c5d185af6..9fcc82755 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -37,19 +37,19 @@ The {release} release includes the following new features and capabilities: === SDK -- You can now look up a canister identifier using the command `dfx canister id `. -- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. -- Both canister name and identifiers are printed upon canister creation. -- Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping. -- Local network defaults to `127.0.0.1:8000`. +- You can now look up a canister identifier using the command `dfx canister id ` +- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister +- Both canister name and identifiers are printed upon canister creation +- Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping +- Local network defaults to `127.0.0.1:8000` === Tungsten (Developer Network) -- HTTP authorization and credentials management for onboarded Tungsten users. -- `Tungsten` added as a provider in `dfx.json` -- You can use the `dfx ping` command to access and toggle between local and Tungsten networks. -- The `--network ` flag can be used to build and install canisters to the specified provider. -- Canister ID formatting for accessing Tungsten-deployed apps in the browser. +- HTTP authorization and credentials management for onboarded Tungsten users +- `Tungsten` added as a provider in `dfx.json +- You can use the `dfx ping` command to access and toggle between local and Tungsten networks +- The `--network ` flag can be used to build and install canisters to the specified provider +- Canister ID formatting for accessing Tungsten-deployed apps in the browser === Motoko @@ -59,27 +59,29 @@ The {release} release includes the following new features and capabilities: - Released `mo-doc` for generating documentation from Motoko comments - Better support for `Char` and `Text` module - `Error` module for rejecting messages -- `Buf` module renamed to `Buffer`. +- `Buf` module renamed to `Buffer` == Breaking changes The {release} release includes the following changes that might require updates to existing programs: - Major breaking changes and updates to Motoko as detailed here: dfinity/motoko-base#37 -- The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. +- The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. - You must now create empty canisters before building and installing using the subcommand `dfx canister create`. -- `dfx canister call` will consult the candid file for method types. There is no need to use `--type string/number` anymore. The arguments are therefore deprecated. +- `dfx canister call` will consult the Candid file for method types. You no longer need to use `--type string/number`. The arguments are therefore deprecated. == Issues fixed in this release This section covers the issues fixed in this release. The {release} release includes internal fixes and improvements to the Candid user interface, the interface description library, and some refactoring of `dfx` commands. +- Certification validation error fixed on Linux and NixOS - `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes. - Allow lowercase hex in Canister ID. - Allow installation without sudo when possible. - Install script issues resolved for Ubuntu and Mac. - Check added to forbid starting webserver with a forwarded port. - Cache directory management and error messages. +- Improved error messages for HTTP server error. == Known issues and limitations From 8a349ced551c20e5a03cce18e3fac1387e9b9e1e Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 16:48:26 -0700 Subject: [PATCH 11/13] Update sdk-release-notes.adoc --- modules/release-notes/pages/sdk-release-notes.adoc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index 9fcc82755..b2b15d734 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -37,11 +37,15 @@ The {release} release includes the following new features and capabilities: === SDK -- You can now look up a canister identifier using the command `dfx canister id ` -- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister -- Both canister name and identifiers are printed upon canister creation -- Canister manifest now stores multiple canister IDs associated with local and remote networks as well as network mapping -- Local network defaults to `127.0.0.1:8000` +- You can now look up a canister identifier using the command `dfx canister id `. +- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. +- Both canister name and identifiers are printed upon canister creation. +- Various updates to `dfx.json`: ++ +-- Field added to support for the Vessel package manager (defaults/build/packtool) +-- Canister types added in dfx.json to allow different builders for canisters - `motoko`, `assets`, and `custom`. `Motoko` uses the motoko compiler to build a canister, `assets` uses (optionally) `npm run build` to build files and uploads them to an asset canister, and `custom` uses a custom builder that should output WASM and DID files. +-- Network mapping for `local` and `Tungsten` +-- Local network defaults to `127.0.0.1:8000`. === Tungsten (Developer Network) From 080b2ca019b552fd454095412472b442708c1f5e Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 17:01:20 -0700 Subject: [PATCH 12/13] Update modules/release-notes/pages/sdk-release-notes.adoc Co-authored-by: Yan Chen <48968912+chenyan-dfinity@users.noreply.github.com> --- modules/release-notes/pages/sdk-release-notes.adoc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index b2b15d734..a336e9cef 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -68,7 +68,7 @@ The {release} release includes the following new features and capabilities: == Breaking changes The {release} release includes the following changes that might require updates to existing programs: -- Major breaking changes and updates to Motoko as detailed here: dfinity/motoko-base#37 +- Major breaking changes and updates to Motoko as detailed here: https://github.com/dfinity/motoko-base/issues/37 - The command `dfx new` now creates a separate assets canister. Programs built with earlier versions of the SDK may need to be converted to this new format. - You must now create empty canisters before building and installing using the subcommand `dfx canister create`. - `dfx canister call` will consult the Candid file for method types. You no longer need to use `--type string/number`. The arguments are therefore deprecated. From 55a6524dbcf8d2e73a69eeb355a8bdde509eec4f Mon Sep 17 00:00:00 2001 From: Alexa Smith <56849470+alexabsmith@users.noreply.github.com> Date: Thu, 23 Jul 2020 17:04:35 -0700 Subject: [PATCH 13/13] Update sdk-release-notes.adoc --- .../pages/sdk-release-notes.adoc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/modules/release-notes/pages/sdk-release-notes.adoc b/modules/release-notes/pages/sdk-release-notes.adoc index a336e9cef..07fe66c1d 100644 --- a/modules/release-notes/pages/sdk-release-notes.adoc +++ b/modules/release-notes/pages/sdk-release-notes.adoc @@ -37,21 +37,21 @@ The {release} release includes the following new features and capabilities: === SDK -- You can now look up a canister identifier using the command `dfx canister id `. -- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister. -- Both canister name and identifiers are printed upon canister creation. +- You can now look up a canister identifier using the command `dfx canister id ` +- The `--check` flag can be used with the `dfx build` command to check whether a canister will build before creating or building the canister +- Both canister name and identifiers are printed upon canister creation - Various updates to `dfx.json`: + -- Field added to support for the Vessel package manager (defaults/build/packtool) -- Canister types added in dfx.json to allow different builders for canisters - `motoko`, `assets`, and `custom`. `Motoko` uses the motoko compiler to build a canister, `assets` uses (optionally) `npm run build` to build files and uploads them to an asset canister, and `custom` uses a custom builder that should output WASM and DID files. -- Network mapping for `local` and `Tungsten` --- Local network defaults to `127.0.0.1:8000`. +-- Local network defaults to `127.0.0.1:8000` === Tungsten (Developer Network) - HTTP authorization and credentials management for onboarded Tungsten users - `Tungsten` added as a provider in `dfx.json -- You can use the `dfx ping` command to access and toggle between local and Tungsten networks +- You can use the `dfx ping` command to ping an Internet Computer and request its status - The `--network ` flag can be used to build and install canisters to the specified provider - Canister ID formatting for accessing Tungsten-deployed apps in the browser @@ -79,13 +79,13 @@ This section covers the issues fixed in this release. The {release} release includes internal fixes and improvements to the Candid user interface, the interface description library, and some refactoring of `dfx` commands. - Certification validation error fixed on Linux and NixOS -- `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes. -- Allow lowercase hex in Canister ID. -- Allow installation without sudo when possible. -- Install script issues resolved for Ubuntu and Mac. -- Check added to forbid starting webserver with a forwarded port. -- Cache directory management and error messages. -- Improved error messages for HTTP server error. +- `dfx stop` now finds and kills all `dfx start` and `dfx replica` processes +- Allow lowercase hex in Canister ID +- Allow installation without sudo when possible +- Install script issues resolved for Ubuntu and Mac +- Check added to forbid starting webserver with a forwarded port +- Cache directory management and error messages +- Improved error messages for HTTP server error == Known issues and limitations