@dolthub/doltlite 0.11.30 → 0.11.37

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/binding.gyp CHANGED
@@ -49,7 +49,8 @@
49
49
  "libraries": ["-lpthread"]
50
50
  }],
51
51
  ["OS=='win'", {
52
- "defines": ["strncasecmp=_strnicmp"]
52
+ "defines": ["strncasecmp=_strnicmp"],
53
+ "libraries": ["Ws2_32.lib"]
53
54
  }]
54
55
  ]
55
56
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dolthub/doltlite",
3
- "version": "0.11.30",
3
+ "version": "0.11.37",
4
4
  "description": "Node.js bindings for DoltLite — a SQLite fork with Git-style version control",
5
5
  "license": "Apache-2.0",
6
6
  "main": "index.js",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -31,15 +31,19 @@ if (!fs.existsSync(inH)) {
31
31
  console.log("Preparing released doltlite amalgamation...")
32
32
  fs.mkdirSync(outDir, { recursive: true })
33
33
  let amalgamation = fs.readFileSync(inC, "utf8")
34
- amalgamation += `
35
34
 
36
- #if defined(DOLTLITE_PROLLY) && defined(SQLITE_USE_SEH) && !defined(SQLITE_OMIT_WAL)
37
- SQLITE_PRIVATE int sqlite3PagerWalSystemErrno(Pager *pPager){
38
- (void)pPager;
39
- return 0;
40
- }
35
+ // DoltLite releases before v0.11.37 emitted the Winsock 2 headers after
36
+ // SQLite's Windows VFS had already included windows.h. Keep those releases
37
+ // buildable while newer release amalgamations carry the ordering fix directly.
38
+ if (!amalgamation.includes("DOLTLITE_AMALGAMATION_WINSOCK2_EARLY")) {
39
+ amalgamation = `/* DOLTLITE_NODE_WINSOCK2_EARLY_FALLBACK */
40
+ #ifdef _WIN32
41
+ # include <winsock2.h>
42
+ # include <ws2tcpip.h>
41
43
  #endif
42
- `
44
+
45
+ ${amalgamation}`
46
+ }
43
47
  fs.writeFileSync(outC, amalgamation)
44
48
  fs.copyFileSync(inH, outH)
45
49
  fs.writeFileSync(versionMarker, `${pkg.version}\n`)