Bump parse5 and @types/parse5
Bumps parse5 and @types/parse5. These dependencies needed to be updated together.
Updates parse5 from 6.0.1 to 7.1.1
Release notes
Sourced from parse5's releases.
v7.1.0
This release is only for the parse5 module.
What's Changed
- feat(parse5): use string types for node names by
@43081jin inikulin/parse5#631- fix(parser): Have
</button>close<p>by@fb55in inikulin/parse5#534- docs: Fix small typo in code example by
@cheeaunin inikulin/parse5#518- Added coverage reporting by
@fb55in inikulin/parse5#515- Improved code coverage by
@fb55in inikulin/parse5#517 and inikulin/parse5#547New Contributors
@cheeaunmade their first contribution in inikulin/parse5#518Full Changelog: https://github.com/inikulin/parse5/compare/v7.0.0...v7.1.0
v7.0.0
Welcome to [email protected]! ✨ 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/perfbenchmark, 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
parse5andparse5-htmlparser2-tree-adapterfor now (see inikulin/parse5#418 and inikulin/parse5#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
@43081jin #351Breaking: TypeScript
The codebase has been ported to TypeScript. This helped uncover a number of subtle logic bugs, such as dc4e269022ebbae0767d8f790a29d6be1835fe1e, b4b5d4ad6f90b3c9fd03a90e2ed5267929979a11, or a0aff9578bb44511bc169c1d7f9e2f2780f7f8a0. 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.Potentially breaking changes
- parse5 was caught up with the HTML spec, and parsing results might differ in edge-cases (inikulin/parse5#442, inikulin/parse5#451)
- The
parse5-serializer-streampackage was removed inikulin/parse5#481
- To migrate, use the
serializefunction exported byparse5.- The rewriting stream now splits very long text sections (inikulin/parse5#434) and doesn’t escape text in special tags anymore (#434). If you worked around these issues before, you might have to update your code.
- The htmlparser2 adapter now uses
domhandler’s node interface (inikulin/parse5#327 by@TrySound)
... (truncated)
Commits
- See full diff in compare view
Maintainer changes
This version was pushed to npm by feedic, a new releaser for parse5 since your current version.
Updates @types/parse5 from 6.0.1 to 7.0.0
Commits
- See full diff in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
⚠️ No Changeset found
Latest commit: a1280ac31340c3c58666e46ed737759867726f10
Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.
This PR includes no changesets
When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types
Click here to learn what changesets are, and how to add one.
Click here if you're a maintainer who wants to add a changeset to this PR