You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

501 lines
11 KiB

4 years ago
  1. 3.13.1 / 2019-04-05
  2. -------------------
  3. - Fix possible code execution in (already unsafe) `.load()`, #480.
  4. 3.13.0 / 2019-03-20
  5. -------------------
  6. - Security fix: `safeLoad()` can hang when arrays with nested refs
  7. used as key. Now throws exception for nested arrays. #475.
  8. 3.12.2 / 2019-02-26
  9. -------------------
  10. - Fix `noArrayIndent` option for root level, #468.
  11. 3.12.1 / 2019-01-05
  12. -------------------
  13. - Added `noArrayIndent` option, #432.
  14. 3.12.0 / 2018-06-02
  15. -------------------
  16. - Support arrow functions without a block statement, #421.
  17. 3.11.0 / 2018-03-05
  18. -------------------
  19. - Fix dump in bin/octal/hex formats for negative integers, #399.
  20. - Add arrow functions suport for `!!js/function`.
  21. 3.10.0 / 2017-09-10
  22. -------------------
  23. - Fix `condenseFlow` output (quote keys for sure, instead of spaces), #371, #370.
  24. - Dump astrals as codepoints instead of surrogate pair, #368.
  25. 3.9.1 / 2017-07-08
  26. ------------------
  27. - Ensure stack is present for custom errors in node 7.+, #351.
  28. 3.9.0 / 2017-07-08
  29. ------------------
  30. - Add `condenseFlow` option (to create pretty URL query params), #346.
  31. - Support array return from safeLoadAll/loadAll, #350.
  32. 3.8.4 / 2017-05-08
  33. ------------------
  34. - Dumper: prevent space after dash for arrays that wrap, #343.
  35. 3.8.3 / 2017-04-05
  36. ------------------
  37. - Should not allow numbers to begin and end with underscore, #335.
  38. 3.8.2 / 2017-03-02
  39. ------------------
  40. - Fix `!!float 123` (integers) parse, #333.
  41. - Don't allow leading zeros in floats (except 0, 0.xxx).
  42. - Allow positive exponent without sign in floats.
  43. 3.8.1 / 2017-02-07
  44. ------------------
  45. - Maintenance: update browserified build.
  46. 3.8.0 / 2017-02-07
  47. ------------------
  48. - Fix reported position for `duplicated mapping key` errors.
  49. Now points to block start instead of block end.
  50. (#243, thanks to @shockey).
  51. 3.7.0 / 2016-11-12
  52. ------------------
  53. - Fix parsing of quotes followed by newlines (#304, thanks to @dplepage).
  54. - Support polymorphism for tags (#300, thanks to @monken).
  55. 3.6.1 / 2016-05-11
  56. ------------------
  57. - Fix output cut on a pipe, #286.
  58. 3.6.0 / 2016-04-16
  59. ------------------
  60. - Dumper rewrite, fix multiple bugs with trailing `\n`.
  61. Big thanks to @aepsilon!
  62. - Loader: fix leading/trailing newlines in block scalars, @aepsilon.
  63. 3.5.5 / 2016-03-17
  64. ------------------
  65. - Date parse fix: don't allow dates with on digit in month and day, #268.
  66. 3.5.4 / 2016-03-09
  67. ------------------
  68. - `noCompatMode` for dumper, to disable quoting YAML 1.1 values.
  69. 3.5.3 / 2016-02-11
  70. ------------------
  71. - Maintenance release.
  72. 3.5.2 / 2016-01-11
  73. ------------------
  74. - Maintenance: missed comma in bower config.
  75. 3.5.1 / 2016-01-11
  76. ------------------
  77. - Removed `inherit` dependency, #239.
  78. - Better browserify workaround for esprima load.
  79. - Demo rewrite.
  80. 3.5.0 / 2016-01-10
  81. ------------------
  82. - Dumper. Fold strings only, #217.
  83. - Dumper. `norefs` option, to clone linked objects, #229.
  84. - Loader. Throw a warning for duplicate keys, #166.
  85. - Improved browserify support (mark `esprima` & `Buffer` excluded).
  86. 3.4.6 / 2015-11-26
  87. ------------------
  88. - Use standalone `inherit` to keep browserified files clear.
  89. 3.4.5 / 2015-11-23
  90. ------------------
  91. - Added `lineWidth` option to dumper.
  92. 3.4.4 / 2015-11-21
  93. ------------------
  94. - Fixed floats dump (missed dot for scientific format), #220.
  95. - Allow non-printable characters inside quoted scalars, #192.
  96. 3.4.3 / 2015-10-10
  97. ------------------
  98. - Maintenance release - deps bump (esprima, argparse).
  99. 3.4.2 / 2015-09-09
  100. ------------------
  101. - Fixed serialization of duplicated entries in sequences, #205.
  102. Thanks to @vogelsgesang.
  103. 3.4.1 / 2015-09-05
  104. ------------------
  105. - Fixed stacktrace handling in generated errors, for browsers (FF/IE).
  106. 3.4.0 / 2015-08-23
  107. ------------------
  108. - Fixed multiline keys dump, #197. Thanks to @tcr.
  109. - Don't throw on warnongs anymore. Use `onWarning` option to catch.
  110. - Throw error on unknown tags (was warning before).
  111. - Fixed heading line breaks in some scalars (regression).
  112. - Reworked internals of error class.
  113. 3.3.1 / 2015-05-13
  114. ------------------
  115. - Added `.sortKeys` dumper option, thanks to @rjmunro.
  116. - Fixed astral characters support, #191.
  117. 3.3.0 / 2015-04-26
  118. ------------------
  119. - Significantly improved long strings formatting in dumper, thanks to @isaacs.
  120. - Strip BOM if exists.
  121. 3.2.7 / 2015-02-19
  122. ------------------
  123. - Maintenance release.
  124. - Updated dependencies.
  125. - HISTORY.md -> CHANGELOG.md
  126. 3.2.6 / 2015-02-07
  127. ------------------
  128. - Fixed encoding of UTF-16 surrogate pairs. (e.g. "\U0001F431" CAT FACE).
  129. - Fixed demo dates dump (#113, thanks to @Hypercubed).
  130. 3.2.5 / 2014-12-28
  131. ------------------
  132. - Fixed resolving of all built-in types on empty nodes.
  133. - Fixed invalid warning on empty lines within quoted scalars and flow collections.
  134. - Fixed bug: Tag on an empty node didn't resolve in some cases.
  135. 3.2.4 / 2014-12-19
  136. ------------------
  137. - Fixed resolving of !!null tag on an empty node.
  138. 3.2.3 / 2014-11-08
  139. ------------------
  140. - Implemented dumping of objects with circular and cross references.
  141. - Partially fixed aliasing of constructed objects. (see issue #141 for details)
  142. 3.2.2 / 2014-09-07
  143. ------------------
  144. - Fixed infinite loop on unindented block scalars.
  145. - Rewritten base64 encode/decode in binary type, to keep code licence clear.
  146. 3.2.1 / 2014-08-24
  147. ------------------
  148. - Nothig new. Just fix npm publish error.
  149. 3.2.0 / 2014-08-24
  150. ------------------
  151. - Added input piping support to CLI.
  152. - Fixed typo, that could cause hand on initial indent (#139).
  153. 3.1.0 / 2014-07-07
  154. ------------------
  155. - 1.5x-2x speed boost.
  156. - Removed deprecated `require('xxx.yml')` support.
  157. - Significant code cleanup and refactoring.
  158. - Internal API changed. If you used custom types - see updated examples.
  159. Others are not affected.
  160. - Even if the input string has no trailing line break character,
  161. it will be parsed as if it has one.
  162. - Added benchmark scripts.
  163. - Moved bower files to /dist folder
  164. - Bugfixes.
  165. 3.0.2 / 2014-02-27
  166. ------------------
  167. - Fixed bug: "constructor" string parsed as `null`.
  168. 3.0.1 / 2013-12-22
  169. ------------------
  170. - Fixed parsing of literal scalars. (issue #108)
  171. - Prevented adding unnecessary spaces in object dumps. (issue #68)
  172. - Fixed dumping of objects with very long (> 1024 in length) keys.
  173. 3.0.0 / 2013-12-16
  174. ------------------
  175. - Refactored code. Changed API for custom types.
  176. - Removed output colors in CLI, dump json by default.
  177. - Removed big dependencies from browser version (esprima, buffer)
  178. - load `esprima` manually, if !!js/function needed
  179. - !!bin now returns Array in browser
  180. - AMD support.
  181. - Don't quote dumped strings because of `-` & `?` (if not first char).
  182. - __Deprecated__ loading yaml files via `require()`, as not recommended
  183. behaviour for node.
  184. 2.1.3 / 2013-10-16
  185. ------------------
  186. - Fix wrong loading of empty block scalars.
  187. 2.1.2 / 2013-10-07
  188. ------------------
  189. - Fix unwanted line breaks in folded scalars.
  190. 2.1.1 / 2013-10-02
  191. ------------------
  192. - Dumper now respects deprecated booleans syntax from YAML 1.0/1.1
  193. - Fixed reader bug in JSON-like sequences/mappings.
  194. 2.1.0 / 2013-06-05
  195. ------------------
  196. - Add standard YAML schemas: Failsafe (`FAILSAFE_SCHEMA`),
  197. JSON (`JSON_SCHEMA`) and Core (`CORE_SCHEMA`).
  198. - Rename `DEFAULT_SCHEMA` to `DEFAULT_FULL_SCHEMA`
  199. and `SAFE_SCHEMA` to `DEFAULT_SAFE_SCHEMA`.
  200. - Bug fix: export `NIL` constant from the public interface.
  201. - Add `skipInvalid` dumper option.
  202. - Use `safeLoad` for `require` extension.
  203. 2.0.5 / 2013-04-26
  204. ------------------
  205. - Close security issue in !!js/function constructor.
  206. Big thanks to @nealpoole for security audit.
  207. 2.0.4 / 2013-04-08
  208. ------------------
  209. - Updated .npmignore to reduce package size
  210. 2.0.3 / 2013-02-26
  211. ------------------
  212. - Fixed dumping of empty arrays ans objects. ([] and {} instead of null)
  213. 2.0.2 / 2013-02-15
  214. ------------------
  215. - Fixed input validation: tabs are printable characters.
  216. 2.0.1 / 2013-02-09
  217. ------------------
  218. - Fixed error, when options not passed to function cass
  219. 2.0.0 / 2013-02-09
  220. ------------------
  221. - Full rewrite. New architecture. Fast one-stage parsing.
  222. - Changed custom types API.
  223. - Added YAML dumper.
  224. 1.0.3 / 2012-11-05
  225. ------------------
  226. - Fixed utf-8 files loading.
  227. 1.0.2 / 2012-08-02
  228. ------------------
  229. - Pull out hand-written shims. Use ES5-Shims for old browsers support. See #44.
  230. - Fix timstamps incorectly parsed in local time when no time part specified.
  231. 1.0.1 / 2012-07-07
  232. ------------------
  233. - Fixes `TypeError: 'undefined' is not an object` under Safari. Thanks Phuong.
  234. - Fix timestamps incorrectly parsed in local time. Thanks @caolan. Closes #46.
  235. 1.0.0 / 2012-07-01
  236. ------------------
  237. - `y`, `yes`, `n`, `no`, `on`, `off` are not converted to Booleans anymore.
  238. Fixes #42.
  239. - `require(filename)` now returns a single document and throws an Error if
  240. file contains more than one document.
  241. - CLI was merged back from js-yaml.bin
  242. 0.3.7 / 2012-02-28
  243. ------------------
  244. - Fix export of `addConstructor()`. Closes #39.
  245. 0.3.6 / 2012-02-22
  246. ------------------
  247. - Removed AMD parts - too buggy to use. Need help to rewrite from scratch
  248. - Removed YUI compressor warning (renamed `double` variable). Closes #40.
  249. 0.3.5 / 2012-01-10
  250. ------------------
  251. - Workagound for .npmignore fuckup under windows. Thanks to airportyh.
  252. 0.3.4 / 2011-12-24
  253. ------------------
  254. - Fixes str[] for oldIEs support.
  255. - Adds better has change support for browserified demo.
  256. - improves compact output of Error. Closes #33.
  257. 0.3.3 / 2011-12-20
  258. ------------------
  259. - jsyaml executable moved to separate module.
  260. - adds `compact` stringification of Errors.
  261. 0.3.2 / 2011-12-16
  262. ------------------
  263. - Fixes ug with block style scalars. Closes #26.
  264. - All sources are passing JSLint now.
  265. - Fixes bug in Safari. Closes #28.
  266. - Fixes bug in Opers. Closes #29.
  267. - Improves browser support. Closes #20.
  268. - Added jsyaml executable.
  269. - Added !!js/function support. Closes #12.
  270. 0.3.1 / 2011-11-18
  271. ------------------
  272. - Added AMD support for browserified version.
  273. - Wrapped browserified js-yaml into closure.
  274. - Fixed the resolvement of non-specific tags. Closes #17.
  275. - Added permalinks for online demo YAML snippets. Now we have YPaste service, lol.
  276. - Added !!js/regexp and !!js/undefined types. Partially solves #12.
  277. - Fixed !!set mapping.
  278. - Fixed month parse in dates. Closes #19.
  279. 0.3.0 / 2011-11-09
  280. ------------------
  281. - Removed JS.Class dependency. Closes #3.
  282. - Added browserified version. Closes #13.
  283. - Added live demo of browserified version.
  284. - Ported some of the PyYAML tests. See #14.
  285. - Fixed timestamp bug when fraction was given.
  286. 0.2.2 / 2011-11-06
  287. ------------------
  288. - Fixed crash on docs without ---. Closes #8.
  289. - Fixed miltiline string parse
  290. - Fixed tests/comments for using array as key
  291. 0.2.1 / 2011-11-02
  292. ------------------
  293. - Fixed short file read (<4k). Closes #9.
  294. 0.2.0 / 2011-11-02
  295. ------------------
  296. - First public release