Skip to content

fix(wormhole): handle array default items in union and avoid TypeError#141

Merged
czhlin merged 2 commits intomainfrom
fix/issue-140-array-default-items
Mar 24, 2026
Merged

fix(wormhole): handle array default items in union and avoid TypeError#141
czhlin merged 2 commits intomainfrom
fix/issue-140-array-default-items

Conversation

@czhlin
Copy link
Copy Markdown
Contributor

@czhlin czhlin commented Mar 24, 2026

  • Fix TypeError when array items are missing by injecting default items in array branch
  • Add normalize and generates tests to ensure behavior

fix #140

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 24, 2026

🦋 Changeset detected

Latest commit: 3b7ad43

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@alova/wormhole Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@czhlin czhlin changed the title fix(wormhole): handle array default items and array-or-null union in … fix(wormhole): handle array default items in union and avoid TypeError Mar 24, 2026
@czhlin czhlin merged commit c5c2477 into main Mar 24, 2026
2 checks passed
@JOU-amjs JOU-amjs mentioned this pull request Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

1 participant