[Snyk] Upgrade parse5 from 7.0.0 to 7.1.2 #4
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade parse5 from 7.0.0 to 7.1.2.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 3 versions ahead of your current version.
The recommended version was released on 2 years ago.
Issues fixed by the recommended upgrade:
SNYK-JS-AXIOS-6032459
SNYK-JS-AXIOS-6124857
SNYK-JS-BABELTRAVERSE-5962462
SNYK-JS-BRACES-6838727
SNYK-JS-FOLLOWREDIRECTS-6141137
SNYK-JS-MICROMATCH-6838728
SNYK-JS-SEMVER-3247795
SNYK-JS-WS-7266574
SNYK-JS-EXPRESS-6474509
SNYK-JS-FOLLOWREDIRECTS-6444610
SNYK-JS-HTTPCACHESEMANTICS-3248783
SNYK-JS-INFLIGHT-6095116
SNYK-JS-SIDEWAYFORMULA-3317169
SNYK-JS-STYLEDCOMPONENTS-3149924
SNYK-JS-XML2JS-5414874
Release notes
Package name: parse5
This release includes
parse5
andparse5-parser-stream
.ERR
asErrorCodes
by @ milahu in #704parser-stream
by @ fb55 in #716Full Changelog: v7.1.0...v7.1.2
This release is only for the parse5 module.
What's Changed
</button>
close<p>
by @ fb55 in #534New Contributors
Full Changelog: v7.0.0...v7.1.0
Welcome to parse5@7.0.0! ✨ This is a huge release with many changes, features and fixes.
From an organisational perspective, the most important change is that parse5 is now maintained by a team, consisting of James (@ 43081j), Titus (@ wooorm) and me (@ fb55). We come from three projects that rely on parse5 — namely Cheerio, rehype, and Lit.
We need your support to continue the project! If you care about parse5, please support us financially on OpenCollective.
Headlining features of this release are ES Modules, TypeScript, and performance improvements: 7.0.0 is 45% faster than 6.0.1 with default options, and 167% faster with location information enabled (for the
bench/perf
benchmark, on an M1 Mac). Version 7.0.0 is a revamp of every part of the library. There are too many changes to list them all here, so here is a high-level overview:Breaking: ESM
All of parse5’s packages are now ECMAScript Modules. We are providing dual packages for
parse5
andparse5-htmlparser2-tree-adapter
for now (see #418 and #496).To migrate, please read this Gist on how to update. Note that private internals are no longer available; instead, everything that you need should be imported from the main package.
Implemented by @ 43081j in #351
Breaking: TypeScript
The codebase has been ported to TypeScript. This helped uncover a number of subtle logic bugs, such as dc4e269, b4b5d4a, or a0aff95. TypeScript also helps us refactor with confidence and a lot of the changes in this release would have been much harder to do without it.
To migrate, please remove
@ types/parse5*
as we now ship our own types.Implemented by @ fb55 in #362
Potentially breaking changes
parse5-serializer-stream
package was removed #481serialize
function exported byparse5
.domhandler
’s node interface (#327 by @ TrySound)If you are using deep imports for any parts of the codebase, you will likely encounter some breakages:
Show internal changes
5d7a780
(#362)OpenElementStack
now uses callbacks #429getNextToken
was removed #461_bootstrap
method was removed #384entities
module for encoding and decoding entities, sharing maintenance & optimisation work with projects such as htmlparser2 (2b92054
(#362), #486)entities
adopted a variant of parse5’s approach of decoding entities. As a result, decoding performance is equivalent, while memory consumption is slightly lower.Other changes
parse5-parser-stream
#487serializeOuter
(like.outerHTML
),scriptingEnabled
option #383<<
in comments parsed wrongly as<!
(#326)endTag
for mixed-case foreign elements (#353)html
,body
(#436)parse5.js.org
#443New Contributors
Thanks @ anko, @ TrySound, @ samouri, @ alan-agius4, and @ pmdartus!
Full Changelog: v6.0.1...v7.0.0
Important
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: