Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps-dev): bump @types/react from 18.0.28 to 18.2.21 #3674

Merged
merged 6 commits into from
Sep 5, 2023

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 28, 2023

Bumps @types/react from 18.0.28 to 18.2.21.

Commits

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot requested review from a team and broccolinisoup August 28, 2023 02:30
@dependabot dependabot bot added dependencies Pull requests that update a dependency file skip changeset This change does not need a changelog labels Aug 28, 2023
@changeset-bot
Copy link

changeset-bot bot commented Aug 28, 2023

⚠️ No Changeset found

Latest commit: 313394d

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dependabot dependabot bot temporarily deployed to github-pages August 28, 2023 02:37 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 02:37 Inactive
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/types/react-18.2.21 branch 2 times, most recently from 3123b93 to 3a4b288 Compare August 28, 2023 14:59
Bumps [@types/react](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react) from 18.0.28 to 18.2.21.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react)

---
updated-dependencies:
- dependency-name: "@types/react"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/types/react-18.2.21 branch from 3a4b288 to ac50167 Compare August 28, 2023 15:02
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 15:07 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 15:07 Inactive
@dependabot dependabot bot temporarily deployed to github-pages August 28, 2023 15:11 Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 15:12 Inactive
@joshblack joshblack temporarily deployed to github-pages August 28, 2023 15:28 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 15:29 Inactive
@joshblack
Copy link
Member

Would love to get your take on the changes @broccolinisoup 👀 Wasn't sure of the best way to resolve the TypeScript errors so am curious what approach you would take here.

@github-actions
Copy link
Contributor

github-actions bot commented Aug 28, 2023

size-limit report 📦

Path Size
dist/browser.esm.js 104.59 KB (0%)
dist/browser.umd.js 105.14 KB (0%)

@joshblack joshblack temporarily deployed to github-pages August 28, 2023 15:47 — with GitHub Actions Inactive
@github-actions github-actions bot temporarily deployed to storybook-preview-3674 August 28, 2023 15:48 Inactive
@broccolinisoup
Copy link
Member

Thanks @joshblack for the ping!

I looked at the type errors without checking out your commits to see how I would have solved them 😄

Regarding

  • the Dialog content type issue, the way you solved was my instinct as well!
  • the dangerousRenderedHTML.__html issue, it is an interesting one. toString() makes a lot of sense to me. I might have opted in using as string mainly because I am having a hard time to understand what TrustedHTML type html looks like and how it is different than string type html. Curious to hear if you have thoughts or examples to share!

Copy link
Member

@broccolinisoup broccolinisoup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Left a comment to share my thoughts but this looks great to me 🚀

@joshblack
Copy link
Member

@broccolinisoup same, I wasn't quite about TrustedHTML either. I went for toString() from: https://developer.mozilla.org/en-US/docs/Web/API/TrustedHTML since it seemed like that would provide a string containing sanitized HTML but in the examples they also just set innerHTML to the value itself so 🤷‍♂️

I'm going to use your suggestion as string since it seems like the direct assignment could have specific behavior:

The sanitized value can then be used with Element.innerHTML to ensure that no new HTML elements can be injected.

@github-actions github-actions bot temporarily deployed to storybook-preview-3674 September 5, 2023 17:24 Inactive
@joshblack joshblack added this pull request to the merge queue Sep 5, 2023
Merged via the queue into main with commit 01fa457 Sep 5, 2023
31 checks passed
@joshblack joshblack deleted the dependabot/npm_and_yarn/types/react-18.2.21 branch September 5, 2023 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file skip changeset This change does not need a changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants