Back to Explore

syntax-tree/unist-util-stringify-position

GitHub
1 watchersOpen source

Last release: 7/7/2023

A small unifiedjs utility that pretty prints the positional info (line and column, or start to end) from a UNIST node, position object, or point. It outputs a standard human-readable string that’s useful for showing where something occurred in an original document, such as in error or warning messages.

Project status

  • The repository appears to be actively maintained only up to mid-2023, with the most recent upstream push and update being 4.0.0 on 2023-07-07. There have been no subsequent updates shown after that date.
  • Update cadence shown in the evidence is about 6 months (3.0.3 on 2023-01-23, then 4.0.0 on 2023-07-07), with earlier activity in 2022 (3.0.2 on 2022-03-03).

AI summary generated Today

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

Recent updates

  • 4.0.0

    7/7/2023

    unist-util-stringify-position v4.0.0 is a major release that targets Node.js 16+ and switches package entry resolution to use an exports map. It also updates the @types/unist dependency to the v3 typings line.

    Breaking
  • 3.0.3

    1/23/2023

    Release 3.0.3 is primarily described as misc work (docs, code-style refactor, and tsconfig updates). The actual diff shows a larger internal restructuring: the implementation moved into a new lib/ folder with index.js converted to a re-export, along with changes to build, test, and CI tooling.

    Breaking
  • 3.0.2

    3/3/2022

    Release 3.0.2 is a small update focused on TypeScript type definitions. The code change adjusts JSDoc typedefs and the accepted input types for `stringifyPosition`, and adds a dev type dependency to validate the fix.

  • 3.0.1

    3/2/2022

    Release 3.0.1 is a small update focused on TypeScript typing and documentation improvements. The code changes mainly adjust the `stringifyPosition` input typing and how the function detects unist-like nodes versus position/point objects.

  • 3.0.0

    4/13/2021

    Release 3.0.0 converts the package to ESM, adds/updates JSDoc-driven TypeScript types, and refactors the implementation (notably around distribution/build setup). The release notes only mention these high-level items, but the diff shows multiple public API and distribution changes beyond what is documented.

    Breaking
  • 2.0.3

    2/28/2020

    Release 2.0.3 is described in the release notes as a prose refactor only. The diff shows no application runtime code changes, but it does include documentation edits plus changes to test linting and development tooling versions.

  • 2.0.2

    11/10/2019

    Release 2.0.2 primarily updates package metadata by adding a `funding` field to `package.json`. It also bumps several development tooling dependencies (TypeScript test and linting, remark tooling) without describing those changes in the release notes.

    Features
  • 2.0.1

    5/23/2019

    Release 2.0.1 appears to be primarily documentation and tooling related: the readme is reformatted and expanded with additional badges and a related-projects section. The runtime code change in index.js is only comment style, so the published stringify behavior should remain the same.

    Features
  • 2.0.0

    1/6/2019

    Version 2.0.0 introduces TypeScript type definitions for this package and changes the return value when the input is not a valid Unist node, position, or point. Instead of returning null, the implementation now returns an empty string.

    BreakingFeatures
  • 1.1.2

    4/30/2018

    Release 1.1.2 primarily performs a small refactor/cleanup and updates the README wording around Unist positional terminology. The runtime logic in index.js still stringifies nodes/position-like objects into the same line/column range formats, but the internal helper function names and the documented parameter names (location -> position, position -> point) have been shifted.