ic-mops 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/api/network.ts +1 -1
- package/bun.lock +1082 -78
- package/bundle/cli.tgz +0 -0
- package/cli.ts +1 -1
- package/commands/add.ts +4 -1
- package/commands/build.ts +7 -12
- package/commands/check.ts +20 -2
- package/commands/docs-coverage.ts +26 -21
- package/commands/install/install-dep.ts +5 -3
- package/commands/lint.ts +107 -10
- package/commands/publish.ts +24 -11
- package/commands/remove.ts +5 -2
- package/commands/self.ts +1 -1
- package/commands/sources.ts +3 -2
- package/commands/sync.ts +13 -16
- package/commands/test/test.ts +3 -3
- package/commands/update.ts +13 -7
- package/commands/watch/error-checker.ts +3 -8
- package/commands/watch/warning-checker.ts +3 -8
- package/dist/api/network.js +1 -1
- package/dist/cli.js +1 -1
- package/dist/commands/add.js +4 -1
- package/dist/commands/build.js +5 -10
- package/dist/commands/check.js +14 -2
- package/dist/commands/docs-coverage.js +22 -22
- package/dist/commands/install/install-dep.js +3 -3
- package/dist/commands/lint.d.ts +3 -0
- package/dist/commands/lint.js +75 -10
- package/dist/commands/publish.js +19 -11
- package/dist/commands/remove.js +5 -2
- package/dist/commands/self.js +1 -1
- package/dist/commands/sources.js +3 -2
- package/dist/commands/sync.js +9 -14
- package/dist/commands/test/test.js +3 -3
- package/dist/commands/update.js +9 -4
- package/dist/commands/watch/error-checker.js +3 -8
- package/dist/commands/watch/warning-checker.js +3 -8
- package/dist/helpers/find-changelog-entry.js +1 -1
- package/dist/integrity.js +9 -3
- package/dist/mops.js +3 -0
- package/dist/package.json +3 -5
- package/dist/release-cli.js +2 -2
- package/dist/resolve-packages.js +4 -4
- package/dist/tests/build.test.js +1 -1
- package/dist/tests/check.test.js +24 -0
- package/dist/tests/helpers.js +8 -1
- package/dist/tests/lint.test.js +28 -2
- package/dist/types.d.ts +2 -0
- package/dist/vessel.d.ts +1 -1
- package/dist/vessel.js +3 -2
- package/helpers/find-changelog-entry.ts +3 -1
- package/integrity.ts +12 -3
- package/mops.ts +7 -0
- package/package.json +3 -5
- package/release-cli.ts +2 -2
- package/resolve-packages.ts +6 -4
- package/tests/build.test.ts +1 -1
- package/tests/check/with-lint-fail/NoBoolSwitch.mo +8 -0
- package/tests/check/with-lint-fail/lints/no-bool-switch.toml +9 -0
- package/tests/check/with-lint-fail/mops.toml +9 -0
- package/tests/check/with-lint-pass/Ok.mo +5 -0
- package/tests/check/with-lint-pass/lints/no-bool-switch.toml +9 -0
- package/tests/check/with-lint-pass/mops.toml +9 -0
- package/tests/check.test.ts +28 -0
- package/tests/helpers.ts +9 -1
- package/tests/lint-config-rules/extra-rules/no-bool-switch.toml +9 -0
- package/tests/lint-config-rules/mops.toml +5 -0
- package/tests/lint-config-rules/src/NoBoolSwitch.mo +8 -0
- package/tests/lint-extends/mops.toml +8 -0
- package/tests/lint-extends/my-pkg/mops.toml +3 -0
- package/tests/lint-extends/my-pkg/rules/no-bool-switch.toml +9 -0
- package/tests/lint-extends/src/NoBoolSwitch.mo +8 -0
- package/tests/lint-extends-all/mops.toml +8 -0
- package/tests/lint-extends-all/src/NoBoolSwitch.mo +8 -0
- package/tests/lint-extends-ignored/mops.toml +8 -0
- package/tests/lint-extends-ignored/src/NoBoolSwitch.mo +8 -0
- package/tests/lint.test.ts +32 -2
- package/types.ts +2 -0
- package/vessel.ts +5 -3
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,30 @@
|
|
|
2
2
|
|
|
3
3
|
## Next
|
|
4
4
|
|
|
5
|
+
## 2.6.0
|
|
6
|
+
|
|
7
|
+
- Packages can ship lintoko rules for consumers in a `rules/` directory (distinct from `lint/`/`lints/` which check the package itself); `rules/*.toml` files are included automatically when running `mops publish`
|
|
8
|
+
- Add `[lint] extends` in `mops.toml` to pull in `rules/` from installed dependencies: `extends = ["pkg"]` for named packages or `extends = true` for all
|
|
9
|
+
- Add `[lint] rules` in `mops.toml` to override the default `lint/`/`lints/` rule directories with custom paths
|
|
10
|
+
- `mops check` now runs `mops lint` after a successful type-check when `lintoko` is pinned in `[toolchain]`; lint is scoped to explicitly passed files when given, otherwise covers all `.mo` files; `--fix` propagates to both steps
|
|
11
|
+
- Raise package file limit from 300 to 1000; `mops publish` now fails fast with a clear error if the limit is exceeded
|
|
12
|
+
- Fix `mops docs coverage` crashing with out-of-memory on packages with many source files (replaced JSDOM with a lightweight adoc parser)
|
|
13
|
+
|
|
14
|
+
## 2.5.1
|
|
15
|
+
- Fix `mops test` and `mops watch` breaking when dependency paths contain spaces
|
|
16
|
+
- Fix `mops sync` incorrectly reporting version-pinned dependencies as missing/unused
|
|
17
|
+
- Fix `mops update --lock ignore` not respecting the lock option during intermediate installs
|
|
18
|
+
- Fix `mops update` crashing with unhandled error when GitHub API is unavailable
|
|
19
|
+
- Fix `mops add` writing dependency to config even when GitHub download fails
|
|
20
|
+
- Fix GitHub dependency install crashing the entire process instead of reporting the error
|
|
21
|
+
- Fix version comparison treating short version strings (e.g. `1.0`) as equal to longer ones (e.g. `1.0.5`)
|
|
22
|
+
- Fix `mops remove` not cleaning up transitive dependencies of GitHub packages
|
|
23
|
+
- Fix corrupted `mops.lock` file causing an unhandled crash instead of a helpful error message
|
|
24
|
+
- Fix `mops sources` resolving package config from wrong directory in some contexts
|
|
25
|
+
- Harden lock file integrity check against package ID prefix collisions
|
|
26
|
+
- `mops build` now reports invalid canister names instead of silently ignoring them
|
|
27
|
+
- Document `baseDir`, `readme`, and `dfx` fields in `[package]` config
|
|
28
|
+
|
|
5
29
|
## 2.5.0
|
|
6
30
|
- Add support for `MOPS_REGISTRY_HOST` and `MOPS_REGISTRY_CANISTER_ID` environment variables for custom registry endpoints
|
|
7
31
|
- Fix `mops build` crashing with `__wbindgen_malloc` error in bundled CLI distribution
|
package/api/network.ts
CHANGED