Back to Explore

thlorenz/convert-source-map

GitHub
2 watchersOpen source

Last release:

convert-source-map is a JavaScript utility for converting source maps between different formats, such as turning inline `sourceMappingURL` comments and JSON forms into each other. It also supports reading source maps from files via a caller-provided `readMap` function (sync or async), and modifying map properties (add, set) and emitting updated inline or file-linking comments.

Project status

  • The repository appears to have some ongoing attention (upstream push on 2025-03-27), but the last documented published update in the provided history is v2.0.0 on 2022-10-17, so maintenance looks sporadic rather than actively maintained in the usual sense for 2026.
  • Update cadence appears sparse, with major functional updates clustered in 2017 to 2022, and no clearly evidenced new updates after v2.0.0 in the provided data.

AI summary generated

AI-generated from public sources. May be inaccurate. Report

Recent updates

  • v2.0.0

    v2.0.0 introduces URI (percent-encoded JSON) support for source map payloads and adds a new, more flexible mechanism for reading external map files (sync or async via a callback). It also refactors the comment parsing and encoding logic and raises the minimum supported Node.js version. Release notes were not provided for this version.

    BreakingFeatures
  • v1.9.0

    Release v1.9.0 updates the internal base64 encode/decode logic in index.js to remove the safe-buffer dependency and use native Buffer, or browser atob/btoa as a fallback. It also replaces the legacy Travis CI configuration with a GitHub Actions workflow that tests across a wide range of Node.js versions and updates the README badge.

  • v1.8.0

    Release v1.8.0 was published on 2021-06-18, but no release notes were provided by the publisher. As a result, this release cannot be assessed for new features, breaking changes, bug fixes, security updates, performance improvements, or migration steps based solely on the provided information.

  • v1.7.0

    Release v1.7.0 contains a very small change: the package metadata in package.json was updated. No functional code changes were shown in the provided diff, but bundler behavior for the Node core module fs is modified via the new browser field.

  • v1.6.0

    v1.6.0 makes a small internal change to how the library encodes and decodes base64, switching from Node's deprecated Buffer constructor usage to safe-buffer. Release notes are not provided, so the documented change scope is unknown.

    Security
  • v1.5.1

    Version 1.5.1 makes small changes to sourceMappingURL comment matching and improves the addProperty error message wording. The npm package metadata was also tightened to only include index.js in the published files.

  • v1.5.0

    Release v1.5.0 has no provided release notes. The code changes are small but meaningful: the module now exposes `commentRegex` and `mapFileCommentRegex` as getters that return a fresh `RegExp` instance on each access, affecting regex identity and `lastIndex` behavior.

    Breaking
  • v1.4.0

    Version v1.4.0 updates how inline source map comments are parsed and generated, and modernizes the project tooling and test environment. The core behavioral changes are around sourcemap data URI handling (charset and regex behavior) and removal of an alternate “largeSource” parsing path.

    Breaking
  • v1.3.0

    Release v1.3.0 changes the way file paths are constructed when reading from a source map file map. The only code modification is switching from path.join to path.resolve in index.js.

  • v1.2.0

    Release v1.2.0 is published, but no release notes were provided by the publisher. Because the release notes are missing, this analysis cannot identify specific new features, bug fixes, breaking changes, or other developer-impacting modifications from the provided data.