From 14a3ad4dc554a5df120653727444c39282d36d15 Mon Sep 17 00:00:00 2001 From: Gabor Greif Date: Sat, 1 Jul 2023 04:04:14 +0200 Subject: [PATCH] chore: Releasing 0.9.4 (#4090) --- Changelog.md | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Changelog.md b/Changelog.md index 6384a6441c9..caf534be736 100644 --- a/Changelog.md +++ b/Changelog.md @@ -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 ` |> ` and placeholder expression `_` (#3987). For example: - ``` motoko Iter.range(0, 10) |> Iter.toList _ |> @@ -27,7 +26,6 @@ ``` may, according to taste, be a more readable rendition of: - ``` motoko { multiples = List.filter( @@ -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; @@ -54,7 +51,6 @@ ``` has type: - ``` motoko shared composite query [Counter] -> async Nat ``` @@ -62,6 +58,7 @@ 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). @@ -69,6 +66,11 @@ * 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) @@ -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).