Skip to content

Commit

Permalink
fix(deps): update all dependencies (GoogleCloudPlatform#3671)
Browse files Browse the repository at this point in the history
* fix(deps): update all dependencies

* fix: not ready to bump eslint yet

* fix: can't upgrade to esm-only version of 'got' yet

* chore: bump node version

* chore: skip e2e test (b/358734748)

---------

Co-authored-by: Tony Pujals <subfuzion@users.noreply.github.com>
Co-authored-by: Tony Pujals <tonypujals@google.com>
  • Loading branch information
3 people authored Aug 11, 2024
1 parent 620fb04 commit 6216293
Show file tree
Hide file tree
Showing 175 changed files with 483 additions and 482 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ai-platform-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
Expand All @@ -62,7 +62,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/dialogflow-cx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,14 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
agent_id:nodejs-docs-samples-tests/nodejs-docs-samples-dialogflow-cx-agent-id
Expand All @@ -62,7 +62,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/flakybot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,22 +29,22 @@ jobs:
id-token: 'write'
steps:
- name: authenticate
uses: 'google-github-actions/auth@v1'
uses: 'google-github-actions/auth@v2'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- name: download test results
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: test-results
- name: download FlakyBot
run: |
curl -s -L https://github.com/googleapis/repo-automation-bots/archive/refs/tags/flakybot-v${{ env.FLAKYBOT_VERSION }}.tar.gz -o flakybot.tar.gz
tar xzf flakybot.tar.gz
cp -rT repo-automation-bots-flakybot-v${{ env.FLAKYBOT_VERSION}}/packages/flakybot/ .
- uses: actions/setup-go@v4
- uses: actions/setup-go@v5
with:
cache: true
cache-dependency-path: '${{ github.workspace }}/go.sum'
Expand Down
28 changes: 14 additions & 14 deletions .github/workflows/functions-slack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,29 +42,29 @@ jobs:
steps:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
with:
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
slack_secret:nodejs-docs-samples-tests/nodejs-docs-samples-slack-secret
kg_api_key:nodejs-docs-samples-tests/nodejs-docs-samples-kg-api-key
- uses: actions/setup-node@v4.0.0
with:
node-version: 16
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
id: npm-cache
with:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generative-ai-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
caip_id:nodejs-docs-samples-tests/nodejs-docs-samples-ai-platform-caip-project-id
Expand All @@ -66,7 +66,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/iam-deny.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/949737848314/locations/global/workloadIdentityPools/iam-deny-test-pool/providers/iam-deny-test-provider'
service_account: 'kokoro-ca@isakovf-iam-deny-samples.iam.gserviceaccount.com'
Expand All @@ -59,7 +59,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/security-center-snippets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
Expand All @@ -61,7 +61,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/storagetransfer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
sts_aws_secret:nodejs-docs-samples-tests/nodejs-docs-samples-storagetransfer-aws
Expand All @@ -65,7 +65,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
Expand All @@ -47,7 +47,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/vision.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ jobs:
- uses: actions/checkout@v4.1.0
with:
ref: ${{github.event.pull_request.head.sha}}
- uses: 'google-github-actions/auth@v1.1.1'
- uses: 'google-github-actions/auth@v2.1.3'
with:
workload_identity_provider: 'projects/1046198160504/locations/global/workloadIdentityPools/github-actions-pool/providers/github-actions-provider'
service_account: 'kokoro-system-test@long-door-651.iam.gserviceaccount.com'
create_credentials_file: 'true'
access_token_lifetime: 600s
- id: secrets
uses: 'google-github-actions/get-secretmanager-secrets@v1'
uses: 'google-github-actions/get-secretmanager-secrets@v2'
with:
secrets: |-
vision:nodejs-docs-samples-tests/nodejs-docs-samples-vision
Expand All @@ -64,7 +64,7 @@ jobs:
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v3
- uses: actions/cache@v4
id: npm-cache
with:
path: ${{ steps.npm-cache-dir.outputs.dir }}
Expand Down
8 changes: 4 additions & 4 deletions ai-platform/snippets/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@
"@google-cloud/storage": "^7.0.0"
},
"devDependencies": {
"c8": "^8.0.0",
"chai": "^4.2.0",
"c8": "^10.0.0",
"chai": "^5.0.0",
"mocha": "^10.0.0",
"uuid": "^9.0.0",
"sinon": "^16.0.0"
"uuid": "^10.0.0",
"sinon": "^18.0.0"
}
}

8 changes: 4 additions & 4 deletions appengine/analytics/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": "16.x.x"
"node": "20.x"
},
"scripts": {
"start": "node app.js",
Expand All @@ -19,11 +19,11 @@
},
"dependencies": {
"express": "^4.16.4",
"node-fetch": "^2.6.1"
"node-fetch": "^3.0.0"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"supertest": "^6.0.0"
"supertest": "^7.0.0"
}
}
4 changes: 2 additions & 2 deletions appengine/building-an-app/build/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"express": "^4.18.2"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"supertest": "^6.0.0"
"supertest": "^7.0.0"
}
}
6 changes: 3 additions & 3 deletions appengine/building-an-app/update/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
"express": "^4.18.2"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"proxyquire": "^2.1.3",
"sinon": "^16.0.0",
"supertest": "^6.0.0"
"sinon": "^18.0.0",
"supertest": "^7.0.0"
}
}
8 changes: 4 additions & 4 deletions appengine/datastore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,20 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": "16.x.x"
"node": "20.x"
},
"scripts": {
"start": "node app.js",
"system-test": "c8 mocha -p -j 2 --exit test/*.test.js",
"test": "npm run system-test"
},
"dependencies": {
"@google-cloud/datastore": "^8.0.0",
"@google-cloud/datastore": "^9.0.0",
"express": "^4.16.4"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"supertest": "^6.0.0"
"supertest": "^7.0.0"
}
}
10 changes: 5 additions & 5 deletions appengine/endpoints/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"url": "https://github.com/GoogleCloudPlatform/nodejs-docs-samples.git"
},
"engines": {
"node": "16.x.x"
"node": "20.x"
},
"scripts": {
"deploy": "gcloud app deploy",
Expand All @@ -22,12 +22,12 @@
"express": "^4.16.4"
},
"devDependencies": {
"c8": "^8.0.0",
"chai": "^4.2.0",
"c8": "^10.0.0",
"chai": "^5.0.0",
"mocha": "^10.0.0",
"proxyquire": "^2.1.0",
"sinon": "^16.0.0",
"supertest": "^6.0.0",
"sinon": "^18.0.0",
"supertest": "^7.0.0",
"wait-port": "^1.0.4"
}
}
4 changes: 2 additions & 2 deletions appengine/hello-world/flexible/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"express": "^4.17.1"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"supertest": "^6.0.0"
"supertest": "^7.0.0"
}
}
4 changes: 2 additions & 2 deletions appengine/hello-world/standard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"express": "^4.17.1"
},
"devDependencies": {
"c8": "^8.0.0",
"c8": "^10.0.0",
"mocha": "^10.0.0",
"supertest": "^6.0.0"
"supertest": "^7.0.0"
}
}
Loading

0 comments on commit 6216293

Please sign in to comment.