diff --git a/.changeset/pin-platform-sdk-range.md b/.changeset/pin-platform-sdk-range.md new file mode 100644 index 0000000..5ba6b4c --- /dev/null +++ b/.changeset/pin-platform-sdk-range.md @@ -0,0 +1,9 @@ +--- +'@commercetools/sync-actions': patch +--- + +Replace the `latest` version range for `@commercetools/platform-sdk` with `^9.4.0`. + +The `latest` descriptor re-resolved on every lockfile refresh and crossed major boundaries without review, which is how the 8.x to 9.x upgrade landed unannounced. A caret range matches the other packages in this repository and routes future updates through reviewable dependency PRs, with major upgrades gated behind explicit approval. + +This is a dependency-declaration change only. The public API and observable behavior of `@commercetools/sync-actions` are unchanged. diff --git a/packages/sync-actions/package.json b/packages/sync-actions/package.json index ee85057..b873c68 100644 --- a/packages/sync-actions/package.json +++ b/packages/sync-actions/package.json @@ -28,7 +28,7 @@ "test": "jest --runInBand" }, "dependencies": { - "@commercetools/platform-sdk": "latest", + "@commercetools/platform-sdk": "^9.4.0", "esbuild": "^0.25.4", "fast-equals": "^2.0.0", "jest": "^29.7.0", diff --git a/packages/sync-actions/test/recurring-orders-sync.spec.ts b/packages/sync-actions/test/recurring-orders-sync.spec.ts index ba0bc0d..c16612a 100644 --- a/packages/sync-actions/test/recurring-orders-sync.spec.ts +++ b/packages/sync-actions/test/recurring-orders-sync.spec.ts @@ -129,11 +129,11 @@ describe('Actions', () => { test('should build `setOrderSkipConfiguration` action', () => { const before: Partial = { - skipConfiguration: { type: 'counter', totalToSkip: 2, skipped: 1 }, + skipConfiguration: { type: 'Counter', totalToSkip: 2, skipped: 1 }, }; const now: Partial = { skipConfiguration: { - type: 'counter', + type: 'Counter', totalToSkip: 5, skipped: 0, }, diff --git a/yarn.lock b/yarn.lock index 6673cbb..f651893 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1826,12 +1826,12 @@ __metadata: languageName: node linkType: hard -"@commercetools/platform-sdk@npm:latest": - version: 9.4.0 - resolution: "@commercetools/platform-sdk@npm:9.4.0" +"@commercetools/platform-sdk@npm:^9.4.0": + version: 9.5.0 + resolution: "@commercetools/platform-sdk@npm:9.5.0" dependencies: "@commercetools/ts-client": "npm:^5.0.2" - checksum: 10c0/994ee28f20f1c607a56f98136ff71a2b317363ff755518fc398433ae704966e92faaa09752c4c3d6eecb4b10b437fa5e56815e4960c24cf910c32394991cee99 + checksum: 10c0/738d841844dce697cd90d3cac647f577eb347a61d74dd3d4be8591d3d4766807be26c0b584a7910869ceaff3b25796470d41e906da69ccf843e950c5b10c8333 languageName: node linkType: hard @@ -1864,7 +1864,7 @@ __metadata: version: 0.0.0-use.local resolution: "@commercetools/sync-actions@workspace:packages/sync-actions" dependencies: - "@commercetools/platform-sdk": "npm:latest" + "@commercetools/platform-sdk": "npm:^9.4.0" esbuild: "npm:^0.25.4" fast-equals: "npm:^2.0.0" jest: "npm:^29.7.0"