Updates 13 September, 2024
ยท 3 min read
Summaryโ
- Mops CLI updates (v1.0.0)
- Keywords validation
- Search package by owner principal id
- Verifiable Mops CLI builds
- Package Registry site updates
Mops CLI updatesโ
Release 1.0.0 ๐โ
Run mops self update
to update Mops CLI to the latest version.
mops cache clean
now cleans local cache too (.mops
folder)- Conflicting dependencies are now reported on
mops add/install/sources
- New
--conflicts <action>
option inmops sources
command (docs) - New "Stable Memory" and "Garbage Collection" metrics are now reported in the
mops bench
command mops test
command now supportsreplica
mode for running actor tests (docs)- New
--replica
option inmops test
command - Updated npm dependencies
- Fixed bug with GitHub dependency with branch name containing
/
Breaking changes:
- Default replica in
mops bench
andmops test
commands now ispocket-ic
ifpocket-ic
is specified inmops.toml
in[toolchain]
section anddfx
otherwise - The only supported version of
pocket-ic
is4.0.0
- Dropped support for
wasmtime
version< 14.0.0
- Default reporter in
mops test
command is nowfiles
if test file count is > 1 andverbose
otherwise - Renamed
mops import-identity
command tomops user import
- Renamed
mops whoami
command tomops user get-principal
- Removed the ability to install a specific package with
mops install <pkg>
command. Usemops add <pkg>
instead - Removed legacy folders migration code. If you are using Mops CLI
<= 0.21.0
, you need first to runnpm i -g ic-mops@0.45.3
to migrate your legacy folders. After that, you can runmops self update
to update your Mops CLI to the latest version - Removed
--verbose
flag frommops sources
command
Keywords validationโ
Now, the keywords are validated when publishing a package. Keywords should conform to the following pattern: [a-z0-9-]
.
Search package by owner principal idโ
Now you can search packages by the owner principal id. Just click on the owner principal id and you will see all packages by that owner.
GitHub Action updateโ
New version 1.4.0
of setup-mops
action is released.
- Add caching for macOS
- Use node v22
Verifiable Mops CLI buildsโ
Mops CLI builds are now produced in deterministic way using Docker and can be verified by anyone.
Get the version, commit hash and build hash from the CLI releases page and run the following commands inside the cli
directory:
docker build . --build-arg COMMIT_HASH=<commit_hash> --build-arg MOPS_VERSION=<mops_version> -t mops
docker run --rm --env SHASUM=<build_hash> mops
Package Registry site updatesโ
- Stable memory and garbage collection metrics are now available on "Benchmarks" tab for newly published packages
- Size metrics in package benchmarks are now formatted in a human readable way (127_643_156 -> 121.73 MiB)
- On the home page, the "Recently updated" section now contains package changes
- New section "New Packages" on the home page
- Categories section redesigned
- Package descriptions are now shown on the package page
- Package categories are now auto assigned based on keywords