Skip to content

Commit d1388e0

Browse files
github-actions[bot]quantizor
authored andcommitted
chore: version packages
1 parent 5cd4339 commit d1388e0

3 files changed

Lines changed: 22 additions & 21 deletions

File tree

.changeset/fix-native-style-guard.md

Lines changed: 0 additions & 20 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,26 @@
11
# Changelog
22

3+
## 7.3.1
4+
5+
### Patch Changes
6+
7+
- c7b0e4e: **Bug Fixes**
8+
9+
- Fix native `toHaveStyleRule` crash when element has no `style` prop (#225, #110)
10+
- Fix nested at-rules (`@media` inside `@supports` and vice versa) not being found by `toHaveStyleRule` (#245)
11+
- Fix `getHTML()` creating an empty `ServerStyleSheet` instead of reading from the global sheet (#401)
12+
- Fix selector matching with spaces around CSS combinators (`> ul > li > a` now matches correctly)
13+
- Fix invalid CSS causing cryptic parse errors — now shows the offending rule with surrounding context and a caret pointing at the exact error position (#147)
14+
15+
**Improvements**
16+
17+
- Add opt-in CSS parse caching via `import 'jest-styled-components/cache'` for faster `toHaveStyleRule` in large test suites (#235)
18+
- Normalize whitespace in value comparisons so `red !important`, `sidebar / inline-size`, and `rgb(0, 0, 0)` match their stylis-formatted equivalents (skips quoted strings)
19+
- Clearer validation messages: "Property not found" instead of cryptic crash, human-readable options formatting, better negation wording
20+
- Add `cache/index.d.ts` for TypeScript users importing the cache entry point
21+
- Use `Set` for hash lookups (O(1) vs O(n) per lookup)
22+
- Serializer no longer mutates the parsed CSS AST
23+
324
## 7.3.0
425

526
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jest-styled-components",
3-
"version": "7.3.0",
3+
"version": "7.3.1",
44
"description": "Jest utilities for Styled Components",
55
"type": "commonjs",
66
"packageManager": "pnpm@10.32.1",

0 commit comments

Comments
 (0)