Skip to content

V0.4.0

Latest
Compare
Choose a tag to compare
@Bluzzi Bluzzi released this 25 Apr 20:55
· 42 commits to main since this release

🚀 What's New

  • The documentation has been greatly improved, with lots of references to RFC 6265 specifications and relevant details
  • The function domCookie.setCookie() now checks if there are already more than 50 cookies and if the cookie is longer than 4096 bytes (see the limitations of RFC 6265)
  • The domCookie.removeCookie() function now takes an options argument to be able to remove cookies on specific path or domain
  • An error will now be thrown if navigator.cookieEnabled is false when using the domCookie functions
  • The serialization of a cookie now encodes (with encodeURIComponent()) its value as well as the path and domain parameters if they are specified