jquery-cookie v1.4.1 Release Notes

Release Date: 2014-04-27 // almost 10 years ago
  • Note:
    ๐Ÿš€ This is the last version on this repository. To see all the versions, check the new repository.

    ๐Ÿ‘€ For more information, see this comment.


Previous changes from v1.4.0

    • ๐Ÿ‘Œ Support for AMD.

    • โœ‚ Removed deprecated method $.cookie('name', null) for deleting a cookie, use $.removeCookie('name').

    • $.cookie('name') now returns undefined in case such cookie does not exist (was null). Because the return value is still falsy, testing for existence of a cookie like if ( $.cookie('foo') ) keeps working without change.

    • ๐Ÿ“ฆ Renamed bower package definition (component.json -> bower.json) for usage with up-to-date bower.

    • ๐Ÿ‘ป Badly encoded cookies no longer throw exception upon reading but do return undefined (similar to how we handle JSON parse errors with json = true).

    • โž• Added conversion function as optional last argument for reading, so that values can be changed to a different representation easily on the fly. Useful for parsing numbers for instance:

      $.cookie('foo', '42');
      $.cookie('foo', Number); // => 42