Skip to content

Commit

Permalink
chore(deps): update dependency @types/react to v18.3.5 (#3049)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Jeremias Peier <[email protected]>
  • Loading branch information
renovate[bot] and jeripeierSBB authored Sep 2, 2024
1 parent 8c65d0b commit 805cb4a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"@types/glob": "8.1.0",
"@types/mocha": "10.0.7",
"@types/node": "20.16.3",
"@types/react": "18.3.4",
"@types/react": "18.3.5",
"@types/react-dom": "18.3.0",
"@typescript-eslint/eslint-plugin": "8.3.0",
"@typescript-eslint/parser": "8.3.0",
Expand Down
4 changes: 2 additions & 2 deletions src/react/core/create-component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,12 +315,12 @@ export const createComponent = <I extends HTMLElement, E extends EventNames = {}
setProperty(
elementRef.current,
key,
props[key],
(props as Record<string, unknown>)[key],
prevElemPropsRef.current.get(key),
events,
);
prevElemPropsRef.current.delete(key);
newElemProps.set(key, props[key]);
newElemProps.set(key, (props as Record<string, unknown>)[key]);
}
// "Unset" any props from previous render that no longer exist.
// Setting to `undefined` seems like the correct thing to "unset"
Expand Down
10 changes: 1 addition & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2667,22 +2667,14 @@
dependencies:
"@types/react" "*"

"@types/react@*", "@types/react@^16.8.0 || ^17.0.0 || ^18.0.0":
"@types/react@*", "@types/react@18.3.5", "@types/react@^16.8.0 || ^17.0.0 || ^18.0.0":
version "18.3.5"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.5.tgz#5f524c2ad2089c0ff372bbdabc77ca2c4dbadf8f"
integrity sha512-WeqMfGJLGuLCqHGYRGHxnKrXcTitc6L/nBUWfWPcTarG3t9PsquqUMuVeXZeca+mglY4Vo5GZjCi0A3Or2lnxA==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/[email protected]":
version "18.3.4"
resolved "https://registry.yarnpkg.com/@types/react/-/react-18.3.4.tgz#dfdd534a1d081307144c00e325c06e00312c93a3"
integrity sha512-J7W30FTdfCxDDjmfRM+/JqLHBIyl7xUIp9kwK637FGmY7+mkSFSe6L4jpZzhj5QMfLssSDP4/i75AKkrdC7/Jw==
dependencies:
"@types/prop-types" "*"
csstype "^3.0.2"

"@types/[email protected]":
version "1.20.2"
resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"
Expand Down

0 comments on commit 805cb4a

Please sign in to comment.