:cookie: A simple, lightweight JavaScript API for handling browser cookies , it is easy to pick up and use, has a reasonable footprint(~2kb, gzipped: 0.95kb), and has no dependencies. It should not interfere with any JavaScript libraries or frameworks. https://jaywcjlove.github.io/cookie.js/
Using
cookiejs v2.1.0
I get the following spurious exception:Uncaught TypeError: "expires" is read-only
This occurs when attempting to set a cookie e.g.
cookie.set('test', 'true', { expires: 1, })
Or attempting to remove a cookie e.g.
cookie.remove('test')
This issue resolves if switching back to
cookiejs v2.0.0