The main thing — Faster type checking 🚀
This release brings a significant perf improvement to exhaustiveness checking, which led to a ~16% decrease in the time to type-check the full test suite of TS-Pattern:
Category | Before | After | Evolution (%) |
---|---|---|---|
Instantiations | 6,735,991 | 4,562,378 | -32.33% |
Memory used | 732,233K | 746,454K | 1.95% |
Assignability cache size | 209,959 | 205,926 | -1.92% |
Identity cache size | 28,093 | 28,250 | 0.56% |
Check time | 5.78s | 4.83s | -16.44% |
What's Changed
- build(deps-dev): bump braces from 3.0.2 to 3.0.3 by @dependabot in #273
- build(deps-dev): bump webpack from 5.91.0 to 5.94.0 in /examples/gif-fetcher by @dependabot in #276
- build(deps): bump serve-static and express in /examples/gif-fetcher by @dependabot in #283
- perf: improve type checking performance of BuildMany by @gvergnaud in #286
- Fixes type
InvertPatternForExcludeInternal
to work with readonly array by @changwoolab in #284
New Contributors
- @changwoolab made their first contribution in #284
Full Changelog: v5.3.1...v5.4.0