Skip to content

fix(testing-sdk): bump to 1.1.2 and publish core SDK peer-compat fix#678

Merged
ParidelPooya merged 1 commit into
mainfrom
fix/testing-peer-compat-674
Jul 2, 2026
Merged

fix(testing-sdk): bump to 1.1.2 and publish core SDK peer-compat fix#678
ParidelPooya merged 1 commit into
mainfrom
fix/testing-peer-compat-674

Conversation

@ParidelPooya

Copy link
Copy Markdown
Contributor

The published @aws/[email protected] declares a peer dependency of @aws/durable-execution-sdk-js@^1.0.1, which fails to resolve against the core SDK v2.0.0 (issue #674). The source was already widened to *, but the version was never bumped, so the fix could not be republished over the existing 1.1.1 on npm.

Changes:

  • Bump the testing package version 1.1.1 -> 1.1.2 so the already-correct * peer range can be published to the registry.
  • Add a regression test (src/tests/peer-compatibility.test.ts) that reads both manifests off disk and asserts the core SDK's current version satisfies the declared peer range. Workspace symlinking masks this class of bug, so the test guards against it without needing a registry install.
  • Add semver and @types/semver devDependencies used by the test.

Verified: full testing suite passes (1167 passed); the test fails as expected when the peer range is reverted to ^1.0.1.

Issue #, if available: #674

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

The published `@aws/[email protected]` declares a peer
dependency of `@aws/durable-execution-sdk-js@^1.0.1`, which fails to resolve
against the core SDK v2.0.0 (issue #674). The source was already widened to
`*`, but the version was never bumped, so the fix could not be republished
over the existing 1.1.1 on npm.

Changes:
- Bump the testing package version 1.1.1 -> 1.1.2 so the already-correct
  `*` peer range can be published to the registry.
- Add a regression test (src/__tests__/peer-compatibility.test.ts) that reads
  both manifests off disk and asserts the core SDK's current version satisfies
  the declared peer range. Workspace symlinking masks this class of bug, so
  the test guards against it without needing a registry install.
- Add `semver` and `@types/semver` devDependencies used by the test.

Verified: full testing suite passes (1167 passed) with coverage thresholds
held; the test fails as expected when the peer range is reverted to `^1.0.1`.

Fixes #674

@yaythomas yaythomas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  1. Core SDK version at PR head is 2.0.0, testing peer range is already "*", testing version bumped 1.1.1 → 1.1.2 in both package.json and package-lock.json. All consistent with the PR description.
  2. Issue #674 root cause confirmed: published 1.1.1 shipped peer ^1.0.1, which ERESOLVEs against core 2.0.0. Source was widened to * in a prior commit (1e60aee) but never republished because the version was not bumped. This PR does the bump so the fix can ship.
  3. The regression test genuinely guards the bug: satisfies("2.0.0", "^1.0.1") is false
  4. semver / @types/semver are added as devDependencies only, not runtime. Correct.

@ParidelPooya
ParidelPooya marked this pull request as ready for review July 2, 2026 17:34
@ParidelPooya
ParidelPooya merged commit 68d0770 into main Jul 2, 2026
28 of 29 checks passed
@ParidelPooya
ParidelPooya deleted the fix/testing-peer-compat-674 branch July 2, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants