- Added
noArrayIndent
option, #432.
- Support arrow functions without a block statement, #421.
- Fix dump in bin/octal/hex formats for negative integers, #399.
- Add arrow functions suport for
!!js/function
.
- Fix
condenseFlow
output (quote keys for sure, instead of spaces), #371, #370. - Dump astrals as codepoints instead of surrogate pair, #368.
- Ensure stack is present for custom errors in node 7.+, #351.
- Add
condenseFlow
option (to create pretty URL query params), #346. - Support array return from safeLoadAll/loadAll, #350.
- Dumper: prevent space after dash for arrays that wrap, #343.
- Should not allow numbers to begin and end with underscore, #335.
- Fix
!!float 123
(integers) parse, #333. - Don't allow leading zeros in floats (except 0, 0.xxx).
- Allow positive exponent without sign in floats.
- Maintenance: update browserified build.
- Fix reported position for
duplicated mapping key
errors. Now points to block start instead of block end. (#243, thanks to @shockey).
- Fix parsing of quotes followed by newlines (#304, thanks to @dplepage).
- Support polymorphism for tags (#300, thanks to @monken).
- Fix output cut on a pipe, #286.
- Dumper rewrite, fix multiple bugs with trailing
\n
. Big thanks to @aepsilon! - Loader: fix leading/trailing newlines in block scalars, @aepsilon.
- Date parse fix: don't allow dates with on digit in month and day, #268.
noCompatMode
for dumper, to disable quoting YAML 1.1 values.
- Maintenance release.
- Maintenance: missed comma in bower config.
- Removed
inherit
dependency, #239. - Better browserify workaround for esprima load.
- Demo rewrite.
- Dumper. Fold strings only, #217.
- Dumper.
norefs
option, to clone linked objects, #229. - Loader. Throw a warning for duplicate keys, #166.
- Improved browserify support (mark
esprima
&Buffer
excluded).
- Use standalone
inherit
to keep browserified files clear.
- Added
lineWidth
option to dumper.
- Fixed floats dump (missed dot for scientific format), #220.
- Allow non-printable characters inside quoted scalars, #192.
- Maintenance release - deps bump (esprima, argparse).
- Fixed serialization of duplicated entries in sequences, #205. Thanks to @vogelsgesang.
- Fixed stacktrace handling in generated errors, for browsers (FF/IE).
- Fixed multiline keys dump, #197. Thanks to @tcr.
- Don't throw on warnongs anymore. Use
onWarning
option to catch. - Throw error on unknown tags (was warning before).
- Fixed heading line breaks in some scalars (regression).
- Reworked internals of error class.
- Added
.sortKeys
dumper option, thanks to @rjmunro. - Fixed astral characters support, #191.
- Significantly improved long strings formatting in dumper, thanks to @isaacs.
- Strip BOM if exists.
- Maintenance release.
- Updated dependencies.
- HISTORY.md -> CHANGELOG.md
- Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE).
- Fixed demo dates dump (#113, thanks to @Hypercubed).
- Fixed resolving of all built-in types on empty nodes.
- Fixed invalid warning on empty lines within quoted scalars and flow collections.
- Fixed bug: Tag on an empty node didn't resolve in some cases.
- Fixed resolving of !!null tag on an empty node.
- Implemented dumping of objects with circular and cross references.
- Partially fixed aliasing of constructed objects. (see issue #141 for details)
- Fixed infinite loop on unindented block scalars.
- Rewritten base64 encode/decode in binary type, to keep code licence clear.
- Nothig new. Just fix npm publish error.
- Added input piping support to CLI.
- Fixed typo, that could cause hand on initial indent (#139).
- 1.5x-2x speed boost.
- Removed deprecated
require('xxx.yml')
support. - Significant code cleanup and refactoring.
- Internal API changed. If you used custom types - see updated examples. Others are not affected.
- Even if the input string has no trailing line break character, it will be parsed as if it has one.
- Added benchmark scripts.
- Moved bower files to /dist folder
- Bugfixes.
- Fixed bug: "constructor" string parsed as
null
.
- Fixed parsing of literal scalars. (issue #108)
- Prevented adding unnecessary spaces in object dumps. (issue #68)
- Fixed dumping of objects with very long (> 1024 in length) keys.
- Refactored code. Changed API for custom types.
- Removed output colors in CLI, dump json by default.
- Removed big dependencies from browser version (esprima, buffer)
- load
esprima
manually, if !!js/function needed - !!bin now returns Array in browser
- load
- AMD support.
- Don't quote dumped strings because of
-
&?
(if not first char). - Deprecated loading yaml files via
require()
, as not recommended behaviour for node.
- Fix wrong loading of empty block scalars.
- Fix unwanted line breaks in folded scalars.
- Dumper now respects deprecated booleans syntax from YAML 1.0/1.1
- Fixed reader bug in JSON-like sequences/mappings.
- Add standard YAML schemas: Failsafe (
FAILSAFE_SCHEMA
), JSON (JSON_SCHEMA
) and Core (CORE_SCHEMA
). - Rename
DEFAULT_SCHEMA
toDEFAULT_FULL_SCHEMA
andSAFE_SCHEMA
toDEFAULT_SAFE_SCHEMA
. - Bug fix: export
NIL
constant from the public interface. - Add
skipInvalid
dumper option. - Use
safeLoad
forrequire
extension.
- Close security issue in !!js/function constructor. Big thanks to @nealpoole for security audit.
- Updated .npmignore to reduce package size
- Fixed dumping of empty arrays ans objects. ([] and {} instead of null)
- Fixed input validation: tabs are printable characters.
- Fixed error, when options not passed to function cass
- Full rewrite. New architecture. Fast one-stage parsing.
- Changed custom types API.
- Added YAML dumper.
- Fixed utf-8 files loading.
- Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44.
- Fix timstamps incorectly parsed in local time when no time part specified.
- Fixes
TypeError: 'undefined' is not an object
under Safari. Thanks Phuong. - Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46.
y
,yes
,n
,no
,on
,off
are not converted to Booleans anymore. Fixes #42.require(filename)
now returns a single document and throws an Error if file contains more than one document.- CLI was merged back from js-yaml.bin
- Fix export of
addConstructor()
. Closes #39.
- Removed AMD parts - too buggy to use. Need help to rewrite from scratch
- Removed YUI compressor warning (renamed
double
variable). Closes #40.
- Workagound for .npmignore fuckup under windows. Thanks to airportyh.
- Fixes str[] for oldIEs support.
- Adds better has change support for browserified demo.
- improves compact output of Error. Closes #33.
- jsyaml executable moved to separate module.
- adds
compact
stringification of Errors.
- Fixes ug with block style scalars. Closes #26.
- All sources are passing JSLint now.
- Fixes bug in Safari. Closes #28.
- Fixes bug in Opers. Closes #29.
- Improves browser support. Closes #20.
- Added jsyaml executable.
- Added !!js/function support. Closes #12.
- Added AMD support for browserified version.
- Wrapped browserified js-yaml into closure.
- Fixed the resolvement of non-specific tags. Closes #17.
- Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
- Added !!js/regexp and !!js/undefined types. Partially solves #12.
- Fixed !!set mapping.
- Fixed month parse in dates. Closes #19.
- Removed JS.Class dependency. Closes #3.
- Added browserified version. Closes #13.
- Added live demo of browserified version.
- Ported some of the PyYAML tests. See #14.
- Fixed timestamp bug when fraction was given.
- Fixed crash on docs without ---. Closes #8.
- Fixed miltiline string parse
- Fixed tests/comments for using array as key
- Fixed short file read (<4k). Closes #9.
- First public release