@najemi-software/vitest-dom 1.0.0 → 1.0.1-alpha.49.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/types.d.ts +1 -4
- package/esm/matchers/types.d.ts.map +1 -1
- package/package.json +1 -1
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
|
+
## [1.0.1] - 2026-09-28
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Remove the old `IMatcherFn` declaration that should have been replaced in 1.0.0 but was left in place alongside its replacement, which merged the two into a single interface with an unintended extra call signature
|
|
13
|
+
|
|
8
14
|
## [1.0.0] - 2026-09-28
|
|
9
15
|
|
|
10
16
|
### Added
|
|
@@ -355,6 +361,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
355
361
|
|
|
356
362
|
- Initial release
|
|
357
363
|
|
|
364
|
+
[1.0.1]: https://github.com/Najemi-Software/vitest-dom/compare/v1.0.0...v1.0.1
|
|
358
365
|
[1.0.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.37.0...v1.0.0
|
|
359
366
|
[0.37.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.36.0...v0.37.0
|
|
360
367
|
[0.36.0]: https://github.com/Najemi-Software/vitest-dom/compare/v0.35.1...v0.36.0
|
package/esm/matchers/types.d.ts
CHANGED
|
@@ -7,12 +7,9 @@ export interface IMatcherResult {
|
|
|
7
7
|
meta?: object;
|
|
8
8
|
}
|
|
9
9
|
export type ExpectationResult = IMatcherResult | Promise<IMatcherResult>;
|
|
10
|
-
export interface IMatcherFn<State extends MatcherState> {
|
|
11
|
-
(this: State, received: any, expected: any, options?: any): ExpectationResult;
|
|
12
|
-
}
|
|
13
|
-
export type MatcherState = ReturnType<ExpectStatic["getState"]>;
|
|
14
10
|
export interface IMatcherFn<State extends MatcherState, Args extends unknown[] = any[]> {
|
|
15
11
|
(this: State, received: any, ...args: Args): ExpectationResult;
|
|
16
12
|
}
|
|
13
|
+
export type MatcherState = ReturnType<ExpectStatic["getState"]>;
|
|
17
14
|
export type MatcherArgs<F> = F extends IMatcherFn<MatcherState, infer Args> ? Args : never;
|
|
18
15
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/matchers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,IAAI,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAEzE,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,YAAY
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/matchers/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,MAAM,WAAW,cAAc;IAC3B,IAAI,EAAE,OAAO,CAAC;IACd,OAAO,IAAI,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,GAAG,OAAO,CAAC,cAAc,CAAC,CAAC;AAEzE,MAAM,WAAW,UAAU,CAAC,KAAK,SAAS,YAAY,EAAE,IAAI,SAAS,OAAO,EAAE,GAAG,GAAG,EAAE;IAClF,CAAC,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,GAAG,IAAI,EAAE,IAAI,GAAG,iBAAiB,CAAC;CAClE;AAED,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;AAEhE,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,UAAU,CAAC,YAAY,EAAE,MAAM,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@najemi-software/vitest-dom",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1-alpha.49.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",
|