Update Quickstart for Javascript to v5#241
Merged
Aaron LaBeau (biozal) merged 12 commits intomainfrom May 5, 2026
Merged
Conversation
…script-2 # Conflicts: # javascript-tui/package-lock.json # javascript-web/package-lock.json
Contributor
There was a problem hiding this comment.
Pull request overview
Updates the JavaScript web and TUI quickstarts to use Ditto SDK v5.0.0 (and Node.js 20+), including API changes around DittoConfig/Ditto.open(...) and the v5 sync APIs.
Changes:
- Migrate web app initialization/auth/sync code to Ditto v5, and extract
ErrorMessageinto its own component. - Migrate the TUI app + integration test to Ditto v5 sync APIs and adjust runtime behavior (Ink exit handling, transport config comments).
- Update docs and package manifests for v5.0.0 + Node.js >= 20; remove generated
App.css.
Reviewed changes
Copilot reviewed 11 out of 13 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| javascript-web/src/components/TaskList.tsx | Minor React component tweaks (memo displayName) and Tailwind class fix. |
| javascript-web/src/components/ErrorMessage.tsx | New reusable error UI component. |
| javascript-web/src/App.tsx | Ditto v5 init/auth/sync migration and lifecycle management changes. |
| javascript-web/src/App.css | Removes large generated Tailwind output from repo. |
| javascript-web/README.md | Updates web quickstart docs for v5 and Node 20+. |
| javascript-web/package.json | Pins @dittolive/ditto to 5.0.0. |
| javascript-tui/tests/integration_test.js | Updates integration test to v5 sync APIs and improves Ditto close handling. |
| javascript-tui/source/cli.js | Updates TUI bootstrap to v5 and changes transport config + Ink exit handling. |
| javascript-tui/source/app.js | Updates TUI app logic for v5 sync APIs and simplifies subscription/observer setup. |
| javascript-tui/README.md | Updates TUI docs (v5, Node 20, usage, keyboard controls, architecture). |
| javascript-tui/package.json | Updates engines/deps for Node 20 and Ditto v5; dev tooling adjustments. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Nick Robinson (nickrobinson)
approved these changes
May 5, 2026
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
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.
Migrates both javascript-web and javascript-tui quickstart apps from Ditto SDK 4.14.3 to 5.0.0, adopting the new initialization, authentication, and sync APIs.
Summary
Changes
javascript-web
javascript-tui
Breaking Changes
Test Plan