Skip to content
New issue

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

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

Already on GitHub? # to your account

Version 3.0 WIP #135

Merged
merged 52 commits into from
Sep 20, 2020
Merged

Version 3.0 WIP #135

merged 52 commits into from
Sep 20, 2020

Conversation

ItalyPaleAle
Copy link
Owner

@ItalyPaleAle ItalyPaleAle commented Sep 19, 2020

This PR contains all the work being done on the upcoming version 3.0.


Breaking changes:

  • Because parameters from the URL are now URL-decoded, if you were doing it on your application before, you might need to update the code to avoid URL-decoding twice
  • The wrap method exported by svelte-spa-router is now considered deprecated and using it will throw a warning; it will be removed in a future version. Please upgrade to the new wrap method exported by svelte-spa-router/wrap, which also supports dynamically-imported routes. See the documentation for route pre-conditions.
  • The method nextTickPromise, which was already deprecated, has been removed

New features:

Changes:

  • Decode URL-encoded parameters from URL (fixes URL params should be decoded #107)
  • Prefix for nested routers can be a regular expression that will be removed if matched (fixes Nested routes with param prefix #134)
  • Using the tick method from Svelte rather than re-implementing it. The method nextTickPromise, which was already deprecated, has been removed.
  • svelte-spa-router now uses ES2016 features (async/await) internally and requires a recent-enough browser (most browsers from 2017 onwards should be good), or transpilation with Babel
  • Added devcontainer, so you can develop inside a Docker container or GitHub Codespaces

Fixes:

  • Tests now run against Chrome running in Docker, so there's no more issues with the CI server updating Chrome

TODO:

  • Update documentation
  • Create new samples

@frederikhors
Copy link
Contributor

frederikhors commented Sep 19, 2020

Amazing! ❤️

@ItalyPaleAle ItalyPaleAle added this to the v3.0 milestone Sep 20, 2020
@ItalyPaleAle ItalyPaleAle force-pushed the v3.0-wip branch 4 times, most recently from d0fc936 to bf7bf37 Compare September 20, 2020 23:44
@ItalyPaleAle ItalyPaleAle merged commit ab9d3a0 into master Sep 20, 2020
@ItalyPaleAle
Copy link
Owner Author

Merged! Version 3.0 is coming out now 🚀 🎉 😄

@ItalyPaleAle ItalyPaleAle deleted the v3.0-wip branch September 21, 2020 00:00
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
3 participants