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

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.0`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.0)
21
- - **better-sqlite3** - [`7.5.0`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.0)
22
- - **SQLite** - [`3.37.2`](https://www.sqlite.org/draft/releaselog/3_37_2.html)
23
- - **SQLite3 Multiple Ciphers** - [`1.3.7`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.3.7)
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)
24
24
 
25
25
  - ### Beta
26
- - **better-sqlite3-multiple-ciphers** - [`7.5.1-beta.3`](https://github.com/m4heshd/better-sqlite3-multiple-ciphers/releases/tag/v7.5.1-beta.3)
27
- - **better-sqlite3** - [`7.5.0`](https://github.com/JoshuaWise/better-sqlite3/releases/tag/v7.5.0)
28
- - **SQLite** - [`3.38.1`](https://www.sqlite.org/draft/releaselog/3_38_1.html)
29
- - **SQLite3 Multiple Ciphers** - [`1.3.9`](https://github.com/utelle/SQLite3MultipleCiphers/releases/tag/v1.3.9)
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)
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)
30
30
 
31
31
  ## Help this project stay strong! 💪
32
32
 
package/deps/copy.js ADDED
@@ -0,0 +1,26 @@
1
+ 'use strict';
2
+ const path = require('path');
3
+ const fs = require('fs');
4
+
5
+ const dest = process.argv[2];
6
+ const source = path.resolve(path.sep, process.argv[3] || path.join(__dirname, 'sqlite3'));
7
+ const files = [
8
+ { filename: 'sqlite3.c', optional: false },
9
+ { filename: 'sqlite3.h', optional: false },
10
+ ];
11
+
12
+ if (process.argv[3]) {
13
+ // Support "_HAVE_SQLITE_CONFIG_H" in custom builds.
14
+ files.push({ filename: 'config.h', optional: true });
15
+ } else {
16
+ // Required for some tests.
17
+ files.push({ filename: 'sqlite3ext.h', optional: false });
18
+ }
19
+
20
+ for (const { filename, optional } of files) {
21
+ if (optional && !fs.existsSync(path.join(source, filename))) {
22
+ continue;
23
+ }
24
+ fs.accessSync(path.join(source, filename));
25
+ fs.copyFileSync(path.join(source, filename), path.join(dest, filename));
26
+ }
package/deps/download.sh CHANGED
@@ -1,111 +1,111 @@
1
- #!/usr/bin/env bash
2
-
3
- # ===
4
- # This script defines and generates the bundled SQLite3 unit (sqlite3.c).
5
- #
6
- # The following steps are taken:
7
- # 1. populate the shell environment with the defined compile-time options.
8
- # 2. download and extract the SQLite3 source code into a temporary directory.
9
- # 3. run "sh configure" and "make sqlite3.c" within the source directory.
10
- # 4. copy the generated amalgamation into the output directory (./sqlite3).
11
- # 5. export the defined compile-time options to a gyp file (./defines.gypi).
12
- # 6. update the docs (../docs/compilation.md) with details of this distribution.
13
- #
14
- # When a user builds better-sqlite3, the following steps are taken:
15
- # 1. node-gyp loads the previously exported compile-time options (defines.gypi).
16
- # 2. the symlink.js script creates symlinks to the bundled amalgamation.
17
- # 3. node-gyp compiles the symlinked sqlite3.c along with better_sqlite3.cpp.
18
- # 4. node-gyp links the two resulting binaries to generate better_sqlite3.node.
19
- # ===
20
-
21
- YEAR="2022"
22
- VERSION="3370200"
23
-
24
- DEFINES="
25
- SQLITE_DQS=0
26
- SQLITE_LIKE_DOESNT_MATCH_BLOBS
27
- SQLITE_THREADSAFE=2
28
- SQLITE_USE_URI=0
29
- SQLITE_DEFAULT_MEMSTATUS=0
30
- SQLITE_OMIT_DEPRECATED
31
- SQLITE_OMIT_GET_TABLE
32
- SQLITE_OMIT_TCL_VARIABLE
33
- SQLITE_OMIT_PROGRESS_CALLBACK
34
- SQLITE_OMIT_SHARED_CACHE
35
- SQLITE_TRACE_SIZE_LIMIT=32
36
- SQLITE_DEFAULT_CACHE_SIZE=-16000
37
- SQLITE_DEFAULT_FOREIGN_KEYS=1
38
- SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
39
- SQLITE_ENABLE_MATH_FUNCTIONS
40
- SQLITE_ENABLE_DESERIALIZE
41
- SQLITE_ENABLE_COLUMN_METADATA
42
- SQLITE_ENABLE_UPDATE_DELETE_LIMIT
43
- SQLITE_ENABLE_STAT4
44
- SQLITE_ENABLE_FTS3_PARENTHESIS
45
- SQLITE_ENABLE_FTS3
46
- SQLITE_ENABLE_FTS4
47
- SQLITE_ENABLE_FTS5
48
- SQLITE_ENABLE_JSON1
49
- SQLITE_ENABLE_RTREE
50
- SQLITE_ENABLE_GEOPOLY
51
- SQLITE_INTROSPECTION_PRAGMAS
52
- SQLITE_SOUNDEX
53
- HAVE_STDINT_H=1
54
- HAVE_INT8_T=1
55
- HAVE_INT16_T=1
56
- HAVE_INT32_T=1
57
- HAVE_UINT8_T=1
58
- HAVE_UINT16_T=1
59
- HAVE_UINT32_T=1
60
- SQLITE_USER_AUTHENTICATION=0
61
- "
62
-
63
- # ========== START SCRIPT ========== #
64
-
65
- echo "setting up environment..."
66
- DEPS="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
67
- TEMP="$DEPS/temp"
68
- OUTPUT="$DEPS/sqlite3"
69
- rm -rf "$TEMP"
70
- rm -rf "$OUTPUT"
71
- mkdir -p "$TEMP"
72
- mkdir -p "$OUTPUT"
73
- export CFLAGS=`echo $(echo "$DEFINES" | sed -e "/^\s*$/d" -e "s/^/-D/")`
74
-
75
- echo "downloading source..."
76
- curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.zip" || exit 1
77
-
78
- echo "extracting source..."
79
- unzip "$TEMP/source.zip" -d "$TEMP" > /dev/null || exit 1
80
- cd "$TEMP/sqlite-src-$VERSION" || exit 1
81
-
82
- echo "configuring amalgamation..."
83
- sh configure > /dev/null || exit 1
84
-
85
- echo "building amalgamation..."
86
- make sqlite3.c > /dev/null || exit 1
87
-
88
- echo "copying amalgamation..."
89
- cp sqlite3.c sqlite3.h sqlite3ext.h "$OUTPUT/" || exit 1
90
-
91
- echo "updating gyp configs..."
92
- GYP="$DEPS/defines.gypi"
93
- printf "# THIS FILE IS AUTOMATICALLY GENERATED (DO NOT EDIT)\n\n{\n 'defines': [\n" > "$GYP"
94
- printf "$DEFINES" | sed -e "/^\s*$/d" -e "s/\(.*\)/ '\1',/" >> "$GYP"
95
- printf " ],\n}\n" >> "$GYP"
96
-
97
- echo "updating docs..."
98
- DOCS="$DEPS/../docs/compilation.md"
99
- MAJOR=`expr "${VERSION:0:1}" + 0`
100
- MINOR=`expr "${VERSION:1:2}" + 0`
101
- PATCH=`expr "${VERSION:3:2}" + 0`
102
- sed -Ei "" -e "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DOCS"
103
- sed -i "" -e "/^SQLITE_/,\$d" "$DOCS"
104
- printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
105
- printf "\`\`\`\n" >> "$DOCS"
106
-
107
- echo "cleaning up..."
108
- cd - > /dev/null || exit 1
109
- rm -rf "$TEMP"
110
-
111
- echo "done!"
1
+ #!/usr/bin/env bash
2
+
3
+ # ===
4
+ # This script defines and generates the bundled SQLite3 unit (sqlite3.c).
5
+ #
6
+ # The following steps are taken:
7
+ # 1. populate the shell environment with the defined compile-time options.
8
+ # 2. download and extract the SQLite3 source code into a temporary directory.
9
+ # 3. run "sh configure" and "make sqlite3.c" within the source directory.
10
+ # 4. copy the generated amalgamation into the output directory (./sqlite3).
11
+ # 5. export the defined compile-time options to a gyp file (./defines.gypi).
12
+ # 6. update the docs (../docs/compilation.md) with details of this distribution.
13
+ #
14
+ # When a user builds better-sqlite3, the following steps are taken:
15
+ # 1. node-gyp loads the previously exported compile-time options (defines.gypi).
16
+ # 2. the copy.js script copies the bundled amalgamation into the build folder.
17
+ # 3. node-gyp compiles the copied sqlite3.c along with better_sqlite3.cpp.
18
+ # 4. node-gyp links the two resulting binaries to generate better_sqlite3.node.
19
+ # ===
20
+
21
+ YEAR="2022"
22
+ VERSION="3380200"
23
+
24
+ DEFINES="
25
+ SQLITE_DQS=0
26
+ SQLITE_LIKE_DOESNT_MATCH_BLOBS
27
+ SQLITE_THREADSAFE=2
28
+ SQLITE_USE_URI=0
29
+ SQLITE_DEFAULT_MEMSTATUS=0
30
+ SQLITE_OMIT_DEPRECATED
31
+ SQLITE_OMIT_GET_TABLE
32
+ SQLITE_OMIT_TCL_VARIABLE
33
+ SQLITE_OMIT_PROGRESS_CALLBACK
34
+ SQLITE_OMIT_SHARED_CACHE
35
+ SQLITE_TRACE_SIZE_LIMIT=32
36
+ SQLITE_DEFAULT_CACHE_SIZE=-16000
37
+ SQLITE_DEFAULT_FOREIGN_KEYS=1
38
+ SQLITE_DEFAULT_WAL_SYNCHRONOUS=1
39
+ SQLITE_ENABLE_MATH_FUNCTIONS
40
+ SQLITE_ENABLE_DESERIALIZE
41
+ SQLITE_ENABLE_COLUMN_METADATA
42
+ SQLITE_ENABLE_UPDATE_DELETE_LIMIT
43
+ SQLITE_ENABLE_STAT4
44
+ SQLITE_ENABLE_FTS3_PARENTHESIS
45
+ SQLITE_ENABLE_FTS3
46
+ SQLITE_ENABLE_FTS4
47
+ SQLITE_ENABLE_FTS5
48
+ SQLITE_ENABLE_JSON1
49
+ SQLITE_ENABLE_RTREE
50
+ SQLITE_ENABLE_GEOPOLY
51
+ SQLITE_INTROSPECTION_PRAGMAS
52
+ SQLITE_SOUNDEX
53
+ HAVE_STDINT_H=1
54
+ HAVE_INT8_T=1
55
+ HAVE_INT16_T=1
56
+ HAVE_INT32_T=1
57
+ HAVE_UINT8_T=1
58
+ HAVE_UINT16_T=1
59
+ HAVE_UINT32_T=1
60
+ SQLITE_USER_AUTHENTICATION=0
61
+ "
62
+
63
+ # ========== START SCRIPT ========== #
64
+
65
+ echo "setting up environment..."
66
+ DEPS="$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)"
67
+ TEMP="$DEPS/temp"
68
+ OUTPUT="$DEPS/sqlite3"
69
+ rm -rf "$TEMP"
70
+ rm -rf "$OUTPUT"
71
+ mkdir -p "$TEMP"
72
+ mkdir -p "$OUTPUT"
73
+ export CFLAGS=`echo $(echo "$DEFINES" | sed -e "/^\s*$/d" -e "s/^/-D/")`
74
+
75
+ echo "downloading source..."
76
+ curl -#f "https://www.sqlite.org/$YEAR/sqlite-src-$VERSION.zip" > "$TEMP/source.zip" || exit 1
77
+
78
+ echo "extracting source..."
79
+ unzip "$TEMP/source.zip" -d "$TEMP" > /dev/null || exit 1
80
+ cd "$TEMP/sqlite-src-$VERSION" || exit 1
81
+
82
+ echo "configuring amalgamation..."
83
+ sh configure > /dev/null || exit 1
84
+
85
+ echo "building amalgamation..."
86
+ make sqlite3.c > /dev/null || exit 1
87
+
88
+ echo "copying amalgamation..."
89
+ cp sqlite3.c sqlite3.h sqlite3ext.h "$OUTPUT/" || exit 1
90
+
91
+ echo "updating gyp configs..."
92
+ GYP="$DEPS/defines.gypi"
93
+ printf "# THIS FILE IS AUTOMATICALLY GENERATED (DO NOT EDIT)\n\n{\n 'defines': [\n" > "$GYP"
94
+ printf "$DEFINES" | sed -e "/^\s*$/d" -e "s/\(.*\)/ '\1',/" >> "$GYP"
95
+ printf " ],\n}\n" >> "$GYP"
96
+
97
+ echo "updating docs..."
98
+ DOCS="$DEPS/../docs/compilation.md"
99
+ MAJOR=`expr "${VERSION:0:1}" + 0`
100
+ MINOR=`expr "${VERSION:1:2}" + 0`
101
+ PATCH=`expr "${VERSION:3:2}" + 0`
102
+ sed -Ei "" -e "s/version [0-9]+\.[0-9]+\.[0-9]+/version $MAJOR.$MINOR.$PATCH/g" "$DOCS"
103
+ sed -i "" -e "/^SQLITE_/,\$d" "$DOCS"
104
+ printf "$DEFINES" | sed -e "/^\s*$/d" >> "$DOCS"
105
+ printf "\`\`\`\n" >> "$DOCS"
106
+
107
+ echo "cleaning up..."
108
+ cd - > /dev/null || exit 1
109
+ rm -rf "$TEMP"
110
+
111
+ echo "done!"
package/deps/setup.ps1 CHANGED
@@ -2,7 +2,7 @@
2
2
  $ErrorActionPreference = "Stop"
3
3
 
4
4
  # SQLite Info
5
- $SQLITEMC_VER = "v1.3.9"
5
+ $SQLITEMC_VER = "v1.4.2"
6
6
  $API_URL = "https://api.github.com/repos/utelle/SQLite3MultipleCiphers/releases/tags/" + $SQLITEMC_VER
7
7
 
8
8
  # Paths