Skip to content

Commit

Permalink
chore: Releasing 0.9.4 (#4090)
Browse files Browse the repository at this point in the history
  • Loading branch information
ggreif authored Jul 1, 2023
1 parent a615801 commit 14a3ad4
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions Changelog.md
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
# Motoko compiler changelog

## 0.9.4 (2023-07-01)

* motoko (`moc`)

* Allow multiline text literals (#3995).
For example,

```
"A horse walks into a bar.
The barman says: `Why the long face?`"
```
parses as:
```
"A horse walks into a bar.\nThe barman says: `Why the long face?`"
```
* Added pipe operator `<exp1> |> <exp2>` and placeholder expression `_` (#3987).
For example:
``` motoko
Iter.range(0, 10) |>
Iter.toList _ |>
Expand All @@ -27,7 +26,6 @@
```
may, according to taste, be a more readable rendition of:
``` motoko
{ multiples =
List.filter<Nat>(
Expand All @@ -42,7 +40,6 @@
New keyword `composite` allows one to declare Internet Computer *composite queries* (#4003).
For example,
``` motoko
public shared composite query func sum(counters : [Counter]) : async Nat {
var sum = 0;
Expand All @@ -54,21 +51,26 @@
```
has type:
``` motoko
shared composite query [Counter] -> async Nat
```
and can call both `query` and other `composite query` functions.
See the documentation for full details.
* Allow canister imports of Candid service constructors, ignoring the service arguments to
import the instantiated service instead (with a warning) (#4041).
* Allow optional terminal semicolons in Candid imports (#4042).
* bugfix: allow signed float literals as static expressions in modules (#4063).
* bugfix: improved reporting of patterns with record types in error messages (#4002).
* motoko-base
* Added more `Array` (and `Text`) utility functions (thanks to roman-kashitsyn) (dfinity/motoko-base⁠#564).
## 0.9.3 (2023-06-19)
Expand Down Expand Up @@ -193,7 +195,7 @@
* BREAKING CHANGE (Minor)
Optimized `AssocList.{replace, find}` to avoid unnecesary allocation (dfinity/motoko-base#535, dfinity/motoko-base#539).
Optimized `AssocList.{replace, find}` to avoid unnecessary allocation (dfinity/motoko-base#535, dfinity/motoko-base#539).
Note: this subtly changes the order in which the key-value pairs occur after replacement. May affect other containers that use `AssocList`.
* Performance improvement: Optimized deletion for `Trie`/`TrieMap` (dfinity/motoko-base#525).
Expand Down

0 comments on commit 14a3ad4

Please sign in to comment.