Skip to content

fix(core): reformat union types per prettier 3.9.5#1366

Merged
thomasyuill-livekit merged 4 commits into
mainfrom
ty/fix-core-prettier-formatting
Jul 10, 2026
Merged

fix(core): reformat union types per prettier 3.9.5#1366
thomasyuill-livekit merged 4 commits into
mainfrom
ty/fix-core-prettier-formatting

Conversation

@thomasyuill-livekit

Copy link
Copy Markdown
Contributor

Issue

No linked Linear ticket.

Overview

CI's lint step has been broken on main since #1337 (prettier bump to 3.9.5) — the new prettier version collapses short multi-line union types onto one line, but the three affected files were never reformatted, so every test CI run since then fails at the ESLint/prettier step in @livekit/components-core.

Summary of changes

Whitespace-only prettier --write on the three flagged files:

  • packages/core/src/components/chat.ts
  • packages/core/src/messages/types.ts
  • packages/core/src/types.ts

No behavioral changes.

Testing

  • pnpm --filter @livekit/components-core lint — passes (previously failed with 3 prettier/prettier errors)

Prettier 3.9.5 (#1337) changed how it wraps short union types, but the
affected files weren't reformatted at the time, leaving lint broken on
main since that merge.
@changeset-bot

changeset-bot Bot commented Jul 10, 2026

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: b01d731

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@vercel

vercel Bot commented Jul 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
components-js-storybook-5kld Ready Ready Preview, Comment Jul 10, 2026 4:24pm

Request Review

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
LiveKitRoom only 6.01 KB (0%)
LiveKitRoom with VideoConference 32.25 KB (0%)
All exports 43.69 KB (0%)

@1egoman

1egoman commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

@thomasyuill-livekit I've also got a WIP fix for this in #1355 which I'm trying to get pass right now. If you get this fully fixed in here feel free to merge this first and I'll rebase it out of the dependency bump one

Prettier 3.9.5 (#1337) changed how it wraps short union types, but the
affected files weren't reformatted at the time, leaving lint broken on
main since that merge.
Same prettier 3.9.5 (#1337) union-type wrapping change, unfixed in
tooling/api-documenter, breaking the format:check CI job on main.
api-extractor flags the useEvents generic constraint as an API change
after the prettier 3.9.5 reformat added parentheses around the
conditional type; regenerate the snapshot to match.
@thomasyuill-livekit

Copy link
Copy Markdown
Contributor Author

@1egoman looks like we've got this passing
can I get a ✅ to merge?

@thomasyuill-livekit thomasyuill-livekit enabled auto-merge (squash) July 10, 2026 16:26
@thomasyuill-livekit thomasyuill-livekit merged commit d30a14f into main Jul 10, 2026
8 checks passed
@thomasyuill-livekit thomasyuill-livekit deleted the ty/fix-core-prettier-formatting branch July 10, 2026 16:39
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.

2 participants