very-happy-dom 0.1.2 โ 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +122 -0
- package/README.md +2 -1
- package/dist/browser/BrowserPage.d.ts +5 -2
- package/dist/css/CSSOM.d.ts +3 -11
- package/dist/index.d.ts +1 -1
- package/dist/index.js +16 -16
- package/dist/nodes/HTMLElementClasses.d.ts +3 -0
- package/dist/webcomponents/slot-utils.d.ts +4 -0
- package/package.json +4 -5
- package/dist/config.d.ts +0 -5
- package/dist/register.d.ts +0 -1
- package/dist/screenshot/index.d.ts +0 -38
- package/dist/screenshot/webview.d.ts +0 -116
- package/dist/types.d.ts +0 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,125 @@
|
|
|
1
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.5...v0.1.6)
|
|
2
|
+
|
|
3
|
+
## ๐ Bug Fixes
|
|
4
|
+
|
|
5
|
+
- **websocket**: defer connection failure state ([e6af131](https://github.com/stacksjs/very-happy-dom/commit/e6af131)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
6
|
+
|
|
7
|
+
## ๐งน Chores
|
|
8
|
+
|
|
9
|
+
- release v0.1.6 ([4b3b9b2](https://github.com/stacksjs/very-happy-dom/commit/4b3b9b2)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
10
|
+
|
|
11
|
+
## Contributors
|
|
12
|
+
|
|
13
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
14
|
+
|
|
15
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.5...HEAD)
|
|
16
|
+
|
|
17
|
+
## ๐ Bug Fixes
|
|
18
|
+
|
|
19
|
+
- **websocket**: defer connection failure state ([e6af131](https://github.com/stacksjs/very-happy-dom/commit/e6af131)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
20
|
+
|
|
21
|
+
## Contributors
|
|
22
|
+
|
|
23
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
24
|
+
|
|
25
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.4...v0.1.5)
|
|
26
|
+
|
|
27
|
+
## ๐ Bug Fixes
|
|
28
|
+
|
|
29
|
+
- **web-components**: complete upgrade and slot semantics ([9d60632](https://github.com/stacksjs/very-happy-dom/commit/9d60632)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
30
|
+
|
|
31
|
+
## ๐งน Chores
|
|
32
|
+
|
|
33
|
+
- release v0.1.5 ([9f9fe7d](https://github.com/stacksjs/very-happy-dom/commit/9f9fe7d)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
34
|
+
- **deps**: declare bun ^1.3.14 in deps.yaml ([d0af529](https://github.com/stacksjs/very-happy-dom/commit/d0af529)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
35
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.37 ([e7bdd28](https://github.com/stacksjs/very-happy-dom/commit/e7bdd28)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
36
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.35 ([b49b7fb](https://github.com/stacksjs/very-happy-dom/commit/b49b7fb)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
37
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.33 ([a0855f4](https://github.com/stacksjs/very-happy-dom/commit/a0855f4)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
38
|
+
- **deps**: refresh bun.lock to pick up @stacksjs/logsmith 0.2.3 ([70b7241](https://github.com/stacksjs/very-happy-dom/commit/70b7241)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
39
|
+
- **deps**: refresh bun.lock to pick up buddy-bot 0.9.20 ([9a00efe](https://github.com/stacksjs/very-happy-dom/commit/9a00efe)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
40
|
+
- **deps**: bump better-dx to ^0.2.15 ([9d67b87](https://github.com/stacksjs/very-happy-dom/commit/9d67b87)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
41
|
+
- **docs**: fix pickier markdown errors ([f5c9108](https://github.com/stacksjs/very-happy-dom/commit/f5c9108)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
42
|
+
|
|
43
|
+
## Contributors
|
|
44
|
+
|
|
45
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
46
|
+
- _glennmichael123 <gtorregosa@gmail.com>_
|
|
47
|
+
|
|
48
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.4...HEAD)
|
|
49
|
+
|
|
50
|
+
## ๐ Bug Fixes
|
|
51
|
+
|
|
52
|
+
- **web-components**: complete upgrade and slot semantics ([9d60632](https://github.com/stacksjs/very-happy-dom/commit/9d60632)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
53
|
+
|
|
54
|
+
## ๐งน Chores
|
|
55
|
+
|
|
56
|
+
- **deps**: declare bun ^1.3.14 in deps.yaml ([d0af529](https://github.com/stacksjs/very-happy-dom/commit/d0af529)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
57
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.37 ([e7bdd28](https://github.com/stacksjs/very-happy-dom/commit/e7bdd28)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
58
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.35 ([b49b7fb](https://github.com/stacksjs/very-happy-dom/commit/b49b7fb)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
59
|
+
- **deps**: refresh bun.lock to pick up pickier 0.1.33 ([a0855f4](https://github.com/stacksjs/very-happy-dom/commit/a0855f4)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
60
|
+
- **deps**: refresh bun.lock to pick up @stacksjs/logsmith 0.2.3 ([70b7241](https://github.com/stacksjs/very-happy-dom/commit/70b7241)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
61
|
+
- **deps**: refresh bun.lock to pick up buddy-bot 0.9.20 ([9a00efe](https://github.com/stacksjs/very-happy-dom/commit/9a00efe)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
62
|
+
- **deps**: bump better-dx to ^0.2.15 ([9d67b87](https://github.com/stacksjs/very-happy-dom/commit/9d67b87)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
63
|
+
- **docs**: fix pickier markdown errors ([f5c9108](https://github.com/stacksjs/very-happy-dom/commit/f5c9108)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
64
|
+
|
|
65
|
+
## Contributors
|
|
66
|
+
|
|
67
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
68
|
+
- _glennmichael123 <gtorregosa@gmail.com>_
|
|
69
|
+
|
|
70
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.3...v0.1.4)
|
|
71
|
+
|
|
72
|
+
### ๐ Bug Fixes
|
|
73
|
+
|
|
74
|
+
- add setup-bun to publish-commit job ([0e0af08](https://github.com/stacksjs/very-happy-dom/commit/0e0af08)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
75
|
+
- ship dist only, remove bun export condition pointing to unpublished src ([bc412ee](https://github.com/stacksjs/very-happy-dom/commit/bc412ee)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
76
|
+
- include src/ in published files for bun export condition ([b0ba4fa](https://github.com/stacksjs/very-happy-dom/commit/b0ba4fa)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
77
|
+
|
|
78
|
+
### ๐ค Continuous Integration
|
|
79
|
+
|
|
80
|
+
- drop redundant setup-bun (pantry installs bun via deps.yaml) ([88ed1d6](https://github.com/stacksjs/very-happy-dom/commit/88ed1d6)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
81
|
+
|
|
82
|
+
### ๐งน Chores
|
|
83
|
+
|
|
84
|
+
- release v0.1.4 ([c3006e8](https://github.com/stacksjs/very-happy-dom/commit/c3006e8)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
85
|
+
- move dtsx deps to devDependencies and bump to ^0.9.17 ([719c347](https://github.com/stacksjs/very-happy-dom/commit/719c347)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
86
|
+
- refresh bun.lock to pick up latest pickier ([8e873c2](https://github.com/stacksjs/very-happy-dom/commit/8e873c2)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
87
|
+
- fresh install to pick up dtsx 0.9.14 and bunfig 0.15.9 ([85d5b2c](https://github.com/stacksjs/very-happy-dom/commit/85d5b2c)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
88
|
+
- bump to 0.1.3 with src/ in published files ([7809b72](https://github.com/stacksjs/very-happy-dom/commit/7809b72)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
89
|
+
- release v0.1.2 ([2e2a463](https://github.com/stacksjs/very-happy-dom/commit/2e2a463)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
90
|
+
- revert release v0.1.2 ([782f6c0](https://github.com/stacksjs/very-happy-dom/commit/782f6c0)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
91
|
+
|
|
92
|
+
### Contributors
|
|
93
|
+
|
|
94
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
95
|
+
- _glennmichael123 <gtorregosa@gmail.com>_
|
|
96
|
+
|
|
97
|
+
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.2...HEAD)
|
|
98
|
+
|
|
99
|
+
### ๐ Bug Fixes
|
|
100
|
+
|
|
101
|
+
- add setup-bun to publish-commit job ([0e0af08](https://github.com/stacksjs/very-happy-dom/commit/0e0af08)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
102
|
+
- ship dist only, remove bun export condition pointing to unpublished src ([bc412ee](https://github.com/stacksjs/very-happy-dom/commit/bc412ee)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
103
|
+
- include src/ in published files for bun export condition ([b0ba4fa](https://github.com/stacksjs/very-happy-dom/commit/b0ba4fa)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
104
|
+
|
|
105
|
+
### ๐ค Continuous Integration
|
|
106
|
+
|
|
107
|
+
- drop redundant setup-bun (pantry installs bun via deps.yaml) ([88ed1d6](https://github.com/stacksjs/very-happy-dom/commit/88ed1d6)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
108
|
+
|
|
109
|
+
### ๐งน Chores
|
|
110
|
+
|
|
111
|
+
- move dtsx deps to devDependencies and bump to ^0.9.17 ([719c347](https://github.com/stacksjs/very-happy-dom/commit/719c347)) _(by Chris <chrisbreuer93@gmail.com>)_
|
|
112
|
+
- refresh bun.lock to pick up latest pickier ([8e873c2](https://github.com/stacksjs/very-happy-dom/commit/8e873c2)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
113
|
+
- fresh install to pick up dtsx 0.9.14 and bunfig 0.15.9 ([85d5b2c](https://github.com/stacksjs/very-happy-dom/commit/85d5b2c)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
114
|
+
- bump to 0.1.3 with src/ in published files ([7809b72](https://github.com/stacksjs/very-happy-dom/commit/7809b72)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
115
|
+
- release v0.1.2 ([2e2a463](https://github.com/stacksjs/very-happy-dom/commit/2e2a463)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
116
|
+
- revert release v0.1.2 ([782f6c0](https://github.com/stacksjs/very-happy-dom/commit/782f6c0)) _(by glennmichael123 <gtorregosa@gmail.com>)_
|
|
117
|
+
|
|
118
|
+
### Contributors
|
|
119
|
+
|
|
120
|
+
- _Chris <chrisbreuer93@gmail.com>_
|
|
121
|
+
- _glennmichael123 <gtorregosa@gmail.com>_
|
|
122
|
+
|
|
1
123
|
[Compare changes](https://github.com/stacksjs/very-happy-dom/compare/v0.1.1...v0.1.2)
|
|
2
124
|
|
|
3
125
|
### ๐งน Chores
|
package/README.md
CHANGED
|
@@ -330,7 +330,7 @@ await JSDOM.fromURL('https://x.test') // fetch + parse
|
|
|
330
330
|
|
|
331
331
|
Full surface: `JSDOM`, `VirtualConsole`, `CookieJar`, `ResourceLoader` โ each with the same method names and overloads as jsdom.
|
|
332
332
|
|
|
333
|
-
See [drop-in compatibility guide]
|
|
333
|
+
See the [drop-in compatibility guide][drop-in-compat-href] for the complete migration reference.
|
|
334
334
|
|
|
335
335
|
## API Reference
|
|
336
336
|
|
|
@@ -520,6 +520,7 @@ Made with ๐
|
|
|
520
520
|
[jetbrains-href]: https://www.jetbrains.com/
|
|
521
521
|
[solana-href]: https://solana.com/
|
|
522
522
|
[license-href]: LICENSE.md
|
|
523
|
+
[drop-in-compat-href]: ./docs/drop-in-compat.md
|
|
523
524
|
|
|
524
525
|
<!-- [codecov-src]: https://img.shields.io/codecov/c/gh/stacksjs/very-happy-dom/main?style=flat-square
|
|
525
526
|
[codecov-href]: https://codecov.io/gh/stacksjs/very-happy-dom -->
|
|
@@ -59,7 +59,7 @@ export declare class BrowserPage {
|
|
|
59
59
|
_emitError(error: Error): void;
|
|
60
60
|
dragAndDrop(source: string, target: string, options?: { delay?: number }): Promise<void>;
|
|
61
61
|
setRequestInterception(enabled: boolean): Promise<void>;
|
|
62
|
-
screenshot(options
|
|
62
|
+
screenshot(options?: {
|
|
63
63
|
type?: 'png' | 'jpeg' | 'webp'
|
|
64
64
|
quality?: number
|
|
65
65
|
fullPage?: boolean
|
|
@@ -72,7 +72,10 @@ export declare class BrowserPage {
|
|
|
72
72
|
timeout?: number
|
|
73
73
|
css?: string
|
|
74
74
|
baseUrl?: string
|
|
75
|
-
fonts?: Array<{ family: string, url: string, weight?: string, style?: string }>
|
|
75
|
+
fonts?: Array<{ family: string, url: string, weight?: string, style?: string }>
|
|
76
|
+
console?: true | ((event: unknown) => void)
|
|
77
|
+
}
|
|
78
|
+
}): Promise<string | Buffer>;
|
|
76
79
|
pdf(options?: {
|
|
77
80
|
path?: string
|
|
78
81
|
scale?: number
|
package/dist/css/CSSOM.d.ts
CHANGED
|
@@ -1,20 +1,12 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @defaultValue
|
|
3
|
-
* ```ts
|
|
4
|
-
* {
|
|
5
|
-
* escape: (value: string) => unknown,
|
|
6
|
-
* supports: (property: string, value?: string) => unknown
|
|
7
|
-
* }
|
|
8
|
-
* ```
|
|
9
|
-
*/
|
|
1
|
+
/** @defaultValue `{ supports: () => unknown }` */
|
|
10
2
|
export declare const CSS: {
|
|
11
|
-
escape: (value: string) =>
|
|
3
|
+
escape: (value: string) => string;
|
|
12
4
|
/**
|
|
13
5
|
* Best-effort CSS.supports(). Without a real CSS parser we stay permissive:
|
|
14
6
|
* accept any non-empty input, recognize "not (...)" for the 1-arg condition
|
|
15
7
|
* form, and reject clearly malformed declarations in the 2-arg form.
|
|
16
8
|
*/
|
|
17
|
-
supports: (property: string, value?: string) =>
|
|
9
|
+
supports: (property: string, value?: string) => boolean
|
|
18
10
|
};
|
|
19
11
|
/**
|
|
20
12
|
* CSS Object Model (CSSOM) implementation
|
package/dist/index.d.ts
CHANGED
|
@@ -331,7 +331,7 @@ export {
|
|
|
331
331
|
VirtualConsole,
|
|
332
332
|
type VirtualConsoleListener,
|
|
333
333
|
type VirtualConsoleSendToOptions,
|
|
334
|
-
} from './jsdom';
|
|
334
|
+
} from './jsdom/index';
|
|
335
335
|
// Export extra browser APIs
|
|
336
336
|
export { BroadcastChannel, MessageChannel, MessagePort } from './apis/Channel';
|
|
337
337
|
export { EventSource, type EventSourceInit } from './apis/EventSource';
|