Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improvements and bugfixes compared to source-map-support #24

Open
cspotcode opened this issue Sep 5, 2021 · 0 comments
Open

Improvements and bugfixes compared to source-map-support #24

cspotcode opened this issue Sep 5, 2021 · 0 comments

Comments

@cspotcode
Copy link
Owner

cspotcode commented Sep 5, 2021

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

0.6

includes 0.6.0 and 0.6.1

Adds

Fixes

Performance

Removed

Other

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

No branches or pull requests

1 participant