Skip to content

build(deps-dev): bump sql.js and @types/sql.js - #253

Open
dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e5f2e6426a
Open

dependabot[bot] wants to merge 1 commit into
mainfrom
dependabot/npm_and_yarn/multi-e5f2e6426a

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 22, 2026

Copy link
Copy Markdown
Contributor

Bumps sql.js and @types/sql.js. These dependencies needed to be updated together.
Updates sql.js from 1.16.0 to 1.17.0

Release notes

Sourced from sql.js's releases.

Release v1.17.0

This release exposes SQLite's error codes and constants, and binds BigInt parameters as exact 64-bit integers.

SQLite error codes

Errors thrown by the API now include SQLite's result code, so failures can be handled without matching their message text:

try {
    db.run("INSERT INTO users (email) VALUES (?)", ["a@example.com"]);
} catch (e) {
    if (e.code === "SQLITE_CONSTRAINT_UNIQUE") {
        // the email is already taken
    }
}
  • code is the name of SQLite's extended result code, such as SQLITE_CONSTRAINT_UNIQUE.
  • errcode is the numeric code, such as 2067.
  • The Error message is unchanged.

The thrown errors are documented for each method, including Database.run, exec, each, prepare and close, and Statement.bind, step, get, getAsObject and run.

BigInt parameters

A BigInt parameter is now bound with sqlite3_bind_int64 instead of being converted to text. Values remain exact beyond Number.MAX_SAFE_INTEGER, compare as integers in SQL, and work in arithmetic. A BigInt outside the signed 64-bit range throws a RangeError.

db.run("INSERT INTO ids VALUES (?)", [BigInt("9007199254740993")]);

Reading INTEGER values as BigInt with the existing useBigInt option is unchanged.

SQLite constants

SQL.constants exposes every integer constant defined by the sqlite3.h of the SQLite version in the build:

const SQL = await initSqlJs();
SQL.constants.SQLITE_CONSTRAINT_UNIQUE; // 2067
SQL.constants.SQLITE_OPEN_READWRITE;    // 2

The constants and result-code names are generated from the SQLite header at build time, so they follow SQLite upgrades without a hand-maintained list.

Upgrade notes

  • Code that relied on BigInt parameters being stored or compared as TEXT will now see INTEGER values.
  • The new error properties are additive; the Error messages are unchanged.

... (truncated)

Commits
  • 848ebd0 chore: sync package-lock version with 1.17.0
  • 579a952 update deps
  • 027c2d0 Merge pull request #649 from colinhacks/error-codes
  • ce73cdd docs: document the SQLite errors each method throws
  • b6b10bb feat: expose SQLite's constants, read through the preprocessor
  • bcee058 Merge pull request #648 from colinhacks/bind-bigint-int64
  • 5e2eec8 build: generate the result code names from sqlite3.h
  • 174937f feat: attach SQLite's result code to thrown errors
  • ee849fa feat: bind BigInt parameters as 64-bit integers
  • See full diff in compare view

Updates @types/sql.js from 1.4.11 to 1.16.0

Commits

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [sql.js](https://github.com/sql-js/sql.js) and [@types/sql.js](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/sql.js). These dependencies needed to be updated together.

Updates `sql.js` from 1.16.0 to 1.17.0
- [Release notes](https://github.com/sql-js/sql.js/releases)
- [Commits](sql-js/sql.js@v1.16.0...v1.17.0)

Updates `@types/sql.js` from 1.4.11 to 1.16.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/sql.js)

---
updated-dependencies:
- dependency-name: sql.js
  dependency-version: 1.17.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
- dependency-name: "@types/sql.js"
  dependency-version: 1.16.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants