Skip to content

fix(schema): allow nullish EventType in BaseEvents#118

Merged
invisiblemask merged 1 commit into
mainfrom
allow-nullish-event-type
Apr 9, 2026
Merged

fix(schema): allow nullish EventType in BaseEvents#118
invisiblemask merged 1 commit into
mainfrom
allow-nullish-event-type

Conversation

@invisiblemask
Copy link
Copy Markdown
Contributor

@invisiblemask invisiblemask commented Apr 9, 2026

Summary

  • Changed EventType from .nullable() to .nullish() in BaseEvents schema
  • Supports existing wikis where eventType is null or undefined in the database
  • Prevents validation failures after upgrading from v0.4.x to v4.0.0

Test plan

  • Verify wiki edits/creation with null eventType no longer fail validation
  • Verify valid EventType values (CREATED, DEFAULT, MULTIDATE) still work correctly

closes https://github.com/EveripediaNetwork/issues/issues/4826

Change EventType from .nullable() to .nullish() to support existing
wikis where eventType is null or undefined in the database.
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 9, 2026

🦋 Changeset detected

Latest commit: 95eaa40

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

This PR includes changesets to release 1 package
Name Type
@everipedia/iq-utils Minor

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

@invisiblemask invisiblemask merged commit ce62c40 into main Apr 9, 2026
1 check passed
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the BaseEvents schema in src/schema/index.ts to allow the type field to be nullish instead of nullable, facilitating compatibility with existing wikis that contain null event types. I have no feedback to provide as the changes are straightforward and correctly implemented.

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.

1 participant