Update deps#374
Merged
Merged
Conversation
Add changesets for partysocket, partysync, and partytracks (type/naming/compat fixes). Bump fixture dependencies (react, react-dom, nanoid, cobe, hono, tiptap, tldraw, valibot, etc.), and update fixture dev tooling (include "vite/client" in tsconfig types and remove vite-plugin-devtools-json from vite configs). Update globe demo to work with cobe v2 (drive rendering via requestAnimationFrame instead of onRender, tidy refs), remove stale socket-io fixture package files, and add test scaffolding (env.d.ts/setup.ts/vitest configs) for partyserver, partywhen, and y-partyserver. Also apply related package-level changes (partysync agent rename and partytracks workers-types compatibility fixes) and update lockfile/dev dependency bumps.
🦋 Changeset detectedLatest commit: 6e6125f The changes in this PR will be included in the next version bump. This PR includes changesets to release 3 packages
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 |
hono-party
partyfn
partyserver
partysocket
partysub
partysync
partytracks
partywhen
y-partyserver
commit: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Dependency + test-infrastructure upgrade across the monorepo, mirroring the migration pattern from cloudflare/agents#1138.
Package-level changes (with changesets)
Messagetype toArrayBufferView<ArrayBuffer>so it matches DOMWebSocket.send()overloads under newer lib typings. Runtime behaviour unchanged.@cloudflare/workers-types:typeof fetchin internal signatures (merges withFetcherinterface).fetcheroption onfromFetchtofetchImpl(avoids colliding withRequestInit.fetcher?: Fetcher | null).Response#json()results (nowunknown) before destructuring.Agent#connect(namespace, room)→Agent#connectTo(namespace, room)to avoid colliding withDurableObject.connect?(socket: Socket)newly added to@cloudflare/workers-types.Test infrastructure migration (Vitest 4 +
@cloudflare/vitest-pool-workers0.14)Applies to
partyserver,y-partyserver,partysub,partywhen:defineWorkersConfig→cloudflareTestVite plugin with absolute paths viapath.join(import.meta.dirname, ...).ProvidedEnvmodule augmentation → centralizedCloudflare.Envnamespace augmentation in per-packageenv.d.ts.envmoved fromcloudflare:testtocloudflare:workers.tsconfig.jsontypes path:@cloudflare/vitest-pool-workers→@cloudflare/vitest-pool-workers/types.setup.tsfiles withbeforeAllwarmup (exports.default.fetch("http://warmup/")) to avoid cold-start timeouts.beforeEachtask cleanup (sinceisolatedStorage/singleWorkerpool options are gone; DO state now persists across tests).resolve.aliasforluxonto its CJS build (Vite's module runner was handing cron-parser'srequire("luxon")the ESM namespace withDateTimeundefined).Fixtures
cobev2 —onRendercallback removed in favour of arequestAnimationFrameloop callingglobe.update({ phi, markers }); RAF handle captured for cleanup.fixtures/socket-io-*package files.Test plan
npm run check:type— all 41 tsconfig projects pass.npm run check:test— 393/393 tests pass across 17 files in 6 packages.npm run check:lint— 0 warnings, 0 errors.npm run check:format— all 348 files properly formatted.defineWorkersConfig,ProvidedEnv,isolatedStorage,singleWorker,LegacyRef,onRender).Made with Cursor