Fix: Properties with the name __proto__ are added to objects and arrays.
(#199) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (#295).
v2.2.1
Fix: Removed dependence on minimist to patch CVE-2021-44906. (#266)
v2.2.0
New: Accurate and documented TypeScript declarations are now included. There is no need to install @types/json5. (#236, #244)
New: package.json and package.json5 include a module property so
bundlers like webpack, rollup and parcel can take advantage of the ES Module
build. (#208)
Fix: stringify outputs \0 as \\x00 when followed by a digit. (#210)
New: The index.mjs and index.min.mjs browser builds in the dist directory support ES6 modules. (#187)
v2.0.1
Fix: The browser builds in the dist directory support ES5. (#182)
v2.0.0
Major: JSON5 officially supports Node.js v6 and later. Support for Node.js
v4 has been dropped. Since Node.js v6 supports ES5 features, the code has been
rewritten in native ES5, and the dependence on Babel has been eliminated.
New: Support for Unicode 10 has been added.
New: The test framework has been migrated from Mocha to Tap.
New: The browser build at dist/index.js is no longer minified by default. A
minified version is available at dist/index.min.js. (#181)
Fix: The warning has been made clearer when line and paragraph separators are
used in strings.
Fix: package.json5 has been restored, and it is automatically generated and
Fix: Properties with the name __proto__ are added to objects and arrays.
(#199) This also fixes a prototype pollution vulnerability reported by
Jonathan Gregson! (#295).
New: package.json and package.json5 include a module property so
bundlers like webpack, rollup and parcel can take advantage of the ES Module
build. (#208)
Fix: stringify outputs \0 as \\x00 when followed by a digit. (#210)
allow to specify the insert option from file, we strongly recommend do it, using the insert option from file will reduce your bundle size, example (#521) (56fc8f0)
allow to specify the styleTagTransform option from file, we strongly recommend do it, using the styleTagTransform option from file will reduce your bundle size, example
allow to specify the insert option from file, we strongly recommend do it, using the insert option from file will reduce your bundle size, example (#521) (56fc8f0)
allow to specify the styleTagTransform option from file, we strongly recommend do it, using the styleTagTransform option from file will reduce your bundle size, example
using ~ is deprecated and can be removed from your code (we recommend it), but we still support it for historical reasons.
Why you can removed it?
The loader will first try to resolve @import/@require as relative, if it cannot be resolved, the loader will try to resolve @import/@require inside node_modules.
Bumps json5 to 2.2.2 and updates ancestor dependencies json5, loader-utils, @babel/core, css-loader, file-loader, style-loader, stylus-loader, webpack and webpack-cli. These dependencies need to be updated together.
Updates
json5
from 0.5.1 to 2.2.2Release notes
Sourced from json5's releases.
... (truncated)
Changelog
Sourced from json5's changelog.
... (truncated)
Commits
14f8cb1
2.2.210cc7ca
docs: update CHANGELOG for v2.2.27774c10
fix: add proto to objects and arraysedde30a
Readme: slight tweak to intro97286f8
Improve example in readmed720b4f
Improve readme (e.g. explain JSON5 better!) (#291)910ce25
docs: fix spelling of Aseem2aab4dd
test: require tap as t in cli tests6d42686
test: remove mocha syntax from tests4798b9d
docs: update installation and usage for modulesUpdates
loader-utils
from 1.2.3 to 3.2.1Release notes
Sourced from loader-utils's releases.
... (truncated)
Changelog
Sourced from loader-utils's changelog.
... (truncated)
Commits
a3fd3ca
chore(release): 3.2.1d2d752d
fix: ReDoS problem (#224)52cd134
chore(deps): bump minimist from 1.2.5 to 1.2.6 (#209)9fe2381
chore: add .gitattributes for normalizing end of lines - fixes #203 (#204)a282654
chore(release): 3.2.0f2a524b
chore(deps): update (#200)451858b
feat: hash uniformity for base digestsf7dbfe1
chore(release): 3.1.3ef084d4
fix: crash with md4 hash (#198)097f5c3
chore(release): 3.1.2Updates
@babel/core
from 7.1.2 to 7.20.7Release notes
Sourced from
@babel/core
's releases.... (truncated)
Changelog
Sourced from
@babel/core
's changelog.... (truncated)
Commits
d414940
v7.20.76757a60
Rewritetransform-block-scoping
plugin (#15200)362451b
chore: Enable eslint ruleno-unnecessary-type-assertion
(#15260)e5e1369
fix: Computed properties should keep original definition order (#15232)29a97b8
v7.20.5f6546d7
Bump typescript to 4.9.3 (#15202)5f19f62
Bump babel deps (#15187)12a58cb
v7.20.277f3700
fix:@babel/node
repl and enableno-use-before-define
rule (#15124)aadd7a3
v7.19.6Maintainer changes
This version was pushed to npm by nicolo-ribaudo, a new releaser for
@babel/core
since your current version.Updates
css-loader
from 3.2.0 to 6.7.3Release notes
Sourced from css-loader's releases.
... (truncated)
Changelog
Sourced from css-loader's changelog.
... (truncated)
Commits
ef749f2
chore(release): 6.7.336fb945
chore: fix cspell962924c
fix: removesourceURL
from emitted CSS (#1487)3f3f302
chore(deps): bump decode-uri-component from 0.2.0 to 0.2.2 (#1486)04ca713
chore: update dependencies to the latest version (#1485)9449827
chore: update styfle/cancel-workflow-action (#1484)6c67af8
chore: add cSpell to check spelling issues (#1482)239b9ac
chore(deps): bump loader-utils from 2.0.3 to 2.0.4 (#1481)394d200
chore(release): 6.7.22f4c273
fix: css modules generation with inline syntax (#1480)Updates
file-loader
from 1.1.11 to 6.2.0Release notes
Sourced from file-loader's releases.
... (truncated)
Changelog
Sourced from file-loader's changelog.
... (truncated)
Commits
c423008
chore(release): 6.2.0654e0d6
feat: added thesourceFilename
property to asset info with original filenam...381d8bd
fix: immutable flag when thename
option have hash in query string (#392)14ed4c9
ci: updated webpack versions (#389)6fadfbe
chore(release): 6.1.160508cf
chore(deps): update25e2668
chore(release): 6.1.06e22f6e
test: fix40fcde8
feat: pass immutable flag to asset info (#383)718aef5
chore(deps): update (#375)Maintainer changes
This version was pushed to npm by evilebottnawi, a new releaser for file-loader since your current version.
Updates
style-loader
from 0.20.3 to 3.3.1Release notes
Sourced from style-loader's releases.
... (truncated)
Changelog
Sourced from style-loader's changelog.
... (truncated)
Commits
4663416
chore(release): 3.3.1610524e
fix: small perf improvement (#544)c799ecc
chore(release): 3.3.0b47718a
test: update (#542)43bede4
refactor: code (#541)b9a600c
feat: added support for@supports
,@layer
and@media
from@import
at-...74fa1cf
chore(deps): update (#539)cdf0ba7
refactor: codecaf66a0
chore(deps): updatef8ef63b
feat: allow to pass options toinsert
function throughstyle.use()
(#535)Maintainer changes
This version was pushed to npm by evilebottnawi, a new releaser for style-loader since your current version.
Updates
stylus-loader
from 3.0.2 to 7.1.0Release notes
Sourced from stylus-loader's releases.
... (truncated)
Changelog
Sourced from stylus-loader's changelog.