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: typeof Meta in Svelte v3 (Pin Svelte peer dependency to v3) #127

Merged
merged 3 commits into from
Aug 29, 2023

Conversation

JReinhold
Copy link
Collaborator

@JReinhold JReinhold commented Aug 24, 2023

Works on #121 (comment)

cc @RSWilli

This PR pins the allowed Svelte version to v3, because it's not possible to provide correct typings for Svelte v3 and v4 at the same time. It also reverts the type changes in #112 so it matches that of Svelte v3.

This will be released as a patch version, and then shortly after #128 that pins to Svelte v4 will be released as a major, requiring any Svelte v4 users to upgrade this addon with the breaking change.

I've tested that this makes types work by installing this canary in a Svelte v3 project and see that it works, where the current latest release of this addon makes the types fail similar to #121.

📦 Published PR as canary version: 3.0.10--canary.127.893640b.0

✨ Test out this PR locally via:

npm install @storybook/[email protected]
# or 
yarn add @storybook/[email protected]

@socket-security
Copy link

New dependencies detected. Learn more about Socket for GitHub ↗︎

Packages Version New capabilities Transitives Size Publisher
svelte-check 3.5.0 None +1 8.81 MB svelte-language-tools-deploy

@JReinhold JReinhold changed the title Pin Svelte peer dependency to v3 Fix: typeof Meta in Svelte v3 (Pin Svelte peer dependency to v3) Aug 24, 2023
@JReinhold JReinhold added bug Something isn't working patch Increment the patch version when merged dependencies Update one or more dependencies version labels Aug 24, 2023
@JReinhold JReinhold marked this pull request as ready for review August 24, 2023 08:20
@JReinhold JReinhold requested a review from hobbes7878 August 24, 2023 08:20
@JReinhold JReinhold merged commit 715713d into main Aug 29, 2023
@JReinhold JReinhold deleted the peer-dep-v3 branch August 29, 2023 07:22
@shilman
Copy link
Member

shilman commented Aug 29, 2023

🚀 PR was released in v3.0.10 🚀

@shilman shilman added the released This issue/pull request has been released. label Aug 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working dependencies Update one or more dependencies version patch Increment the patch version when merged released This issue/pull request has been released.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants