Skip to content

Commit

Permalink
Upgrade pnpm, bump Node engine and Yoga to version 5 (#2719)
Browse files Browse the repository at this point in the history
* Upgrade Yoga to version 5

* ?

* prettier

* chore(dependencies): updated changesets for modified dependencies

* ?

* ?

* ?

* ?

* ??

* ?

* ?

* changesets

* ?

* ?

* ?

* prettier

* ?

* ?

* ?

* chore(dependencies): updated changesets for modified dependencies

* ?

* ?

* ?

* ?

* prettier

* ?

* prettier?

* pnpm engine not necessary in packages

* unnecessary .npmrc

* bump pnpm

* disable-pre-post-scripts

* use packageManager pnpm version

* changeset major

* action on node 20

* changeset

* chore(dependencies): updated changesets for modified dependencies

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: enisdenjo <[email protected]>
  • Loading branch information
3 people authored May 16, 2024
1 parent e9ee457 commit 50874f2
Show file tree
Hide file tree
Showing 37 changed files with 8,767 additions and 6,648 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
'@graphql-inspector/serve-command': patch
---
dependencies updates:
- Updated dependency [`[email protected]` ↗︎](https://www.npmjs.com/package/graphql-yoga/v/5.3.0)
(from `4.0.3`, in `dependencies`)
26 changes: 26 additions & 0 deletions .changeset/clean-pigs-whisper.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
---
'@graphql-inspector/introspect-command': major
'@graphql-inspector/commands': major
'@graphql-inspector/coverage-command': major
'@graphql-inspector/validate-command': major
'@graphql-inspector/similar-command': major
'@graphql-inspector/graphql-loader': major
'@graphql-inspector/loaders': major
'@graphql-inspector/audit-command': major
'@graphql-inspector/serve-command': major
'@graphql-inspector/github-loader': major
'@graphql-inspector/diff-command': major
'@graphql-inspector/docs-command': major
'@graphql-inspector/code-loader': major
'@graphql-inspector/json-loader': major
'@graphql-inspector/git-loader': major
'@graphql-inspector/url-loader': major
'@graphql-inspector/action': major
'@graphql-inspector/config': major
'@graphql-inspector/logger': major
'@graphql-inspector/core': major
'@graphql-inspector/cli': major
'@graphql-inspector/ci': major
---

Upgrade the Node version from 16 to 18, as the minimum required version is now 18. Additionally, ensure that GraphQL Yoga is upgraded to version 5.
7 changes: 6 additions & 1 deletion .changeset/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/changelog-github", { "repo": "kamilkisiela/graphql-inspector" }],
"changelog": [
"@changesets/changelog-github",
{
"repo": "kamilkisiela/graphql-inspector"
}
],
"commit": false,
"access": "restricted",
"baseBranch": "master",
Expand Down
26 changes: 0 additions & 26 deletions .changeset/funny-cougars-mate.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/khaki-spies-smile.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/kind-cherries-lay.md

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node_version: [16, 18]
node_version: [18, 20]
env:
CI: true

Expand All @@ -28,8 +28,6 @@ jobs:

- name: Install pnpm
uses: pnpm/[email protected]
with:
version: 8.9.2

- name: Get pnpm cache - Set output
id: pnpm-cache
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: pr
on:
pull_request:
branches:
- master
- 'master'

jobs:
release:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@ name: release
on:
push:
branches:
- master
- 'master'

jobs:
stable:
uses: the-guild-org/shared-config/.github/workflows/release-stable.yml@main
with:
releaseScript: release
nodeVersion: 18
packageManager: pnpm
secrets:
githubToken: ${{ secrets.GITHUB_TOKEN }}
npmToken: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
save-exact=true
enable-pre-post-scripts=false
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ outputs:
changes:
description: Total number of changes
runs:
using: node16
using: node20
main: action/index.js
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@
},
"license": "MIT",
"private": true,
"packageManager": "pnpm@8.11.0",
"packageManager": "pnpm@9.1.1",
"engines": {
"node": ">=16.0.0",
"pnpm": ">=8.9.2"
"node": ">=18.0.0",
"pnpm": ">=9.1.1"
},
"keywords": [
"graphql",
Expand Down Expand Up @@ -52,8 +52,8 @@
"yargs": "17.7.2"
},
"devDependencies": {
"@changesets/changelog-github": "0.4.8",
"@changesets/cli": "2.26.2",
"@changesets/changelog-github": "0.5.0",
"@changesets/cli": "2.27.1",
"@graphql-inspector/audit-command": "workspace:*",
"@graphql-inspector/code-loader": "workspace:*",
"@graphql-inspector/commands": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion packages/action/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"bin": {
"graphql-inspector-github": "dist/cjs/index.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"bin": {
"graphql-inspector": "dist/cjs/index.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"bin": {
"graphql-inspector": "dist/cjs/index.js"
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/audit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/commands/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/coverage/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/diff/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/introspect/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/commands/serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -66,7 +66,7 @@
"dependencies": {
"@graphql-inspector/commands": "workspace:*",
"@graphql-inspector/logger": "workspace:*",
"graphql-yoga": "4.0.3",
"graphql-yoga": "5.3.0",
"open": "8.4.2",
"tslib": "2.6.2"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/similar/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/validate/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
1 change: 0 additions & 1 deletion packages/core/.npmrc

This file was deleted.

2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/code/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/git/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/graphql/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/json/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/loaders/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/loaders/url/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/logger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
},
"license": "MIT",
"engines": {
"node": ">=16.0.0"
"node": ">=18.0.0"
},
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
Loading

0 comments on commit 50874f2

Please sign in to comment.