better-sqlite3
Advanced tools
+1
-1
@@ -22,3 +22,3 @@ #!/usr/bin/env bash | ||
| YEAR="2026" | ||
| VERSION="3510200" | ||
| VERSION="3510300" | ||
@@ -25,0 +25,0 @@ # Defines below are sorted alphabetically |
+1
-1
| { | ||
| "name": "better-sqlite3", | ||
| "version": "12.6.2", | ||
| "version": "12.8.0", | ||
| "description": "The fastest and simplest library for SQLite in Node.js.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://github.com/WiseLibs/better-sqlite3", |
+1
-1
@@ -35,3 +35,3 @@ # better-sqlite3 [](https://github.com/JoshuaWise/better-sqlite3/actions/workflows/build.yml?query=branch%3Amaster) | ||
| > Requires Node.js v14.21.1 or later. Prebuilt binaries are available for [LTS versions](https://nodejs.org/en/about/releases/). If you have trouble installing, check the [troubleshooting guide](./docs/troubleshooting.md). | ||
| > Requires a [currently supported Node.js](https://nodejs.org/en/about/previous-releases) version. Prebuilt binaries are available for [LTS versions](https://nodejs.org/en/about/previous-releases). If you have trouble installing, check the [troubleshooting guide](./docs/troubleshooting.md). | ||
@@ -38,0 +38,0 @@ ## Usage |
@@ -411,8 +411,8 @@ const int Database::MAX_BUFFER_SIZE = ( | ||
| NODE_GETTER(Database::JS_open) { | ||
| info.GetReturnValue().Set(Unwrap<Database>(info.This())->open); | ||
| info.GetReturnValue().Set(Unwrap<Database>(PROPERTY_HOLDER(info))->open); | ||
| } | ||
| NODE_GETTER(Database::JS_inTransaction) { | ||
| Database* db = Unwrap<Database>(info.This()); | ||
| Database* db = Unwrap<Database>(PROPERTY_HOLDER(info)); | ||
| info.GetReturnValue().Set(db->open && !static_cast<bool>(sqlite3_get_autocommit(db->db_handle))); | ||
| } |
@@ -381,4 +381,4 @@ Statement::Statement( | ||
| NODE_GETTER(Statement::JS_busy) { | ||
| Statement* stmt = Unwrap<Statement>(info.This()); | ||
| Statement* stmt = Unwrap<Statement>(PROPERTY_HOLDER(info)); | ||
| info.GetReturnValue().Set(stmt->alive && stmt->locked); | ||
| } |
+13
-0
@@ -14,2 +14,15 @@ #define NODE_ARGUMENTS const v8::FunctionCallbackInfo<v8::Value>& | ||
| // PropertyCallbackInfo::This() and Holder() were removed; use HolderV2(). | ||
| // Tracking bug for V8 API removals: http://crbug.com/333672197 | ||
| // V8 head has since restored Holder() and deprecated HolderV2(): | ||
| // https://chromium.googlesource.com/v8/v8/+/main/include/v8-function-callback.h | ||
| // V8_INLINE Local<Object> Holder() const; | ||
| // V8_DEPRECATE_SOON("Use Holder().") | ||
| // V8_INLINE Local<Object> HolderV2() const; | ||
| #if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 13 | ||
| #define PROPERTY_HOLDER(info) (info).HolderV2() | ||
| #else | ||
| #define PROPERTY_HOLDER(info) (info).This() | ||
| #endif | ||
| #define EasyIsolate v8::Isolate* isolate = v8::Isolate::GetCurrent() | ||
@@ -16,0 +29,0 @@ #define OnlyIsolate info.GetIsolate() |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
10252274
0.02%