---
title: "Bun v1.0.23"
description: "Bun v1.0.23 adds importing SQLite databases via import attributes (`with {type: \"sqlite\"}`), with an `embed: \"true\"` option that bakes the database into `bun build --compile` single-file executables."
url: "https://swe.quest/articles/bun-v1-0-23-0e9295dd9be6be9e"
canonical: "https://bun.com/blog/bun-v1.0.23"
source: "Bun"
published: "2024-01-16"
difficulty: "medium"
kind: "Release"
reading_minutes: 11
tags: ["javascript","runtimes","sqlite","build-systems","performance"]
---

# Bun v1.0.23

A post on [Bun](https://swe.quest/sources/bun.md), published 2024-01-16, 11 min read, Release. Original: [https://bun.com/blog/bun-v1.0.23](https://bun.com/blog/bun-v1.0.23)

## Summary

Bun v1.0.23 adds importing SQLite databases via import attributes (\`with {type: "sqlite"}\`), with an \`embed: "true"\` option that bakes the database into \`bun build --compile\` single-file executables. NAPI \`.node\` addons can also be embedded in executables, and the bundler gains Resource Management (\`using\`/\`await using\`) via a polyfill plus partial JavaScriptCore support. TCP sends on Linux are about 4% faster because the event loop now makes fewer syscalls, dropping repeated timerfd\_settime/epoll\_ctl calls and draining sockets with non-blocking recvfrom loops, as strace output shows. The release also fixes 40 bugs, including \`--target=node\` require handling, peer dependency resolution, semver comparison, and a Bun.spawn IPC file-descriptor leak, and adds Node.js compatibility APIs such as events.on, FileHandle and import.meta.dirname.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [JavaScript](https://swe.quest/tags/javascript.md) (Languages)
- [Runtimes & VMs](https://swe.quest/tags/runtimes.md) (Compilers & runtimes)
- [SQLite](https://swe.quest/tags/sqlite.md) (Data & databases)
- [Build systems](https://swe.quest/tags/build-systems.md) (Engineering practices)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)

## Prerequisites

- JavaScript modules ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))
- Node.js APIs ([easy posts on JavaScript](https://swe.quest/tags/javascript.md?difficulty=easy))

## Keywords

Bun, SQLite, JavaScriptCore, TC39 Explicit Resource Management, NAPI, epoll, uWebSockets

## Related posts

- [Bun v1.0.19](https://swe.quest/articles/bun-v1-0-19-97f3853badb73f03.md): Bun · 2023-12-22 · Medium · 9 min read · JavaScript, Runtimes & VMs, Performance engineering, Testing, TypeScript
  Bun v1.0.19 fixes 26 bugs and replaces bun-types with @types/bun, which re-exports the real @types/node to avoid type conflicts.
- [Bun v1.0.10](https://swe.quest/articles/bun-v1-0-10-49e5b151965cc45d.md): Bun · 2023-11-07 · Medium · 5 min read · Runtimes & VMs, JavaScript, Performance engineering, Linux
  Bun v1.0.10 makes node:http 14% faster by building Node.js headers, rawHeaders and url strings directly in native code.
- [Bun v1.1.14](https://swe.quest/articles/bun-v1-1-14-d9093a5e7df90e79.md): Bun · 2024-06-19 · Medium · 11 min read · JavaScript, Runtimes & VMs, SQLite, Build systems, Debugging
  Bun v1.1.14 fixes 63 bugs and adds \`bun patch\`, which clones a dependency out of the global cache for local edits and saves the changes as a standard diff under \`patches/\` that \`bun install\` applies automatically. \`bun:sqlite\` gains \`query.as(Class)\` for prototype-based result mapping without constructors, a \`strict\` mode for unprefixed bindings, \`run()\` returning \`changes\` and \`lastInsertRowid\`, and \`safeIntegers\` for 64-bit BigInt results.
- [Bun v1.0.26](https://swe.quest/articles/bun-v1-0-26-3ad49b25623332b4.md): Bun · 2024-02-03 · Medium · 6 min read · JavaScript, Runtimes & VMs, SQLite, Testing
  Bun v1.0.26 fixes 30 bugs and adds multi-statement queries to bun:sqlite via db.run() and db.exec(), though not query or prepare. bun --watch now reliably closes file descriptors on reload, using close\_range(2) on Linux and POSIX\_SPAWN\_CLOEXEC\_DEFAULT on macOS, and resets signal handlers.
- [Bun v0.7.1](https://swe.quest/articles/bun-v0-7-1-5c9040e5c49cc1d7.md): Bun · 2023-07-29 · Medium · 8 min read · JavaScript, Runtimes & VMs, Performance engineering
  Bun v0.7.1 makes ES Module loading 30%–250% faster by running its transpiler concurrently for import statements and dynamic imports, though CommonJS require is still sequential.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
