⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@threepointone
Copy link
Collaborator

Fixes #254

Add a read-only connection.tags property and tag handling across the partyserver Durable Object. Introduces prepareTags() to dedupe and validate tags (always prepends the connection id, max 10 tags, non-empty strings, <=256 chars). Persist tags in the connection attachment for hibernating connections (default to [] for older attachments) and expose tags on in-memory connections via a property. Update createLazyConnection, connection attachment parsing, and both connection managers to use the helper. Includes type updates, new tests covering hibernating and in-memory tag behavior, and wrangler test config additions.

Add a read-only connection.tags property and tag handling across the partyserver Durable Object. Introduces prepareTags() to dedupe and validate tags (always prepends the connection id, max 10 tags, non-empty strings, <=256 chars). Persist tags in the connection attachment for hibernating connections (default to [] for older attachments) and expose tags on in-memory connections via a property. Update createLazyConnection, connection attachment parsing, and both connection managers to use the helper. Includes type updates, new tests covering hibernating and in-memory tag behavior, and wrangler test config additions.
@changeset-bot
Copy link

changeset-bot bot commented Feb 9, 2026

🦋 Changeset detected

Latest commit: 94d08c2

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

This PR includes changesets to release 6 packages
Name Type
partyserver Minor
hono-party Major
partysub Major
partysync Major
partywhen Patch
y-partyserver Major

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

@threepointone threepointone merged commit eef891a into main Feb 9, 2026
4 of 5 checks passed
@threepointone threepointone deleted the fix-tags branch February 9, 2026 13:36
@github-actions github-actions bot mentioned this pull request Feb 9, 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.

Tags property on a connection.

1 participant