Skip to content

Commit 288762d

Browse files
chore: version packages [skip ci]
1 parent 76e1e50 commit 288762d

4 files changed

Lines changed: 29 additions & 28 deletions

File tree

.changeset/dev-server-robustness.md

Lines changed: 0 additions & 26 deletions
This file was deleted.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/core/CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,32 @@
11
# @aws-blocks/core
22

3+
## 0.1.11
4+
5+
### Patch Changes
6+
7+
- 76e1e50: fix(core): robust dev server — startup port reclaim, singleton guard, and :3000 EADDRINUSE handling
8+
9+
Hardens the local dev server against the port-contention failure modes that
10+
survived PR #80 (which fixed only single-supervisor frontend self-restart):
11+
12+
- **Startup reclaim** — a fresh `server.ts` now frees a stale `:3000`/`:3100`
13+
listener left by a crashed or `SIGKILL`'d predecessor before it binds the
14+
front door / spawns the `--strictPort` frontend, instead of relying on the
15+
previous process's `cleanup()` finishing within tsx-watch's ~5s window.
16+
- **Singleton guard** — a per-port pidfile stops a second `npm run dev` from
17+
spawning a competing supervisor that fights the first over `:3000`/`:3100`; it
18+
exits cleanly with a clear message. A stable-parent (`tsx watch`) carve-out
19+
keeps hot reload working, and a dead-owner pidfile never blocks startup.
20+
- **`:3000` EADDRINUSE robustness** — the backend front door now emits a real
21+
console error (not only telemetry), reclaims the stale owner and retries the
22+
bind (bounded), and exits non-zero with a clear message on unrecoverable
23+
failure, so a contended `:3000` never silently fails to serve.
24+
25+
Reuses the existing `waitForPortFree` / process-group-kill primitives (plus an
26+
`lsof`/`netstat` listener probe mirroring the `cleanup` script) — no new
27+
teardown mechanism. `--strictPort` is retained for local dev, made safe by the
28+
startup reclaim guaranteeing `:3100` is free first.
29+
330
## 0.1.10
431

532
### Patch Changes

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@aws-blocks/core",
3-
"version": "0.1.10",
3+
"version": "0.1.11",
44
"author": "Amazon Web Services",
55
"license": "Apache-2.0",
66
"type": "module",

0 commit comments

Comments
 (0)