Skip to content

Commit cdcaf87

Browse files
committed
Use pure js mbtiles
Replace @signalk/node-mbtiles with the experimental, Claude-coded version of mbtiles support that uses Node's upcoming (but still experimental) node:sqlite module for sqlite file access. https://nodejs.org/api/sqlite.html Added in: v22.5.0
1 parent bb72de3 commit cdcaf87

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"email": "[email protected]"
3131
},
3232
"dependencies": {
33-
"@mapbox/mbtiles": "^0.12.1",
33+
"@signalk/node-mbtiles": "https://github.com/tkurki/node-mbtiles.git#use-node-sqlite",
3434
"@signalk/server-api": "^2.0.0",
3535
"bluebird": "3.5.1",
3636
"lodash": "^4.17.11",

src/@types/mapbox_mbtiles.d.ts

Lines changed: 0 additions & 1 deletion
This file was deleted.

src/@types/signalk_mbtiles.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
declare module '@signalk/node-mbtiles'

src/charts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import * as bluebird from 'bluebird'
22
import path from 'path'
3-
import MBTiles from '@mapbox/mbtiles'
3+
import MBTiles from '@signalk/node-mbtiles'
44
import * as xml2js from 'xml2js'
55
import { Dirent, promises as fs } from 'fs'
66
import * as _ from 'lodash'

0 commit comments

Comments
 (0)