@mondaydotcomorg/z2h-cli 0.6.1 → 0.6.2

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.
@@ -1 +1 @@
1
- {"version":3,"file":"auto-migrate.d.ts","sourceRoot":"","sources":["../../../src/migrations/auto-migrate.ts"],"names":[],"mappings":"AAsHA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA+FnF"}
1
+ {"version":3,"file":"auto-migrate.d.ts","sourceRoot":"","sources":["../../../src/migrations/auto-migrate.ts"],"names":[],"mappings":"AAsHA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAkGnF"}
@@ -107,7 +107,10 @@ async function autoMigrate(cliVersion, dryRun = false) {
107
107
  return;
108
108
  }
109
109
  const migrationsJson = (await readJson(migrationsJsonPath));
110
- // Filter to pending migrations (version > lastVersion AND <= cliVersion)
110
+ // Filter to pending migrations (version > lastVersion AND <= cliVersion).
111
+ // CONVENTION: a migration's `version` field must equal the CLI release it
112
+ // ships with (not the feature branch version). This ensures the `gt` check
113
+ // always catches a migration on the exact upgrade that introduces it.
111
114
  const pending = Object.entries(migrationsJson.migrations)
112
115
  .filter(([, entry]) => semver.gt(entry.version, lastVersion) && semver.lte(entry.version, cliVersion))
113
116
  .sort(([, a], [, b]) => semver.compare(a.version, b.version));
@@ -1 +1 @@
1
- {"version":3,"file":"auto-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/auto-migrate.ts"],"names":[],"mappings":"AAsHA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CA+FnF"}
1
+ {"version":3,"file":"auto-migrate.d.ts","sourceRoot":"","sources":["../../src/migrations/auto-migrate.ts"],"names":[],"mappings":"AAsHA,wBAAsB,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,MAAM,UAAQ,GAAG,OAAO,CAAC,IAAI,CAAC,CAkGnF"}
@@ -115,7 +115,10 @@ async function autoMigrate(cliVersion, dryRun = false) {
115
115
  return;
116
116
  }
117
117
  const migrationsJson = (await fsExtra.readJson(migrationsJsonPath));
118
- // Filter to pending migrations (version > lastVersion AND <= cliVersion)
118
+ // Filter to pending migrations (version > lastVersion AND <= cliVersion).
119
+ // CONVENTION: a migration's `version` field must equal the CLI release it
120
+ // ships with (not the feature branch version). This ensures the `gt` check
121
+ // always catches a migration on the exact upgrade that introduces it.
119
122
  const pending = Object.entries(migrationsJson.migrations)
120
123
  .filter(([, entry]) => semver__default.default.gt(entry.version, lastVersion) && semver__default.default.lte(entry.version, cliVersion))
121
124
  .sort(([, a], [, b]) => semver__default.default.compare(a.version, b.version));
package/migrations.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "migrate": "./dist/migrations/002-remove-z2h-cli-from-workspace-deps"
12
12
  },
13
13
  "npm-broker-scope-split": {
14
- "version": "0.6.0",
14
+ "version": "0.6.1",
15
15
  "description": "Rewrite workspace .yarnrc.yml/.npmrc from ${NPM_TOKEN} to the @mondaydotcomorg broker scope-split",
16
16
  "migrate": "./dist/migrations/003-npm-broker-scope-split"
17
17
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mondaydotcomorg/z2h-cli",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
4
4
  "bin": "./bin/z2h-cli.js",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -144,7 +144,10 @@ export async function autoMigrate(cliVersion: string, dryRun = false): Promise<v
144
144
 
145
145
  const migrationsJson = (await readJson(migrationsJsonPath)) as MigrationsJson;
146
146
 
147
- // Filter to pending migrations (version > lastVersion AND <= cliVersion)
147
+ // Filter to pending migrations (version > lastVersion AND <= cliVersion).
148
+ // CONVENTION: a migration's `version` field must equal the CLI release it
149
+ // ships with (not the feature branch version). This ensures the `gt` check
150
+ // always catches a migration on the exact upgrade that introduces it.
148
151
  const pending = Object.entries(migrationsJson.migrations)
149
152
  .filter(([, entry]) => semver.gt(entry.version, lastVersion) && semver.lte(entry.version, cliVersion))
150
153
  .sort(([, a], [, b]) => semver.compare(a.version, b.version));