Back to Explore

ljharb/safe-regex-test

GitHub
2 watchersOpen source

Last release:

safe-regex-test takes a regular expression and returns a predicate function you can call with a string to test for matches. It’s designed to remain robust even if RegExp.prototype is altered later, making it useful for safer regex-based checks in JavaScript.

Project status

  • Maintenance status: Evidence shows ongoing repository activity (last upstream push 2026-01-05), but the last published package update I can see is v1.1.0 on 2024-12-12, so maintenance looks lightweight and intermittent rather than continuously releasing.
  • Apparent update cadence: Published updates are sparse: v1.0.1 (2024-01-09), v1.0.2 (2024-01-11), v1.0.3 (2024-02-06), then a gap until v1.1.0 (2024-12-12), with no further published updates through 2026-06-09.

AI summary generated

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

Recent updates

  • v1.1.0

    This release (v1.1.0) primarily adds TypeScript type definitions and updates internal dependencies and tooling. The provided release notes are empty, so the full set of behavior-relevant changes must be inferred from the code diff.

    Features
  • v1.0.3

    Release v1.0.3 updates runtime and dev dependencies and refactors how the module obtains the TypeError constructor used in its regex test error handling logic. The release notes section provided by the publisher is empty, so the functional intent of these changes is not documented there.

  • v1.0.2

    Release v1.0.2 was published on 2024-01-11, but no release notes were provided by the publisher. As a result, there is no documented information about new features, fixes, or breaking changes in this version.

  • v1.0.1

    Release v1.0.1 updates CI configuration, adds code coverage instrumentation to the test script, and bumps several runtime and dev dependencies. The provided release notes are empty, so changes described only in repository files (changelog, workflow, package metadata) should be treated as potentially undocumented from the publisher’s perspective.

  • v1.0.0

    Release v1.0.0 was published on 2022-09-22, but no release notes were provided. Without publisher notes, there is no documented information about new features, breaking changes, bug fixes, or security/performance updates to assess developer impact.