Skip to content

Commit bbaa20a

Browse files
authored
fix: resolve dependency conflicts (#37)
* chore: synchronize package-lock.json and package.json * chore: adjust `test` script to use Node.js test runner * fix: resolve dependecy conflicts * ci: remove glob for Node.js 20 compatibility * chore: adjust engine version
1 parent 178b04e commit bbaa20a

File tree

3 files changed

+18
-16
lines changed

3 files changed

+18
-16
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function createCompiler(config) {
8080
cache = config.cache;
8181
}
8282
if (config.cache !== false && !cache) {
83-
cache = new (require('lru-cache'))({ max: ncache });
83+
cache = (require('lru.min').createLRU)({ max: ncache });
8484
}
8585

8686
function toArrayParams(tree, params) {

package-lock.json

Lines changed: 14 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "sql named placeholders to unnamed compiler",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha"
7+
"test": "node --test"
88
},
99
"repository": {
1010
"type": "git",
@@ -17,16 +17,12 @@
1717
"placeholders"
1818
],
1919
"engines": {
20-
"node": ">=12.0.0"
20+
"node": ">=8.0.0"
2121
},
2222
"author": "Andrey Sidorov <[email protected]>",
2323
"files": [],
2424
"license": "MIT",
25-
"devDependencies": {
26-
"mocha": "^5.2.0",
27-
"should": "^13.2.3"
28-
},
2925
"dependencies": {
30-
"lru-cache": "^7.14.1"
26+
"lru.min": "^1.1.0"
3127
}
3228
}

0 commit comments

Comments
 (0)