- Updated dependencies
- Fixed error handling in certain conditions
v1.5.0 February 8th, 2014
- Better error handling when requiring a file that has syntax errors
- Fixed stringify of '{}' giving '{{}}' which is invalid
- Added
npm-shrinkwrap.json
that ensures js2coffee
uses coffee-script
1.4.0
- Updated dependencies
- Dropped require extensions following CoffeeScript's lead
- If you still want them, add them to your application manually
- Updated dependencies
- coffee-script 1.3.x to 1.4.x
- You can now use
require
to require CSON files
- Drops node v0.4 support, min supported version now v0.6
- Fixed
json2cson
and cson2json
binaries
- Re-added markdown files to npm distribution as they are required for the npm website
- Fixed try surrounding a next callback
- CSON files are now sandboxed by default, ensuring they can't do bad stuff to your global scope
- Added
opts
as the middle argument for parseFile
, parseFileSync
, parse
, and parseSync
functions
- You can use this to specify
sandbox: false
if you do not want sandboxing on CSON files
- We no longer have
require
cache our configuration files
- Parsing file changes
- If files have
js
or coffee
extension, will try to require them
- If files have
json
or cson
extension, will try to read them
- Otherwise will throw an unknown extension error
- Moved tests from Mocha to Joe
- Fixed some CSON use cases and added more unit tests
- Async calls now act asynchronously
- Updated tests
- Updated
package.json
for latest npm
- Cleaned up the code
- CoffeeScript dependency is now local
- Added synchronous API calls to the README
- Stringify functions now output CSON strings, instead of JSON strings
- Use
JSON.stringify
if you want JSON strings
- Added
json2cson
and cson2json
bin tools
- Added synchronous interface thanks to clyfe - closes issue #1 and #3