From e3cdb89c1dce6b912c1b68ecd5ba4c5b37c2d8e9 Mon Sep 17 00:00:00 2001 From: Aleksandr Ananin Date: Tue, 11 Jul 2023 16:04:59 +0200 Subject: [PATCH 1/2] Remove `params` parameter from `exec` function --- src/Database.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/Database.ts b/src/Database.ts index d0de99f..5dee837 100755 --- a/src/Database.ts +++ b/src/Database.ts @@ -299,12 +299,11 @@ export class Database< * Comments are not allowed and will lead to runtime errors. * * @param {string} sql The SQL query to run. - * @param {any} [params, ...] Same as the `params` parameter of `all` * @see https://github.com/mapbox/node-sqlite3/wiki/API#databaseexecsql-callback */ - exec (sql: ISqlite.SqlType, ...params: any[]): Promise { + exec (sql: ISqlite.SqlType): Promise { return new Promise((resolve, reject) => { - const sqlObj = toSqlParams(sql, params) + const sqlObj = toSqlParams(sql) this.db.exec(sqlObj.sql, err => { if (err) { From 804ef54cd3f091421313a07465d9af82af890927 Mon Sep 17 00:00:00 2001 From: Theo Gravity Date: Tue, 11 Jul 2023 10:32:54 -0700 Subject: [PATCH 2/2] Bump major version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 9a34c69..ff40f2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqlite", - "version": "4.2.0", + "version": "5.0.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "sqlite", - "version": "4.2.0", + "version": "5.0.0", "license": "MIT", "devDependencies": { "@theo.gravity/changelog-version": "2.1.11", diff --git a/package.json b/package.json index 976464f..a90317c 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sqlite", - "version": "4.2.1", + "version": "5.0.0", "description": "SQLite client for Node.js applications with SQL-based migrations API written in Typescript", "main": "build/index.js", "types": "build/index.d.ts",