Back to Explore

es-shims/RegExp.prototype.flags

GitHub
1 watchersOpen source

Last release: 1/3/2025

ES6 spec compliant shim for RegExp.prototype.flags, providing a flags() function to get the flag string from regular expressions. Useful for working in ES5 environments where RegExp.prototype.flags is unavailable, by calling the package’s shim method.

Project status

  • The source appears actively maintained, with a documented upstream push on 2025-12-10 and multiple versioned updates after 2024 (v1.5.2 in 2024-02, v1.5.3 in 2024-10, v1.5.4 in 2025-01).
  • The apparent update cadence is roughly every 3 to 9 months based on the provided update timeline, with changes continuing into late 2025 (latest upstream push).

AI summary generated Today

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

Recent updates

  • v1.5.4

    1/3/2025

    v1.5.4 updates the package version and refactors the shim implementation to use helper dependencies (get-proto, gopd, and es-errors) instead of direct built-in Object methods. The provided release notes contain no documented changes, so the actual behavioral and environment-compatibility impact is only visible from the diff.

  • v1.5.3

    10/3/2024

    v1.5.3 primarily updates dependency versions and adjusts the RegExp.prototype.flags polyfill logic to avoid unnecessary polyfilling when native support is present. The release notes section provided to us is empty, and the changelog entry in the diff only broadly states the polyfill fix.

  • v1.5.2

    2/11/2024

    Release v1.5.2 was published on 2024-02-11, but the publisher did not provide any release notes. As a result, this release cannot be assessed for specific new features, bug fixes, breaking changes, security updates, or migration requirements from the provided data.