Back to Explore

juliangruber/balanced-match

GitHub
1 watchersOpen source

Last release: 10/7/2023

balanced-match finds the first non-nested, matching pair of delimiter characters (or patterns), such as `{` and `}` or `<b>` and `</b>`, in a string. It returns the match positions and surrounding text (pre, body, post), or `undefined` if no match is found, and can also use regular expressions.

Project status

  • The project appears actively developed in the upstream repository (last push on 2026-05-26), but the most recent published package updates in the provided history are from 2023-10 (v3.0.1, v3.0.0).
  • Update cadence (based on the provided update history) is relatively infrequent, with a 2021 update (v2.0.0), then a larger 2023 shift (v3.0.0 and v3.0.1), and no further published updates shown after 2023-10.

AI summary generated Today

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

Recent updates

  • v3.0.1

    10/7/2023

    Release v3.0.1 updates the balanced-match package metadata and test/development dependency graph. The documented changes are switching package.json entry resolution from main to exports, and bumping minimist from 1.2.5 to 1.2.8, plus adding a CODE_OF_CONDUCT.md file.

    Breaking
  • v3.0.0

    10/5/2023

    v3.0.0 converts the package to ESM (package.json now has type: module, and index.js uses ESM exports). The release notes mostly claim a single major change, with additional tooling modernization and dependency bumps.

    Breaking
  • v2.0.0

    4/6/2021

    This release updates the project to version 2.0.0 with largely internal refactoring and repository/tooling changes. The runtime implementation in index.js is mostly the same logic, with modernized JavaScript syntax and formatting changes.

  • v1.0.2

    4/6/2021

    v1.0.2 is primarily a tooling and repo housekeeping release, reverting prior formatting and test tooling changes (standard/prettier-standard), undoing some matcha and np-related changes, and adjusting Travis configuration. The core library implementation in index.js appears to be the same algorithmically, with changes mainly related to formatting and build/dev setup.

  • v1.0.1

    4/6/2021

    v1.0.1 modernizes the project tooling (standard, prettier-standard, np) and CI config, and removes the Makefile in favor of npm scripts. It also includes a functional bug fix for cases where the opening and closing delimiters are the same, ensuring the returned `body` is no longer empty.

  • v1.0.0

    11/2/2019

    v1.0.0 is the first stable release of the library. The release notes provide no details on new features, bug fixes, breaking changes, security updates, or migration steps.