This repository was archived by the owner on Jun 28, 2025. It is now read-only.
Releases: ampproject/remapping
Releases · ampproject/remapping
v2.3.0
v2.2.1
Full Changelog: v2.2.0...v2.2.1
v2.2.0
New Features
- Switch to any input supported by
TraceMap- This could give a small speed improvement, because a
presortedDecodedMapcan be returned by the loader
- This could give a small speed improvement, because a
Internal
- Refactor
originalPositionForto remove polymorphism - Extract
FastStringArrayinto separate package - Extract
GenMappinginto separate package
Full Changelog: v2.1.2...v2.2.0
More Advanced Loading Controls
Building on https://github.com/ampproject/remapping/releases/tag/v2.1.0, LoadingContext now provides a depth field so that you can track the depth of the sourcmap tree at the current load. This can be used to, eg, prevent a recursive loading scenario when transforming files in-place (where the transformed load has a sourcemap, but the child source should not).
Advanced Loading Control
The loader API now provides a new LoadingContext object, which provides new features:
importerprovides the resolved path of the parent sourcemap.sourceallows the loader to change the resolved location of the transformed sourcemap or original source file.contentallows override the parent sourcemap'ssourcesContentfield for an original source file.
See https://github.com/ampproject/remapping#advanced-control-of-the-loading-graph for more information.