Skip to content

Package exports broken in 3.51.2 #138

@sondr3

Description

@sondr3

I have a project where I import a bunch of types to do some type mapping and configuration for sqlite3.capi.sqlite3_preupdate_hook. After upgrading from 3.51.1-build2 to 3.51.2-build3 these imports no longer work and TypeScript is not happy.

import sqlite3InitModule, {
	type WasmPointer,
	type BindingSpec,
	type Database,
	type SAHPoolUtil,
	type CAPI,
	type SqlValue,
	type Sqlite3Static,
} from "@sqlite.org/sqlite-wasm"

I tried doing a cursory look to figure out why, but I was unable to do so before I had to walk my dog 😅 I created a quite silly repro using the same imports I used before. If you run npm run check, TS will complain. If you then downgrade to npm add @sqlite.org/[email protected] and run it again, it's fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions