Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

557 linhas
16 KiB

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