You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

better-sqlite3

Package Overview
Dependencies
Maintainers
1
Versions
151
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-sqlite3 - npm Package Compare versions

Comparing version
12.4.1
to
12.4.5
+1
-1
deps/download.sh

@@ -22,3 +22,3 @@ #!/usr/bin/env bash

YEAR="2025"
VERSION="3500400"
VERSION="3510000"

@@ -25,0 +25,0 @@ # Defines below are sorted alphabetically

@@ -371,2 +371,6 @@ /*

int (*setlk_timeout)(sqlite3*,int,int);
/* Version 3.51.0 and later */
int (*set_errmsg)(sqlite3*,int,const char*);
int (*db_status64)(sqlite3*,int,sqlite3_int64*,sqlite3_int64*,int);
};

@@ -707,2 +711,5 @@

#define sqlite3_setlk_timeout sqlite3_api->setlk_timeout
/* Version 3.51.0 and later */
#define sqlite3_set_errmsg sqlite3_api->set_errmsg
#define sqlite3_db_status64 sqlite3_api->db_status64
#endif /* !defined(SQLITE_CORE) && !defined(SQLITE_OMIT_LOAD_EXTENSION) */

@@ -709,0 +716,0 @@

{
"name": "better-sqlite3",
"version": "12.4.1",
"version": "12.4.5",
"description": "The fastest and simplest library for SQLite in Node.js.",

@@ -19,3 +19,3 @@ "homepage": "http://github.com/WiseLibs/better-sqlite3",

"engines": {
"node": "20.x || 22.x || 23.x || 24.x"
"node": "20.x || 22.x || 23.x || 24.x || 25.x"
},

@@ -28,3 +28,3 @@ "dependencies": {

"prebuild": {
"node-abi": "4.13.1"
"node-abi": "4.15.0"
}

@@ -31,0 +31,0 @@ },

@@ -49,3 +49,8 @@ #include <climits>

NODE_MODULE_INIT(/* exports, context */) {
#if defined(NODE_MODULE_VERSION) && NODE_MODULE_VERSION >= 140
// Use Isolate::GetCurrent as stated in deprecation message within v8_context.h 13.9.72320122
v8::Isolate* isolate = v8::Isolate::GetCurrent();
#else
v8::Isolate* isolate = context->GetIsolate();
#endif
v8::HandleScope scope(isolate);

@@ -52,0 +57,0 @@ Addon::ConfigureURI();

@@ -366,3 +366,3 @@ Statement::Statement(

v8::Object::New(isolate,
v8::Object::New(isolate)->GetPrototype(),
GET_PROTOTYPE(v8::Object::New(isolate)),
keys.data(),

@@ -369,0 +369,0 @@ values.data(),

@@ -36,6 +36,6 @@ class Binder {

static bool IsPlainObject(v8::Isolate* isolate, v8::Local<v8::Object> obj) {
v8::Local<v8::Value> proto = obj->GetPrototype();
v8::Local<v8::Value> proto = GET_PROTOTYPE(obj);
v8::Local<v8::Context> ctx = obj->GetCreationContext().ToLocalChecked();
ctx->Enter();
v8::Local<v8::Value> baseProto = v8::Object::New(isolate)->GetPrototype();
v8::Local<v8::Value> baseProto = GET_PROTOTYPE(v8::Object::New(isolate));
ctx->Exit();

@@ -42,0 +42,0 @@ return proto->StrictEquals(baseProto) || proto->StrictEquals(v8::Null(isolate));

@@ -149,3 +149,3 @@ #define JS_VALUE_TO_SQLITE(to, value, isolate, ...) \

isolate,
v8::Object::New(isolate)->GetPrototype(),
GET_PROTOTYPE(v8::Object::New(isolate)),
keys.data(),

@@ -152,0 +152,0 @@ values.data(),

@@ -7,2 +7,9 @@ #define NODE_ARGUMENTS const v8::FunctionCallbackInfo<v8::Value>&

#if defined(V8_MAJOR_VERSION) && V8_MAJOR_VERSION >= 13
// v8::Object::GetPrototype has been deprecated. See http://crbug.com/333672197
#define GET_PROTOTYPE(obj) ((obj)->GetPrototypeV2())
#else
#define GET_PROTOTYPE(obj) ((obj)->GetPrototype())
#endif
#define EasyIsolate v8::Isolate* isolate = v8::Isolate::GetCurrent()

@@ -9,0 +16,0 @@ #define OnlyIsolate info.GetIsolate()

@@ -36,3 +36,3 @@ class RowBuilder {

return v8::Object::New(isolate,
v8::Object::New(isolate)->GetPrototype(),
GET_PROTOTYPE(v8::Object::New(isolate)),
keys.data(),

@@ -39,0 +39,0 @@ values.data(),

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display