Chore/prune dead examples - #521
Merged
Merged
Conversation
Remove examples whose underlying service or dependency no longer exists: - deta: Deta Space shut down 2024-10-17 and deta.sh data was deleted in May 2023; the `deta` npm package is marked deprecated. - faunadb: Fauna ended the service on 2025-05-30 and fauna.com no longer resolves. - markdown-blog: @tinyhttp/markdown is 404 on the npm registry and its GitHub repo is gone, so the example cannot be installed. - turbo-http: unmaintained since 2022, and the example has to disable all tinyhttp extensions to work, so it demonstrates very little. These double as `tinyhttp new <name>` CLI templates, so the first three were broken scaffold commands rather than merely stale docs. Also refresh two stale examples: - ws: bump tinyws to ^1.0.0 and adapt to its new API, which replaces `app.use(tinyws())` with `tinyws(app, server)` after `app.listen()`, and scope upgrades to /chat via the new `paths` option. Add the `ws` peer dependency, without which the example was never installable. - vue-ssr: drop vue-server-renderer, which is Vue 2's renderer and unused since the code imports Vue 3's built-in vue/server-renderer. Sync the CDN importmap pin with the vue dependency and drop the es-module-shims tag, as import maps have been Baseline widely available since Safari 16.4 in March 2023. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Verified that all packages build and the test suite passes. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
The /chat handler only ever responded when `req.ws` was set, so an ordinary HTTP GET to /chat hung forever with no response. Mirror the pattern from tinyws' own README and reply over HTTP when the request is not a WebSocket upgrade. Verified against tinyws 1.0.0 and @tinyhttp/app 3.0.11 installed the way `tinyhttp new ws` resolves them: two clients connect and broadcast between each other, the `paths` option refuses upgrades outside /chat, and GET /chat now returns 200 instead of hanging. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.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.
No description provided.