From 805cb4a7b9df8313fb44f7d621b3ff281aa19bbf Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 2 Sep 2024 10:40:21 +0200 Subject: [PATCH] chore(deps): update dependency @types/react to v18.3.5 (#3049) --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jeremias Peier --- package.json | 2 +- src/react/core/create-component.ts | 4 ++-- yarn.lock | 10 +--------- 3 files changed, 4 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 697792632b..9c5fb834d3 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/react/core/create-component.ts b/src/react/core/create-component.ts index 701317c68e..c8b8f80a0e 100644 --- a/src/react/core/create-component.ts +++ b/src/react/core/create-component.ts @@ -315,12 +315,12 @@ export const createComponent = )[key], prevElemPropsRef.current.get(key), events, ); prevElemPropsRef.current.delete(key); - newElemProps.set(key, props[key]); + newElemProps.set(key, (props as Record)[key]); } // "Unset" any props from previous render that no longer exist. // Setting to `undefined` seems like the correct thing to "unset" diff --git a/yarn.lock b/yarn.lock index 090026409c..16d5f9224a 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2667,7 +2667,7 @@ 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== @@ -2675,14 +2675,6 @@ "@types/prop-types" "*" csstype "^3.0.2" -"@types/react@18.3.4": - 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/resolve@1.20.2": version "1.20.2" resolved "https://registry.yarnpkg.com/@types/resolve/-/resolve-1.20.2.tgz#97d26e00cd4a0423b4af620abecf3e6f442b7975"