Releases: Malmadork/cookies
Cookies v1.5.0 (11.29.23)
Many new changes to Cookies.js!
- Removed the Cookie() methods in favor for the object
Use
Cookies.set()
,Cookies.get()
,Cookies.remove()
COOKIE_TOOLS
is a new object holding various helper methods for managing cookies and local storage. These may not be very useful for user use, but exist to aid Cookie storage.Cookies.set(key, value, options)
now allows theexpires
option to be stored in formats other than days.When you set the expires option, a number value will be assumed as milliseconds instead of days, and one can also use a string in order to set the expiration time of the Cookie. This string will be composed of a number followed by characters that signify the length of time [ms, s, m, h, d, w, M]. For example:
{expires: "2d"}
will expire in two days,{expires: "120m"}
will expire in 120 minutes,{expires: "1M"}
will expire in a month.- Various Bug Fixes
Cookies.js Version 1.4.0
Many new changes to Cookies.js!
- Added support for setting strings in cookies.
- Fixed Returns in cookie methods.
- Added methods for fetching all cookies and cookies at an index.
Cookie().remove(key)
was removed for simplicity.- Various Bug Fixes
Cookies.js Version 1.3.0
Cookies.js no longer requires jquery! This update removes some of the required modules to function to make it even easier to use! There is also now a minified version of Cookies.js!
Cookies.js Version 1.2.0
Added HTML localStorage support! Making reading and writing this data even easier!
Cookies.js Version 1.1.1
v1.1.1 Removed About for simplicity sake