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

fix(TU-15133): Rename ref prop to embedRef for proper typing #657

Merged
merged 3 commits into from
Jul 17, 2024
Merged

Conversation

mathio
Copy link
Contributor

@mathio mathio commented Jul 16, 2024

Changes:


BREAKING CHANGES:

  • Rename ref to embedRef in order to type it properly
  • Remove support for node version 16 (end of life 2023-09-11)
  • Bumps React version to > 18.

@mathio mathio force-pushed the tu15133 branch 2 times, most recently from 6a42cd8 to 5318a9c Compare July 16, 2024 13:00
@mathio mathio force-pushed the tu15133 branch 2 times, most recently from 1f898a8 to c2d16e5 Compare July 16, 2024 15:33
@mathio mathio requested a review from leandro-serafim July 16, 2024 15:33
@mathio mathio mentioned this pull request Jul 16, 2024
@mathio mathio marked this pull request as ready for review July 16, 2024 15:53
@mathio mathio requested a review from a team July 16, 2024 15:53
Copy link

TypeScript adoption

Current adoption level: 96.4%

Copy link
Contributor

@leandro-serafim leandro-serafim left a comment

Choose a reason for hiding this comment

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

Overall, it looks good, just a small comment n the tests, that were added an only.

Thr44 and others added 3 commits July 17, 2024 11:25
BREAKING CHANGE: Components are unable to access `ref` prop directly.
Using  `forwardRef` breaks the typings. Since we do not accept any
`ForwardedRef` but rather only `MutableRefObject`, we will rename the
prop to type it correctly.
Add examples for the App Router available from NextJS version >= 13.
BREAKING CHANGE: The library no longer supports node version 16 (end of
life 2023-09-11). React version is bumped and requires node >= 18.
@typeform-ops-gha
Copy link

[BOT] Preview available with hash 74bce6b298bb0b4087b70ac72f2b9a32c935b2ab here.

@mathio mathio merged commit 7860e94 into main Jul 17, 2024
11 checks passed
@mathio mathio deleted the tu15133 branch July 17, 2024 10:12
typeform-ops-gha pushed a commit that referenced this pull request Jul 17, 2024
# [@typeform/embed-v5.0.0](https://github.com/Typeform/embed/compare/@typeform/embed-v4.10.3...@typeform/embed-v5.0.0) (2024-07-17)

### Bug Fixes

* **TU-15133:** Rename `ref` prop to `embedRef` for proper typing ([#657](#657)) ([7860e94](7860e94))

### BREAKING CHANGES

* **TU-15133:** Components are unable to access `ref` prop directly.
Using  `forwardRef` breaks the typings. Since we do not accept any
`ForwardedRef` but rather only `MutableRefObject`, we will rename the
prop to type it correctly.

* chore(TU-15133): Update NextJS demos to run on latest version

Add examples for the App Router available from NextJS version >= 13.

* feat(TU-15133): Update CI to run on Node version 22
* **TU-15133:** The library no longer supports node version 16 (end of
life 2023-09-11). React version is bumped and requires node >= 18.
@typeform-ops-gha
Copy link

🎉 This PR is included in version @typeform/embed-v5.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

typeform-ops-gha pushed a commit that referenced this pull request Jul 17, 2024
# [@typeform/embed-react-v4.0.0](https://github.com/Typeform/embed/compare/@typeform/embed-react-v3.20.0...@typeform/embed-react-v4.0.0) (2024-07-17)

### Bug Fixes

* **TU-15133:** Rename `ref` prop to `embedRef` for proper typing ([#657](#657)) ([7860e94](7860e94))

### Features

* Bump @typeform/embed in @typeform/embed-react package [skip ci] ([b2ada39](b2ada39))

### BREAKING CHANGES

* **TU-15133:** Components are unable to access `ref` prop directly.
Using  `forwardRef` breaks the typings. Since we do not accept any
`ForwardedRef` but rather only `MutableRefObject`, we will rename the
prop to type it correctly.

* chore(TU-15133): Update NextJS demos to run on latest version

Add examples for the App Router available from NextJS version >= 13.

* feat(TU-15133): Update CI to run on Node version 22
* **TU-15133:** The library no longer supports node version 16 (end of
life 2023-09-11). React version is bumped and requires node >= 18.
@typeform-ops-gha
Copy link

🎉 This PR is included in version @typeform/embed-react-v4.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Typescript: type issue with components ref
4 participants