Back to Explore

stoplightio/path

GitHub
1 watchersOpen source

Last release:

@stoplight/path is a Node and modern browser package published by Stoplight, useful for providing path-related functionality. It includes a changelog via GitHub Releases and can be installed with yarn (yarn add @stoplight/path).

Project status

  • Maintenance status: The repo appears quiet. The latest tagged update is v2.0.1 (2024-03-19), and the last upstream push was 2025-01-20, with no further update evidence after that gap.
  • Update cadence: After major changes in v2.0.0 (2023-02-01), only a small follow-up v2.0.1 (2024-03-19) is evidenced, indicating a long, irregular cadence with extended periods without updates relative to today (2026-08-12).

AI summary generated

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

Recent updates

  • v2.0.1

    Release v2.0.1 primarily removes the "type": "commonjs" field from package.json. The code change set is small, but the yarn.lock file also updates several transitive dependencies.

  • v2.0.0

    v2.0.0 modernizes the build and adds support for Stoplight URIs (stoplight://). It also drops support for Node versions earlier than 12. The diff shows additional non-release-noted packaging and export-resolution changes that can break existing consumers.

    BreakingFeatures
  • v2.0.0-beta.2

    v2.0.0-beta.2 primarily changes the package to use CommonJS module semantics instead of ESM by updating the package.json module type. Release notes describe this as a compatibility bug fix, but the diff also includes additional test configuration and developer workflow tweaks not mentioned.

    Breaking
  • v2.0.0-beta.1

    v2.0.0-beta.1 introduces dual packaging and updates the build toolchain to emit both ESM and CommonJS outputs. It also documents dropping support for Node versions older than 12.

    BreakingFeatures
  • v1.3.2

    v1.3.2 is a small bug-fix release that improves recognition of Windows drive letters when they appear with a leading slash (for example, '/C:/'). It also adds/updates test coverage around drive-letter capitalization normalization for paths and file URLs.

  • v1.3.1

    v1.3.1 primarily updates the build grammar generation to optimize PEG.js output for speed instead of size. The only documented change is within the pegjs build script. The code diff also includes several indirect dependency/version changes in yarn.lock that are not mentioned in the release notes.

  • v1.3.0

    v1.3.0 adds a new path utility named stripRoot and re-exports it from the package entrypoint. The change includes a new implementation file and a dedicated test suite verifying how root-like prefixes are removed from POSIX and Windows-style paths.

    Features
  • v1.2.1

    Release v1.2.1 makes small bug fixes related to SRN deserialization and adds more test coverage around filenames and URI paths that contain dots. The visible change is in how `deserializeSrn` determines the `file` and `ext` fields from the input SRN string.

  • v1.2.0

    v1.2.0 introduces new SRN helper functionality, specifically serialize and deserialize utilities, along with tests and public exports. In addition, the repository build and test scripts were adjusted to separate grammar building from the main build, and to ensure grammar generation runs before tests.

    Features
  • v1.1.0

    v1.1.0 adds support for passing an optional second parameter to the basename function. The implementation now conditionally removes the file extension based on the second argument, and the test suite is updated to cover the new behavior.

    Features