Repository navigation
Tags
Tags
v4.0.0 2016 October 20 - `parseCSString` no longer creates the `sandbox` variable if it was missing, the responsibility of such things should be, and now is, handled via the eval function of coffeescript which is what that method uses - This is a major breaking change as parsing coffeescript files will now by default run still in a virtual machine but now in the global context rather than their own context - If you are parsing untrusted coffeescript files, you should now setup the `sandbox` option yourself with the appropriate values - If you are parsing trusted coffeescript files, or not parsing coffeescript files (e.g. only CSON files), then this change won't impact you - This change is done such that the result object from `parseCSString` passes `result.__proto__ === Object.prototype` which before it did not as the different context caused the prototype to point to a different contexts `Object` causing the assertion to fail - Updated dependencies - Updated internal packing conventions
v3.0.0 March 16, 2015 - Every function now also supports callbacks (2nd or 3rd argument) - Errors will now always maintain their stacks where possible - Simplified some aliases (b/c break) - Changed `stringify` to now accept the arguments you would expect `stringify(data, replacer, indent)` - Changed `parse` to delegate to `parseCSONString` instead of `parseString` - Changed `load` to delegate to `parseCSONFile` instead of `parseFile` - Removed `require` (it use to delegate to `requireFile`) - Updated dependencies
v2.0.0 February 6, 2015 - API has been rewritten to be more robust and simple - CSON data is now parsed and stringified with the [cson-parser](https://www.npmjs.com/package/cson-parser) package - CLI now supports stdin input - Node v0.11 and IO.js support
PreviousNext