From 7836e189efa8e1cec9888b08b7efa481d12015ec Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 3 Sep 2024 13:19:43 +0100 Subject: [PATCH 1/3] chore(deps): upgrade dependencies --- .github/workflows/upgrade-main.yml | 2 +- .../workflows/upgrade-maintenance-v5.3.yml | 2 +- .../workflows/upgrade-maintenance-v5.4.yml | 2 +- package.json | 4 +- yarn.lock | 70 ++++++++++--------- 5 files changed, 43 insertions(+), 37 deletions(-) diff --git a/.github/workflows/upgrade-main.yml b/.github/workflows/upgrade-main.yml index ff1efae0..9fa1f616 100644 --- a/.github/workflows/upgrade-main.yml +++ b/.github/workflows/upgrade-main.yml @@ -34,7 +34,7 @@ jobs: working-directory: ./ - name: Upload patch if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.3.6 with: name: .repo.patch path: .repo.patch diff --git a/.github/workflows/upgrade-maintenance-v5.3.yml b/.github/workflows/upgrade-maintenance-v5.3.yml index 35c5c04b..123f6b47 100644 --- a/.github/workflows/upgrade-maintenance-v5.3.yml +++ b/.github/workflows/upgrade-maintenance-v5.3.yml @@ -38,7 +38,7 @@ jobs: working-directory: ./ - name: Upload patch if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.3.6 with: name: .repo.patch path: .repo.patch diff --git a/.github/workflows/upgrade-maintenance-v5.4.yml b/.github/workflows/upgrade-maintenance-v5.4.yml index 1f06ff15..2585920b 100644 --- a/.github/workflows/upgrade-maintenance-v5.4.yml +++ b/.github/workflows/upgrade-maintenance-v5.4.yml @@ -38,7 +38,7 @@ jobs: working-directory: ./ - name: Upload patch if: steps.create_patch.outputs.patch_created - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@v4.3.6 with: name: .repo.patch path: .repo.patch diff --git a/package.json b/package.json index fa644dbd..4d0d1a4b 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "eslint": "^8", "eslint-config-prettier": "^8.10.0", "eslint-import-resolver-typescript": "^3.6.3", - "eslint-plugin-import": "^2.29.1", + "eslint-plugin-import": "^2.30.0", "eslint-plugin-prettier": "^4.2.1", "eslint-plugin-unicorn": "^46.0.1", "fast-check": "^3.22.0", @@ -64,7 +64,7 @@ "npm": "^9.9.3", "npm-check-updates": "^16", "prettier": "^2.8.8", - "projen": "^0.86.6", + "projen": "^0.86.7", "tar": "^6.2.1", "ts-jest": "^29.2.5", "ts-node": "^10.9.2" diff --git a/yarn.lock b/yarn.lock index 5b5e7c37..490a372c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1022,6 +1022,11 @@ "@pnpm/network.ca-file" "^1.0.1" config-chain "^1.1.11" +"@rtsao/scc@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@rtsao/scc/-/scc-1.1.0.tgz#927dd2fae9bc3361403ac2c7a00c32ddce9ad7e8" + integrity sha512-zt6OdqaDoOnJ1ZYsCYGt9YmWzDXl4vQdKTyJev62gFhRGKdx7mcT54V9KIjg+d2wi9EXsPvAPKe7i7WjfVWB8g== + "@sigstore/bundle@^1.1.0": version "1.1.0" resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-1.1.0.tgz#17f8d813b09348b16eeed66a8cf1c3d6bd3d04f1" @@ -1556,7 +1561,7 @@ array-buffer-byte-length@^1.0.1: call-bind "^1.0.5" is-array-buffer "^3.0.4" -array-includes@^3.1.7: +array-includes@^3.1.8: version "3.1.8" resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" integrity sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ== @@ -1578,7 +1583,7 @@ array-union@^2.1.0: resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== -array.prototype.findlastindex@^1.2.3: +array.prototype.findlastindex@^1.2.5: version "1.2.5" resolved "https://registry.yarnpkg.com/array.prototype.findlastindex/-/array.prototype.findlastindex-1.2.5.tgz#8c35a755c72908719453f87145ca011e39334d0d" integrity sha512-zfETvRFA8o7EiNn++N5f/kaCw221hrpGsDmcpndVupkPzEc1Wuf3VgC0qby1BbHs7f5DVYjgtEU2LLh5bqeGfQ== @@ -2601,33 +2606,34 @@ eslint-import-resolver-typescript@^3.6.3: is-bun-module "^1.0.2" is-glob "^4.0.3" -eslint-module-utils@^2.8.0, eslint-module-utils@^2.8.1: - version "2.8.2" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.2.tgz#2ecad69d71e1fa81f17f7f24d5d3e46b168de663" - integrity sha512-3XnC5fDyc8M4J2E8pt8pmSVRX2M+5yWMCfI/kDZwauQeFgzQOuhcRBFKjTeJagqgk4sFKxe1mvNVnaWwImx/Tg== +eslint-module-utils@^2.8.1, eslint-module-utils@^2.9.0: + version "2.9.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.9.0.tgz#95d4ac038a68cd3f63482659dffe0883900eb342" + integrity sha512-McVbYmwA3NEKwRQY5g4aWMdcZE5xZxV8i8l7CqJSrameuGSQJtSWaL/LxTEzSKKaCcOhlpDR8XEfYXWPrdo/ZQ== dependencies: debug "^3.2.7" -eslint-plugin-import@^2.29.1: - version "2.29.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.29.1.tgz#d45b37b5ef5901d639c15270d74d46d161150643" - integrity sha512-BbPC0cuExzhiMo4Ff1BTVwHpjjv28C5R+btTOGaCRC7UEz801up0JadwkeSk5Ued6TG34uaczuVuH6qyy5YUxw== +eslint-plugin-import@^2.30.0: + version "2.30.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.30.0.tgz#21ceea0fc462657195989dd780e50c92fe95f449" + integrity sha512-/mHNE9jINJfiD2EKkg1BKyPyUk4zdnT54YgbOgfjSakWT5oyX/qQLVNTkehyfpcMxZXMy1zyonZ2v7hZTX43Yw== dependencies: - array-includes "^3.1.7" - array.prototype.findlastindex "^1.2.3" + "@rtsao/scc" "^1.1.0" + array-includes "^3.1.8" + array.prototype.findlastindex "^1.2.5" array.prototype.flat "^1.3.2" array.prototype.flatmap "^1.3.2" debug "^3.2.7" doctrine "^2.1.0" eslint-import-resolver-node "^0.3.9" - eslint-module-utils "^2.8.0" - hasown "^2.0.0" - is-core-module "^2.13.1" + eslint-module-utils "^2.9.0" + hasown "^2.0.2" + is-core-module "^2.15.1" is-glob "^4.0.3" minimatch "^3.1.2" - object.fromentries "^2.0.7" - object.groupby "^1.0.1" - object.values "^1.1.7" + object.fromentries "^2.0.8" + object.groupby "^1.0.3" + object.values "^1.2.0" semver "^6.3.1" tsconfig-paths "^3.15.0" @@ -3561,7 +3567,7 @@ is-cidr@^4.0.2: dependencies: cidr-regex "^3.1.1" -is-core-module@^2.13.0, is-core-module@^2.13.1, is-core-module@^2.8.1: +is-core-module@^2.13.0, is-core-module@^2.15.1, is-core-module@^2.8.1: version "2.15.1" resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.1.tgz#a7363a25bee942fefab0de13bf6aa372c82dcc37" integrity sha512-z0vtXSwucUJtANQWldhbtbt7BnL0vxiFjIdDLAatwhDYty2bad6s+rijD6Ri4YuYJubLzIJLUidCh09e1djEVQ== @@ -5105,7 +5111,7 @@ object.assign@^4.1.5: has-symbols "^1.0.3" object-keys "^1.1.1" -object.fromentries@^2.0.7: +object.fromentries@^2.0.8: version "2.0.8" resolved "https://registry.yarnpkg.com/object.fromentries/-/object.fromentries-2.0.8.tgz#f7195d8a9b97bd95cbc1999ea939ecd1a2b00c65" integrity sha512-k6E21FzySsSK5a21KRADBd/NGneRegFO5pLHfdQLpRDETUNJueLXs3WCzyQ3tFRDYgbq3KHGXfTbi2bs8WQ6rQ== @@ -5115,7 +5121,7 @@ object.fromentries@^2.0.7: es-abstract "^1.23.2" es-object-atoms "^1.0.0" -object.groupby@^1.0.1: +object.groupby@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/object.groupby/-/object.groupby-1.0.3.tgz#9b125c36238129f6f7b61954a1e7176148d5002e" integrity sha512-+Lhy3TQTuzXI5hevh8sBGqbmurHbbIjAi0Z4S63nthVLmLxfbj4T54a4CfZrXIrt9iP4mVAPYMo/v99taj3wjQ== @@ -5124,7 +5130,7 @@ object.groupby@^1.0.1: define-properties "^1.2.1" es-abstract "^1.23.2" -object.values@^1.1.7: +object.values@^1.2.0: version "1.2.0" resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.2.0.tgz#65405a9d92cee68ac2d303002e0b8470a4d9ab1b" integrity sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ== @@ -5318,9 +5324,9 @@ pegjs@^0.10.0: integrity sha512-qI5+oFNEGi3L5HAxDwN2LA4Gg7irF70Zs25edhjld9QemOgp0CbvMtbFcMvFtEo1OityPrcCzkQFB8JP/hxgow== picocolors@^1.0.0, picocolors@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" - integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + version "1.1.0" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: version "2.3.1" @@ -5398,10 +5404,10 @@ progress@^2.0.3: resolved "https://registry.yarnpkg.com/progress/-/progress-2.0.3.tgz#7e8cf8d8f5b8f239c1bc68beb4eb78567d572ef8" integrity sha512-7PiHtLll5LdnKIMw100I+8xJXR5gW2QwWYkT6iJva0bXitZKa/XMrSbdmg3r2Xnaidz9Qumd0VPaMrZlF9V9sA== -projen@^0.86.6: - version "0.86.6" - resolved "https://registry.yarnpkg.com/projen/-/projen-0.86.6.tgz#65943163283a291fedbd61c53a9c3cbd21c109dd" - integrity sha512-UBDdUrNku6y4fTx++YXVMi9NqaaWOUzEAzPVSVtUkOdW0itV7YfE9GxXRbVrM8gB+b3doem1o1kdddaEkfsuDw== +projen@^0.86.7: + version "0.86.7" + resolved "https://registry.yarnpkg.com/projen/-/projen-0.86.7.tgz#d6a9b4d72d8334077f482c4c9aa1c192ace94599" + integrity sha512-bNJVggJggmKaNGwoQ0FK1OgVbLv7Uf3hzKRkU3n5R4LhcfGoLFWvvZ9Y4fI/+FEowqhNrnukiG8Z2PhIMjuxwg== dependencies: "@iarna/toml" "^2.2.5" case "^1.6.3" @@ -6461,9 +6467,9 @@ typedarray-to-buffer@^3.1.5: is-typedarray "^1.0.0" typescript@next: - version "5.7.0-dev.20240901" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.0-dev.20240901.tgz#9acfce421060120c668b3a9d639f26d751c7d927" - integrity sha512-Ixq+8fl0lsSFrIDfNi5/57wietIBnDY4Pp7JbPRJGtlGi5W9Sha/nky1ImNWteiOj3op6dMSHX5zrxCA4WlqCw== + version "5.7.0-dev.20240903" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.0-dev.20240903.tgz#864c2460c823ab33328378124462be8b166d5437" + integrity sha512-XTUc5uVwBbLlT0v3FqTx9sDN1MLQnT5mwSC3JefCrcKT6Zv+rPcQE7HLKM9IsrNiM1tiaQvamJTgVH0S+UMH2A== typescript@~3.9.10: version "3.9.10" From 2350f0cada5322851c870d0068b4d8705f000002 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 3 Sep 2024 13:34:20 +0100 Subject: [PATCH 2/3] more fixes --- .github/workflows/build.yml | 9 ++++++--- .github/workflows/release.yml | 3 ++- projenrc/build-workflow.ts | 9 ++++++--- projenrc/release.ts | 3 ++- 4 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 869cb4bd..b7784461 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -51,10 +51,11 @@ jobs: git diff --cached --patch --exit-code > .repo.patch || echo "needed=true" >> $GITHUB_OUTPUT - name: Upload patch if: steps.self-mutation.outputs.needed - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.6 with: name: .repo.patch path: .repo.patch + overwrite: true - name: Fail if self-mutation is needed if: steps.self-mutation.outputs.needed run: |- @@ -62,7 +63,7 @@ jobs: cat .repo.patch exit 1 - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.6 with: name: build-output path: |- @@ -70,6 +71,7 @@ jobs: ${{ github.workspace }}/dist/private !${{ github.workspace }}/node_modules !${{ github.workspace }}/fixtures/node_modules + overwrite: true - name: Version Line id: version run: |- @@ -177,10 +179,11 @@ jobs: - name: Package run: npx projen package - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.6 with: name: release-package path: ${{ github.workspace }}/dist + overwrite: true install-test: name: Install Test (${{ matrix.runs-on }} | node ${{ matrix.node-version }} | ${{ matrix.package-manager }}) needs: package diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c0328b24..30adbcef 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -69,10 +69,11 @@ jobs: unset passphrase find ${GNUPGHOME} -type f -exec shred --remove {} \; - name: Upload artifact - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4.3.6 with: name: release-package path: ${{ github.workspace }}/dist + overwrite: true release-to-github: name: Create GitHub Release needs: build diff --git a/projenrc/build-workflow.ts b/projenrc/build-workflow.ts index ea70b0e4..740806ec 100644 --- a/projenrc/build-workflow.ts +++ b/projenrc/build-workflow.ts @@ -90,10 +90,11 @@ export class BuildWorkflow { { name: 'Upload patch', if: 'steps.self-mutation.outputs.needed', - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4.3.6', with: { name: '.repo.patch', path: '.repo.patch', + overwrite: true, }, }, { @@ -109,7 +110,7 @@ export class BuildWorkflow { // Upload artifacts... { name: 'Upload artifact', - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4.3.6', with: { name: 'build-output', path: [ @@ -119,6 +120,7 @@ export class BuildWorkflow { '!${{ github.workspace }}/node_modules', '!${{ github.workspace }}/fixtures/node_modules', ].join('\n'), + overwrite: true, }, }, { @@ -275,10 +277,11 @@ export class BuildWorkflow { }, { name: 'Upload artifact', - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4.3.6', with: { name: 'release-package', path: '${{ github.workspace }}/dist', + overwrite: true, }, }, ], diff --git a/projenrc/release.ts b/projenrc/release.ts index d9f8958e..dba41b1b 100644 --- a/projenrc/release.ts +++ b/projenrc/release.ts @@ -106,10 +106,11 @@ export class ReleaseWorkflow { }, { name: 'Upload artifact', - uses: 'actions/upload-artifact@v3', + uses: 'actions/upload-artifact@v4.3.6', with: { name: releasePackageName, path: '${{ github.workspace }}/dist', + overwrite: true, }, }, ], From f2c7dcacb995c863411fb4c50a3edd5e4f74f854 Mon Sep 17 00:00:00 2001 From: Momo Kornher Date: Tue, 3 Sep 2024 13:40:12 +0100 Subject: [PATCH 3/3] download-artifact --- .github/workflows/build.yml | 12 ++++++------ .github/workflows/release.yml | 4 ++-- projenrc/benchmark-test.ts | 2 +- projenrc/build-workflow.ts | 10 +++++----- projenrc/release.ts | 2 +- 5 files changed, 15 insertions(+), 15 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b7784461..705dd6da 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -93,7 +93,7 @@ jobs: repository: ${{ github.event.pull_request.head.repo.full_name }} token: ${{ secrets.PROJEN_GITHUB_TOKEN }} - name: Download patch - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: .repo.patch path: ${{ runner.temp }} @@ -118,7 +118,7 @@ jobs: if: success() steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-output path: ${{ github.workspace }} @@ -165,7 +165,7 @@ jobs: CI: "true" steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-output path: ${{ github.workspace }} @@ -197,7 +197,7 @@ jobs: with: node-version: ${{ matrix.node-version }} - name: Download Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-package path: ${{ runner.temp }}/release-package @@ -251,7 +251,7 @@ jobs: uses: actions/setup-node@v4 with: {} - name: Download Artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-package path: ${{ runner.temp }}/release-package @@ -329,7 +329,7 @@ jobs: uses: actions/setup-node@v4 with: {} - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: build-output - name: Install dependencies diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 30adbcef..8932f573 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -85,7 +85,7 @@ jobs: if: fromJSON(needs.build.outputs.github-release) steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-package - name: Verify if release exists @@ -124,7 +124,7 @@ jobs: CI: "true" steps: - name: Download artifact - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: release-package - name: Setup Node.js diff --git a/projenrc/benchmark-test.ts b/projenrc/benchmark-test.ts index ed941cb6..50661b40 100644 --- a/projenrc/benchmark-test.ts +++ b/projenrc/benchmark-test.ts @@ -50,7 +50,7 @@ export class BenchmarkTest { ACTIONS_SETUP_NODE(undefined, false), { name: 'Download artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: artifactName }, }, YARN_INSTALL('--check-files'), diff --git a/projenrc/build-workflow.ts b/projenrc/build-workflow.ts index 740806ec..20595a6e 100644 --- a/projenrc/build-workflow.ts +++ b/projenrc/build-workflow.ts @@ -151,7 +151,7 @@ export class BuildWorkflow { }, { name: 'Download patch', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: '.repo.patch', path: '${{ runner.temp }}', @@ -200,7 +200,7 @@ export class BuildWorkflow { steps: [ { name: 'Download artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: 'build-output', path: '${{ github.workspace }}' }, }, { @@ -256,7 +256,7 @@ export class BuildWorkflow { steps: [ { name: 'Download artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: 'build-output', path: '${{ github.workspace }}' }, }, { @@ -312,7 +312,7 @@ export class BuildWorkflow { ACTIONS_SETUP_NODE('${{ matrix.node-version }}', false), { name: 'Download Artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: 'release-package', path: '${{ runner.temp }}/release-package', @@ -363,7 +363,7 @@ export class BuildWorkflow { ACTIONS_SETUP_NODE(undefined, false), { name: 'Download Artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: 'release-package', path: '${{ runner.temp }}/release-package', diff --git a/projenrc/release.ts b/projenrc/release.ts index dba41b1b..92d874e1 100644 --- a/projenrc/release.ts +++ b/projenrc/release.ts @@ -118,7 +118,7 @@ export class ReleaseWorkflow { const downloadArtifactStep: github.workflows.JobStep = { name: 'Download artifact', - uses: 'actions/download-artifact@v3', + uses: 'actions/download-artifact@v4', with: { name: releasePackageName, },