Quelltext der Datei: http://www.michaelster.ch/jsTestFolder/jQuery/jquery-cookie-plugin/CHANGELOG.md

Dateigrösse: 2.24 kb

[Anzeige ohne Zeilennummern]


 1 HEAD
 2 -----
 3 
 4 1.4.1
 5 -----
 6 - Added support for CommonJS.
 7 
 8 - Added support for package managers: Jam (http://jamjs.org), volo (http://volojs.org), Component (http://component.io), jspm (http://jspm.io).
 9 
10 - The expires option now interpretes fractions of numbers (e.g. days) correctly.
11 
12 1.4.0
13 -----
14 - Support for AMD.
15 
16 - Removed deprecated method `$.cookie('name', null)` for deleting a cookie,
17   use `$.removeCookie('name')`.
18 
19 - `$.cookie('name')` now returns `undefined` in case such cookie does not exist
20   (was `null`). Because the return value is still falsy, testing for existence
21   of a cookie like `if ( $.cookie('foo') )` keeps working without change.
22 
23 - Renamed bower package definition (component.json -> bower.json) for usage
24   with up-to-date bower.
25 
26 - Badly encoded cookies no longer throw exception upon reading but do return
27   undefined (similar to how we handle JSON parse errors with json = true).
28 
29 - Added conversion function as optional last argument for reading,
30   so that values can be changed to a different representation easily on the fly.
31   Useful for parsing numbers for instance:
32 
33   ```javascript
34   $.cookie('foo', '42');
35   $.cookie('foo', Number); // => 42
36   ```
37 
38 1.3.1
39 -----
40 - Fixed issue where it was no longer possible to check for an arbitrary cookie,
41   while json is set to true, there was a SyntaxError thrown from JSON.parse.
42 
43 - Fixed issue where RFC 2068 decoded cookies were not properly read.
44 
45 1.3.0
46 -----
47 - Configuration options: `raw`, `json`. Replaces raw option, becomes config:
48 
49   ```javascript
50   $.cookie.raw = true; // bypass encoding/decoding the cookie value
51   $.cookie.json = true; // automatically JSON stringify/parse value
52   ```
53 
54   Thus the default options now cleanly contain cookie attributes only.
55 
56 - Removing licensing under GPL Version 2, the plugin is now released under MIT License only
57 (keeping it simple and following the jQuery library itself here).
58 
59 - Bugfix: Properly handle RFC 2068 quoted cookie values.
60 
61 - Added component.json for bower.
62 
63 - Added jQuery plugin package manifest.
64 
65 - `$.cookie()` returns all available cookies.
66 
67 1.2.0
68 -----
69 - Adding `$.removeCookie('foo')` for deleting a cookie, using `$.cookie('foo', null)` is now deprecated.
70 
71 1.1
72 ---
73 - Adding default options.
74