Skip to content

Commit 02fe28f

Browse files
fix(deps-dev): bump react, react-dom and corresponding types (#650)
* chore(deps-dev): bump react, react-dom and @types/react Bumps [react](https://github.com/facebook/react/tree/HEAD/packages/react), [react-dom](https://github.com/facebook/react/tree/HEAD/packages/react-dom) and [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react). These dependencies needed to be updated together. Updates `react` from 18.3.1 to 19.0.0 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.0.0/packages/react) Updates `react-dom` from 18.3.1 to 19.0.0 - [Release notes](https://github.com/facebook/react/releases) - [Changelog](https://github.com/facebook/react/blob/main/CHANGELOG.md) - [Commits](https://github.com/facebook/react/commits/v19.0.0/packages/react-dom) Updates `@types/react` from 18.3.12 to 19.0.2 - [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases) - [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react) --- updated-dependencies: - dependency-name: react dependency-type: direct:development update-type: version-update:semver-major - dependency-name: react-dom dependency-type: direct:development update-type: version-update:semver-major - dependency-name: "@types/react" dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]> * fix: update type annotations for react 19 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Martin Schuhfuss <[email protected]>
1 parent bfa85c1 commit 02fe28f

File tree

5 files changed

+37
-47
lines changed

5 files changed

+37
-47
lines changed

package-lock.json

Lines changed: 26 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,8 @@
6464
"@testing-library/react": "^16.0.0",
6565
"@testing-library/user-event": "^14.4.3",
6666
"@types/jest": "^29.4.0",
67-
"@types/react": "^18.3.5",
68-
"@types/react-dom": "^18.3.0",
67+
"@types/react": "^19.0.3",
68+
"@types/react-dom": "^19.0.2",
6969
"@typescript-eslint/eslint-plugin": "^8.3.0",
7070
"@typescript-eslint/parser": "^8.3.0",
7171
"eslint": "^8.25.0",
@@ -78,8 +78,8 @@
7878
"microbundle": "^0.15.1",
7979
"npm-run-all": "^4.1.5",
8080
"prettier": "^3.0.2",
81-
"react": ">=16.8.0",
82-
"react-dom": ">=16.8.0",
81+
"react": "^19.0.0",
82+
"react-dom": "^19.0.0",
8383
"ts-jest": "^29.0.5",
8484
"typescript": "^5.1.6",
8585
"vite": "^6.0.2"

src/components/advanced-marker.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,11 @@ export const AdvancedMarker = forwardRef(
282282
const advancedMarkerContextValue: AdvancedMarkerContextValue | null =
283283
useMemo(() => (marker ? {marker} : null), [marker]);
284284

285-
useImperativeHandle(ref, () => marker, [marker]);
285+
useImperativeHandle(
286+
ref,
287+
() => marker as google.maps.marker.AdvancedMarkerElement,
288+
[marker]
289+
);
286290

287291
if (!contentContainer) return null;
288292

src/components/map/use-map-instance.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ export function useMapInstance(
107107
const savedMapStateRef = useRef<{
108108
mapId?: string | null;
109109
cameraState: CameraState;
110-
}>();
110+
}>(undefined);
111111

112112
// create the map instance and register it in the context
113113
useEffect(

src/components/marker.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ function useMarker(props: MarkerProps) {
121121
export const Marker = forwardRef((props: MarkerProps, ref: MarkerRef) => {
122122
const marker = useMarker(props);
123123

124-
useImperativeHandle(ref, () => marker, [marker]);
124+
useImperativeHandle(ref, () => marker as google.maps.Marker, [marker]);
125125

126126
return <></>;
127127
});

0 commit comments

Comments
 (0)