Skip to content
This repository was archived by the owner on May 23, 2022. It is now read-only.

Commit e883a87

Browse files
authored
Docs: add rel notes 0.7.0 (#495)
* add rel notes 0.7.0 * more fixes * commit * fix links/commit to rebase * rel notes * Add Motoko notes Co-authored-by: Eve832 <eve832.github.com>
1 parent cdcb15f commit e883a87

1 file changed

Lines changed: 133 additions & 2 deletions

File tree

modules/release-notes/pages/0.7.0-rn.adoc

Lines changed: 133 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,147 @@ ifdef::env-github,env-browser[:outfilesuffix:.adoc]
1111

1212
The {release} release primarily consists of changes to support new features that are not yet complete, including fixes and updates to DFX commands, {proglang}, the {proglang} base library, and Candid.
1313

14+
The most significant new features and capabilities are updates to the following:
15+
16+
* <<DFX,DFX>>
17+
* <<Motoko,Motoko>>
18+
1419
== New features and capabilities
1520

21+
=== DFX
22+
23+
* Addition of ledger subcommands
24+
+
25+
`+dfx+` now supports a dedicated `dfx ledger` subcommand. This allows you to interact with the ledger
26+
canister installed on the Internet Computer. Example commands include `dfx ledger account-id` which
27+
prints the Account Identifier associated with your selected identity, `dfx ledger transfer` which
28+
allows you to transfer ICP from your ledger account to another, and `dfx ledger create-canister` which
29+
allows you to create a canister from ICP.
30+
For more information on `+dfx ledger+` subcommands, see link:../developers-guide/cli-reference/dfx-ledger{outfilesuffix}[dfx ledger].
31+
32+
* Addition of wallet subcommands
33+
+
34+
`+dfx+` now supports a dedicated `dfx wallet` subcommand. This allows you to interact with the cycles wallet associated with your selected identity.
35+
+
36+
The following are just some of the available commands:
37+
+
38+
** `+dfx wallet balance+` returns the selected identity's cycles wallet balance.
39+
+
40+
** `+dfx wallet list-addresses+` displays the assigned controllers & custodians of the cycles wallet.
41+
+
42+
You can use `dfx wallet send <destination> <amount>`
43+
to send cycles to another wallet.
44+
+
45+
For more information on `+dfx wallet+` see link:../developers-guide/cli-reference/dfx-wallet{outfilesuffix}[dfx wallet].
46+
47+
* Add an output type to the `+request-status+` subcommand.
48+
+
49+
This change allows you to specify the format for the return result for `+dfx canister request-status+`. Formatting options include `+idl+`, `+raw+`, and `+pp+`.
50+
51+
* The default network for projects is now `ic`.
52+
+
53+
The default network is now the mainnet `+ic` unless otherwise specified. Additionally, `+--network ic+` now points to the mainnet IC (Sodium has been deprecated.)
54+
55+
* Automatic creation of a candid UI canister
56+
+
57+
A dedicated candid UI canister is installed on a local network when using `+dfx canister install+` or `+dfx deploy+`.
58+
59+
* Compress some content types
60+
+
61+
You can now store `+gzip+` content encodings of assets with media types if the encoding is smaller than the source contents. Supported file types are `+text/*+`, `+*/javascript+`, and `+*/html+`.
62+
63+
* Add the encoding size when listing assets
64+
+
65+
Now when assets are listed, a new `+length+` field returns the size of encodings.
66+
67+
* Add new command `+dfx+ canister info+`
68+
+
69+
This allows you to retrieve certified canister information. Access to this information is limited to the controller of the canister and the SHA256 hash of its WASM module. If there is no WASM module installed, the hash will be `+None+`.
70+
71+
* New method deletes asset canister assests that no longer exist in a project—*breaking change*
72+
+
73+
The `+keys()+` method is no longer supported. Use the `+list()+` method to delete missing project assets. For example:
74+
+
75+
[source,bash]
76+
----
77+
assert_command dfx canister call --query e2e_project_assets get '(record{key="/will-delete-this.txt";accept_encodings=vec{"identity"}})'
78+
assert_command dfx canister call --query e2e_project_assets list '(record{})'
79+
assert_match '"/will-delete-this.txt"'
80+
----
81+
* Run an emulator instead of the replica
82+
+
83+
To run a `+dfx+` project using an emulator instead of the replica, you can now run `+dfx start --emulator+`.
84+
* Rely on npmjs.org to get the version of agent-js to install
85+
+
86+
This decouples the version of `+dfx+` from the release version of `+agent-js+`. Additionally, it allows for debug builds to install properly (as `+dfx+` has a non-release version).
87+
* You can now install the DFINITY Canister SDK on for M1 Macs running Darwin.
88+
* Allow upload of assests of any size from the asset canister
89+
+ The following asset canister call methods are added:
90+
** create_batch()
91+
** create_chunk()
92+
** commit_batch()
93+
** get()
94+
** get_chunk()
95+
+
96+
Reworks the asset installer in `+dfx+` to use these methods. It can therefore upload assets that exceed the message ingress size.
97+
* Add `+--no-wallet+` flag and `+--wallet+` option
98+
+
99+
`+--no-wallet+` allows users to bypass specifying a wallet ID.
100+
+
101+
`+--wallet+` allows users to specify a particular wallet to use for calls.
102+
* Implement the HTTP request proposal in `+dfx+` bootstrap webserver
103+
+
104+
Ads support for http requests in the base storage canister (with a default to `+/index.html+`).
105+
106+
This does not support encodings other than `+identity+`, and doesn't return any headers.
107+
108+
This also upgrades tokio and reqwest in order to work correctly. There are some performance issues to note (this is slower than the icx-http-server).
109+
110+
=== Motoko
111+
112+
* Reformat to style guidelines.
113+
114+
* Add type bindings
115+
+
116+
Add `+Nat.Nat+`, `+Nat8.Nat8+`, etc. to libraries for primitive types.
117+
16118

17119
== Issues fixed in this release
18120

19121
This section covers any reported issues that have been fixed in this release.
20122

123+
=== DFX
124+
125+
* Deleting a canister on a network removes entries for other networks
126+
+
127+
This change fixes a bug where deleting a canister on a network removed all other entries for the canister in the `+canister_ids.json+` file.
128+
129+
* Error message: already in use (os error 48) when issuing dfx start.
130+
+
131+
This fixes an error which occurred when starting a replica soon after stopping it.
132+
133+
* The `+dfx new+` command should not require node
134+
+
135+
This fixes the inability to use the `+dfx new+` command to create projects on machines that do not have node installed.
136+
137+
* Missing webpack.config plugin
138+
+
139+
This adds the missing ProvidePlugin to webpack.config for new projects.
140+
141+
* Allow new projects assets to contain non-utf8 files
142+
+
143+
Previously assets were forced to be valid UTF-8 strings. After this change if a string cannot be converted, in-place variable replacements are ignored.
144+
145+
=== Motoko
146+
147+
* No longer confused by distinct, but eponymous, type definitions.
148+
149+
* Numbers of eponymous types and specializations from 1 (not 2)
150+
151+
* Avoids long chains of type equalities by normalizing before translation
21152

153+
//== Known issues and limitations
22154

23-
== Known issues and limitations
155+
//This section covers any known issues or limitations that might affect how you work with the {sdk-short-name} in specific environments or scenarios.
24156

25-
This section covers any known issues or limitations that might affect how you work with the {sdk-short-name} in specific environments or scenarios.
26157

0 commit comments

Comments
 (0)