Skip to content

feat(y-partyserver): add CJS build output#347

Merged
threepointone merged 3 commits intomainfrom
y-partyserver-cjs-build
Feb 25, 2026
Merged

feat(y-partyserver): add CJS build output#347
threepointone merged 3 commits intomainfrom
y-partyserver-cjs-build

Conversation

@threepointone
Copy link
Collaborator

Adds CJS build output alongside ESM for y-partyserver.

The package now ships both .js (ESM) and .cjs (CJS) files with corresponding .d.ts and .d.cts type declarations, following the same dual-format pattern already used by partysocket.

Changes

  • Build script: Changed format from "esm" to ["esm", "cjs"] and added oxfmt formatting for the new output files
  • package.json exports: Updated all three export entries (., ./provider, ./react) with proper conditional exports splitting CJS and ESM paths

Closes #346

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 15d46c4

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

This PR includes changesets to release 1 package
Name Type
y-partyserver 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

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 24, 2026

Open in StackBlitz

hono-party

npm i https://pkg.pr.new/cloudflare/partykit/hono-party@347

partyfn

npm i https://pkg.pr.new/cloudflare/partykit/partyfn@347

partyserver

npm i https://pkg.pr.new/cloudflare/partykit/partyserver@347

partysocket

npm i https://pkg.pr.new/cloudflare/partykit/partysocket@347

partysub

npm i https://pkg.pr.new/cloudflare/partykit/partysub@347

partysync

npm i https://pkg.pr.new/cloudflare/partykit/partysync@347

partytracks

npm i https://pkg.pr.new/cloudflare/partykit/partytracks@347

partywhen

npm i https://pkg.pr.new/cloudflare/partykit/partywhen@347

y-partyserver

npm i https://pkg.pr.new/cloudflare/partykit/y-partyserver@347

commit: 15d46c4

@threepointone threepointone force-pushed the y-partyserver-cjs-build branch from 17a4353 to 3f8e8b2 Compare February 24, 2026 22:38
Standardize the partyserver dependency range to ^0.3.1 across packages (partysub, partysync, partywhen, y-partyserver) and bump partysocket to ^1.1.16 in partyfn. Update package-lock.json to reflect these dependency changes.
Remove stray blank lines from CHANGELOG.md entries in packages/partyserver, packages/partysocket, and packages/y-partyserver to clean up formatting and keep bullet lists compact. No substantive content changes.
@threepointone threepointone merged commit a83f00a into main Feb 25, 2026
6 checks passed
@threepointone threepointone deleted the y-partyserver-cjs-build branch February 25, 2026 08:40
@github-actions github-actions bot mentioned this pull request Feb 25, 2026
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.

y-partyserver CJS build

1 participant