From a08941798210e41fdb0bcf704f3e2e09e3cae68b Mon Sep 17 00:00:00 2001 From: t Date: Wed, 11 Nov 2026 22:50:11 +0530 Subject: [PATCH] chore: release packages for webjs stop and one-call source lookups Ships #1695: `webjs stop`, `webjs status` from any subdirectory, the `webjs source` examples and file-convention guides, the clearer CSRF refusal, cookies().delete options, submitForm's html option and the accordion cursor. Patch bumps throughout (core 0.9.1, server 0.10.1, cli 0.12.1, mcp 0.1.20, ui 0.5.1); nothing released breaks. The in-repo ranges move with them so the CLI resolves the mcp and server that carry its new lookups and records. --- changelog/cli/0.12.1.md | 19 +++++++++++++++ changelog/core/0.9.1.md | 10 ++++++++ changelog/mcp/0.1.20.md | 11 +++++++++ changelog/server/0.10.1.md | 18 ++++++++++++++ changelog/ui/0.5.1.md | 10 ++++++++ examples/blog/package.json | 6 ++--- gallery/package.json | 8 +++---- package-lock.json | 46 ++++++++++++++++++------------------ packages/cli/package.json | 8 +++---- packages/core/package.json | 2 +- packages/mcp/package.json | 6 ++--- packages/server/package.json | 6 ++--- packages/ui/package.json | 4 ++-- website/package.json | 6 ++--- 14 files changed, 114 insertions(+), 46 deletions(-) create mode 100644 changelog/cli/0.12.1.md create mode 100644 changelog/core/0.9.1.md create mode 100644 changelog/mcp/0.1.20.md create mode 100644 changelog/server/0.10.1.md create mode 100644 changelog/ui/0.5.1.md diff --git a/changelog/cli/0.12.1.md b/changelog/cli/0.12.1.md new file mode 100644 index 000000000..db7111a6d --- /dev/null +++ b/changelog/cli/0.12.1.md @@ -0,0 +1,19 @@ +--- +package: "@webjsdev/cli" +version: 0.12.1 +date: 2026-11-11T17:20:11.900Z +commit_count: 1 +--- +## Features + +- **`webjs stop`** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * Stops the app's running `webjs dev` (through its supervisor, so the server and the `dev.parallel` tasks go together) or `webjs start`, from anywhere inside the app. It finds the server through a record under `.webjs/` that follows the port actually bound (`--port 0`, a `.env` `PORT` edit), is never overwritten by a second server that fails to bind, is taken over by a second server once the first exits, and is checked against the process start time so a reused pid is never signalled. + * `webjs status` resolves the app root from a subdirectory too. + * The scaffold's `AGENTS.md` says in four lines what each shipped hook does, and the scaffold notes that Drizzle 1.0's relational queries take objects and that SQLite transactions take a synchronous callback. + +## Fixes + +- **`webjs dev --no-hot` keeps its `dev.parallel` tasks running** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * They were killed right after the server bound; they now live until the process exits. +- **`webjs dev` and `webjs start` refuse inside a route folder named `app`** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * Run from `/app` in an app with an `app/app` route, they served the route folder as the app. They now name the app root instead. diff --git a/changelog/core/0.9.1.md b/changelog/core/0.9.1.md new file mode 100644 index 000000000..9bb568aeb --- /dev/null +++ b/changelog/core/0.9.1.md @@ -0,0 +1,10 @@ +--- +package: "@webjsdev/core" +version: 0.9.1 +date: 2026-11-11T17:20:11.709Z +commit_count: 1 +--- +## Features + +- **Working examples on the exports agents look up** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * `connectWS`, `asset`, `cspNonce`, `fixture` and `ssrFixture` carry an `@example` in their type declarations, so `npx webjs source ` answers how to use each in one call. The `optimistic` declaration's example (a degrade-first list) now prints with its signature too. diff --git a/changelog/mcp/0.1.20.md b/changelog/mcp/0.1.20.md new file mode 100644 index 000000000..3a61cc3e3 --- /dev/null +++ b/changelog/mcp/0.1.20.md @@ -0,0 +1,11 @@ +--- +package: "@webjsdev/mcp" +version: 0.1.20 +date: 2026-11-11T17:20:11.800Z +commit_count: 1 +--- +## Features + +- **Lookups answer file-convention and pattern questions in one call** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * The `source` tool (and `npx webjs source`) resolves a file-convention name such as `not-found`, `middleware.ts`, `route.ts` or `loading` to a short routing guide, and `uploads`, `authentication`, `testing`, `data-flow` and others to their own guides. Real exports (`notFound`, `redirect`, `route`) still return their declaration, and `route` / `middleware` point at the routing guide. + * Guides are returned only for a lookup by name; nothing lists them up front, in the catalogue or the tool description, so an agent does not read them before it needs them. diff --git a/changelog/server/0.10.1.md b/changelog/server/0.10.1.md new file mode 100644 index 000000000..60b7bab93 --- /dev/null +++ b/changelog/server/0.10.1.md @@ -0,0 +1,18 @@ +--- +package: "@webjsdev/server" +version: 0.10.1 +date: 2026-11-11T17:20:11.761Z +commit_count: 1 +--- +## Features + +- **`submitForm(..., { html })` and working examples on every WebJs-specific export** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * `submitForm` takes the HTML of a page the test fetched earlier, so a test can submit a stale form (a vote on a poll closed after the page loaded). The "no form found" error names the option. + * `rateLimit`, `cors`, `clientIp`, `cache`, `revalidateTag`, the file-store helpers, `signedUrl` / `verifySignedUrl`, `broadcast`, the stream helpers, `json`, `readBody`, `route`, `sitemap`, `robots`, `validateEnv`, `Credentials` and the test helpers each carry an `@example` showing the file it lives in, which `npx webjs source ` prints. The `createAuth` example imports `AuthError` from `@webjsdev/server`. + +## Fixes + +- **`cookies().delete(name, { path, domain })` clears the cookie on that path** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * The options were ignored, so the cookie was only ever cleared on `/`. A `maxAge` or `expires` passed in the options no longer keeps the cookie alive. +- **A CSRF 403 names its cause** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * Form and RPC refusals say why (for example an `Origin` that does not match the request's host) and how to fix it, echoing only the cleaned-up origin. The check itself is unchanged. diff --git a/changelog/ui/0.5.1.md b/changelog/ui/0.5.1.md new file mode 100644 index 000000000..cd560e655 --- /dev/null +++ b/changelog/ui/0.5.1.md @@ -0,0 +1,10 @@ +--- +package: "@webjsdev/ui" +version: 0.5.1 +date: 2026-11-11T17:20:11.780Z +commit_count: 1 +--- +## Fixes + +- **Accordion triggers show the default cursor** ([#1695](https://github.com/webjsdev/webjs/pull/1695)) [`7d949d22f`](https://github.com/webjsdev/webjs/commit/7d949d22f) + * Hovering an accordion title showed a text cursor in the eight ported styles. The trigger now takes `cursor-default`, as shadcn/ui's does; new-york keeps its pointer. diff --git a/examples/blog/package.json b/examples/blog/package.json index 220375c07..120a1a68b 100644 --- a/examples/blog/package.json +++ b/examples/blog/package.json @@ -59,9 +59,9 @@ } }, "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0", + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1", "dayjs": "^1.11.21", "drizzle-orm": "1.0.0-rc.5" }, diff --git a/gallery/package.json b/gallery/package.json index 0a77badde..8be3b7810 100644 --- a/gallery/package.json +++ b/gallery/package.json @@ -61,10 +61,10 @@ } }, "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0", + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1", "drizzle-orm": "1.0.0-rc.5" }, "devDependencies": { diff --git a/package-lock.json b/package-lock.json index f5e205d9a..b0600e72b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -36,9 +36,9 @@ "name": "@webjsdev/example-blog", "version": "0.1.0", "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0", + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1", "dayjs": "^1.11.21", "drizzle-orm": "1.0.0-rc.5" }, @@ -73,10 +73,10 @@ "name": "@webjsdev/gallery", "version": "0.1.0", "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0", + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1", "drizzle-orm": "1.0.0-rc.5" }, "devDependencies": { @@ -6983,12 +6983,12 @@ }, "packages/cli": { "name": "@webjsdev/cli", - "version": "0.12.0", + "version": "0.12.1", "license": "MIT", "dependencies": { - "@webjsdev/mcp": "^0.1.19", - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0" + "@webjsdev/mcp": "^0.1.20", + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1" }, "bin": { "webjs": "bin/webjs.js" @@ -6999,7 +6999,7 @@ }, "packages/core": { "name": "@webjsdev/core", - "version": "0.9.0", + "version": "0.9.1", "license": "MIT", "devDependencies": { "esbuild": "^0.25.0" @@ -7033,11 +7033,11 @@ }, "packages/mcp": { "name": "@webjsdev/mcp", - "version": "0.1.19", + "version": "0.1.20", "license": "MIT", "dependencies": { - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0" + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1" }, "bin": { "webjs-mcp": "bin/webjs-mcp.js" @@ -7048,13 +7048,13 @@ }, "packages/server": { "name": "@webjsdev/server", - "version": "0.10.0", + "version": "0.10.1", "license": "MIT", "dependencies": { "ws": "^8.20.0" }, "devDependencies": { - "@webjsdev/core": "^0.9.0" + "@webjsdev/core": "^0.9.1" }, "engines": { "node": ">=24.0.0" @@ -7063,7 +7063,7 @@ "amaro": "^1.1.10" }, "peerDependencies": { - "@webjsdev/core": "^0.9.0" + "@webjsdev/core": "^0.9.1" } }, "packages/server/node_modules/ws": { @@ -7089,10 +7089,10 @@ }, "packages/ui": { "name": "@webjsdev/ui", - "version": "0.5.0", + "version": "0.5.1", "license": "MIT", "dependencies": { - "@webjsdev/core": "^0.9.0", + "@webjsdev/core": "^0.9.1", "commander": "^14.0.0", "kleur": "^4.1.5", "prompts": "^2.4.2", @@ -7136,9 +7136,9 @@ "name": "@webjsdev/website", "version": "0.1.1", "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0" + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1" }, "devDependencies": { "@types/node": "^24.0.0", diff --git a/packages/cli/package.json b/packages/cli/package.json index 08a400c1e..aaed5007f 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/cli", - "version": "0.12.0", + "version": "0.12.1", "type": "module", "description": "The CLI for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Runs the dev and production servers, scaffolds apps, validates conventions, and drives the database. Node 24+ or Bun.", "bin": { @@ -13,9 +13,9 @@ "README.md" ], "dependencies": { - "@webjsdev/mcp": "^0.1.19", - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0" + "@webjsdev/mcp": "^0.1.20", + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1" }, "publishConfig": { "access": "public" diff --git a/packages/core/package.json b/packages/core/package.json index 01e47054d..5b9f090e2 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/core", - "version": "0.9.0", + "version": "0.9.1", "type": "module", "description": "The runtime for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Ships the html and css template tags, the WebComponent base class, signals, directives, and the isomorphic renderers.", "types": "./index.d.ts", diff --git a/packages/mcp/package.json b/packages/mcp/package.json index 3502b8ac7..843a5b9a9 100644 --- a/packages/mcp/package.json +++ b/packages/mcp/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/mcp", - "version": "0.1.19", + "version": "0.1.20", "type": "module", "description": "The Model Context Protocol server for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Gives AI coding agents the WebJs brief, live app introspection over routes, actions, components, and convention checks, and the framework source.", "bin": { @@ -24,8 +24,8 @@ "README.md" ], "dependencies": { - "@webjsdev/server": "^0.10.0", - "@webjsdev/ui": "^0.5.0" + "@webjsdev/server": "^0.10.1", + "@webjsdev/ui": "^0.5.1" }, "publishConfig": { "access": "public" diff --git a/packages/server/package.json b/packages/server/package.json index 5e2b988b5..ecdd68adc 100644 --- a/packages/server/package.json +++ b/packages/server/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/server", - "version": "0.10.0", + "version": "0.10.1", "type": "module", "description": "The server for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Provides the file-based router, SSR, server actions, route handlers, middleware, and live reload on Node 24+ or Bun.", "main": "index.js", @@ -55,9 +55,9 @@ "amaro": "^1.1.10" }, "peerDependencies": { - "@webjsdev/core": "^0.9.0" + "@webjsdev/core": "^0.9.1" }, "devDependencies": { - "@webjsdev/core": "^0.9.0" + "@webjsdev/core": "^0.9.1" } } diff --git a/packages/ui/package.json b/packages/ui/package.json index 3f5c19cf6..d1b9c5b44 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -1,6 +1,6 @@ { "name": "@webjsdev/ui", - "version": "0.5.0", + "version": "0.5.1", "type": "module", "description": "The AI-first component library for WebJs, a full-stack JavaScript framework built on web components with server-side rendering and no build step. Class-helper functions for visuals, custom elements only where state matters, source-copied into your repo so you own it.", "bin": { @@ -26,7 +26,7 @@ "test:e2e:a11y-tree": "node test/e2e/a11y-tree.e2e.mjs" }, "dependencies": { - "@webjsdev/core": "^0.9.0", + "@webjsdev/core": "^0.9.1", "commander": "^14.0.0", "kleur": "^4.1.5", "prompts": "^2.4.2", diff --git a/website/package.json b/website/package.json index c7dbf9b70..211910a8b 100644 --- a/website/package.json +++ b/website/package.json @@ -120,9 +120,9 @@ } }, "dependencies": { - "@webjsdev/cli": "^0.12.0", - "@webjsdev/core": "^0.9.0", - "@webjsdev/server": "^0.10.0" + "@webjsdev/cli": "^0.12.1", + "@webjsdev/core": "^0.9.1", + "@webjsdev/server": "^0.10.1" }, "devDependencies": { "@types/node": "^24.0.0",