Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
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.

CHANGELOG.md 14KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362
  1. ### Unreleased [[code][c-unreleased], [diff][d-unreleased]]
  2. [c-unreleased]: https://github.com/json5/json5/tree/master
  3. [d-unreleased]: https://github.com/json5/json5/compare/v2.2.0...HEAD
  4. ### v2.2.0 [[code][c2.2.0], [diff][d2.2.0]]
  5. [c2.2.0]: https://github.com/json5/json5/tree/v2.2.0
  6. [d2.2.0]: https://github.com/json5/json5/compare/v2.1.3...v2.2.0
  7. - New: Accurate and documented TypeScript declarations are now included. There
  8. is no need to install `@types/json5`. ([#236], [#244])
  9. ### v2.1.3 [[code][c2.1.3], [diff][d2.1.3]]
  10. [c2.1.3]: https://github.com/json5/json5/tree/v2.1.3
  11. [d2.1.3]: https://github.com/json5/json5/compare/v2.1.2...v2.1.3
  12. - Fix: An out of memory bug when parsing numbers has been fixed. ([#228],
  13. [#229])
  14. ### v2.1.2 [[code][c2.1.2], [diff][d2.1.2]]
  15. [c2.1.2]: https://github.com/json5/json5/tree/v2.1.2
  16. [d2.1.2]: https://github.com/json5/json5/compare/v2.1.1...v2.1.2
  17. - Fix: Bump `minimist` to `v1.2.5`. ([#222])
  18. ### v2.1.1 [[code][c2.1.1], [diff][d2.1.1]]
  19. [c2.1.1]: https://github.com/json5/json5/tree/v2.1.1
  20. [d2.1.1]: https://github.com/json5/json5/compare/v2.0.1...v2.1.1
  21. - New: `package.json` and `package.json5` include a `module` property so
  22. bundlers like webpack, rollup and parcel can take advantage of the ES Module
  23. build. ([#208])
  24. - Fix: `stringify` outputs `\0` as `\\x00` when followed by a digit. ([#210])
  25. - Fix: Spelling mistakes have been fixed. ([#196])
  26. ### v2.1.0 [[code][c2.1.0], [diff][d2.1.0]]
  27. [c2.1.0]: https://github.com/json5/json5/tree/v2.1.0
  28. [d2.1.0]: https://github.com/json5/json5/compare/v2.0.1...v2.1.0
  29. - New: The `index.mjs` and `index.min.mjs` browser builds in the `dist`
  30. directory support ES6 modules. ([#187])
  31. ### v2.0.1 [[code][c2.0.1], [diff][d2.0.1]]
  32. [c2.0.1]: https://github.com/json5/json5/tree/v2.0.1
  33. [d2.0.1]: https://github.com/json5/json5/compare/v2.0.0...v2.0.1
  34. - Fix: The browser builds in the `dist` directory support ES5. ([#182])
  35. ### v2.0.0 [[code][c2.0.0], [diff][d2.0.0]]
  36. [c2.0.0]: https://github.com/json5/json5/tree/v2.0.0
  37. [d2.0.0]: https://github.com/json5/json5/compare/v1.0.1...v2.0.0
  38. - **Major**: JSON5 officially supports Node.js v6 and later. Support for Node.js
  39. v4 has been dropped. Since Node.js v6 supports ES5 features, the code has been
  40. rewritten in native ES5, and the dependence on Babel has been eliminated.
  41. - New: Support for Unicode 10 has been added.
  42. - New: The test framework has been migrated from Mocha to Tap.
  43. - New: The browser build at `dist/index.js` is no longer minified by default. A
  44. minified version is available at `dist/index.min.js`. ([#181])
  45. - Fix: The warning has been made clearer when line and paragraph separators are
  46. used in strings.
  47. - Fix: `package.json5` has been restored, and it is automatically generated and
  48. committed when the version is bumped. A new `build-package` NPM script has
  49. been added to facilitate this.
  50. ### v1.0.1 [[code][c1.0.1], [diff][d1.0.1]]
  51. [c1.0.1]: https://github.com/json5/json5/tree/v1.0.1
  52. [d1.0.1]: https://github.com/json5/json5/compare/v1.0.0...v1.0.1
  53. This release includes a bug fix and minor change.
  54. - Fix: `parse` throws on unclosed objects and arrays.
  55. - New: `package.json5` has been removed until an easier way to keep it in sync
  56. with `package.json` is found.
  57. ### v1.0.0 [[code][c1.0.0], [diff][d1.0.0]]
  58. [c1.0.0]: https://github.com/json5/json5/tree/v1.0.0
  59. [d1.0.0]: https://github.com/json5/json5/compare/v0.5.1...v1.0.0
  60. This release includes major internal changes and public API enhancements.
  61. - **Major**: JSON5 officially supports Node.js v4 and later. Support for Node.js
  62. v0.10 and v0.12 have been dropped.
  63. - New: Unicode property names and Unicode escapes in property names are
  64. supported. ([#1])
  65. - New: `stringify` outputs trailing commas in objects and arrays when a `space`
  66. option is provided. ([#66])
  67. - New: JSON5 allows line and paragraph separator characters (U+2028 and U+2029)
  68. in strings in order to be compatible with JSON. However, ES5 does not allow
  69. these characters in strings, so JSON5 gives a warning when they are parsed and
  70. escapes them when they are stringified. ([#70])
  71. - New: `stringify` accepts an options object as its second argument. The
  72. supported options are `replacer`, `space`, and a new `quote` option that
  73. specifies the quote character used in strings. ([#71])
  74. - New: The CLI supports STDIN and STDOUT and adds `--out-file`, `--space`, and
  75. `--validate` options. See `json5 --help` for more information. ([#72], [#84],
  76. and [#108])
  77. - New: In addition to the white space characters space `\t`, `\v`, `\f`, `\n`,
  78. `\r`, and `\xA0`, the additional white space characters `\u2028`, `\u2029`,
  79. and all other characters in the Space Separator Unicode category are allowed.
  80. - New: In addition to the character escapes `\'`, `\"`, `\\`, `\b`, `\f`, `\n`,
  81. `\r`, and `\t`, the additional character escapes `\v` and `\0`, hexadecimal
  82. escapes like `\x0F`, and unnecessary escapes like `\a` are allowed in string
  83. values and string property names.
  84. - New: `stringify` outputs strings with single quotes by default but
  85. intelligently uses double quotes if there are more single quotes than double
  86. quotes inside the string. (i.e. `stringify('Stay here.')` outputs
  87. `'Stay here.'` while `stringify('Let\'s go.')` outputs `"Let's go."`)
  88. - New: When a character is not allowed in a string, `stringify` outputs a
  89. character escape like `\t` when available, a hexadecimal escape like `\x0F`
  90. when the Unicode code point is less than 256, or a Unicode character escape
  91. like `\u01FF`, in that order.
  92. - New: `stringify` checks for a `toJSON5` method on objects and, if it exists,
  93. stringifies its return value instead of the object. `toJSON5` overrides
  94. `toJSON` if they both exist.
  95. - New: To `require` or `import` JSON5 files, use `require('json5/lib/register')`
  96. or `import 'json5/lib/register'`. Previous versions used `json5/lib/require`,
  97. which still exists for backward compatibility but is deprecated and will give
  98. a warning.
  99. - New: To use JSON5 in browsers, use the file at `dist/index.js` or
  100. `https://unpkg.com/json5@^1.0.0`.
  101. - Fix: `stringify` properly outputs `Infinity` and `NaN`. ([#67])
  102. - Fix: `isWord` no longer becomes a property of `JSON5` after calling
  103. `stringify`. ([#68] and [#89])
  104. - Fix: `stringify` no longer throws when an object does not have a `prototype`.
  105. ([#154])
  106. - Fix: `stringify` properly handles the `key` argument of `toJSON(key)` methods.
  107. `toJSON5(key)` follows this pattern.
  108. - Fix: `stringify` accepts `Number` and `String` objects as its `space`
  109. argument.
  110. - Fix: In addition to a function, `stringify` also accepts an array of keys to
  111. include in the output as its `replacer` argument. Numbers, `Number` objects,
  112. and `String` objects will be converted to a string if they are given as array
  113. values.
  114. ### v0.5.1 [[code][c0.5.1], [diff][d0.5.1]]
  115. [c0.5.1]: https://github.com/json5/json5/tree/v0.5.1
  116. [d0.5.1]: https://github.com/json5/json5/compare/v0.5.0...v0.5.1
  117. This release includes a minor fix for indentations when stringifying empty
  118. arrays.
  119. - Fix: Indents no longer appear in empty arrays when stringified. ([#134])
  120. ### v0.5.0 [[code][c0.5.0], [diff][d0.5.0]]
  121. [c0.5.0]: https://github.com/json5/json5/tree/v0.5.0
  122. [d0.5.0]: https://github.com/json5/json5/compare/v0.4.0...v0.5.0
  123. This release includes major internal changes and public API enhancements.
  124. - **Major:** JSON5 officially supports Node.js v4 LTS and v5. Support for
  125. Node.js v0.6 and v0.8 have been dropped, while support for v0.10 and v0.12
  126. remain.
  127. - Fix: YUI Compressor no longer fails when compressing json5.js. ([#97])
  128. - New: `parse` and the CLI provide line and column numbers when displaying error
  129. messages. ([#101]; awesome work by [@amb26].)
  130. ### v0.4.0 [[code][c0.4.0], [diff][d0.4.0]]
  131. [c0.4.0]: https://github.com/json5/json5/tree/v0.4.0
  132. [d0.4.0]: https://github.com/json5/json5/compare/v0.2.0...v0.4.0
  133. Note that v0.3.0 was tagged, but never published to npm, so this v0.4.0
  134. changelog entry includes v0.3.0 features.
  135. This is a massive release that adds `stringify` support, among other things.
  136. - **Major:** `JSON5.stringify()` now exists!
  137. This method is analogous to the native `JSON.stringify()`;
  138. it just avoids quoting keys where possible.
  139. See the [usage documentation](./README.md#usage) for more.
  140. ([#32]; huge thanks and props [@aeisenberg]!)
  141. - New: `NaN` and `-NaN` are now allowed number literals.
  142. ([#30]; thanks [@rowanhill].)
  143. - New: Duplicate object keys are now allowed; the last value is used.
  144. This is the same behavior as JSON. ([#57]; thanks [@jordanbtucker].)
  145. - Fix: Properly handle various whitespace and newline cases now.
  146. E.g. JSON5 now properly supports escaped CR and CRLF newlines in strings,
  147. and JSON5 now accepts the same whitespace as JSON (stricter than ES5).
  148. ([#58], [#60], and [#63]; thanks [@jordanbtucker].)
  149. - New: Negative hexadecimal numbers (e.g. `-0xC8`) are allowed again.
  150. (They were disallowed in v0.2.0; see below.)
  151. It turns out they *are* valid in ES5, so JSON5 supports them now too.
  152. ([#36]; thanks [@jordanbtucker]!)
  153. ### v0.2.0 [[code][c0.2.0], [diff][d0.2.0]]
  154. [c0.2.0]: https://github.com/json5/json5/tree/v0.2.0
  155. [d0.2.0]: https://github.com/json5/json5/compare/v0.1.0...v0.2.0
  156. This release fixes some bugs and adds some more utility features to help you
  157. express data more easily:
  158. - **Breaking:** Negative hexadecimal numbers (e.g. `-0xC8`) are rejected now.
  159. While V8 (e.g. Chrome and Node) supported them, it turns out they're invalid
  160. in ES5. This has been [fixed in V8][v8-hex-fix] (and by extension, Chrome
  161. and Node), so JSON5 officially rejects them now, too. ([#36])
  162. - New: Trailing decimal points in decimal numbers are allowed again.
  163. (They were disallowed in v0.1.0; see below.)
  164. They're allowed by ES5, and differentiating between integers and floats may
  165. make sense on some platforms. ([#16]; thanks [@Midar].)
  166. - New: `Infinity` and `-Infinity` are now allowed number literals.
  167. ([#30]; thanks [@pepkin88].)
  168. - New: Plus signs (`+`) in front of numbers are now allowed, since it can
  169. be helpful in some contexts to explicitly mark numbers as positive.
  170. (E.g. when a property represents changes or deltas.)
  171. - Fix: unescaped newlines in strings are rejected now.
  172. ([#24]; thanks [@Midar].)
  173. ### v0.1.0 [[code][c0.1.0], [diff][d0.1.0]]
  174. [c0.1.0]: https://github.com/json5/json5/tree/v0.1.0
  175. [d0.1.0]: https://github.com/json5/json5/compare/v0.0.1...v0.1.0
  176. This release tightens JSON5 support and adds helpful utility features:
  177. - New: Support hexadecimal numbers. (Thanks [@MaxNanasy].)
  178. - Fix: Reject octal numbers properly now. Previously, they were accepted but
  179. improperly parsed as base-10 numbers. (Thanks [@MaxNanasy].)
  180. - **Breaking:** Reject "noctal" numbers now (base-10 numbers that begin with a
  181. leading zero). These are disallowed by both JSON5 and JSON, as well as by
  182. ES5's strict mode. (Thanks [@MaxNanasy].)
  183. - New: Support leading decimal points in decimal numbers.
  184. (Thanks [@MaxNanasy].)
  185. - **Breaking:** Reject trailing decimal points in decimal numbers now. These
  186. are disallowed by both JSON5 and JSON. (Thanks [@MaxNanasy].)
  187. - **Breaking:** Reject omitted elements in arrays now. These are disallowed by
  188. both JSON5 and JSON.
  189. - Fix: Throw proper `SyntaxError` instances on errors now.
  190. - New: Add Node.js `require()` hook. Register via `json5/lib/require`.
  191. - New: Add Node.js `json5` executable to compile JSON5 files to JSON.
  192. ### v0.0.1 [[code][c0.0.1], [diff][d0.0.1]]
  193. [c0.0.1]: https://github.com/json5/json5/tree/v0.0.1
  194. [d0.0.1]: https://github.com/json5/json5/compare/v0.0.0...v0.0.1
  195. This was the first implementation of this JSON5 parser.
  196. - Support unquoted object keys, including reserved words. Unicode characters
  197. and escape sequences sequences aren't yet supported.
  198. - Support single-quoted strings.
  199. - Support multi-line strings.
  200. - Support trailing commas in arrays and objects.
  201. - Support comments, both inline and block.
  202. ### v0.0.0 [[code](https://github.com/json5/json5/tree/v0.0.0)]
  203. Let's consider this to be Douglas Crockford's original [json_parse.js] — a
  204. parser for the regular JSON format.
  205. [json_parse.js]: https://github.com/douglascrockford/JSON-js/blob/master/json_parse.js
  206. [v8-hex-fix]: http://code.google.com/p/v8/issues/detail?id=2240
  207. [@MaxNanasy]: https://github.com/MaxNanasy
  208. [@Midar]: https://github.com/Midar
  209. [@pepkin88]: https://github.com/pepkin88
  210. [@rowanhill]: https://github.com/rowanhill
  211. [@aeisenberg]: https://github.com/aeisenberg
  212. [@jordanbtucker]: https://github.com/jordanbtucker
  213. [@amb26]: https://github.com/amb26
  214. [#1]: https://github.com/json5/json5/issues/1
  215. [#16]: https://github.com/json5/json5/issues/16
  216. [#24]: https://github.com/json5/json5/issues/24
  217. [#30]: https://github.com/json5/json5/issues/30
  218. [#32]: https://github.com/json5/json5/issues/32
  219. [#36]: https://github.com/json5/json5/issues/36
  220. [#57]: https://github.com/json5/json5/issues/57
  221. [#58]: https://github.com/json5/json5/pull/58
  222. [#60]: https://github.com/json5/json5/pull/60
  223. [#63]: https://github.com/json5/json5/pull/63
  224. [#66]: https://github.com/json5/json5/issues/66
  225. [#67]: https://github.com/json5/json5/issues/67
  226. [#68]: https://github.com/json5/json5/issues/68
  227. [#70]: https://github.com/json5/json5/issues/70
  228. [#71]: https://github.com/json5/json5/issues/71
  229. [#72]: https://github.com/json5/json5/issues/72
  230. [#84]: https://github.com/json5/json5/pull/84
  231. [#89]: https://github.com/json5/json5/pull/89
  232. [#97]: https://github.com/json5/json5/pull/97
  233. [#101]: https://github.com/json5/json5/pull/101
  234. [#108]: https://github.com/json5/json5/pull/108
  235. [#134]: https://github.com/json5/json5/pull/134
  236. [#154]: https://github.com/json5/json5/issues/154
  237. [#181]: https://github.com/json5/json5/issues/181
  238. [#182]: https://github.com/json5/json5/issues/182
  239. [#187]: https://github.com/json5/json5/issues/187
  240. [#196]: https://github.com/json5/json5/issues/196
  241. [#208]: https://github.com/json5/json5/issues/208
  242. [#210]: https://github.com/json5/json5/issues/210
  243. [#222]: https://github.com/json5/json5/issues/222
  244. [#228]: https://github.com/json5/json5/issues/228
  245. [#229]: https://github.com/json5/json5/issues/229
  246. [#236]: https://github.com/json5/json5/issues/236
  247. [#244]: https://github.com/json5/json5/issues/244