Skip to content

Fix stringifySrcset with strict error in 5.0.2#18

Merged
sindresorhus merged 1 commit intosindresorhus:mainfrom
santicros:fix/strict-stringify-error
Jan 12, 2026
Merged

Fix stringifySrcset with strict error in 5.0.2#18
sindresorhus merged 1 commit intosindresorhus:mainfrom
santicros:fix/strict-stringify-error

Conversation

@santicros
Copy link
Contributor

Hi! This PR fixes #17

  • Adds fix for stringifySrcset with strict giving error: Passing descriptor parameter to validDescriptorCheck in stringifySrcset
  • Added a test case to verify stringifySrcset works correctly in strict mode with valid width and density descriptors

Fixes stringifySrcset with strict giving error
Adds tests
@sindresorhus sindresorhus merged commit d33dabc into sindresorhus:main Jan 12, 2026
3 checks passed
@santicros santicros deleted the fix/strict-stringify-error branch January 12, 2026 16:22
@santicros santicros restored the fix/strict-stringify-error branch January 12, 2026 16:44
@santicros santicros deleted the fix/strict-stringify-error branch January 12, 2026 16:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5.0.2 strict breaks stringifySrcset with valid width

2 participants