From dd79cf1daef3c5872c0625337369d0c83c532216 Mon Sep 17 00:00:00 2001 From: Joram van den Boezem Date: Tue, 28 Feb 2023 15:42:25 +0100 Subject: [PATCH] fix: upgrade deps (#55) --- .github/workflows/dependabot-automerge.yml | 18 +++ CHANGELOG.md | 30 +++-- package.json | 86 ++++++------- src/get-error.ts | 2 +- yarn.lock | 138 +++++++++++++-------- 5 files changed, 167 insertions(+), 107 deletions(-) create mode 100644 .github/workflows/dependabot-automerge.yml diff --git a/.github/workflows/dependabot-automerge.yml b/.github/workflows/dependabot-automerge.yml new file mode 100644 index 00000000..92442e61 --- /dev/null +++ b/.github/workflows/dependabot-automerge.yml @@ -0,0 +1,18 @@ +name: dependabot-automerge + +on: + pull_request: + +permissions: + pull-requests: write + contents: write + +jobs: + dependabot-automerge: + runs-on: ubuntu-latest + if: ${{ github.actor == 'dependabot[bot]' }} + steps: + - run: gh pr merge --auto --squash "$PR_URL" + env: + PR_URL: ${{ github.event.pull_request.html_url }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/CHANGELOG.md b/CHANGELOG.md index 32fb8cb6..70e49100 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,37 +1,43 @@ ## [0.3.1](https://github.com/hongaar/semantic-release-yarn/compare/v0.3.0...v0.3.1) (2023-01-18) - ### Bug Fixes -* remove unused deps ([#42](https://github.com/hongaar/semantic-release-yarn/issues/42)) ([e87dcce](https://github.com/hongaar/semantic-release-yarn/commit/e87dccea586264e001c0f7c4aab3c1b37e64cf96)) +- remove unused deps + ([#42](https://github.com/hongaar/semantic-release-yarn/issues/42)) + ([e87dcce](https://github.com/hongaar/semantic-release-yarn/commit/e87dccea586264e001c0f7c4aab3c1b37e64cf96)) # [0.3.0](https://github.com/hongaar/semantic-release-yarn/compare/v0.2.3...v0.3.0) (2022-12-08) - ### Bug Fixes -* verify ([#20](https://github.com/hongaar/semantic-release-yarn/issues/20)) ([bf0a7e8](https://github.com/hongaar/semantic-release-yarn/commit/bf0a7e8c0b0f2c2191261d6389b1577d37ae24ab)) - +- verify ([#20](https://github.com/hongaar/semantic-release-yarn/issues/20)) + ([bf0a7e8](https://github.com/hongaar/semantic-release-yarn/commit/bf0a7e8c0b0f2c2191261d6389b1577d37ae24ab)) ### Features -* monorepo notifications and channels ([#19](https://github.com/hongaar/semantic-release-yarn/issues/19)) ([5f5ac71](https://github.com/hongaar/semantic-release-yarn/commit/5f5ac716a10ed9251da9d008fa7054ff39b45609)) +- monorepo notifications and channels + ([#19](https://github.com/hongaar/semantic-release-yarn/issues/19)) + ([5f5ac71](https://github.com/hongaar/semantic-release-yarn/commit/5f5ac716a10ed9251da9d008fa7054ff39b45609)) ## [0.2.3](https://github.com/hongaar/semantic-release-yarn/compare/v0.2.2...v0.2.3) (2022-12-08) - ### Bug Fixes -* set persist-credentials to false ([1024133](https://github.com/hongaar/semantic-release-yarn/commit/10241337f366a8a0c023a7876b7fb7323f716cc7)) +- set persist-credentials to false + ([1024133](https://github.com/hongaar/semantic-release-yarn/commit/10241337f366a8a0c023a7876b7fb7323f716cc7)) ## [0.2.2](https://github.com/hongaar/semantic-release-yarn/compare/v0.2.1...v0.2.2) (2022-12-08) - ### Bug Fixes -* better logging ([#16](https://github.com/hongaar/semantic-release-yarn/issues/16)) ([4136a90](https://github.com/hongaar/semantic-release-yarn/commit/4136a907cb3b5919c2dc8d33391c8bf3e4b73270)) -* use PAT due to branch protection ([#17](https://github.com/hongaar/semantic-release-yarn/issues/17)) ([0576ddc](https://github.com/hongaar/semantic-release-yarn/commit/0576ddc1f1113b92e0a038e70dbe2258acfdd781)) -* use token with checkout action ([52c9d11](https://github.com/hongaar/semantic-release-yarn/commit/52c9d116019a4438fc7e58c1a812adb5d94ffb04)) +- better logging + ([#16](https://github.com/hongaar/semantic-release-yarn/issues/16)) + ([4136a90](https://github.com/hongaar/semantic-release-yarn/commit/4136a907cb3b5919c2dc8d33391c8bf3e4b73270)) +- use PAT due to branch protection + ([#17](https://github.com/hongaar/semantic-release-yarn/issues/17)) + ([0576ddc](https://github.com/hongaar/semantic-release-yarn/commit/0576ddc1f1113b92e0a038e70dbe2258acfdd781)) +- use token with checkout action + ([52c9d11](https://github.com/hongaar/semantic-release-yarn/commit/52c9d116019a4438fc7e58c1a812adb5d94ffb04)) ## [0.2.1](https://github.com/hongaar/semantic-release-yarn/compare/v0.2.0...v0.2.1) (2022-12-07) diff --git a/package.json b/package.json index b7e9117b..ceb76e3a 100644 --- a/package.json +++ b/package.json @@ -1,17 +1,7 @@ { "name": "semantic-release-yarn", - "description": "semantic-release plugin to publish a npm package with yarn", "version": "0.3.1", - "license": "MIT", - "author": "Joram van den Boezem (https://joram.dev)", - "contributors": [ - "Pierre Vanduynslager (https://twitter.com/@pvdlg_)", - "Stephan Bönnemann (http://boennemann.me)", - "Gregor Martynus (https://twitter.com/gr2m)" - ], - "homepage": "https://github.com/hongaar/semantic-release-yarn", - "repository": "github:hongaar/semantic-release-yarn", - "bugs": "https://github.com/hongaar/semantic-release-yarn/issues", + "description": "semantic-release plugin to publish a npm package with yarn", "keywords": [ "npm", "publish", @@ -19,37 +9,59 @@ "yarn", "monorepo" ], + "homepage": "https://github.com/hongaar/semantic-release-yarn", + "bugs": "https://github.com/hongaar/semantic-release-yarn/issues", + "repository": "github:hongaar/semantic-release-yarn", + "license": "MIT", + "author": "Joram van den Boezem (https://joram.dev)", + "contributors": [ + "Pierre Vanduynslager (https://twitter.com/@pvdlg_)", + "Stephan Bönnemann (http://boennemann.me)", + "Gregor Martynus (https://twitter.com/gr2m)" + ], "type": "module", - "main": "dist/cjs/index.cjs", - "types": "dist/types/index.d.ts", "exports": { "types": "./dist/types/index.d.ts", "import": "./dist/esm/index.js", "require": "./dist/cjs/index.cjs" }, + "main": "dist/cjs/index.cjs", + "types": "dist/types/index.d.ts", "files": [ "dist" ], "scripts": { - "format": "prettier --write --ignore-unknown .", - "format:check": "prettier --check --ignore-unknown .", - "clean": "rm -rf dist", "build": "yarn clean && yarn build:cjs && yarn build:esm", "build:cjs": "tsc --module commonjs --moduleResolution nodenext --outDir dist/cjs && yarn convert-extension cjs dist/cjs/ && rm dist/cjs/*.map", "build:esm": "tsc --outDir dist/esm", - "test": "ava", + "clean": "rm -rf dist", "doctoc": "doctoc README.md", + "format": "prettier --write --ignore-unknown .", + "format:check": "prettier --check --ignore-unknown .", "prepublish": "yarn build", - "release": "semantic-release" + "release": "semantic-release", + "test": "ava" }, - "engines": { - "node": ">=16 || ^14.17" + "lint-staged": { + "*": "prettier --write --ignore-unknown" + }, + "nyc": { + "all": true, + "include": [ + "lib/**/*.js", + "index.js" + ], + "reporter": [ + "json", + "text", + "html" + ] }, "dependencies": { "@semantic-release/error": "^3.0.0", "aggregate-error": "^4.0.1", - "cosmiconfig": "^8.0.0", - "execa": "^6.1.0", + "cosmiconfig": "^8.1.0", + "execa": "^7.0.0", "fs-extra": "^11.1.0", "js-yaml": "^4.1.0", "lodash": "^4.17.21", @@ -65,24 +77,24 @@ "@types/fs-extra": "11.0.1", "@types/js-yaml": "4.0.5", "@types/lodash": "4.14.191", - "@types/node": "18.11.19", + "@types/node": "18.14.2", "@types/prettier": "2.7.2", "@types/semantic-release": "20.0.1", "@types/semver": "7.3.13", "@types/sinon": "10.0.13", "@types/stream-buffers": "3.0.4", - "ava": "5.1.1", + "ava": "5.2.0", "convert-extension": "0.3.0", "dockerode": "3.3.4", "doctoc": "2.2.1", "get-stream": "6.0.1", "got": "12.5.3", "husky": "8.0.3", - "lint-staged": "13.1.0", - "moker": "0.10.5", + "lint-staged": "13.1.2", + "moker": "0.11.2", "p-retry": "5.1.2", - "prettier": "2.8.3", - "semantic-release": "20.1.0", + "prettier": "2.8.4", + "semantic-release": "20.1.1", "sinon": "15.0.1", "stream-buffers": "3.0.2", "tempy": "3.0.0", @@ -92,19 +104,10 @@ "peerDependencies": { "semantic-release": ">=19.0.0" }, - "nyc": { - "include": [ - "lib/**/*.js", - "index.js" - ], - "reporter": [ - "json", - "text", - "html" - ], - "all": true - }, "packageManager": "yarn@3.3.0", + "engines": { + "node": ">=16 || ^14.17" + }, "moker": { "plugins": [ "typescript", @@ -116,8 +119,5 @@ "dependabot", "doctoc" ] - }, - "lint-staged": { - "*": "prettier --write --ignore-unknown" } } diff --git a/src/get-error.ts b/src/get-error.ts index 891cea1f..4ea2f138 100644 --- a/src/get-error.ts +++ b/src/get-error.ts @@ -10,7 +10,7 @@ export type ErrorDefinition = Error & { export function getError( code: T, - ctx: Parameters[0] + ctx: Parameters<(typeof ERROR_DEFINITIONS)[T]>[0] ): ErrorDefinition { const { message, details } = ERROR_DEFINITIONS[code](ctx as any); diff --git a/yarn.lock b/yarn.lock index ce83e52f..06c558ad 100644 --- a/yarn.lock +++ b/yarn.lock @@ -339,9 +339,9 @@ __metadata: languageName: node linkType: hard -"@mokr/core@npm:0.10.5": - version: 0.10.5 - resolution: "@mokr/core@npm:0.10.5" +"@mokr/core@npm:0.11.2": + version: 0.11.2 + resolution: "@mokr/core@npm:0.11.2" dependencies: chalk: 5.2.0 deepmerge: 4.3.0 @@ -350,26 +350,26 @@ __metadata: ora: 6.1.2 pkg-up: ^4.0.0 yaml: 2.2.1 - checksum: 6719197f46f0a1685e8d512931a8cff8ffb451108489c9470a699caf29404d653c6decdb571ee89fd833e24253110c7803568d2751c90744434c36653f497cb4 + checksum: bc0445a7bf59500ac7cbf74d25f81e3c54aa3bb09dbd1346b246de523e6fc4a4da51f7897e597d546a1480650ced3c75bba8ebfda2304bef364f58975c58966a languageName: node linkType: hard -"@mokr/plugins@npm:0.10.5": - version: 0.10.5 - resolution: "@mokr/plugins@npm:0.10.5" +"@mokr/plugins@npm:0.11.2": + version: 0.11.2 + resolution: "@mokr/plugins@npm:0.11.2" dependencies: - "@mokr/core": 0.10.5 - checksum: 466809940147b2e9e771f24944c83444aa4d8fbb44a62e4924173fc8d0efc29b69f32327c488e2c2c998b6fa31a3974620999b86ddb234becce56166eb5a3d19 + "@mokr/core": 0.11.2 + checksum: df58e64a33dbda1127c994f114a84928d25cfae161be8d01c8714b3a86ab45096f19c4f3c4e914a42179d68826ed1b448421f510ead78f8a31703abb908723c6 languageName: node linkType: hard -"@mokr/templates@npm:0.10.5": - version: 0.10.5 - resolution: "@mokr/templates@npm:0.10.5" +"@mokr/templates@npm:0.11.2": + version: 0.11.2 + resolution: "@mokr/templates@npm:0.11.2" dependencies: - "@mokr/core": 0.10.5 - "@mokr/plugins": 0.10.5 - checksum: 8e793a11142fda81693cb729a42d5dc8a394e127310bfcf24449ef4da5bdceb0680d1877719ee0207a4591d4421169b1a3a932840e7c0b51229de7af739f77b6 + "@mokr/core": 0.11.2 + "@mokr/plugins": 0.11.2 + checksum: 9f9a967c0be31b8429d3e5b0878d54ca2bdd724f9e41e7ec36e00c022aa901af5e82668f2ff0a95ff0bf9983ee87948ee9fb7110b73e8cfe553d2ec186a63f09 languageName: node linkType: hard @@ -1090,10 +1090,10 @@ __metadata: languageName: node linkType: hard -"@types/node@npm:18.11.19": - version: 18.11.19 - resolution: "@types/node@npm:18.11.19" - checksum: d7cd19fcfc59cbdd3f9ba0b4072cb7adc21bd575bd8eb7d7e698975e63564aaa83f03434f32b12331f84f73d0b369d9cbe2371e359d9d7f5c3361f4987f4f7da +"@types/node@npm:18.14.2": + version: 18.14.2 + resolution: "@types/node@npm:18.14.2" + checksum: 53c07e721f6ae33de71306f6a0b75dae6066a4f55bd5484c93bd59ff25f0c5f004ceafeef509a4d0cb9e24a247efc34d50489bcc1b05a53ecc68e2fc088e65cb languageName: node linkType: hard @@ -1482,9 +1482,9 @@ __metadata: languageName: node linkType: hard -"ava@npm:5.1.1": - version: 5.1.1 - resolution: "ava@npm:5.1.1" +"ava@npm:5.2.0": + version: 5.2.0 + resolution: "ava@npm:5.2.0" dependencies: acorn: ^8.8.1 acorn-walk: ^8.2.0 @@ -1538,7 +1538,7 @@ __metadata: optional: true bin: ava: entrypoints/cli.mjs - checksum: cae5771ea651418c966dc7779128121f933aba7a39d86d8663c2097435bfc7264b0893b966d9ade3325a1051854d82b220e2db779482414a6283cb388ba00fb3 + checksum: d5991f1f3d7ca0e63e0df185c5c025a9c80614dd42537336a9b96ea29e8a8d5ad680c1e775dacabb55f3b1b2d63764e468f201d52a44166c8a88d4e9309cde61 languageName: node linkType: hard @@ -2335,6 +2335,18 @@ __metadata: languageName: node linkType: hard +"cosmiconfig@npm:^8.1.0": + version: 8.1.0 + resolution: "cosmiconfig@npm:8.1.0" + dependencies: + import-fresh: ^3.2.1 + js-yaml: ^4.1.0 + parse-json: ^5.0.0 + path-type: ^4.0.0 + checksum: 78a1846acc4935ab4d928e3f768ee2ad2fddbec96377935462749206568423ff4757140ac7f2ccd1f547f86309b8448c04b26588848b5a1520f2e9741cdeecf0 + languageName: node + linkType: hard + "cpu-features@npm:~0.0.4": version: 0.0.4 resolution: "cpu-features@npm:0.0.4" @@ -2879,6 +2891,23 @@ __metadata: languageName: node linkType: hard +"execa@npm:^7.0.0": + version: 7.0.0 + resolution: "execa@npm:7.0.0" + dependencies: + cross-spawn: ^7.0.3 + get-stream: ^6.0.1 + human-signals: ^4.3.0 + is-stream: ^3.0.0 + merge-stream: ^2.0.0 + npm-run-path: ^5.1.0 + onetime: ^6.0.0 + signal-exit: ^3.0.7 + strip-final-newline: ^3.0.0 + checksum: be7c7b6d1e5473f628e46888b0cf8279da483c1a6000dd494a2059cc26591ded57ba46be1c9bdde1ec895e7eb8b18911174aba425cd971d41d140a9405da9a02 + languageName: node + linkType: hard + "extend@npm:^3.0.0": version: 3.0.2 resolution: "extend@npm:3.0.2" @@ -3426,6 +3455,13 @@ __metadata: languageName: node linkType: hard +"human-signals@npm:^4.3.0": + version: 4.3.0 + resolution: "human-signals@npm:4.3.0" + checksum: 662b976b1063a8afb8fd7fa50bde6975997e17ea6ceba2aad54aacf1dc239a2cd7d14d27b3ceca0c6288627f4b45c56c2c89618455ff52cd9377c02d6328cd7c + languageName: node + linkType: hard + "humanize-ms@npm:^1.2.1": version: 1.2.1 resolution: "humanize-ms@npm:1.2.1" @@ -4198,9 +4234,9 @@ __metadata: languageName: node linkType: hard -"lint-staged@npm:13.1.0": - version: 13.1.0 - resolution: "lint-staged@npm:13.1.0" +"lint-staged@npm:13.1.2": + version: 13.1.2 + resolution: "lint-staged@npm:13.1.2" dependencies: cli-truncate: ^3.1.0 colorette: ^2.0.19 @@ -4217,7 +4253,7 @@ __metadata: yaml: ^2.1.3 bin: lint-staged: bin/lint-staged.js - checksum: adf20c4ca9285c4a93b06598b970d71b04cfe58a1a4c9006f753b83e02c1c622d1866c32a4f1e7e29a98091c501eac3345f7678af247b4f97d5be88b3d8727c1 + checksum: f854ad5c88542b8f06e27f3b4046927a4f3d4a451a04e079526559d819a325762268f65bd2df7156bcc0cb5f531f621c42cdb824b403f537c78305adc9e56a54 languageName: node linkType: hard @@ -4967,17 +5003,17 @@ __metadata: languageName: node linkType: hard -"moker@npm:0.10.5": - version: 0.10.5 - resolution: "moker@npm:0.10.5" +"moker@npm:0.11.2": + version: 0.11.2 + resolution: "moker@npm:0.11.2" dependencies: - "@mokr/core": 0.10.5 - "@mokr/plugins": 0.10.5 - "@mokr/templates": 0.10.5 + "@mokr/core": 0.11.2 + "@mokr/plugins": 0.11.2 + "@mokr/templates": 0.11.2 bandersnatch: 1.11.1 bin: moker: moker.js - checksum: 633fb9e65802fc06d8fabe02b919220f6a94c68b7a6bcdc182f0ebc503770180ceac05f939ac83ca9b057b294a0273b5d4408ec53c974abcf27c6f7902f89f08 + checksum: f101c8b7e0146c35c1e4aa1482fe7a76db340a0ef0b6118ee645f3372b382a98e9395faef8a5a6bf0c3c4977c6553be2592f2b7a205e567168827100ea03fd78 languageName: node linkType: hard @@ -5898,12 +5934,12 @@ __metadata: languageName: node linkType: hard -"prettier@npm:2.8.3": - version: 2.8.3 - resolution: "prettier@npm:2.8.3" +"prettier@npm:2.8.4": + version: 2.8.4 + resolution: "prettier@npm:2.8.4" bin: prettier: bin-prettier.js - checksum: 92f2ceb522d454370e02082aa74ad27388672f7cee8975028b59517c069fe643bdc73e322675c8faf2ff173d7a626d1a6389f26b474000308e793aa25fff46e5 + checksum: c173064bf3df57b6d93d19aa98753b9b9dd7657212e33b41ada8e2e9f9884066bb9ca0b4005b89b3ab137efffdf8fbe0b462785aba20364798ff4303aadda57e languageName: node linkType: hard @@ -6435,32 +6471,32 @@ __metadata: "@types/fs-extra": 11.0.1 "@types/js-yaml": 4.0.5 "@types/lodash": 4.14.191 - "@types/node": 18.11.19 + "@types/node": 18.14.2 "@types/prettier": 2.7.2 "@types/semantic-release": 20.0.1 "@types/semver": 7.3.13 "@types/sinon": 10.0.13 "@types/stream-buffers": 3.0.4 aggregate-error: ^4.0.1 - ava: 5.1.1 + ava: 5.2.0 convert-extension: 0.3.0 - cosmiconfig: ^8.0.0 + cosmiconfig: ^8.1.0 dockerode: 3.3.4 doctoc: 2.2.1 - execa: ^6.1.0 + execa: ^7.0.0 fs-extra: ^11.1.0 get-stream: 6.0.1 got: 12.5.3 husky: 8.0.3 js-yaml: ^4.1.0 - lint-staged: 13.1.0 + lint-staged: 13.1.2 lodash: ^4.17.21 - moker: 0.10.5 + moker: 0.11.2 nerf-dart: ^1.0.0 p-retry: 5.1.2 - prettier: 2.8.3 + prettier: 2.8.4 read-pkg: ^7.1.0 - semantic-release: 20.1.0 + semantic-release: 20.1.1 semver: ^7.3.8 sinon: 15.0.1 stream-buffers: 3.0.2 @@ -6472,9 +6508,9 @@ __metadata: languageName: unknown linkType: soft -"semantic-release@npm:20.1.0": - version: 20.1.0 - resolution: "semantic-release@npm:20.1.0" +"semantic-release@npm:20.1.1": + version: 20.1.1 + resolution: "semantic-release@npm:20.1.1" dependencies: "@semantic-release/commit-analyzer": ^9.0.2 "@semantic-release/error": ^3.0.0 @@ -6485,7 +6521,7 @@ __metadata: cosmiconfig: ^8.0.0 debug: ^4.0.0 env-ci: ^8.0.0 - execa: ^6.1.0 + execa: ^7.0.0 figures: ^5.0.0 find-versions: ^5.1.0 get-stream: ^6.0.0 @@ -6506,7 +6542,7 @@ __metadata: yargs: ^17.5.1 bin: semantic-release: bin/semantic-release.js - checksum: b58215e8b969f27bcd9f518e5c6b577ff770c8ebe93ab428c51f464032b744a6004c5c7b1a1be8ec9c9d7d3f80c57e845f933081b15e7f1a8c1ffd2e0d478e22 + checksum: d70209d56e3bd4ad79aa309b8ccf313a10c18b7ed68b0706ec92feecde0f7f13e32cbb24f7cf963751c957639832eb025fcce846ba09a662e00be03c4c352a18 languageName: node linkType: hard