Releases: RunDevelopment/regexp-ast-analysis
Releases · RunDevelopment/regexp-ast-analysis
v0.7.1
v0.7.0
Breaking
- Upgraded dependencies to
@eslint-community/regexpp
v4.8.0 andrefa
v0.12.0. is{Potentially,}{Empty,ZeroLength}
,isEmptyBackreference
,getLengthRange
, andisLengthRangeMinZero
now require a flags argument.- Changed the semantics of
matchesAllCharacters
.
Added
- Added support for the
v
flag.toUnicodeSet
is the newtoCharSet
.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 (either0xFFFF
or0x10FFFF
) depending on the given flags.
v0.6.0
Breaking
- Upgraded dependencies to
@eslint-community/regexpp
v4.5.0 andrefa
v0.11.0.
Added
getClosestAncestor
now supports any number of arguments.
v0.5.1
v0.5.0
Breaking
getLengthRange
will now throw aRangeError
instead of returningundefined
for empty arrays.
Added
- Added
isLengthRangeMinZero
function that is equivalent togetLengthRange(e).min === 0
but implemented more efficiently. - Added
onlyInside
option forgetLongest
function.
v0.4.1
Improved
canReorder
can now prove more alternatives to be safe to reorder.canReorder
will now create a cache if none is provided.
v0.4.0
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
.
v0.3.0
Breaking
- The
FirstLookChar
,FirstFullyConsumedChar
, andFirstPartiallyConsumedChar
interfaces are now immutable.
Added
- Added transparent caching for all functions taking flags.
- Added
FirstConsumedChars
andFirstLookChars
namespaces. They contain methods for working withFirstLookChar
s andFirstConsumedChar
s. - 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 ofFirstConsumedChar
s 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.
v0.2.4
Fixed
- Fixed
getFirst{Consumed,}Char*
functions taking exponential time for some word boundary assertions.