diff --git a/cli/CHANGELOG.md b/cli/CHANGELOG.md index 84916a4e..a0f0ce2b 100644 --- a/cli/CHANGELOG.md +++ b/cli/CHANGELOG.md @@ -1,6 +1,8 @@ # Mops CLI Changelog ## Next + +## 2.12.0 - Migration staging directory moved from `.mops/.migrations//` to `/.migrations-/`, so migration files can import shared modules from sibling folders (e.g. a `types/` folder next to `migrations/`) — relative imports now resolve to the same target whether moc reads the original chain dir or the staged one. The staged dir self-stamps a `.gitignore` so it doesn't pollute `git status`; `mops init` now also adds `.migrations-*/` to the project `.gitignore` - `[canisters..migrations]` now requires `chain` and `next` to share the same parent directory (any layout where the parents differed is rejected with a clear error). The default layout `chain = "migrations"` + `next = "next-migration"` already satisfies this. For per-canister setups, use sibling subdirectories, e.g. `chain = "src/backend/migrations"` + `next = "src/backend/next-migration"` diff --git a/cli/package-lock.json b/cli/package-lock.json index 3cd77568..c7537efe 100644 --- a/cli/package-lock.json +++ b/cli/package-lock.json @@ -1,12 +1,12 @@ { "name": "ic-mops", - "version": "2.11.0", + "version": "2.12.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "ic-mops", - "version": "2.11.0", + "version": "2.12.0", "license": "MIT", "dependencies": { "@iarna/toml": "2.2.5", diff --git a/cli/package.json b/cli/package.json index 0c9e91c8..7be3bf23 100644 --- a/cli/package.json +++ b/cli/package.json @@ -1,6 +1,6 @@ { "name": "ic-mops", - "version": "2.11.0", + "version": "2.12.0", "type": "module", "bin": { "mops": "dist/bin/mops.js",