Avatar for the unjs user
unjs
magic-regexp
BlogDocsChangelog

feat: add `orChar`/`from` chain for `charIn`/`charNotIn`

#399
Comparing
feat/or-char-from
(
4091f08
) with
main
(
b06c4e9
)
CodSpeed Performance Gauge
0%
Improvements
0
Regressions
0
Untouched
6
New
0
Dropped
0
Ignored
0

Benchmarks

Passed

preserves context for dynamic regexps
test/transform.bench.ts::transformer: magic-regexp::preserves context for dynamic regexps
CodSpeed Performance Gauge
+1%
3 ms
3 ms
respects how users import library
test/transform.bench.ts::transformer: magic-regexp::respects how users import library
CodSpeed Performance Gauge
+1%
3.5 ms
3.4 ms
ignores non-JS files
test/transform.bench.ts::transformer: magic-regexp::ignores non-JS files
CodSpeed Performance Gauge
+1%
617.8 µs
613.3 µs
statically replaces regexps where possible
test/transform.bench.ts::transformer: magic-regexp::statically replaces regexps where possible
CodSpeed Performance Gauge
+1%
4 ms
4 ms
transforms vue script blocks
test/transform.bench.ts::transformer: magic-regexp::transforms vue script blocks
CodSpeed Performance Gauge
0%
5.3 ms
5.3 ms
ignores code without imports from magic-regexp
test/transform.bench.ts::transformer: magic-regexp::ignores code without imports from magic-regexp
CodSpeed Performance Gauge
0%
669 µs
671.3 µs

Commits

Click on a commit to change the comparison range
Base
main
b06c4e9
-1%
fix: decrease type complexity somewhat
fc3e203
7 months ago
by danielroe
+1%
chore: import type
4091f08
7 months ago
by danielroe
Home Terms PrivacyDocs