Minor Changes
-
07709eb: Security
- Bump
@adobe/css-toolsto ^4.4.0, fixing CVE-2023-48631 (ReDoS) and adding@starting-stylesupport
Bug Fixes
- Fix null/undefined children crash in snapshot serializer
- Fix
@mediaquery whitespace mismatch intoHaveStyleRule - Normalize spaces after commas in CSS value comparison (fixes
rgb()andfont-familymismatches) - Add word boundaries to class name replacement regex to prevent partial matches
- Fix Enzyme shallow rendering assertion for nested styled children on SC v6
- Guard
expectandbeforeEachcalls for Vitest/Bun non-globals mode compatibility
Features
- Add
selectoroption totoHaveStyleRulefor testingcreateGlobalStylestyles - Add Vitest entry point (
jest-styled-components/vitest) with types - Add TypeScript declarations for
jest-styled-components/serializerandjest-styled-components/nativesubpaths - Export
resetStyleSheetfor manual test setup in non-Jest environments - Add JSDoc comments to all type declarations
Infrastructure
- Adopt changesets for versioning and releases
- Add provenance-based release workflow via GitHub Actions
- Update GitHub Actions to v4 (checkout, setup-node, cache) and CodeQL to v3
- Add
publintto test pipeline for package validation - Add
"type": "commonjs"to package.json
- Bump
See GitHub releases.