Skip to content

Commit ee34980

Browse files
authored
chore: dependency-updates (#857)
* chore: dependency-updates * chore: update workflow actions
1 parent 60af56a commit ee34980

11 files changed

Lines changed: 2745 additions & 3560 deletions

File tree

.eslintrc.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
"extends": ["plugin:@typescript-eslint/recommended"],
2121
"rules": {
2222
"@typescript-eslint/ban-ts-comment": 0,
23-
"@typescript-eslint/ban-types": 1,
2423
"@typescript-eslint/no-empty-function": 1,
2524
"@typescript-eslint/member-ordering": 1,
2625
"@typescript-eslint/explicit-member-accessibility": [

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ jobs:
5353

5454
steps:
5555
- name: Checkout repository
56-
uses: actions/checkout@v2
56+
uses: actions/checkout@v4
5757

5858
# Initializes the CodeQL tools for scanning.
5959
- name: Initialize CodeQL
60-
uses: github/codeql-action/init@v1
60+
uses: github/codeql-action/init@v3
6161
with:
6262
languages: ${{ matrix.language }}
6363
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -68,7 +68,7 @@ jobs:
6868
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
6969
# If this step fails, then you should remove it and run the build manually (see below)
7070
- name: Autobuild
71-
uses: github/codeql-action/autobuild@v1
71+
uses: github/codeql-action/autobuild@v3
7272

7373
# ℹ️ Command-line programs to run using the OS shell.
7474
# 📚 https://git.io/JvXDl
@@ -82,4 +82,4 @@ jobs:
8282
# make release
8383

8484
- name: Perform CodeQL Analysis
85-
uses: github/codeql-action/analyze@v1
85+
uses: github/codeql-action/analyze@v3

.github/workflows/dependabot.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ permissions:
2121
jobs:
2222
test:
2323
uses: ./.github/workflows/test.yml
24+
2425
dependabot:
2526
needs: test
2627
runs-on: ubuntu-latest

.github/workflows/docs.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,26 @@ on: [push, pull_request]
1717
jobs:
1818
docs:
1919
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
2022
steps:
2123
- name: Checkout
2224
uses: actions/checkout@v4
2325
- name: Setup Node
24-
uses: actions/setup-node@v3
26+
uses: actions/setup-node@v4
2527
with:
26-
node-version: 20
28+
node-version: 22
2729
cache: npm
2830
- name: Install Dependencies
2931
run: npm ci
3032
- name: Build Documentation
3133
run: npm run docs
3234
- if: github.ref == 'refs/heads/main'
3335
name: Publish to GitHub Pages
34-
uses: peaceiris/actions-gh-pages@v3
36+
uses: peaceiris/actions-gh-pages@v4
3537
with:
3638
github_token: ${{ secrets.GITHUB_TOKEN }}
3739
publish_dir: ./docs
38-
user_name: 'googlemaps-bot'
39-
user_email: 'googlemaps-bot@users.noreply.github.com'
40+
user_name: "googlemaps-bot"
41+
user_email: "googlemaps-bot@users.noreply.github.com"
4042
commit_message: ${{ github.event.head_commit.message }}

.github/workflows/release-please.yml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,27 +32,25 @@ jobs:
3232
steps:
3333
- id: release
3434
name: Release Please
35-
uses: google-github-actions/release-please-action@v3
35+
uses: googleapis/release-please-action@v4
3636

3737
with:
3838
release-type: node
3939
token: ${{ secrets.SYNCED_GITHUB_TOKEN_REPO }}
40-
package-name: "@googlemaps/react-wrapper"
41-
bump-minor-pre-major: true
4240

4341
# Everything below is for NPM publishing when a release is cut.
4442
# Note the "if" statement on all commands to make sure that publishing
4543
# only happens when a release is cut.
4644

4745
- if: ${{ steps.release.outputs.release_created }}
4846
name: Checkout
49-
uses: actions/checkout@v3
47+
uses: actions/checkout@v4
5048

5149
- if: ${{ steps.release.outputs.release_created }}
5250
name: Setup Node for Dependency Installation
53-
uses: actions/setup-node@v3
51+
uses: actions/setup-node@v4
5452
with:
55-
node-version: 20
53+
node-version: 22
5654
cache: npm
5755

5856
- if: ${{ steps.release.outputs.release_created }}
@@ -62,9 +60,9 @@ jobs:
6260
# Now configure node with the registry used for publishing
6361
- if: ${{ steps.release.outputs.release_created }}
6462
name: Setup Node for Publishing
65-
uses: actions/setup-node@v3
63+
uses: actions/setup-node@v4
6664
with:
67-
node-version: 20
65+
node-version: 22
6866
registry-url: "https://wombat-dressing-room.appspot.com/"
6967

7068
- if: ${{ steps.release.outputs.release_created }}

.github/workflows/test.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,17 @@
1414

1515
name: Test
1616
on: [push, pull_request, workflow_call]
17+
1718
jobs:
1819
test:
1920
runs-on: ubuntu-latest
2021
steps:
2122
- name: Checkout
2223
uses: actions/checkout@v4
2324
- name: Setup Node
24-
uses: actions/setup-node@v3
25+
uses: actions/setup-node@v4
2526
with:
26-
node-version: 20
27+
node-version: 22
2728
cache: npm
2829
- name: Install Dependencies
2930
run: npm ci

examples/basic.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
* limitations under the License.
1515
*/
1616
import React, { useEffect, useRef, ReactElement } from "react";
17-
import ReactDOM from "react-dom";
17+
import { createRoot } from "react-dom/client";
18+
1819
import { Wrapper, Status } from "../src";
1920

2021
const render = (status: Status): ReactElement => {
@@ -30,7 +31,7 @@ function MyMapComponent({
3031
center: google.maps.LatLngLiteral;
3132
zoom: number;
3233
}) {
33-
const ref = useRef();
34+
const ref = useRef(null);
3435

3536
useEffect(() => {
3637
new window.google.maps.Map(ref.current, {
@@ -53,4 +54,6 @@ function App() {
5354
);
5455
}
5556

56-
ReactDOM.render(<App />, document.querySelector("#root"));
57+
const container = document.getElementById("root") as HTMLElement;
58+
const root = createRoot(container);
59+
root.render(<App />);

0 commit comments

Comments
 (0)