Skip to content

release: 2.7.0 - #561

Merged
Kamirus merged 1 commit into
mainfrom
kamil-claude/motoko-core-release-1d3fd7
Oct 12, 2026
Merged

Kamirus merged 1 commit into
mainfrom
kamil-claude/motoko-core-release-1d3fd7

Conversation

@Kamirus

@Kamirus Kamirus commented Oct 12, 2026 •

Copy link
Copy Markdown
Collaborator

Releases core 2.7.0, which lets you omit toText, equal, and compare implicit arguments for records, tuples, and variants: the compiler derives them from the field types.

import Array "mo:core/Array";
import Nat "mo:core/Nat";
import Records "mo:core/Records";
import Text "mo:core/Text";

type User = { name : Text; age : Nat };
let users : [User] = [{ name = "b"; age = 2 }, { name = "a"; age = 1 }];
let sorted = users.sort(); // `compare` is derived from `Nat.compare` and `Text.compare`

What's in it

  • New Records, Variants, and Unit modules, and top-level toText, equal, and compare combiners in Tuples (#559, #560).
  • New Blob.toText, Order.compare, Order.toText, Result.toText, and PriorityQueue.equal, compare, and toText.
  • Result.equal and pure/List.toText implicit arguments can now be omitted.
  • Tuple2, Tuple3, and Tuple4 makeToText, makeEqual, and makeCompare are deprecated.

Why a minor bump

The release adds modules and functions and deprecates some, but removes nothing and changes no signature, so existing code keeps compiling. npm run validate passes and validation/api/api.lock.json is unchanged.

What is unchanged

The other commits since 2.6.2 are internal (CI on moc 2.0.0, mo-fmt formatting, compiler-warning cleanups, and test fixes) and have no changelog entry.

On merge, release-tag.yml tags v2.7.0, which triggers the Mops publish.

🤖 Generated with Claude Code

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Kamirus
Kamirus requested a review from a team as a code owner October 12, 2026 09:39
@Kamirus
Kamirus merged commit 864ec06 into main Oct 12, 2026
26 checks passed
@Kamirus
Kamirus deleted the kamil-claude/motoko-core-release-1d3fd7 branch October 12, 2026 10:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant