Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

regexp-ast-analysis

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

regexp-ast-analysis - npm Package Versions

2

0.7.1

Diff

Changelog

Source

0.7.1 (2023-09-13)

Fixed

  • Some bug fixes for UnicodeSet.
rundevelopment
published 0.7.0 •

Changelog

Source

0.7.0 (2023-09-05)

Breaking

  • Upgraded dependencies to @eslint-community/regexpp v4.8.0 and refa v0.12.0.
  • is{Potentially,}{Empty,ZeroLength}, isEmptyBackreference, getLengthRange, and isLengthRangeMinZero now require a flags argument.
  • Changed the semantics of matchesAllCharacters.

Added

  • Added support for the v flag.
    • toUnicodeSet is the new toCharSet.
    • hasStrings will return whether a character element contains strings.
  • getConsumedChars will return all characters consumed by an element.
  • Chars.maxChar(flags) will return the maximum character (either 0xFFFF or 0x10FFFF) depending on the given flags.
rundevelopment
published 0.6.0 •

Changelog

Source

0.6.0 (2023-03-30)

Breaking

  • Upgraded dependencies to @eslint-community/regexpp v4.5.0 and refa v0.11.0.

Added

  • getClosestAncestor now supports any number of arguments.
rundevelopment
published 0.5.1 •

Changelog

Source

0.5.1 (2022-04-18)

Fixed

  • Fixed getLongestPrefix not caching correctly.
rundevelopment
published 0.5.0 •

Changelog

Source

0.5.0 (2022-04-18)

Breaking

  • getLengthRange will now throw a RangeError instead of returning undefined for empty arrays.

Added

  • Added isLengthRangeMinZero function that is equivalent to getLengthRange(e).min === 0 but implemented more efficiently.
  • Added onlyInside option for getLongest function.
rundevelopment
published 0.4.1 •

Changelog

Source

0.4.1 (2022-04-17)

Improved

  • canReorder can now prove more alternatives to be safe to reorder.
  • canReorder will now create a cache if none is provided.
rundevelopment
published 0.4.0 •

Changelog

Source

0.4.0 (2022-04-16)

Breaking

  • Dropped support for NodeJS 10. The library will likely still work on this NodeJS version, but it won't be tested and NodeJS-10-specific bugs will be rejected.

Added

  • Added containsCapturingGroup.
  • Added getLongestPrefix.
  • Added canReorder.
rundevelopment
published 0.3.0 •

Changelog

Source

0.3.0 (2021-09-04)

Breaking

  • The FirstLookChar, FirstFullyConsumedChar, and FirstPartiallyConsumedChar interfaces are now immutable.

Added

  • Added transparent caching for all functions taking flags.
  • Added FirstConsumedChars and FirstLookChars namespaces. They contain methods for working with FirstLookChars and FirstConsumedChars.
  • Added FollowOperations.continueOutside to improve analysis inside lookaround assertions.
  • Added FollowEndReason type.
  • followPaths now supports alternatives as the start element.
  • The getFirst{Consumed,}Char* functions now supports alternatives as the after-this element.

Improved

  • The getFirst{Consumed,}Char* functions can now look outside of lookarounds to return better results.
  • Improved how the exact property of FirstConsumedChars is determined. getFirstConsumedChar will now return better results.
  • Improved documentation.
  • Lots of internal refactoring and improvements.

Fixed

  • Fixed that getFirstConsumedChar sometimes returned partially consumed chars with trivially rejecting looks instead of a fully consumed char.
rundevelopment
published 0.2.4 •

Changelog

Source

0.2.4 (2021-08-12)

Fixed

  • Fixed getFirst{Consumed,}Char* functions taking exponential time for some word boundary assertions.
rundevelopment
published 0.2.3 •

Changelog

Source

0.2.3 (2021-07-15)

Changed

  • Updated refa and regexpp.
2
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc