[Snyk] Upgrade js-cookie from 2.2.1 to 3.0.5 #204
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 js-cookie from 2.2.1 to 3.0.5.
ℹ️ 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.
The recommended version is 16 versions ahead of your current version.
The recommended version was released 2 years ago.
Release notes
Package name: js-cookie
defaults
in favor of a builder: now to supply an api instance with particular predefined (cookie) attributes there'sCookies.withAttributes()
, e.g.:attributes
property; it's an immutable object and unlikedefaults
cannot be changed to configure the api.Cookies.converter
, which allows for implementing self-contained custom converters providing the same behavior:withConverter()
no longer accepts a function as argument to be turned into a read converter. It is now required to always pass an object with the explicit type(s) of converter(s):converter
property; it's an immutable object and cannot be changed to configure the api.module
field inpackage.json
points to an ES module variant of the library.browser
field instead ofmain
inpackage.json
(for the UMD variant of the library).getJSON()
and automatic stringifying inset()
: useCookies.set('foo', JSON.stringify({ ... }))
andJSON.parse(Cookies.get('foo'))
instead.Reverted changes introduced in rc2, which caused a mayor breaking change in the case of requesting the library via jsdelivr CDN with a particular file name. This breaking change was not intentional.
The problem was that we've been advertising the following link in the readme on the master branch:
https://cdn.jsdelivr.net/npm/js-cookie@rc/dist/js.cookie.min.js
while the respective change had changed that file name in the distribution to
js.cookie.umd.min.js
.Nonetheless, we advise to always use the latest stable version in production environments.
exports
field in package.json - #695browser
field instead ofmain
in package.json (for the UMD variant of the library): bundlers by default prefer it overmodule
and will end up with a UMD module where ES may be preferred - #666No content.
Important
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: