Skip to content

release: v0.2.0 - add a bytes() blob column that needs no Buffer - #13

Merged
cldmv-bot[bot] merged 9 commits into
masterfrom
next
Nov 26, 2026
Merged

cldmv-bot[bot] merged 9 commits into
masterfrom
next

Conversation

@cldmv-bot

@cldmv-bot cldmv-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

@cldmv/sqlite-wasm v0.2.0 Changelog

Release Date: November 2026
Release Type: Minor
Branch: release/0.2.0


Overview

Adds bytes(), a Drizzle blob column that holds a plain Uint8Array, so browser apps can store binary data through Drizzle without a Buffer polyfill. The release also adds a design document and fuller npm keywords. Nothing else changed at runtime, and the wasm module is the same build as v0.1.0.


✨ Features

bytes() blob column for Drizzle (#8)

@cldmv/sqlite-wasm/drizzle now exports bytes(), a blob column whose value is a Uint8Array:

import { bytes } from "@cldmv/sqlite-wasm/drizzle";
import { integer, sqliteTable } from "drizzle-orm/sqlite-core";

export const files = sqliteTable("files", {
	id: integer("id").primaryKey(),
	data: bytes("data").notNull()
});

Drizzle's own blob() modes call Node's Buffer, which browsers don't have, so using them in a page or worker needs a polyfill. bytes() never touches Buffer. Blobs already come back from the database, and through the worker client, as Uint8Array, so it passes values straight through. It stores a blob, so drizzle-kit generates the same column as blob("data"). It is covered in Node, CommonJS and dist/, through the worker client, and in Chromium with no Buffer defined.

📚 Documentation

  • NEW: docs/DESIGN.md (#9): how the library is built and why, covering the toolchain, the source-archive build, the C ↔ JS VFS contract, the storage drivers, WAL without shared memory, locking, the worker client, multi-tab sharing and the Drizzle driver.
  • README: a section on bytes(), and the Buffer caveat now points to it.
  • NEW: docs/changelog/v0/v0.2.0.md — this changelog.

🔧 CI & tooling

  • npm keywords (#11): expanded from five to 26 so the package turns up for searches such as sqlite3, OPFS, local-first, full-text search and Drizzle ORM.

🔧 Dependencies

No dependency updates


Upgrade notes

  • No breaking changes. Drop-in for v0.1.0.
  • Apps that installed a Buffer polyfill only for Drizzle blob columns can switch those columns to bytes() and drop the polyfill. The stored data is the same blob, so no migration is needed.
👥 Contributors

coverage

Metric Coverage
Statements 100.0%
Branches 100.0%
Functions 100.0%
Lines 100.0%

Avg: 100.0% · 5d1134b · Node lts/*

Co-authored-by: Shinrai [email protected]

Shinrai and others added 8 commits November 25, 2026 18:28
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
- feat(drizzle): add a bytes() blob column that needs no Buffer
(0c933c1)

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
_No other changes_



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: add the design document (c82e023)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- chore: expand the package keywords (002b555)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot cldmv-bot Bot added ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: feature Implements new functionality — a PR or issue that adds a feature labels Nov 26, 2026
@cldmv-bot

cldmv-bot Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor Author

🔒 Dependency Review

  • ✅ 0 vulnerable package(s)
  • ✅ 0 package(s) with incompatible licenses
  • ✅ 0 package(s) with invalid SPDX license definitions
  • ✅ 0 package(s) with unknown licenses
  • ✅ 0 denied package(s)
  • ✅ 0 package(s) with OpenSSF Scorecard score < 3

Full job summary

@cldmv-bot cldmv-bot Bot added area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments labels Nov 26, 2026
## 🚀 What's Changed

### 💥 Breaking Changes
_No breaking changes_

### ✨ Features
_No new features_

### 🐛 Bug Fixes
_No bug fixes_

### 📦 Dependencies
_No dependency updates_

### 🔧 Other Changes
- docs: v0.2.0 changelog and What's New (45e7927)



<details>
<summary>👥 Contributors</summary>

- @Shinrai

</details>
@cldmv-bot

cldmv-bot Bot commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

📦 Bundle size unchanged

File Raw Δ Raw Gzipped Δ Gzipped
dist/chunk-IEYL6MVW.mjs 603 B — 362 B —
dist/chunk-IRDSVJEM.mjs 207 B — 190 B —
dist/chunk-IXZKMCUU.mjs 1.7 kB — 825 B —
dist/chunk-VOHQWANF.mjs 1.7 kB — 1.0 kB —
dist/chunk-VRZKKYFL.mjs 28.6 kB — 10.4 kB —
dist/chunk-YTH6FRG3.mjs 3.3 kB — 1.6 kB —
dist/drizzle.cjs 789 B — 511 B —
dist/drizzle.mjs 2.1 kB +63 B (+3.0%) 1.1 kB +40 B
dist/fs-B55OKCP5.mjs 6.9 kB — 3.2 kB —
dist/host.mjs 5.1 kB — 2.3 kB —
dist/index.cjs 785 B — 509 B —
dist/index.mjs 565 B — 371 B —
dist/opfs-CREACZOE.mjs 218 B — 176 B —
dist/sqlite3.wasm 1.53 MB — 609.6 kB —
dist/worker.mjs 12.9 kB — 5.0 kB —
Total 1.59 MB +63 B 637.0 kB +40 B

📊 Generated by bundle-size. Brotli sizes also measured but omitted from the table for brevity.

@cldmv-bot
cldmv-bot Bot merged commit ae9453d into master Nov 26, 2026
50 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: core Touches core library / runtime source code area: tests Touches test files, fixtures, or test infrastructure ! release → master v4 flow: persistent next → master release PR (carries the next feature release) release Marks a pull request as a pending release — merge to publish a new version semver: minor This release adds new functionality in a backwards-compatible way type: dependencies Relates to dependency updates, version bumps, or package management type: documentation Relates to docs, README updates, guides, or inline code comments type: feature Implements new functionality — a PR or issue that adds a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant