magic-regexp

A compiled-away, type-safe, readable RegExp alternative

v0.6.1 by danielroedanielroe

0.6.1 (2022-11-16)

Bug Fixes

  • nuxt: use rc14+ compatible nuxt module (98c4dc9)

v0.6.0 by danielroedanielroe

0.6.0 (2022-10-28)

⚠ BREAKING CHANGES

  • if you are using the types, there is now a hard dependency on TypeScript 4.7+ - see #79 for more

Features

  • implement letter.lowercase and letter.uppercase (#77) (70afa5b)

Bug Fixes

  • update interface Input type parameter to contravariant type (#79) (c9707a2)

v0.5.0 by danielroedanielroe

0.5.0 (2022-09-16)

Features

  • default to non-capture, add grouped and groupedAs (#42) (6b8d4dc)
  • type-safe String.match (#68) (1a2d5d4)

v0.4.1 by danielroedanielroe

0.4.1 (2022-08-05)

Bug Fixes

  • types: differentiate symbols from generics (d92393d)

v0.4.0 by danielroedanielroe

0.4.0 (2022-07-25)

🎉 Massive thanks to @didavid61202 for lots of great contributions in this release! 🎉

⚠ BREAKING CHANGES

  • do not create wrap single chars in parentheses (#27)
  • word has been renamed to wordChar

Features

  • add wordBoundary helper input (#20) (040c940)
  • add chained input and.referenceToGroup (#21) (a18fccb)
  • do not create wrap single chars in parentheses (#27) (a02645b)
  • types: respect global flag for .match and .matchAll types (#29) (2211a83)
  • update IfSingle and wrap to not wrap wrapped input (#33) (cd233ab)

Bug Fixes

  • order of generic types for param of createInput (#31) (545d725)
  • rename word to wordChar and add semantic word helper (#23) (033ee5c)
  • types: include flags in generated RegExp type (c78c4e1)
  • types: infer group names from param with Input type (#32) (6131ac6)

v0.3.0 by danielroedanielroe

0.3.0 (2022-07-20)

Features

  • support string/Set as flags from createRegExp (231dfa1)

Bug Fixes

  • transform: add cjs stub for compatibility (07a6ff7), closes #11

v0.2.3 by danielroedanielroe

0.2.3 (2022-07-18)

Features

  • types: add MagicRegExpMatchArray utility type (#12) (97cb27a)

v0.2.2 by danielroedanielroe

0.2.2 (2022-07-18)

Features

  • expose flags as literal types (0c7bec7)

Bug Fixes

  • types: escape generated types for anyOf (0be9fb3)

v0.2.1 by danielroedanielroe

0.2.1 (2022-07-17)

Bug Fixes

  • correctly merge group generics for .and and .or (b2b7876)

v0.2.0 by danielroedanielroe

0.2.0 (2022-07-17)

Features

  • display built regexp in TS tooltip (#6) (051e219)

v0.1.0 by danielroedanielroe

0.1.0 (2022-07-17)

Features

  • add optionally, oneOrMore and times.any and times.atLeast (0484b31)
  • add strong typing for String.matchAll (5a652b8)

v0.0.4 by danielroedanielroe

0.0.4 (2022-07-17)

Bug Fixes

  • add type stub for transform plugin (edfe945)

v0.0.3 by danielroedanielroe

0.0.3 (2022-07-16)

Bug Fixes

  • transform: don't parse vue template blocks (095ed0a)

v0.0.2 by danielroedanielroe

0.0.2 (2022-07-16)

Bug Fixes

  • transform: use mlly to respect how users import lib (199da7e)