Hasty Briefsbeta

Bilingual

Bun v1.2.9

a year ago
  • #Performance
  • #Bun
  • #Redis
  • Bun v1.2.9 fixes 48 bugs, addressing 116 issues.
  • Introduces Bun.redis, a built-in Redis client for Bun, supporting 66 commands with experimental status.
  • Performance benchmarks show Bun.redis is significantly faster than ioredis in various batch sizes.
  • Bun.S3Client now supports ListObjectsV2 action for listing objects in S3 buckets with pagination.
  • Added support for more libuv symbols, enhancing compatibility with native add-ons.
  • Improved require.extensions compatibility, allowing custom handlers for file extensions.
  • Performance optimizations include faster Array methods and Number.isFinite().
  • Fixed regressions in node:http, AsyncLocalStorage, and node:crypto modules.
  • Enhanced Bun.connect() Socket with additional fields like localAddress and remotePort.
  • Fixed issues impacting Fastify websockets and network share queries on Windows.
  • Added maxBuffer option in Bun.spawn to limit output and prevent resource overuse.
  • Fixed node:crypto.createCipheriv to handle empty options objects correctly.
  • Added support for preserving symlinks during module resolution with --preserve-symlinks flag.
  • Fixed node:net.Server.prototype.address() to correctly resolve hostnames.
  • Improved napi_async_work handling with null checks and proper cancellation.
  • Fixed garbage collection edge cases in node:fs to prevent early buffer collection.