chooify
chooify copied to clipboard
[Doppins] Upgrade dependency json5 to ^2.1.0
Hi!
A new version was just released of json5, so Doppins
has upgraded your project's dependency ranges.
Make sure that it doesn't break anything, and happy merging! :shipit:
Upgraded json5 from ^0.5.0 to ^1.0.0
Changelog:
Version 1.0.0
This release includes major internal changes and public API enhancements.
-
Major JSON5 officially supports Node.js v4 and later. Support for Node.js v0.10 and v0.12 have been dropped.
-
New: Unicode property names and Unicode escapes in property names are supported. ([
#1]) -
New:
stringifyoutputs trailing commas in objects and arrays when aspaceoption is provided. ([#66]) -
New: JSON5 allows line and paragraph separator characters (U+2028 and U+2029) in strings in order to be compatible with JSON. However, ES5 does not allow these characters in strings, so JSON5 gives a warning when they are parsed and escapes them when they are stringified. ([
#70]) -
New:
stringifyaccepts an options object as its second argument. The supported options arereplacer,space, and a newquoteoption that specifies the quote character used in strings. ([#71]) -
New: The CLI supports STDIN and STDOUT and adds
--out-file,--space, and--validateoptions. Seejson5 --helpfor more information. ([#72], [#84], and [#108]) -
New: In addition to the white space characters space
\t,\v,\f,\n,\r, and\xA0, the additional white space characters\u2028,\u2029, and all other characters in the Space Separator Unicode category are allowed. -
New: In addition to the character escapes
\',\",\\,\b,\f,\n,\r, and\t, the additional character escapes\vand\0, hexadecimal escapes like\x0F, and unnecessary escapes like\aare allowed in string values and string property names. -
New:
stringifyoutputs strings with single quotes by default but intelligently uses double quotes if there are more single quotes than double quotes inside the string. (i.e.stringify('Stay here.')outputs'Stay here.'whilestringify('Let\'s go.')outputs"Let's go.") -
New: When a character is not allowed in a string,
stringifyoutputs a character escape like\twhen available, a hexadecimal escape like\x0Fwhen the Unicode code point is less than 256, or a Unicode character escape like\u01FF, in that order. -
New:
stringifychecks for atoJSON5method on objects and, if it exists, stringifies its return value instead of the object.toJSON5overridestoJSONif they both exist. -
New: To
requireorimportJSON5 files, userequire('json5/lib/register')orimport 'json5/lib/register'. Previous versions usedjson5/lib/require, which still exists for backward compatibility but is deprecated and will give a warning. -
New: To use JSON5 in browsers, use the file at
dist/index.jsorhttps://unpkg.com/json5@^1.0.0. -
Fix:
stringifyproperly outputsInfinityandNaN. ([#67]) -
Fix:
isWordno longer becomes a property ofJSON5after callingstringify. ([#68] and [#89]) -
Fix:
stringifyno longer throws when an object does not have aprototype. ([#154]) -
Fix:
stringifyproperly handles thekeyargument oftoJSON(key)methods.toJSON5(key)follows this pattern. -
Fix:
stringifyacceptsNumberandStringobjects as itsspaceargument. -
Fix: In addition to a function,
stringifyalso accepts an array of keys to include in the output as itsreplacerargument. Numbers,Numberobjects, andStringobjects will be converted to a string if they are given as array values.
An additional new version was just released of json5, so we've added an
extra commit upgrading your range to ^1.0.1.
Hope that's alright! — Doppins
An additional new version was just released of json5, so we've added an
extra commit upgrading your range to ^2.0.0.
Hope that's alright! — Doppins
An additional new version was just released of json5, so we've added an
extra commit upgrading your range to ^2.0.1.
Hope that's alright! — Doppins
An additional new version was just released of json5, so we've added an
extra commit upgrading your range to ^2.1.0.
Hope that's alright! — Doppins