Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,15 @@ Invariants that must never break (see ARCHITECTURE.md#invariants):
1. A mutation's data effects and the client's `last_mutation_id` advance commit in the same SQLite transaction.
2. Permanent app errors still advance `last_mutation_id`.
3. All DO WebSocket handlers stay synchronous — no `await` between reading state and sending frames.

## Releasing

No release workflow, changesets, or tags: bump `version` in the package's package.json, commit, then from the repo root:

```bash
npm login # only if `npm whoami` fails; the token in ~/.npmrc expires
pnpm build
pnpm -r --filter './packages/*' publish --access public --no-git-checks
```

Recursive publish skips packages whose version is already on the registry, so it is safe to run for the whole workspace after bumping one package. `--no-git-checks` is required because the untracked `packages/yjs/reference/` clones dirty the tree. `prepack` only syncs docs, so run `pnpm build` first; `publishConfig` swaps exports to `dist/` at pack time. Then `pnpm --filter @cf-sync/demo deploy` if the demo should pick the release up. Consumers on pnpm hold new versions for the release-age window unless they exclude `@cf-sync/*` (corates does).
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@cf-sync/protocol": "workspace:*",
"@cf-sync/server": "workspace:*",
"@cf-sync/yjs": "workspace:*",
"@tanstack/react-db": "^0.3.7",
"@tanstack/react-db": "^0.3.8",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"ulidx": "^2.4.0",
Expand Down
8 changes: 4 additions & 4 deletions packages/client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cf-sync/client",
"version": "0.3.0",
"version": "0.3.1",
"description": "Browser client for cf-sync: SyncClient (optimistic mutations, offline outbox, IndexedDB mirror, presence) and a TanStack DB collection adapter, with React hooks",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -54,8 +54,8 @@
"@cf-sync/protocol": "workspace:^"
},
"peerDependencies": {
"@tanstack/db": "^0.8.0",
"@tanstack/react-db": "^0.3.0",
"@tanstack/db": "^0.8.0 || ^0.9.0",
"@tanstack/react-db": "^0.3.0 || ^0.4.0",
"react": ">=18"
},
"peerDependenciesMeta": {
Expand All @@ -68,7 +68,7 @@
},
"devDependencies": {
"@cf-sync/yjs": "workspace:*",
"@tanstack/db": "^0.8.7",
"@tanstack/db": "^0.9.0",
"@types/react": "^19.0.0",
"@types/react-dom": "^19.2.3",
"fake-indexeddb": "^6.2.5",
Expand Down
34 changes: 17 additions & 17 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading