feat: Deprecate registerEsmLoaderHooks.include and registerEsmLoaderHooks.exclude#14486
Merged
feat: Deprecate registerEsmLoaderHooks.include and registerEsmLoaderHooks.exclude#14486
registerEsmLoaderHooks.include and registerEsmLoaderHooks.exclude#14486Conversation
added 2 commits
November 26, 2024 13:12
4 tasks
lforst
commented
Nov 27, 2024
| }); | ||
|
|
||
| const esmWarning = | ||
| '[Sentry] You are using Node.js in ESM mode ("import syntax"). The Sentry Node.js SDK is not compatible with ESM in Node.js versions before 18.19.0 or before 20.6.0. Please either build your application with CommonJS ("require() syntax"), or use version 7.x of the Sentry Node.js SDK.'; |
Contributor
Author
There was a problem hiding this comment.
Snuck this in. It's probably not in our interest to point people towards v7 any longer.
mydea
approved these changes
Nov 27, 2024
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.
Ref: #14483
Deprecates
registerEsmLoaderHooks.includeandregisterEsmLoaderHooks.excludeand adds notes to allEsmLoaderHookOptionswhat it takes towards migrating to the new default of makingonlyIncludeInstrumentedModulesthe default behavior.