Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump happy-dom from 12.10.3 to 13.0.0 #651

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 11, 2024

Bumps happy-dom from 12.10.3 to 13.0.0.

Release notes

Sourced from happy-dom's releases.

v13.0.0

💣 Breaking Changes

  • This is a big release where much of the code has been refactored to improve security and to support the new Browser API. A big release is always a potential risk of bugs, so it makes sense to make this a major release to avoid consumers automatically updating to it. (#466)

🎨 Features

  • Adds support for a Browser API similar to Puppeteer and Playwright. With the Browser API, it is for example possible to create new pages and navigate in them. You can read more about it in the Happy DOM Wiki. (#466)
  • Improves security by not exposing sensitive internal logic to scripts running within the Happy DOM Browser. (#466)
  • Improves support for CORS management. It now supports "OPTIONS" requests to detect if the client is allowed to proceed with a cross origin request. (#466)
  • Adds support for HTTP response cache. The cache is in memory, but the plan is to add support for storing it on disk in the future. (#466)
  • Improves support for XMLHttpRequest. It now supports the GZip, Deflate and Brotli encodings. (#466)
  • Adds support for adding a process level error event listener for capturing errors. This is useful when using the Browser API, but will not work in environments such as Jest and Vitest, as it collides with their error listener. (#466)
  • Adds support for Ẁindow.open(). (#466)
  • Adds support for Ẁindow.close(). This function should now be used when tearing down the environment. (#466)
  • Improves support for cookies. (#466)
  • Improves support for HTMLIFrameElement. (#466)
  • Changes export of types to use "import type" and "export type" in "index.js". This will allow transpilers/compilers to optimize better. (#466)
  • Adds support for navigating when clicking on an anchor link. (#466)
  • Adds support for navigating when setting Location.href. (#466)
  • Improves support for MutationObserver. It will now queue multiple records by using a microtask. It now also supports MutationObserver.takeRecords() for records that has not yet been published. (#466)
  • Deprecates "@​happy-dom/uncaught-exception-observer" as the functionality is supported by "happy-dom" out of the box now. (#466)
  • Changes internal properties to use Symbol instead of using "_" as a prefix, so they won't be enumerable. This will also make sure that these properties won't clash with properties defined by the consumer. It will use private properties with # where it is possible. (#466)

👷‍♂️ Patch fixes

  • Improves the check for if the property is a class to avoid that it gets bound in "@​happy-dom/global-registrator". We only want functions to get bound to the global context. (#466)
  • Fixes bug where new Document() didn't work according to spec. (#466)
  • Fixes bug where several Element classes wheren't available as properties on Window. (#466)
  • Fixes bug in Document.importNode() where it didn't change ownerDocument on child nodes. (#466)
  • Resets static ownerDocument state used when creating Node instances, so that it can be garbage collected if not used anymore. (#466)

Merry Christmas and a Happy New Year! 🎅 ✨

This release took some time as I didn't want to release the Browser API without applying security fixes. I've also stumbled across a few other issues along the way that I felt I needed to address.

Thank you everybody for the support! It is nice to see that so many people contribute to the project by reporting issues and doing code fixes.

I think that 2024 will be a fantastic year for Happy DOM with a lot of features and fixes bringing Happy DOM closer and closer to a "real" browser.

Commits

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [happy-dom](https://github.com/capricorn86/happy-dom) from 12.10.3 to 13.0.0.
- [Release notes](https://github.com/capricorn86/happy-dom/releases)
- [Commits](capricorn86/happy-dom@v12.10.3...v13.0.0)

---
updated-dependencies:
- dependency-name: happy-dom
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 11, 2024
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Copy link
Contributor Author

dependabot bot commented on behalf of github Jan 12, 2024

Superseded by #652.

@dependabot dependabot bot closed this Jan 12, 2024
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/happy-dom-13.0.0 branch January 12, 2024 10:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant