Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π§© Analysis chain
Verify Node.js 22+ compatibility and breaking API changes before merging.
Wretch 3.x requires Node.js >= 22, while wretch@^2 supports older Node.js versions. This major version bump introduces several breaking changes that require verification:
.errorType()with.customError(). Any usage of the deprecated method in the codebase will fail at runtime.Run the following scripts to verify compatibility:
Additionally, ensure that:
.errorType()calls are present that need migration to.customError()π Script executed:
Length of output: 3086
I need to verify the project's Node.js version requirements by checking CI configurations and sub-package configurations.
I need to check CI configurations and sub-package configurations to determine if the Node.js 22+ requirement is already satisfied by the project's setup.
π Script executed:
Length of output: 824
π Script executed:
Length of output: 1166
I need to check the CI workflow details to understand which tests will fail.
π Script executed:
Length of output: 1522
Tests will fail on Node.js 20.x β CI must be updated or wretch must be downgraded.
Wretch 3.x requires Node.js >= 22, but the CI workflow runs tests on Node.js [20.x, 22.x, 24.x]. Since wretch is imported directly in test files (MswHelper.spec.ts and MockttpHelper.spec.ts in universal-testing-utils), the
npm run test:cistep will fail on the 20.x matrix run.To resolve:
No breaking API changes (
.errorType()calls) were found in the codebase.