Skip to content

chore: use core instead of base#3

Open
ggreif wants to merge 4 commits intoNatLabs:mainfrom
ggreif:core
Open

chore: use core instead of base#3
ggreif wants to merge 4 commits intoNatLabs:mainfrom
ggreif:core

Conversation

@ggreif
Copy link

@ggreif ggreif commented Mar 11, 2026

No description provided.

ggreif and others added 2 commits January 26, 2026 11:12
- Replace all mo:base@0.14.13/* imports with mo:core/* equivalents
- Add ListBuffer<A> class backed by mo:core/List as Buffer replacement
- Replace B.Buffer<N>(cap) with ListBuffer<N>(), B.toArray with .toArray()
- Replace BInterface.fromDeprecatedBuffer(b) with { write = b.add }
- Replace Debug.trap with Runtime.trap (mo:core/Debug has no trap)
- Replace Iter.range (inclusive) with Nat.range (exclusive upper bound)
- Fix Int64.maximumValue -> Int64.maxValue for mo:core API
- Update mops.toml: remove base/buffer deps, add core, bump moc to 1.3.0

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mops.toml Outdated
[dependencies]
'base@0.14.13' = "0.14.13"
'xtended-numbers@2.0.0' = "2.0.0"
core = "2.1.0"
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this may need a bump, IIRC 2.2.0 is out

@ggreif ggreif marked this pull request as ready for review March 20, 2026 19:34
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