Skip to content

Commit 309fe82

Browse files
committed
chore: upgrade dependencies
1 parent fd3b7b8 commit 309fe82

File tree

9 files changed

+610
-471
lines changed

9 files changed

+610
-471
lines changed

.github/dependabot.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Basic dependabot.yml file with
2+
# minimum configuration for two package managers
3+
4+
version: 2
5+
updates:
6+
# Enable version updates for npm
7+
- package-ecosystem: 'npm'
8+
directory: '/'
9+
schedule:
10+
interval: 'weekly'
11+
# Specify labels for npm pull requests
12+
labels:
13+
- 'npm'
14+
- 'dependencies'
15+
versioning-strategy: increase
16+
17+
# Enable version updates for Docker
18+
- package-ecosystem: 'cargo'
19+
directory: '/'
20+
schedule:
21+
interval: 'weekly'
22+
labels:
23+
- 'rust'
24+
- 'dependencies'

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
strategy:
1818
fail-fast: false
1919
matrix:
20-
os: [ubuntu-latest, macos-latest, windows-latest]
20+
os: [ubuntu-18.04, macos-latest, windows-latest]
2121

2222
name: stable - ${{ matrix.os }} - node@14
2323
runs-on: ${{ matrix.os }}
@@ -451,7 +451,7 @@ jobs:
451451
strategy:
452452
fail-fast: false
453453
matrix:
454-
os: [ubuntu-latest, macos-latest, windows-latest]
454+
os: [ubuntu-18.04, macos-latest, windows-latest]
455455
node: ['10', '12', '14', '15']
456456
runs-on: ${{ matrix.os }}
457457

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
yarn lint-staged && cargo fmt --all

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,7 @@ members = [
55
"./packages/deno-lint",
66
"./packages/jieba",
77
]
8+
9+
[profile.release]
10+
codegen-units = 2
11+
lto = true

package.json

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -19,29 +19,30 @@
1919
"format:json": "prettier --parser json --write './**/*.json'",
2020
"format:source": "prettier --config ./package.json --write './**/*.{js,ts}'",
2121
"format:yaml": "prettier --parser yaml --write './**/*.{yml,yaml}'",
22-
"typecheck": "tsc -b tsconfig.project.json -verbose"
22+
"typecheck": "tsc -b tsconfig.project.json -verbose",
23+
"postinstall": "husky install"
2324
},
2425
"devDependencies": {
25-
"@napi-rs/cli": "^1.0.2",
26+
"@napi-rs/cli": "^1.0.3",
2627
"@swc-node/register": "^1.0.4",
27-
"@typescript-eslint/eslint-plugin": "^4.14.1",
28-
"@typescript-eslint/parser": "^4.14.1",
28+
"@typescript-eslint/eslint-plugin": "^4.16.1",
29+
"@typescript-eslint/parser": "^4.16.1",
2930
"ava": "^3.15.0",
3031
"benchmark": "^2.1.4",
3132
"codecov": "^3.8.1",
3233
"cross-env": "^7.0.3",
33-
"eslint": "^7.19.0",
34-
"eslint-config-prettier": "^7.2.0",
34+
"eslint": "^7.21.0",
35+
"eslint-config-prettier": "^8.1.0",
3536
"eslint-plugin-import": "^2.22.1",
3637
"eslint-plugin-prettier": "^3.3.1",
3738
"eslint-plugin-sonarjs": "^0.6.0",
38-
"husky": "^5.0.9",
39+
"husky": "^5.1.3",
3940
"lerna": "^3.22.1",
40-
"lint-staged": "^10.5.3",
41+
"lint-staged": "^10.5.4",
4142
"npm-run-all": "^4.1.5",
4243
"nyc": "^15.1.0",
4344
"prettier": "^2.2.1",
44-
"typescript": "^4.1.3"
45+
"typescript": "^4.2.2"
4546
},
4647
"ava": {
4748
"extensions": ["ts"],
@@ -64,10 +65,5 @@
6465
"singleQuote": true,
6566
"arrowParens": "always",
6667
"parser": "typescript"
67-
},
68-
"husky": {
69-
"hooks": {
70-
"pre-commit": "lint-staged && cargo fmt --all"
71-
}
7268
}
7369
}

packages/bcrypt/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"@node-rs/helper": "^1.1.0"
5050
},
5151
"devDependencies": {
52-
"bcrypt": "^5.0.0",
52+
"bcrypt": "^5.0.1",
5353
"bcryptjs": "^2.4.3"
5454
},
5555
"funding": {

packages/deno-lint/Cargo.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ version = "0.1.0"
88
crate-type = ["cdylib"]
99

1010
[dependencies]
11-
deno_lint = "=0.2.17"
11+
deno_lint = "=0.2.19"
1212
ignore = "0.4"
13-
napi = "1"
13+
napi = {version = "1", features = ["serde-json"]}
1414
napi-derive = "1"
1515
serde = "1"
1616
serde_json = "1"
17-
swc_ecmascript = {version = "=0.18.8", features = ["parser", "transforms", "utils", "visit"]}
17+
swc_ecmascript = {version = "=0.24.1", features = ["parser", "transforms", "utils", "visit"]}
1818
termcolor = "1.1"
1919

2020
[target.'cfg(all(unix, not(target_env = "musl"), not(target_arch = "aarch64")))'.dependencies]

0 commit comments

Comments
 (0)