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

Removes backward-incompatible type export. #451

Merged
merged 2 commits into from
Nov 27, 2023
Merged

Removes backward-incompatible type export. #451

merged 2 commits into from
Nov 27, 2023

Conversation

dcporter
Copy link
Contributor

This syntax (export { type Foo }) insta-breaks the build for any project using versions of TS earlier than v4.5. Verified locally that this change fixes the build for earlier versions while not breaking it for later versions.

I believe the only scenario in which this change could impact tree-shaking is if someone is only importing the ReadonlySignal type in a project that doesn't otherwise use signals, which seems unlikely.

This syntax (export { type Foo }) breaks consumers prior to TS v4.5.
Copy link

changeset-bot bot commented Nov 27, 2023

🦋 Changeset detected

Latest commit: 990f1eb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@preact/signals-core Patch

Not sure what this means? Click here to learn what changesets are.

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

Copy link

netlify bot commented Nov 27, 2023

Deploy Preview for preact-signals-demo ready!

Name Link
🔨 Latest commit 990f1eb
🔍 Latest deploy log https://app.netlify.com/sites/preact-signals-demo/deploys/6564ae8a9f46d80008d5f8c2
😎 Deploy Preview https://deploy-preview-451--preact-signals-demo.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@dcporter
Copy link
Contributor Author

The change was originally made by @eddyw in #231 (a very cool PR otherwise) — wanted to @ Eddy in to make sure I'm not missing any big consequences here.

@XantreDev
Copy link
Contributor

What is a problem to upgrade typescript?

Copy link
Member

@rschristian rschristian left a comment

Choose a reason for hiding this comment

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

Cheers

@rschristian rschristian merged commit 70ef4bb into preactjs:main Nov 27, 2023
6 checks passed
@github-actions github-actions bot mentioned this pull request Nov 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants