[Snyk] Upgrade workbox-background-sync from 4.1.0 to 4.3.1 #6
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade workbox-background-sync from 4.1.0 to 4.3.1.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
Release notes
Package name: workbox-background-sync
🐛 What's Fixed?
workbox-broadcast-update
workbox-core
, which preventedworkbox-broadcast-update
from notifying on navigation requests. [#2050]🎉 What's New?
workbox-background-sync
getAll()
method to theQueue
class. This can be used to get a list of all unexpired entries in a given queue without removing them. This is useful in situations where replaying the queue is not possible (the user is offline), but you want to show information about the queue to the user. [#2018]🐛 What's Fixed?
Build Tools
workbox
namespace was used before it was defined, whennavigationPreload: true
. [#2007]broadcastUpdate
option inruntimeCaching
. [#2017]workbox-background-sync
Request
wasn't beingclone()
ed before re-adding it to the queue. [#2014]mode
ofsame-origin
. [#2015]Thanks!
Special thanks to @ merrywhether and @ tarjei for contributions that went into this release.
🎉 What's New?
Build Tools
navigationPreload
config property (defaulting tofalse
) toworkbox-build
'sgenerateSW
andgenerateSWString
modes, which would also expose it to the wrappers likeworkbox-cli
andworkbox-webpack-plugin
. [#1981]workbox-core
Adds
workbox.core.cacheNames.prefix
andworkbox.core.cacheNames.suffix
for accessing the current prefix and suffix used in generating cache names. [#2001]Adds a new
cacheKeyWillBeUsed
lifecycle callback. This allows developers to override the default cache key for reads or writes (or both). [#1990]The interface for the callback looks like:
🐛 What's Fixed?
workbox-webpack-plugin
webpack
loaders [#1966].Thanks!
Special thanks to @ merrywhether, @ 3846masa and @ el for contributions that went into this release.
🐛 What's Fixed?
workbox-window
The
removeEventListener()
method of theWorkbox
class would throw due to an implementation error, this has been fixed. [#1963]If, at registration time, there was already both an active and waiting service worker with the same script URL as the one being registered, calling
getSW()
ormessageSW()
after registration would target the active service worker rather than the waiting service worker. The intended behavior is that the target service worker associated with aWorkbox
instance is always the most recently registered service worker with a matching script URL. These methods now target the waiting service worker [#1961]Thanks!
Special thanks to @ donavon for contributions that went into this release.
🎉 What's New?
workbox-build
generateSW
option to build your service worker, amessage
listener is now added to the service worker output, which allows you to invokeskipWaiting()
from the window viapostMessage()
[#1929].🐛 What's Fixed?
workbox-window
messageSW()
after an updated service worker is found, it would send the message to the service worker currently controlling the page. This has been fixed [#1941].workbox-precaching
cacheDidUpdate
method were not properly bound, and would fail in some cases. This has been fixed [#1678].workbox-background-sync
If requests were added to a
backgroundSync.Queue
queue due to server error rather than network error, those requests would be retried immediately, which could lead to an infinite loop. This has been fixed [#1943]The
backgroundSync.Queue
class used to storeRequest
bodies asBlob
objects in IndexedDB, but this does not work in Safari. All request bodies are now stored asArrayBuffer
objects [#1932].workbox-broadcast-update
BroadcastCacheUpdate
instance is passed aninstall
event (which happens when using it as a precache plugin) rather than afetch
event, it would error. This has been fixed [#1938].Commit messages
Package name: workbox-background-sync
Compare
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information:
🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs