• 1.2.1 2c810116be

    1.2.1
    All checks were successful
    Run Tests / test (pull_request) Successful in 1m8s
    Run Tests / test (push) Successful in 1m7s
    Publish Package to npmjs / build (release) Successful in 52s
    Stable

    mburchard released this 2026-02-25 20:02:04 +00:00 | 9 commits to main since this release

    Source Map Resolution: Explicit Configuration

    Source map resolution now uses an explicit opt-in API instead of auto-detecting @jridgewell/trace-mapping via dynamic import(). This prevents bundlers (Vite, Rollup, Webpack) from pulling trace-mapping into the production bundle when source map resolution is not needed.

    Setup

    import {originalPositionFor, TraceMap} from '@jridgewell/trace-mapping';
    import {configureSourceMapResolver} from '@mburchard/bit-log';
    
    configureSourceMapResolver(TraceMap, originalPositionFor);
    

    Call configureSourceMapResolver() before configureLogging() so the resolver is active from the first log event. Without this call, call sites still work but show compiled positions.

    Other Changes

    • Upgrade ESLint to v10
    • Update dev dependencies
    Downloads