SaltyAom

@saltyaom.com

I cosplay and code. Made ElysiaJS. No context, daily life, programming, and cosplay stuff

Elysia 2β "DayDream" - Entire rewrite with new architecture - Far better memory usage and reduced startup time - Ahead-of-Time Compilation build plugin - Completely tree-shake TypeBox - Expressive Error Type Inference - New adapter and better runtime portability

Bild

🎉 require(esm) has been unflaged in v22.12.0! We are also planning to unflag it on v20.x later if it goes well in v22.x. As before please try it out and report any bugs you find. (hopefully none, but with how wild the module loading edge cases can be, one never knows!).

Ruy Adorno@ruyadorno.com · 2y ago

A new Node.js LTS Release is out! 🥳 v22.12.0 enables require(esm) by default! Read more about that change and the rest of additions / fixes in our blog post / CHANGELOG: nodejs.org/en/blog/rele... #nodejs #javascript

In the next version of Elysia Elysia migrate internal models to TypeBox's Module Making Circular Recursive Type possible

Bild

On the next version of Elysia WebSocket has been updated to support the latest Bun WebSocket. Inline resolve also now works.

Bild

𝑬𝒗𝒆𝒏 𝒊𝒇 𝑰 𝒕𝒓𝒚 𝒕𝒐 𝒍𝒐𝒐𝒌 𝒔𝒆𝒓𝒊𝒐𝒖𝒔, 𝒔𝒐𝒎𝒆𝒉𝒐𝒘 𝒊𝒕 𝒇𝒆𝒆𝒍𝒔 𝒇𝒂𝒌𝒆 𝒕𝒐 𝒎𝒆, 𝒚𝒐𝒖 𝒌𝒏𝒐𝒘 𝑰 𝒄𝒂𝒏’𝒕 𝒃𝒆𝒄𝒐𝒎𝒆 𝒂 𝒈𝒐𝒐𝒅 𝒑𝒆𝒓𝒔𝒐𝒏. 𝑻𝒉𝒓𝒐𝒖𝒈𝒉 𝒊𝒕 𝒂𝒍𝒍, 𝑰 𝒔𝒊𝒎𝒑𝒍𝒚 𝒉𝒆𝒍𝒅 𝒚𝒐𝒖 𝒊𝒏 𝒎𝒚 𝒉𝒂𝒏𝒅

Bild

In the next version of Bun bun build gets a fast native plugin API Using the same .mdx library to bundle 6 .mdx files: - Bun's native api: 13.2ms - Bun's js api: 18ms (1.36x slower) - Rolldown: 33.5ms (2.5x slower) - esbuild: 36.1ms (2.7x slower)

❯ hyperfine  "bun bun-onBeforeParse.js # New" "bun bun-onLoad.js" "bun rolldown-plugin.js" "bun esbuild-onLoad.js" "node rolldown-plugin.js" "node esbuild-onLoad.js" --warmup=100
Benchmark 1: bun bun-onBeforeParse.js # New
  Time (mean ± σ):      13.2 ms ±   0.4 ms    [User: 11.7 ms, System: 6.5 ms]
  Range (min … max):    12.5 ms …  15.5 ms    178 runs

Benchmark 2: bun bun-onLoad.js
  Time (mean ± σ):      18.0 ms ±   0.4 ms    [User: 18.2 ms, System: 8.6 ms]
  Range (min … max):    17.2 ms …  20.4 ms    137 runs

Benchmark 3: bun rolldown-plugin.js
  Time (mean ± σ):      33.5 ms ±   0.4 ms    [User: 39.2 ms, System: 32.3 ms]
  Range (min … max):    32.6 ms …  35.3 ms    79 runs

Benchmark 4: bun esbuild-onLoad.js
  Time (mean ± σ):      36.1 ms ±   0.6 ms    [User: 28.1 ms, System: 7.3 ms]
  Range (min … max):    34.8 ms …  37.8 ms    75 runs

Benchmark 5: node rolldown-plugin.js
  Time (mean ± σ):      55.3 ms ±   0.7 ms    [User: 57.0 ms, System: 30.9 ms]
  Range (min … max):