- Prefer
"debug_id"
for sourcemap debug IDs (#101) by @loewenheim
- Fixed an error when deserializing sourcemaps with
both
"debugId"
and"debug_id"
keys (#100) by @loewenheim
- Add support for ignoreList property (#93) by @wbinnssmith
- Debug IDs can be read from the "debugId" field in addition to "debug_id" (#97) by @loewenheim.
- ref: Tokens within a sourcemap are now always sorted by their position in the
minified file (#91) by @loewenheim.
Consequently:
- the type
IndexIter
and the functionsget_index_size
,index_iter
, andidx_from_token
have been deleted; - the functionsourcemap_from_token
has been turned into the methodsourcemap
onToken
; - theidx
parameter ofSourceMap::get_token
now has the typeusize
.
- feat: Skip encoding range mappings if it's empty (#86) by @kdy1
- feat: Add support for range mappings proposal (#77) by @kdy1
- perf: using Arc instead of String (#84) by @underfin
- perf: using FxHashMap instead of HashMap (#83) by @underfin
- chore: remove unless change (#82) by @underfin
- refactor: make SourceView implement Sync (#80) by @underfin
- feat: add SourceMap::to_data_url (#81) by @underfin
- feat: Replace
unicode-id
crate withunicode-id-start
(#78) by @Boshen
- fix: Fixed a bug in index sourcemap flattening (#74) by @loewenheim
- ref: SourceMap::adjust_mappings now works in place (#70) by @loewenheim
- fix: Do not set source_contents if it already exists (#68) by @kamilogorek
- feat: Implement sourcemap composition(#67) by @loewenheim
- feat: Sourcemaps now support debug ids (#66) by @loewenheim
- fix: Correctly handle protocol-only sourceRoot values (#61) by @kamilogorek
- Ensure greatest_lower_bound returns lowest match index (#60) by @jridgewell
- feat: Switch to data-encoding for base64 (#59) by @mitsuhiko
- ref: Update CI definitions (#58) by @Swatinem
- fix: Correctly rewrite SourceMapHermes (#56) by @Swatinem
- Remove regex dependency for faster runtime, and compile (#55) by @willstott101
- Jridgewell index (#54) by @Swatinem
Features:
- Add
source_root
support forSourceMap
andSourceMapBuilder
, with respective getters/setters and de/serialization. (#51)
Features:
- Add a new
get_scope_for_token
method toSourceMapHermes
as a more flexible alternative toget_original_function_name
. (#48)
Fixes:
- Improve parsing performance by reusing a temporary allocation. #40
Fixes:
- Fix compilation errors when targetting wasm.
Breaking Changes:
- The
SourceMapRef::Missing
variant was removed in favor of explicitOption
s. - The
locate_sourcemap_reference_slice
andlocate_sourcemap_reference
functions now return aOption
. SourceMapRef::get_url
does not return anOption
anymore.
Features:
- Added missing
Clone
andDebug
impls to a lot of types. - A lot of new convenience API, including a
DecodedMap::get_original_function_name
method that works across all supported SourceMap types.