fix: update @mswjs/interceptors to fix a memory leak#2938
Merged
Conversation
Collaborator
Author
|
Please note that the current tests will fail as the change expects the new version of Interceptors to be released. I will update it here as well since the Nock's test suite is passing against the local link: Update: I've updated the Interceptors version and the tests should pass on CI now. |
default require alias of @mswjs/interceptors@mswjs/interceptors to fix a memory leak
kettanaito
commented
Feb 3, 2026
mikicho
approved these changes
Feb 8, 2026
Member
|
I attempted to fix the tslint issue but couldn't identify all the underlying causes quickly, so I also disabled the dtslint run, which is unmaintained and likely doesn’t support newer TypeScript features. My goal is to support TypeScript natively anyway. |
|
🎉 This PR is included in version 14.0.11 🎉 The release is available on: Your semantic-release bot 📦🚀 |
|
🎉 This PR is included in version 15.0.0-beta.8 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closed
4 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
tsdownfor bundling mswjs/interceptors#759Motivation
In the next version,
@mswjs/interceptorswill no longer have adefaultnamed export in its CJS bundle. That is to comply with the best bundling practices (the default outputtsdownproduces). As a result, the{ default: nodeInterceptors }aliasing breaks asdefaultisundefined.This also updates Interceptors to include two fixes for memory leaks discovered in the library.