To preview users: On upgrading to stable 9.0.0 #127
Closed
DuCanhGH
announced in
Announcements
Replies: 1 comment 2 replies
-
Thank you for your big effort! I updated to: "@serwist/next": "9.0.0",
"@serwist/sw": "9.0.0", But when I run ![]() |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Serwist 9.0.0 has been released! Here is the release note: https://serwist.pages.dev/blog/2024/03/10/serwist-v9.
Throughout its development, there had been various experiments on how the API would look like in the end. As such, the preview builds had breaking changes between one another. This discussion lists all of such changes, aiming to help you migrate from one of them to the stable build.
Preview 0 -> Preview 1:
@serwist/next
: RenamedcacheOnFrontEndNav
tocacheOnNavigation
Preview 2 -> Preview 3:
@serwist/sw
: Removed support for string handlers inregisterRuntimeCaching
Preview 3 -> Preview 4:
@serwist/precaching
: RenamedfallbackURL
, added support for amatcher
Preview 6 -> Preview 7:
@serwist/svelte
: Moved Svelte integration into a separate packagePreview 7 -> Preview 8:
@serwist/core
: Allow non-Promise return types forSerwistPlugin
callbacksPreview 12 -> Preview 13:
@serwist/build
: Moved framework-specific types out of@serwist/build
Preview 13 -> Preview 14:
@serwist/cli
: Removed/renamed certain featurescopyLibraries
was already a no-op, so this simply removes the empty command.wizard --injectManifest
has becomewizard
, thanks to the fact that GenerateSW no longer exists.injectManifest
command toinject-manifest
. From now on, the CLI uses thekebab-case
naming convention rather than thecamelCase
one.Preview 16 -> Preview 17:
@serwist/sw
: AddedSerwist
installSerwist
. Back then, its constructor only accepted two arguments, which areprecacheController
androuter
. Its theninstall
function was the equivalent ofinstallSerwist
.Preview 17 -> Preview 18:
@serwist/sw
: Merged service worker packages into@serwist/sw
:@serwist/sw
:@serwist/sw/plugins
:@serwist/background-sync
@serwist/broadcast-update
@serwist/cacheable-response
@serwist/expiration
@serwist/google-analytics
@serwist/range-requests
@serwist/sw/precaching
:@serwist/precaching
:PrecacheFallbackPlugin
,PrecacheFallbackEntry
, andPrecacheFallbackPluginOptions
, which were located at@serwist/sw/plugins
.@serwist/sw/routing
:@serwist/routing
@serwist/sw/strategies
:@serwist/strategies
Preview 23 -> Preview 24:
serwist
: ReplacedPrecacheController
andRouter
withSerwist
@serwist/sw
was reverted to what it had been before Preview 17. Meeting the same fate as other service worker packages did,@serwist/sw
has also been deprecated.serwist
became what it was meant to become in 9.0.0.Serwist.install
was removed, and its functionality was merged with the class constructor's. At this point, rather than ainstallSerwist
replacement,Serwist
turned into the combination ofPrecacheController
,Router
, andinstallSerwist
. This became the final design of the class. See the reference documentation on how to use it here.Preview 25 -> Preview 26:
serwist
: InternalizedcleanupOutdatedCaches
andclientsClaim
.Serwist
class already provides the two optionsprecacheOptions.cleanupOutdatedCaches
andclientsClaim
.@serwist/vite
: MovedgetSerwist
from@serwist/vite/browser
tovirtual:serwist
This is literally me:
Happy hacking!
P/s: happy 400!
![image](https://private-user-images.githubusercontent.com/75556609/324451149-61b8acfd-09b1-418a-a498-6216ad072ad4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTkxMTUxNDksIm5iZiI6MTcxOTExNDg0OSwicGF0aCI6Ii83NTU1NjYwOS8zMjQ0NTExNDktNjFiOGFjZmQtMDliMS00MThhLWE0OTgtNjIxNmFkMDcyYWQ0LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MjMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjIzVDAzNTQwOVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTc5ZTlmMjQ2MDBjYTg3OWNhMTM3NGVkNDFlODM1NGRmY2YyNzRjYjgxMDM2ZTZkMGJhNjc5NDMyMjc4OWE0YzMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.JNp_YBn_mgL7AdTG6Jifg9FB8yJHbP2o4iPAJFmNxGw)
Beta Was this translation helpful? Give feedback.
All reactions