Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): upgrade deps #2623

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 23 additions & 19 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@ defaults:
tags:
only: /^v.*/
node-versions: &node-versions
- "12.22"
- "14.21"
- &node-maintenance-lts "16.20"
- &node-active-lts "18.18"
- &node-current "20.5"
- '16.20'
- &node-maintenance-lts '18.20'
- &node-active-lts '20.13'
- &node-current '22.2'
pkg-cache-path: &pkg-cache-path /tmp/pkg-node-binaries
ldid-version: &ldid-version 2.1.5-procursus7 # https://github.com/ProcursusTeam/ldid

Expand Down Expand Up @@ -54,10 +53,10 @@ commands:
- << parameters.install-corepack >>
steps:
- run:
name: Enable Corepack
command: |
npm install -g corepack
corepack enable
name: Enable Corepack
command: |
npm install -g corepack
corepack enable
- run:
name: Install Dependencies
command: yarn install --immutable
Expand Down Expand Up @@ -114,14 +113,14 @@ commands:
NODE_VERSION=$(echo "<< parameters.node-version >>" | awk -F "." '{ print $1 }')
TARGETS=$(echo "<< parameters.targets >>" | awk -v node_version="$NODE_VERSION" -F "," '{for (i=1;i<=NF;i++) printf "node" node_version "-" $i "," }' | sed "s/,$/\n/")
export ARCH=$(echo << parameters.targets >> | awk 'match($0, /-(arm64|x64)/){ print substr($0, RSTART+1, RLENGTH-1) }')

if [ "<< parameters.bytecode >>" = true ]
then
yarn workspace @stoplight/spectral-cli pkg . --public --public-packages "*" --targets $TARGETS --output binaries/spectral
else
yarn workspace @stoplight/spectral-cli pkg . --no-bytecode --public --public-packages "*" --targets $TARGETS --output binaries/spectral
fi

(cd packages/cli/binaries && ls . | sed -n -E 's/^(spectral)-(alpine|linux|macos)$/mv "\1-\2" "\1-\2"-$ARCH/p' | sh)
- save_cache:
name: Retain pkg cache
Expand Down Expand Up @@ -267,11 +266,14 @@ jobs:
condition:
or:
- equal:
- *node-maintenance-lts
- << parameters.node-version >>
- *node-maintenance-lts
- << parameters.node-version >>
- equal:
- *node-active-lts
- << parameters.node-version >>
- *node-active-lts
- << parameters.node-version >>
- equal:
- *node-current
- << parameters.node-version >>
steps:
- test-harness:
os: linux
Expand Down Expand Up @@ -413,11 +415,13 @@ jobs:
- attach_workspace:
at: /tmp/
- run:
name: "Download GitHub Release Utility"
name: 'Download GitHub Release Utility'
command: go get github.com/tcnksm/ghr
- run:
name: "Publish Release artifacts on GitHub"
command: ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1} ${CIRCLE_TAG} /tmp/binaries
name: 'Publish Release artifacts on GitHub'
command:
ghr -t ${GH_TOKEN} -u ${CIRCLE_PROJECT_USERNAME} -r ${CIRCLE_PROJECT_REPONAME} -c ${CIRCLE_SHA1}
${CIRCLE_TAG} /tmp/binaries

workflows:
commit:
Expand Down Expand Up @@ -445,7 +449,7 @@ workflows:
release:
jobs:
- build-nix-binaries:
filters: *release-tag-filter
filters: *release-tag-filter
- build-windows-binary:
filters: *release-tag-filter
- upload-artifacts:
Expand Down
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
},
"license": "Apache-2.0",
"engines": {
"node": "^12.20 || >= 14.13"
"node": ">= 16.20"
},
"scripts": {
"preclean": "yarn workspaces foreach run preclean",
Expand Down Expand Up @@ -100,14 +100,14 @@
"@typescript-eslint/parser": "^5.34.0",
"eslint": "^8.22.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^4.2.1",
"expect": "^27.5.1",
"fast-glob": "^3.2.7",
"fetch-mock": "^9.11.0",
"file-entry-cache": "^6.0.1",
"husky": "^7.0.4",
"jest": "^28.1.3",
"jest": "^29.7.0",
"jest-mock": "^27.5.1",
"karma": "^6.4.0",
"karma-chrome-launcher": "^3.1.1",
Expand All @@ -121,7 +121,7 @@
"patch-package": "^6.4.7",
"prettier": "^2.4.1",
"semantic-release": "^19.0.5",
"ts-jest": "^28.0.5",
"ts-jest": "^29.1.2",
"ts-node": "^10.8.2",
"typescript": "^4.4.4"
},
Expand All @@ -142,5 +142,5 @@
"prettier --ignore-path .eslintignore --write"
]
},
"packageManager": "yarn@3.5.0"
"packageManager": "yarn@3.8.2"
}
4 changes: 2 additions & 2 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"spectral": "./dist/index.js"
},
"engines": {
"node": "^12.20 || >= 14.13"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down Expand Up @@ -60,7 +60,7 @@
"@types/yargs": "^17.0.8",
"@yao-pkg/pkg": "^5.11.1",
"es-aggregate-error": "^1.0.7",
"nock": "^13.1.3",
"nock": "^13.5.4",
"xml2js": "^0.5.0"
},
"pkg": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
}
},
"engines": {
"node": "^12.20 || >= 14.13"
"node": ">= 16.20"
},
"dependencies": {
"@stoplight/better-ajv-errors": "1.0.3",
Expand Down Expand Up @@ -63,7 +63,7 @@
"@stoplight/yaml": "^4.2.2",
"@types/minimatch": "^3.0.5",
"@types/treeify": "^1.0.0",
"nock": "^13.1.0",
"nock": "^13.5.4",
"treeify": "^1.1.0"
}
}
2 changes: 1 addition & 1 deletion packages/formats/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"types": "dist/index.d.ts",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"dependencies": {
"@stoplight/json": "^3.17.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/formatters/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": "^12.20 || >=14.13"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion packages/functions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
],
"types": "dist/index.d.ts",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"dependencies": {
"@stoplight/better-ajv-errors": "1.0.3",
Expand Down
2 changes: 1 addition & 1 deletion packages/parsers/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": "^12.20 || >=14.13"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ref-resolver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-bundler/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": "^12.20 || >= 14.13"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/ruleset-migrator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/rulesets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
2 changes: 1 addition & 1 deletion packages/runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"bugs": "https://github.com/stoplightio/spectral/issues",
"author": "Stoplight <support@stoplight.io>",
"engines": {
"node": ">=12"
"node": ">= 16.20"
},
"license": "Apache-2.0",
"main": "dist/index.js",
Expand Down
Loading