Skip to content

SimplifyDeep: Fix behaviour with arrays#1337

Merged
sindresorhus merged 2 commits intomainfrom
fix/simplify-deep-with-arrays
Jan 27, 2026
Merged

SimplifyDeep: Fix behaviour with arrays#1337
sindresorhus merged 2 commits intomainfrom
fix/simplify-deep-with-arrays

Conversation

@som-sm
Copy link
Collaborator

@som-sm som-sm commented Jan 27, 2026

Fixes #1335.

There was a regression caused by #1293, SimplifyDeep shouldn't skip arrays.

There was a test for this, but the test itself was incorrect, which is why this didn't get caught. This PR removes the incorrect test and adds a new one.

@som-sm som-sm requested a review from sindresorhus January 27, 2026 08:59
@som-sm som-sm force-pushed the fix/simplify-deep-with-arrays branch from 41a9cd8 to 89686d5 Compare January 27, 2026 09:03
Repository owner deleted a comment from claude bot Jan 27, 2026
@som-sm som-sm force-pushed the fix/simplify-deep-with-arrays branch from 89686d5 to 629e30f Compare January 27, 2026 09:05
Repository owner deleted a comment from claude bot Jan 27, 2026
Repository owner deleted a comment from claude bot Jan 27, 2026
@sindresorhus sindresorhus merged commit a2a180d into main Jan 27, 2026
6 checks passed
@sindresorhus sindresorhus deleted the fix/simplify-deep-with-arrays branch January 27, 2026 14:12
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.

SimplifyDeep does not simplify types nested in arrays

2 participants