@najemi-software/vitest-dom 0.19.0 → 0.20.0-alpha.23.1
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 +7 -0
- package/esm/matchers/utils.d.ts +5 -5
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.20.0] - 2026-09-27
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Bump typescript to 6.0.3
|
|
13
|
+
|
|
8
14
|
## [0.19.0] - 2026-09-27
|
|
9
15
|
|
|
10
16
|
### Changed
|
|
@@ -203,6 +209,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
203
209
|
|
|
204
210
|
- Initial release
|
|
205
211
|
|
|
212
|
+
[0.20.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.19.0...v0.20.0
|
|
206
213
|
[0.19.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.18.0...v0.19.0
|
|
207
214
|
[0.18.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.17.0...v0.18.0
|
|
208
215
|
[0.17.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.16.0...v0.17.0
|
package/esm/matchers/utils.d.ts
CHANGED
|
@@ -21,18 +21,18 @@ declare function matches(textToMatch: string, matcher: string | RegExp): boolean
|
|
|
21
21
|
declare function deprecate(name: string, replacementText?: string): void;
|
|
22
22
|
declare function normalize(text: string): string;
|
|
23
23
|
declare function getTag(element: Element): string;
|
|
24
|
-
declare function getSelectValue({ multiple, options }: HTMLSelectElement): string | string[];
|
|
25
|
-
declare function getInputValue(inputElement: HTMLInputElement): string | number | boolean;
|
|
24
|
+
declare function getSelectValue({ multiple, options }: HTMLSelectElement): string | string[] | undefined;
|
|
25
|
+
declare function getInputValue(inputElement: HTMLInputElement): string | number | boolean | null;
|
|
26
26
|
declare function getSingleElementValue(element: undefined | null): undefined;
|
|
27
27
|
declare function getSingleElementValue(element: HTMLInputElement): ReturnType<typeof getInputValue>;
|
|
28
28
|
declare function getSingleElementValue(element: HTMLSelectElement): ReturnType<typeof getSelectValue>;
|
|
29
29
|
declare function getSingleElementValue(element: HTMLMeterElement | HTMLProgressElement): number;
|
|
30
30
|
declare function getSingleElementValue(element: HTMLButtonElement | HTMLDataElement | HTMLOptionElement | HTMLOutputElement | HTMLTextAreaElement): string;
|
|
31
31
|
declare function getSingleElementValue(element: Element): undefined | string | string[] | number | boolean | null;
|
|
32
|
-
declare function compareArraysAsSet(a: unknown, b: unknown): boolean;
|
|
32
|
+
declare function compareArraysAsSet(a: unknown, b: unknown): boolean | undefined;
|
|
33
33
|
declare function toSentence(array: string[], { wordConnector, lastWordConnector }?: {
|
|
34
|
-
wordConnector?: string;
|
|
35
|
-
lastWordConnector?: string;
|
|
34
|
+
wordConnector?: string | undefined;
|
|
35
|
+
lastWordConnector?: string | undefined;
|
|
36
36
|
}): string;
|
|
37
37
|
export { HtmlElementTypeError, NodeTypeError, checkHtmlElement, checkNode, parseCSS, deprecate, getMessage, matches, normalize, getTag, getSingleElementValue, compareArraysAsSet, toSentence, };
|
|
38
38
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@najemi-software/vitest-dom",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.20.0-alpha.23.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Custom Vitest matchers to test the state of the DOM, forked from jest-dom.",
|
|
6
6
|
"homepage": "https://github.com/Najemi-Software/vitest-dom#readme",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"npm-run-all": "4.1.5",
|
|
80
80
|
"oxfmt": "^0.70.0",
|
|
81
81
|
"pretty-format": "^28.1.3",
|
|
82
|
-
"typescript": "
|
|
82
|
+
"typescript": "6.0.3",
|
|
83
83
|
"vitest": "^0.34.4"
|
|
84
84
|
},
|
|
85
85
|
"peerDependencies": {
|