- Rejected non-literal patterns (both wide
stringand interpolated template literals) withnonLiteralPatternMessage, directing callers toregex.as()ornew RegExp(), while distributingregex.parseover concrete literal unions and guarding wide or template flags cleanly (#1576). - Cut type-level instantiations across cold start and complex patterns: eliminated the 192x
Flagscold-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