github arktypeio/arktype arkregex@0.0.18

2 hours ago
  • Rejected non-literal patterns (both wide string and interpolated template literals) with nonLiteralPatternMessage, directing callers to regex.as() or new RegExp(), while distributing regex.parse over concrete literal unions and guarding wide or template flags cleanly (#1576).
  • Cut type-level instantiations across cold start and complex patterns: eliminated the 192x Flags cold-start expansion (-92.8% first-call instantiations), batched literal runs, and added anchored ^...$ and single-digit range fast paths (semver -63%, ?(15) -81%, phone pattern -42%).

Full changelog: https://github.com/arktypeio/arktype/blob/arkregex@0.0.18/ark/regex/CHANGELOG.md

Don't miss a new arktype release

NewReleases is sending notifications on new releases.