Releases: smonn/validator-fns
Releases · smonn/validator-fns
v1.6.3
v1.6.2
v1.6.1
v1.6.0
Various fixes and type changes via #31, but note the following:
- Reverted the ESM only build due to compatibility issues with Next.js)
- Reverted back to c8 from nyc as c8 "just works"
- Slight file size increase due to some internal changes. Same tests and features as before.
- The typings may include some breaking changes.
v1.5.4
v1.5.0
v1.3.0
v1.2.0
v1.1.5
v1.1.2
Performance improvements
About 45% improved performance in the benchmark. Not quite fastest-validator fast, but that library lacks built-in async support and is over 10 kB gzipped. This is fully async and aims to stay below 2.5 kB gzipped.
Before:
===========================
Benchmark validator-fns
===========================
Platform info:
==============
Darwin 20.2.0 x64
Node.JS: 14.15.3
V8: 8.4.371.19-node.17
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz × 16
Suite: Simple test
✔ validator-fns* 293,781 rps
validator-fns* 0% (293,781 rps) (avg: 3μs)
-----------------------------------------------------------------------
After:
===========================
Benchmark validator-fns
===========================
Platform info:
==============
Darwin 20.2.0 x64
Node.JS: 14.15.3
V8: 8.4.371.19-node.17
Intel(R) Core(TM) i9-9880H CPU @ 2.30GHz × 16
Suite: Simple test
✔ validator-fns* 420,459 rps
validator-fns* 0% (420,459 rps) (avg: 2μs)
-----------------------------------------------------------------------