Skip to content

v2.1.0

Choose a tag to compare

@arthurfiorette arthurfiorette released this 11 Sep 13:09
· 558 commits to master since this release

Important Changes

  • compile type no longer requires explicit generic by @ethanniser in #19
  • Added HTMX typings to improve intellisense for htmx users.
  • Made html and jsx files importable to reduce overhead on weak bundle systems.

New Contributors


Benchmark

  • 2023-09-11T06:33:17.036Z
  • Node: v20.6.0
  • V8: 10.2.154.26-node.26
  • OS: darwin
  • Arch: arm64

Hello World

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.0111ms 0.0149ms 1.34x 0.0071ms 1.56x 2.1x
10000 1.389ms 4.3509ms 3.13x 0.5962ms 2.33x 7.3x
100000 9.6386ms 25.7452ms 2.67x 2.6383ms 3.65x 9.76x

Many Props

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.8359ms 2.4209ms 2.9x 0.0041ms 203.88x 590.46x
10000 654.4648ms 1696.169ms 2.59x 1.0713ms 610.91x 1583.28x
100000 6022.4039ms 13676.7311ms 2.27x 4.9011ms 1228.79x 2790.54x

Big Component

Runs @kitajs/html typed-html + .compile() + / @kitajs/html + / typed-html
10 0.4776ms 1.0979ms 2.3x 0.0052ms 91.85x 211.13x
10000 411.6375ms 987.0599ms 2.4x 1.2778ms 322.15x 772.47x
100000 3986.7891ms 9863.4924ms 2.47x 6.9333ms 575.02x 1422.63x

Full Changelog: v2.0.1...v2.1.0