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

Migration guide #2462

Closed
Rich-Harris opened this issue Apr 21, 2019 · 9 comments
Closed

Migration guide #2462

Rich-Harris opened this issue Apr 21, 2019 · 9 comments
Labels
Milestone

Comments

@Rich-Harris
Copy link
Member

v2 to v3 needs a blog post describing the changes, with examples.

Will also need to get svelte-upgrade finished

@Rich-Harris Rich-Harris added this to the 3.0 milestone Apr 21, 2019
@himynameisdave
Copy link
Contributor

Yeah I would love to help out here if I can, but I'm pretty unclear about all the changes and what a proper migration would look like. Sadly the CHANGELOG isn't much help.

If someone can provide me some key points I could write out some examples to help here.

@red8012
Copy link

red8012 commented Jun 28, 2019

It has been 2 months since 3.0.0 released. People just love it. I think it is now fairly stable for most users. @Rich-Harris do you recommend people with existing v2 projects start migrating to v3? If so, is there any ETA for the migration guide (as well as svelte-upgrade)?

Thanks in advance.

@praneybehl
Copy link

Hi all, I have a few svelte apps that I'm looking to update. Is there a migration guide?

@tivac
Copy link
Contributor

tivac commented Aug 27, 2019

No guide or updates to the tooling that I'm aware of, we're currently using https://github.com/tivac/svelte-translator in production and I think it's been pretty successful. Biggest limitation is a lack of support for slotted content but given the v2 component APIs lack of hooks around that I don't think it's possible to fix atm.

@aaronjensen
Copy link

The original blog post written in April 2019 says "In the coming days we'll release a migration guide and an updated version of which will do the best it can to automate the process...", yet the v3 branch on svelte-upgrade hasn't seen any changes in almost a year.

We have a svelte 2 project that we just inherited--is it worth waiting longer or should we begin the port to React?

@Conduitry
Copy link
Member

We're spread pretty thin, and I wouldn't hold my breath on the v2->v3 migration tool getting finished any time soon - but I'm not sure why, absent a migration tool, your only alternative is to manually port to React. If that's a threat, it's not a very effective one.

@TehShrike
Copy link
Member

@aaronjensen firing up the v3 branch and running it against your project would be a lot less work than migrating.

@aaronjensen
Copy link

Hi @Conduitry, sorry—I wrote that in a bit of a hurry and with some fear and I realize it looked like a threat. I'm sorry about that, that wasn't my intention at all. It's not that it's our only alternative, it's just where most of our skills are. Personally, I'm excited about svelte and have been for a long time but I haven't had a chance to use it. This would be a great chance for that, but I was worried about the idea of being stuck on v2 since there didn't seem to be an upgrade guide and the changes seemed big, but that's likely just my naïveté.

Good to know that the v3 branch should work to help us migrate, I'll definitely try that out. I was just concerned about migrating from something we don't have familiarity with to something we don't have familiarity with. The app itself isn't massive, so a port to React is likely a real (but unfortunate) possibility.

In any case, thank you for the update and the suggestion. We'll try it out. If there are issues, would it be worth opening issues on the upgrader repo or would we be better off fixing them manually? Thanks!

@tivac
Copy link
Contributor

tivac commented Jan 10, 2020

@aaronjensen I probably wouldn't bother, I doubt the upgrade tooling is getting any more work put into it. My svelte-translator project can help you slowly transition a codebase to svelte 3 if you don't need some advanced features, but for a small app you're probably better off manually porting.

I've found I can port a component pretty quickly after some practice, and generally get it right oh the first try. Svelte v3 is awesome in its clarity.

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

No branches or pull requests

9 participants