Binds getters and setters on all Window classes (not only GlobalWindow), so that they will be available when calling Object.getOwnPropertyDescriptors() - By @capricorn86 in task #1343
The reason for this change is that JSDOM and browsers has these properties as part of the Window instance and not the prototype
Happy DOM will now behave correctly when overriding a property on Window with spyOn(window, 'property') or Object.defineProperty(window, 'property')
v14.2.0
:art: Features
Adds support for the pseudo selectors :is() and :where() - By @capricorn86 in task #1333
v14.1.2
:construction_worker_man: Patch fixes
Fixes problem with properties defined as getters and setters not being registered globally by Vitest - By @capricorn86 in task #1339
The problem occurred as Vitest is using Object.getOwnPropertyDescriptors(window) to read which properties to register globally, but getters and setters are defined on the prototype
To solve the problem, GlobalWindow now defines the properties on the instance when it is constructed
v14.1.1
:construction_worker_man: Patch fixes
Changes location, history, navigator, screen, sessionStorage and localStorage to be getters instead of properties on Window - By @capricorn86 in task #1336
Adds support for the setting handleDisabledFileLoadingAsSuccess, that can be used for triggering a "load" event instead of an "error" event when file loading is disabled - By @capricorn86 in task #1334
v14.0.0
:bomb: Breaking Changes
Removes unnecessary interfaces implemented by Window, Node and Element classes and by classes with a dependency to them - By @capricorn86 in task #1330
Interfaces was used to solve problems with circular dependencies (e.g. Window => Document => Window)
Newer versions of Typescript has solved this problem
This release is only breaking if you are using the interfaces. Then you can import and use the class as type instead (e.g. use HTMLElement instead of IHTMLElement)
v13.10.1
:construction_worker_man: Patch fixes
Fixes bug where cloning a response without a body caused the error TypeError: Cannot read properties of null (reading 'Symbol(nodeStream)') to be thrown - By @capricorn86 in task #1325
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 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 from 13.8.6 to 14.3.1.
Release notes
Sourced from happy-dom's releases.
... (truncated)
Commits
b5af02b
fix: #1181 Adds support for defining keys to the Storage class used by the ...96b06e6
feat: #1282 Adds support for selectedOptions for select (#1346)2ce84c0
Merge pull request #1344 from capricorn86/1343-fix-own-properties-for-getters...a8a0616
chore: #1343 Removes unused dependency872d4e2
fix: #1343 Bingd getters and setters on all Window classes (not only Global...f42adfa
Merge pull request #1341 from capricorn86/1333-regression-in-is-pseudo-class-...c871b44
feat: #1333 Adds support for the pseudo selectors :is() and :where()ad3234d
Merge pull request #1340 from capricorn86/1339-localstorage-is-not-defined-on...227b9a7
fix: #1339 Fixes problem with properties defined as getters not being regis...7e006f5
Merge pull request #1338 from capricorn86/1336-use-getter-and-setter-for-wind...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