Skip to content

Chore/prune dead examples - #521

Merged
v1rtl merged 3 commits into
masterfrom
chore/prune-dead-examples
Aug 10, 2026
Merged

Chore/prune dead examples#521
v1rtl merged 3 commits into
masterfrom
chore/prune-dead-examples

Conversation

@v1rtl

@v1rtl v1rtl commented Aug 10, 2026

Copy link
Copy Markdown
Member

No description provided.

v1rtl and others added 2 commits August 10, 2026 16:36
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>
@socket-security

socket-security Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Addedtinyws@​1.0.0771009386100
Addedtypescript@​7.0.29910089100100
Addedws@​8.21.39910010095100

View full report

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>
@v1rtl
v1rtl merged commit f8227d0 into master Aug 10, 2026
12 checks passed
@v1rtl
v1rtl deleted the chore/prune-dead-examples branch August 10, 2026 13:47
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.

1 participant