Here is a changelog of improvements we have made relative to source-map-support
If you're here for the first time, you can npm install @cspotcode/source-map-support and require('@cspotcode/source-map-support').install() as a drop-in replacement for npm install source-map-support
This encompasses improvements in @cspotcode/source-map and @cspotcode/source-map-consumer since they were created for, and are primarily consumed by, this library.
0.8.1
0.8
See #38 for all code changes
Changes
- Switch sourcemap consumer to @jridgewell/trace-mapping
- drops WASM requirement
- library is externally maintained
- Normalize cache keys to share single cache entry for both URIs and native paths
Fixes
- Correctly render WASM stack frames
- Fixed bug where file:/// URLs in stack traces were not consistently percent-encoded
- ensure formatting of module paths within stack frames code snippets is consistent with vanilla node
- stack frame/snippet from nodejs may be native path or file URI
- CJS uses native paths
- ESM uses file URIs
- mapped frame should match: either native path or file URI
- Note: On windows, this means backslashes, starts with drive letter, no file:// prefix
Other
- Add node 17 and 18 to test matrix
- Add tests for async, Promise.all, Promise.any stack frames
- Add tests for different path styles in sourcemaps: URIs, native paths, absolute and relative
0.7
Adds
- Adds
uninstall() method to safely remove all hooks from the environment
- Supports multiple instances of this library by sharing state via a global singleton
- redirects
require("source-map-support") to require("@cspotcode/source-map-support")
- Add
@cspotcode/source-map-support/register-hook-require entrypoint
0.6
includes 0.6.0 and 0.6.1
Adds
- bundles TypeScript types; no need for
@types/
- colorized output matching node
Fixes
- formatting of async stack frames
- Fixes broken
NodeError formatting; will no longer strip codes from NodeError
process.on('exit') listeners should run before fatal error is logged
Performance
- use newer
source-map dependency with WASM components for improved performance, maybe smaller install size? (haven't actually checked install size)
- Removes browser bundle for smaller package size
- Removes buffer-from dependency for smaller install size
Removed
- Support for EOLed node versions. We test against and support node 12, 14, and 16
- Removes browser bundle for smaller package size
Other
Here is a changelog of improvements we have made relative to
source-map-supportIf you're here for the first time, you can
npm install @cspotcode/source-map-supportandrequire('@cspotcode/source-map-support').install()as a drop-in replacement fornpm install source-map-supportThis encompasses improvements in
@cspotcode/source-mapand@cspotcode/source-map-consumersince they were created for, and are primarily consumed by, this library.0.8.1
Error:instead ofErrorfix bug where errors without a message would still have colon in "Error: " #390.8
See #38 for all code changes
Changes
Fixes
Other
0.7
Adds
uninstall()method to safely remove all hooks from the environmentuninstall()which will remove hooks from the environment #29require("source-map-support")torequire("@cspotcode/source-map-support")source-map-supportdoes not implement Support multiple instances of source-map-support #28@cspotcode/source-map-support/register-hook-requireentrypoint@cspotcode/source-map-support/registerbut withhookRequireenabled0.6
includes 0.6.0 and 0.6.1
Adds
@types/Fixes
NodeErrorformatting; will no longer strip codes fromNodeErrorprocess.on('exit')listeners should run before fatal error is loggedPerformance
source-mapdependency with WASM components for improved performance, maybe smaller install size? (haven't actually checked install size)Removed
Other