Release Notes
What shipped in the v5.1.x line of @remotex-labs/xmap.
🗄️ Archived version
These are the notes for an archived version. See the current release notes for the supported line.
v5.1.0
Stack frames resolved through resolve.service can now be shifted and traced back to a source root, and formatErrorCode accepts a narrower position type.
ts
import { resolveError } from '@remotex-labs/xmap';
const metadata = resolveError(parsedStack, { lineOffset: 2, sourceMap });- Added:
lineOffsetoption on the resolve options, added to every resolved line before a formatted entry is built. Useful when the source context comes from a shifted or combined file. See Options. - Added:
sourceRooton the formatted stack frame, so an entry can be traced back to the URL its source came from. See Options. - Added:
ErrorCodeType, the compact position typeformatErrorCodenow accepts, exposed fromformatter.component. - Changed: The root entry point no longer re-exports
formatter.componentorhighlighter.component. Import them from their subpaths instead:@remotex-labs/xmap/formatter.componentand@remotex-labs/xmap/highlighter.component. See Getting Started. - Changed: Segment interfaces are exported as types from the root entry point. See Segment.
- Changed: The VLQ decoder uses a lookup table for Base64 characters. Behavior is unchanged.
Earlier releases
- v5.0.x - stack parser fixes and
getStackWithoutMessage(archived docs).
