better-sqlite3-multiple-ciphers 7.5.2-beta.1 → 7.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -17,16 +17,16 @@ The fastest and simplest library for SQLite3 in Node.js. This particular fork su
17
17
  ## Current versions
18
18
 
19
19
  - ### Stable
20
- - **better-sqlite3-multiple-ciphers** - [`7.5.1`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.1)
21
- - **better-sqlite3** - [`7.5.1`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.1)
22
- - **SQLite** - [`3.38.2`](https://www.sqlite.org/releaselog/3_38_2.html)
23
- - **SQLite3 Multiple Ciphers** - [`1.3.10`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.3.10)
20
+ - **better-sqlite3-multiple-ciphers** - [`7.5.2`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.2)
21
+ - **better-sqlite3** - [`7.5.2`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.2)
22
+ - **SQLite** - [`3.38.5`](https://www.sqlite.org/releaselog/3_38_5.html)
23
+ - **SQLite3 Multiple Ciphers** - [`1.4.3`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.4.3)
24
24
 
25
25
  - ### Beta
26
- - **better-sqlite3-multiple-ciphers** - [`7.5.2-beta.1`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.2-beta.1)
26
+ - **better-sqlite3-multiple-ciphers** - [`7.5.2-beta.3`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.2-beta.3)
27
27
  - **better-sqlite3** - [`7.5.1`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.1)
28
- - **SQLite** - [`3.38.3`](https://www.sqlite.org/releaselog/3_38_3.html)
29
- - **SQLite3 Multiple Ciphers** - [`1.4.2`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.4.2)
28
+ - **SQLite** - [`3.38.5`](https://www.sqlite.org/releaselog/3_38_5.html)
29
+ - **SQLite3 Multiple Ciphers** - [`1.4.3`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.4.3)
30
30
 
31
31
  ## Help this project stay strong! 💪
32
32
 
package/deps/setup.ps1 CHANGED
@@ -2,7 +2,7 @@
2
2
  $ErrorActionPreference = "Stop"
3
3
 
4
4
  # SQLite Info
5
- $SQLITEMC_VER = "v1.4.2"
5
+ $SQLITEMC_VER = "v1.4.3"
6
6
  $API_URL = "https://api.github.com/repos/utelle/SQLite3MultipleCiphers/releases/tags/" + $SQLITEMC_VER
7
7
 
8
8
  # Paths
@@ -92,7 +92,7 @@ extern SQLITE_API LPWSTR sqlite3_win32_utf8_to_unicode(const char*);
92
92
  /*** Begin of #include "sqlite3patched.c" ***/
93
93
  /******************************************************************************
94
94
  ** This file is an amalgamation of many separate C source files from SQLite
95
- ** version 3.38.3. By combining all the individual C code files into this
95
+ ** version 3.38.5. By combining all the individual C code files into this
96
96
  ** single large file, the entire code can be compiled as a single translation
97
97
  ** unit. This allows many compilers to do optimizations that would not be
98
98
  ** possible if the files were compiled separately. Performance improvements
@@ -544,9 +544,9 @@ extern "C" {
544
544
  ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
545
545
  ** [sqlite_version()] and [sqlite_source_id()].
546
546
  */
547
- #define SQLITE_VERSION "3.38.3"
548
- #define SQLITE_VERSION_NUMBER 3038003
549
- #define SQLITE_SOURCE_ID "2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4"
547
+ #define SQLITE_VERSION "3.38.5"
548
+ #define SQLITE_VERSION_NUMBER 3038005
549
+ #define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
550
550
 
551
551
  /*
552
552
  ** CAPI3REF: Run-Time Library Version Numbers
@@ -88486,6 +88486,8 @@ case OP_Gosub: { /* jump */
88486
88486
  /* Most jump operations do a goto to this spot in order to update
88487
88487
  ** the pOp pointer. */
88488
88488
  jump_to_p2:
88489
+ assert( pOp->p2>0 ); /* There are never any jumps to instruction 0 */
88490
+ assert( pOp->p2<p->nOp ); /* Jumps must be in range */
88489
88491
  pOp = &aOp[pOp->p2 - 1];
88490
88492
  break;
88491
88493
  }
@@ -133970,6 +133972,14 @@ SQLITE_PRIVATE void sqlite3ParseObjectInit(Parse *pParse, sqlite3 *db){
133970
133972
  if( db->mallocFailed ) sqlite3ErrorMsg(pParse, "out of memory");
133971
133973
  }
133972
133974
 
133975
+ /*
133976
+ ** Maximum number of times that we will try again to prepare a statement
133977
+ ** that returns SQLITE_ERROR_RETRY.
133978
+ */
133979
+ #ifndef SQLITE_MAX_PREPARE_RETRY
133980
+ # define SQLITE_MAX_PREPARE_RETRY 25
133981
+ #endif
133982
+
133973
133983
  /*
133974
133984
  ** Compile the UTF-8 encoded SQL statement zSql into a statement handle.
133975
133985
  */
@@ -134144,7 +134154,7 @@ static int sqlite3LockAndPrepare(
134144
134154
  rc = sqlite3Prepare(db, zSql, nBytes, prepFlags, pOld, ppStmt, pzTail);
134145
134155
  assert( rc==SQLITE_OK || *ppStmt==0 );
134146
134156
  if( rc==SQLITE_OK || db->mallocFailed ) break;
134147
- }while( rc==SQLITE_ERROR_RETRY
134157
+ }while( (rc==SQLITE_ERROR_RETRY && (cnt++)<SQLITE_MAX_PREPARE_RETRY)
134148
134158
  || (rc==SQLITE_SCHEMA && (sqlite3ResetOneSchema(db,-1), cnt++)==0) );
134149
134159
  sqlite3BtreeLeaveAll(db);
134150
134160
  rc = sqlite3ApiExit(db, rc);
@@ -148822,6 +148832,7 @@ static void preserveExpr(IdxExprTrans *pTrans, Expr *pExpr){
148822
148832
  static int whereIndexExprTransNode(Walker *p, Expr *pExpr){
148823
148833
  IdxExprTrans *pX = p->u.pIdxTrans;
148824
148834
  if( sqlite3ExprCompare(0, pExpr, pX->pIdxExpr, pX->iTabCur)==0 ){
148835
+ pExpr = sqlite3ExprSkipCollate(pExpr);
148825
148836
  preserveExpr(pX, pExpr);
148826
148837
  pExpr->affExpr = sqlite3ExprAffinity(pExpr);
148827
148838
  pExpr->op = TK_COLUMN;
@@ -148981,6 +148992,8 @@ static SQLITE_NOINLINE void filterPullDown(
148981
148992
  /* ,--- Because sqlite3ConstructBloomFilter() has will not have set
148982
148993
  ** vvvvv--' pLevel->regFilter if this were true. */
148983
148994
  if( NEVER(pLoop->prereq & notReady) ) continue;
148995
+ assert( pLevel->addrBrk==0 );
148996
+ pLevel->addrBrk = addrNxt;
148984
148997
  if( pLoop->wsFlags & WHERE_IPK ){
148985
148998
  WhereTerm *pTerm = pLoop->aLTerm[0];
148986
148999
  int regRowid;
@@ -149007,6 +149020,7 @@ static SQLITE_NOINLINE void filterPullDown(
149007
149020
  VdbeCoverage(pParse->pVdbe);
149008
149021
  }
149009
149022
  pLevel->regFilter = 0;
149023
+ pLevel->addrBrk = 0;
149010
149024
  }
149011
149025
  }
149012
149026
 
@@ -234606,7 +234620,7 @@ static void fts5SourceIdFunc(
234606
234620
  ){
234607
234621
  assert( nArg==0 );
234608
234622
  UNUSED_PARAM2(nArg, apUnused);
234609
- sqlite3_result_text(pCtx, "fts5: 2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4", -1, SQLITE_TRANSIENT);
234623
+ sqlite3_result_text(pCtx, "fts5: 2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe", -1, SQLITE_TRANSIENT);
234610
234624
  }
234611
234625
 
234612
234626
  /*
@@ -239735,9 +239749,9 @@ SQLITE_API const char *sqlite3_sourceid(void){ return SQLITE_SOURCE_ID; }
239735
239749
 
239736
239750
  #define SQLITE3MC_VERSION_MAJOR 1
239737
239751
  #define SQLITE3MC_VERSION_MINOR 4
239738
- #define SQLITE3MC_VERSION_RELEASE 2
239752
+ #define SQLITE3MC_VERSION_RELEASE 3
239739
239753
  #define SQLITE3MC_VERSION_SUBRELEASE 0
239740
- #define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.2"
239754
+ #define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.3"
239741
239755
 
239742
239756
  #endif /* SQLITE3MC_VERSION_H_ */
239743
239757
  /*** End of #include "sqlite3mc_version.h" ***/
@@ -239896,9 +239910,9 @@ extern "C" {
239896
239910
  ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
239897
239911
  ** [sqlite_version()] and [sqlite_source_id()].
239898
239912
  */
239899
- #define SQLITE_VERSION "3.38.3"
239900
- #define SQLITE_VERSION_NUMBER 3038003
239901
- #define SQLITE_SOURCE_ID "2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4"
239913
+ #define SQLITE_VERSION "3.38.5"
239914
+ #define SQLITE_VERSION_NUMBER 3038005
239915
+ #define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
239902
239916
 
239903
239917
  /*
239904
239918
  ** CAPI3REF: Run-Time Library Version Numbers
@@ -262721,7 +262735,7 @@ sqlite3mcBtreeSetPageSize(Btree* p, int pageSize, int nReserve, int iFix)
262721
262735
  ** Change 4: Call sqlite3mcBtreeSetPageSize instead of sqlite3BtreeSetPageSize for main database
262722
262736
  ** (sqlite3mcBtreeSetPageSize allows to reduce the number of reserved bytes)
262723
262737
  **
262724
- ** This code is generated by the script rekeyvacuum.sh from SQLite version 3.38.3 amalgamation.
262738
+ ** This code is generated by the script rekeyvacuum.sh from SQLite version 3.38.5 amalgamation.
262725
262739
  */
262726
262740
  SQLITE_PRIVATE SQLITE_NOINLINE int sqlite3mcRunVacuumForRekey(
262727
262741
  char **pzErrMsg, /* Write error message here */
@@ -31,9 +31,9 @@
31
31
 
32
32
  #define SQLITE3MC_VERSION_MAJOR 1
33
33
  #define SQLITE3MC_VERSION_MINOR 4
34
- #define SQLITE3MC_VERSION_RELEASE 2
34
+ #define SQLITE3MC_VERSION_RELEASE 3
35
35
  #define SQLITE3MC_VERSION_SUBRELEASE 0
36
- #define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.2"
36
+ #define SQLITE3MC_VERSION_STRING "SQLite3 Multiple Ciphers 1.4.3"
37
37
 
38
38
  #endif /* SQLITE3MC_VERSION_H_ */
39
39
  /*** End of #include "sqlite3mc_version.h" ***/
@@ -192,9 +192,9 @@ extern "C" {
192
192
  ** [sqlite3_libversion_number()], [sqlite3_sourceid()],
193
193
  ** [sqlite_version()] and [sqlite_source_id()].
194
194
  */
195
- #define SQLITE_VERSION "3.38.3"
196
- #define SQLITE_VERSION_NUMBER 3038003
197
- #define SQLITE_SOURCE_ID "2022-04-27 12:03:15 9547e2c38a1c6f751a77d4d796894dec4dc5d8f5d79b1cd39e1ffc50df7b3be4"
195
+ #define SQLITE_VERSION "3.38.5"
196
+ #define SQLITE_VERSION_NUMBER 3038005
197
+ #define SQLITE_SOURCE_ID "2022-05-06 15:25:27 78d9c993d404cdfaa7fdd2973fa1052e3da9f66215cff9c5540ebe55c407d9fe"
198
198
 
199
199
  /*
200
200
  ** CAPI3REF: Run-Time Library Version Numbers
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "better-sqlite3-multiple-ciphers",
3
- "version": "7.5.2-beta.1",
3
+ "version": "7.5.2",
4
4
  "description": "better-sqlite3 with multiple-cipher encryption support",
5
5
  "homepage": "https://github.com/m4heshd/better-sqlite3-multiple-ciphers",
6
6
  "author": "Mahesh Bandara Wijerathna (m4heshd) <m4heshd@gmail.com>",
@@ -17,17 +17,17 @@
17
17
  ],
18
18
  "dependencies": {
19
19
  "bindings": "^1.5.0",
20
- "prebuild-install": "^7.0.0"
20
+ "prebuild-install": "^7.1.0"
21
21
  },
22
22
  "devDependencies": {
23
- "chai": "^4.3.4",
24
- "cli-color": "^2.0.0",
25
- "fs-extra": "^10.0.0",
23
+ "chai": "^4.3.6",
24
+ "cli-color": "^2.0.2",
25
+ "fs-extra": "^10.1.0",
26
26
  "mocha": "^8.3.2",
27
27
  "nodemark": "^0.3.0",
28
- "prebuild": "^11.0.0",
29
- "sqlite": "^4.0.23",
30
- "sqlite3": "^5.0.2"
28
+ "prebuild": "^11.0.3",
29
+ "sqlite": "^4.1.1",
30
+ "sqlite3": "^5.0.8"
31
31
  },
32
32
  "scripts": {
33
33
  "install": "prebuild-install || npm run build-release",