From 4943e6b1cac553b781cc801e473ceb869a80d947 Mon Sep 17 00:00:00 2001 From: JounQin Date: Sat, 14 Oct 2023 14:38:01 +0800 Subject: [PATCH] feat!: bump all (dev)Dependencies, drop node < 16.10 (#938) --- .all-contributorsrc | 20 +++++++ .changeset/violet-mayflies-think.md | 5 ++ .eslintrc.js | 6 +- .github/workflows/ci.yml | 15 +++-- .github/workflows/release.yml | 2 +- .github/workflows/stale.yml | 2 +- .npmrc | 1 + .nvmrc | 1 + README.md | 86 +++++++++++++++-------------- package.json | 18 +++--- 10 files changed, 96 insertions(+), 60 deletions(-) create mode 100644 .changeset/violet-mayflies-think.md create mode 100644 .nvmrc diff --git a/.all-contributorsrc b/.all-contributorsrc index 3fe72c8..e9eefd1 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -320,6 +320,26 @@ "bug", "code" ] + }, + { + "login": "JounQin", + "name": "JounQin", + "avatar_url": "https://avatars.githubusercontent.com/u/8336744?v=4", + "profile": "https://www.1stg.me/", + "contributions": [ + "question", + "code", + "design", + "doc", + "ideas", + "infra", + "maintenance", + "plugin", + "projectManagement", + "review", + "test", + "tool" + ] } ], "repoType": "github", diff --git a/.changeset/violet-mayflies-think.md b/.changeset/violet-mayflies-think.md new file mode 100644 index 0000000..e4fe2c7 --- /dev/null +++ b/.changeset/violet-mayflies-think.md @@ -0,0 +1,5 @@ +--- +"prettier-eslint": minor +--- + +feat!: bump all (dev)Dependencies, drop node < 16.10 diff --git a/.eslintrc.js b/.eslintrc.js index b07ca0d..45e29f2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -1,5 +1,9 @@ const config = { - extends: ['kentcdodds', 'kentcdodds/jest'], + extends: [ + 'kentcdodds', + 'kentcdodds/jest', + 'plugin:node-dependencies/recommended' + ], parserOptions: { ecmaVersion: 2021 }, diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 929c521..25564f4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,13 +8,19 @@ jobs: strategy: matrix: - node-version: [10.x, 12.x, 14.x] + node-version: + - 10 + - 12 + - 14 + - 16 + - 18 + - 20 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node }} @@ -25,7 +31,6 @@ jobs: run: npm start validate - name: Check test coverage - uses: codecov/codecov-action@v1 + uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos - diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fc81358..0ec6233 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Repo - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: # This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits fetch-depth: 0 diff --git a/.github/workflows/stale.yml b/.github/workflows/stale.yml index a89070a..3e1598f 100644 --- a/.github/workflows/stale.yml +++ b/.github/workflows/stale.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/stale@v1 + - uses: actions/stale@v8 with: repo-token: ${{ secrets.GITHUB_TOKEN }} stale-issue-message: 'Stale issue' diff --git a/.npmrc b/.npmrc index 1df2a6d..b3586a0 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ registry=https://registry.npmjs.org/ package-lock=false +legacy-peer-deps=true diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..cb406c6 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +16.20.2 diff --git a/README.md b/README.md index c56db19..59b62cc 100644 --- a/README.md +++ b/README.md @@ -265,51 +265,55 @@ Thanks goes to these people ([emoji key][emojis]): - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +

Kent C. Dodds

πŸ’» πŸ“– πŸš‡ ⚠️

Gyandeep Singh

πŸ‘€

Igor Pnev

πŸ›

Benjamin Tan

πŸ’¬ πŸ‘€

Eric McCormick

πŸ’» πŸ“– ⚠️

Simon Lydell

πŸ“–

Tom McKearney

πŸ“– πŸ’‘

Patrik Γ…kerstrand

πŸ’»

Lochlan Bunn

πŸ’»

DaniΓ«l Terwiel

πŸ”Œ πŸ”§

Robin Malfait

πŸ”§

Michael McDermott

πŸ’»

Adam Stankiewicz

πŸ’»

Stephen John Sorensen

πŸ’»

Brian Di Palma

πŸ› πŸ’»

Rob Wise

πŸ“– πŸ’»

Patryk Peas

πŸ› πŸ’» ⚠️

Thijs Koerselman

πŸ› πŸ’» ⚠️

Enrique Caballero

πŸ› πŸ’»

Łukasz Moroz

πŸ› ⚠️

Simon Fridlund

πŸ’¬ πŸ› πŸ’» πŸ“– πŸ’‘ πŸ€” πŸš‡ πŸ”Œ πŸ‘€ πŸ“’ ⚠️ πŸ”§ βœ…

Oliver Joseph Ash

πŸ› πŸ’»

Mark Palfreeman

πŸ“–

Alex Taylor

πŸ’» ⚠️

Xianming Zhong

⚠️

Lewis Liu

πŸ’»

Hamza Hamidi

πŸ’» πŸ€” 🚧 πŸ”§ πŸ‘€

Rajiv Ranjan Singh

πŸ’»

Igor

🚧

Rebecca Vest

πŸ’»

Chris Bobbe

πŸ› πŸ’»
Kent C. Dodds
Kent C. Dodds

πŸ’» πŸ“– πŸš‡ ⚠️
Gyandeep Singh
Gyandeep Singh

πŸ‘€
Igor Pnev
Igor Pnev

πŸ›
Benjamin Tan
Benjamin Tan

πŸ’¬ πŸ‘€
Eric McCormick
Eric McCormick

πŸ’» πŸ“– ⚠️
Simon Lydell
Simon Lydell

πŸ“–
Tom McKearney
Tom McKearney

πŸ“– πŸ’‘
Patrik Γ…kerstrand
Patrik Γ…kerstrand

πŸ’»
Lochlan Bunn
Lochlan Bunn

πŸ’»
DaniΓ«l Terwiel
DaniΓ«l Terwiel

πŸ”Œ πŸ”§
Robin Malfait
Robin Malfait

πŸ”§
Michael McDermott
Michael McDermott

πŸ’»
Adam Stankiewicz
Adam Stankiewicz

πŸ’»
Stephen John Sorensen
Stephen John Sorensen

πŸ’»
Brian Di Palma
Brian Di Palma

πŸ› πŸ’»
Rob Wise
Rob Wise

πŸ“– πŸ’»
Patryk Peas
Patryk Peas

πŸ› πŸ’» ⚠️
Thijs Koerselman
Thijs Koerselman

πŸ› πŸ’» ⚠️
Enrique Caballero
Enrique Caballero

πŸ› πŸ’»
Łukasz Moroz
Łukasz Moroz

πŸ› ⚠️
Simon Fridlund
Simon Fridlund

πŸ’¬ πŸ› πŸ’» πŸ“– πŸ’‘ πŸ€” πŸš‡ πŸ”Œ πŸ‘€ πŸ“’ ⚠️ πŸ”§ βœ…
Oliver Joseph Ash
Oliver Joseph Ash

πŸ› πŸ’»
Mark Palfreeman
Mark Palfreeman

πŸ“–
Alex Taylor
Alex Taylor

πŸ’» ⚠️
Xianming Zhong
Xianming Zhong

⚠️
Lewis Liu
Lewis Liu

πŸ’»
Hamza Hamidi
Hamza Hamidi

πŸ’» πŸ€” 🚧 πŸ”§ πŸ‘€
Rajiv Ranjan Singh
Rajiv Ranjan Singh

πŸ’»
Igor
Igor

🚧
Rebecca Vest
Rebecca Vest

πŸ’»
Chris Bobbe
Chris Bobbe

πŸ› πŸ’»
JounQin
JounQin

πŸ’¬ πŸ’» 🎨 πŸ“– πŸ€” πŸš‡ 🚧 πŸ”Œ πŸ“† πŸ‘€ ⚠️ πŸ”§
+ This project follows the [all-contributors][all-contributors] specification. diff --git a/package.json b/package.json index 7c8ef13..9de7ac0 100644 --- a/package.json +++ b/package.json @@ -22,8 +22,7 @@ "dependencies": { "@changesets/cli": "^2.26.2", "@types/eslint": "^8.4.2", - "@types/prettier": "^2.6.0", - "@typescript-eslint/parser": "^5.10.0", + "@typescript-eslint/parser": "^6.7.5", "common-tags": "^1.4.0", "dlv": "^1.1.0", "eslint": "^8.7.0", @@ -31,9 +30,9 @@ "lodash.merge": "^4.6.0", "loglevel-colored-level-prefix": "^1.0.0", "prettier": "^3.0.1", - "pretty-format": "^23.0.1", + "pretty-format": "^29.7.0", "require-relative": "^0.8.7", - "typescript": "^4.5.4", + "typescript": "^5.2.2", "vue-eslint-parser": "^9.1.0" }, "devDependencies": { @@ -41,24 +40,21 @@ "@babel/core": "^7.22.9", "@babel/preset-env": "^7.22.9", "@changesets/changelog-github": "^0.4.8", - "acorn": "^6.1.1", - "ajv": "^6.12.2", "all-contributors-cli": "^6.7.0", "babel-jest": "^29.6.2", - "chalk": "^2.1.0", "eslint-config-kentcdodds": "^20.5.0", + "eslint-plugin-node-dependencies": "^0.11.0", "husky": "^8.0.1", "jest": "^29.6.2", "jest-cli": "^29.6.2", "nps": "^5.7.1", "nps-utils": "^1.3.0", - "prettier-eslint": "file:.", - "prettier-eslint-cli": "^7.1.0", - "rimraf": "^2.5.4", + "prettier-eslint-cli": "^8.0.0", + "rimraf": "^5.0.5", "strip-indent": "^3.0.0" }, "engines": { - "node": ">=10.0.0" + "node": ">=16.10.0" }, "repository": { "type": "git",