- Remove npm version restriction in package.json - #818
Unclaimed project
Are you a maintainer of js-cookie? Claim this project to take control of your public changelog and roadmap.
Changelog
A simple, lightweight JavaScript API for handling browser cookies
defaults in favor of a builder: now to supply an api instance with particular predefined (cookie) attributes there's Cookies.withAttributes(), e.g.:const api = Cookies.withAttributes({
path: '/',
secure: true
})
api.set('key', 'value') // writes cookie with path: '/' and secure: true...
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/...
exports field in package.json - #695browser field instead of main in package.json (for the UMD variant of the library): bundlers by default prefer it over module and will end up with a UMD module where ES may be preferred - #666Release v3.0.0-rc.0