Skip to content

Commit dc42f1b

Browse files
committed
feat: update dependencies, remove legacy mode
BREAKING CHANGE: legacy mode removed, node engine up to 20+, use more of the existing node utilities instead of userland modules, specifically base64-url
1 parent 35afccd commit dc42f1b

File tree

15 files changed

+6406
-7302
lines changed

15 files changed

+6406
-7302
lines changed
File renamed without changes.

.husky/commit-msg

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"`npm x -- mdep bin commitlint`" --edit $1

.husky/prepare-commit-msg

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
case "$2,$3" in
2+
merge,)
3+
ex "+%s/Merge branch '\([^']\+\)'/chore(merge): \1/i" -scwq $1 ;;
4+
*) ;;
5+
esac

.mdeprc

Lines changed: 0 additions & 5 deletions
This file was deleted.

.mdeprc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exports.node = '20'
2+
exports.auto_compose = true
3+
exports.with_local_compose = true

package.json

Lines changed: 31 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
"description": "utils for makeomatic mservice for encoding/decoding various token types and storing associated metadata with them",
55
"main": "./lib/index.js",
66
"scripts": {
7-
"test": "yarn lint && yarn test-unit && yarn test-integration",
7+
"test": "pnpm lint && pnpm test-unit && pnpm test-integration",
88
"test-unit": "mocha --extensions ts test/unit.ts",
99
"test-integration": "mdep test run -t ./test/integration.ts",
1010
"lint": "eslint ./src",
1111
"compile": "rimraf ./lib *.tsbuildinfo; tsc --build tsconfig.build.json && copyfiles -u 1 ./src/backends/**/*.lua ./lib",
12-
"prepublishOnly": "yarn compile",
12+
"prepublishOnly": "pnpm compile",
1313
"semantic-release": "semantic-release"
1414
},
1515
"repository": {
@@ -33,56 +33,44 @@
3333
"ioredis": "4.x.x"
3434
},
3535
"engine": {
36-
"node": ">= 12.14.0"
36+
"node": ">= 20.17.0"
3737
},
3838
"devDependencies": {
39-
"@makeomatic/deploy": "^10.3.1",
40-
"@types/base64-url": "^2.2.0",
41-
"@types/bluebird": "^3.5.33",
42-
"@types/chance": "^1.1.0",
43-
"@types/get-value": "^3.0.1",
44-
"@types/glob": "^7.1.3",
45-
"@types/ioredis": "^4.17.7",
46-
"@types/is": "^0.0.21",
47-
"@types/mocha": "^8.0.3",
48-
"@types/node": "^14.14.6",
49-
"@types/uuid": "^8.3.0",
50-
"@typescript-eslint/eslint-plugin": "^4.6.1",
51-
"@typescript-eslint/parser": "^4.6.1",
52-
"codecov": "^3.8.1",
53-
"copyfiles": "^2.4.0",
54-
"cross-env": "^7.0.2",
55-
"eslint": "^7.12.1",
56-
"eslint-config-makeomatic": "^5.0.3",
57-
"eslint-plugin-import": "^2.22.1",
58-
"eslint-plugin-mocha": "^8.0.0",
59-
"eslint-plugin-promise": "^4.2.1",
60-
"ioredis": "^4.19.2",
61-
"mocha": "^8.2.1",
62-
"nyc": "^15.1.0",
63-
"rimraf": "^3.0.2",
64-
"ts-node": "^9.0.0",
65-
"typescript": "^4.0.5"
39+
"@makeomatic/deploy": "^13.1.0",
40+
"@types/base64-url": "^2.2.2",
41+
"@types/chance": "^1.1.6",
42+
"@types/get-value": "^3.0.5",
43+
"@types/glob": "^8.1.0",
44+
"@types/ioredis": "^4.28.10",
45+
"@types/mocha": "^10.0.9",
46+
"@types/node": "^22.7.9",
47+
"@types/uuid": "^10.0.0",
48+
"@typescript-eslint/eslint-plugin": "^7.18.0",
49+
"@typescript-eslint/parser": "^7.18.0",
50+
"copyfiles": "^2.4.1",
51+
"cross-env": "^7.0.3",
52+
"eslint": "^8.57.1",
53+
"eslint-config-makeomatic": "^6.0.0",
54+
"eslint-plugin-import": "^2.31.0",
55+
"eslint-plugin-mocha": "^10.5.0",
56+
"eslint-plugin-promise": "^4.3.1",
57+
"ioredis": "^4.28.5",
58+
"mocha": "^10.7.3",
59+
"rimraf": "^6.0.1",
60+
"ts-node": "^10.9.2",
61+
"typescript": "^5.6.3"
6662
},
6763
"dependencies": {
68-
"base64-url": "^2.3.3",
69-
"chance": "^1.1.7",
64+
"chance": "^1.1.12",
7065
"get-value": "^3.0.1",
71-
"glob": "^7.1.6",
72-
"is": "^3.3.0",
73-
"joi": "^17.3.0",
66+
"glob": "^11.0.0",
67+
"joi": "^17.13.3",
7468
"read-pkg": "^5.2.0",
75-
"uuid": "^8.3.1"
69+
"uuid": "^10.0.0"
7670
},
7771
"files": [
7872
"src/",
7973
"lib/",
8074
"bin/"
81-
],
82-
"husky": {
83-
"hooks": {
84-
"commit-msg": "commitlint -e $HUSKY_GIT_PARAMS",
85-
"prepare-commit-msg": "./node_modules/@makeomatic/deploy/git-hooks/prepare-commit-msg $HUSKY_GIT_PARAMS"
86-
}
87-
}
75+
]
8876
}

0 commit comments

Comments
 (0)