From e68271227e587d45b8bc6870f4571d1f5a643ca7 Mon Sep 17 00:00:00 2001 From: Vivek Date: Fri, 22 May 2026 21:01:57 +0530 Subject: [PATCH] fix(changelog): regenerate cli 0.8.x entries from git history via backfill script Following the question "why are the new cli entries missing SHA / PR links?" the honest answer was: I wrote them by hand instead of letting `scripts/backfill-changelog.js` do it. The hook auto-runs that script whenever a version bump is staged, but I pre-created the files in the same commits that bumped the version, so the hook saw the files already exist and skipped regeneration. Recovery: delete the four hand-rolled files (0.8.2 .. 0.8.5) and run the backfill script fresh. Script result: ONE new file regenerated: 0.8.5.md, with proper ([#72](pr-link)) and [``](commit-link) markup, body extracted from the PR's squash-merge commit message. The intermediate 0.8.2, 0.8.3, 0.8.4 versions were ephemeral states during PR #72 development (we manually `npm publish`ed each one as we iterated), but the squash- merge of #72 onto main collapsed all intermediate bumps into a single 0.8.1 -> 0.8.5 step. From git's perspective on main, those middle versions never existed as separate bumps, so the backfill cannot recreate per-version entries for them. Result is a small "version gap" on the /changelog page: 0.8.5 sits directly above 0.8.1. The intermediate versions are still on npm (install of @webjsdev/cli@0.8.3 still works) but have no rendered release notes; their changes are covered cumulatively in 0.8.5's entry. Going forward, the standard one-bump-per-PR flow produces 1-to-1 mapping between published versions and changelog entries. --- changelog/cli/0.8.2.md | 9 --------- changelog/cli/0.8.3.md | 10 ---------- changelog/cli/0.8.4.md | 9 --------- changelog/cli/0.8.5.md | 10 +++++++--- 4 files changed, 7 insertions(+), 31 deletions(-) delete mode 100644 changelog/cli/0.8.2.md delete mode 100644 changelog/cli/0.8.3.md delete mode 100644 changelog/cli/0.8.4.md diff --git a/changelog/cli/0.8.2.md b/changelog/cli/0.8.2.md deleted file mode 100644 index 959f1e82..00000000 --- a/changelog/cli/0.8.2.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "@webjsdev/cli" -version: 0.8.2 -date: 2026-05-22T16:30:02+05:30 -commit_count: 1 ---- -## Features - -- **ship `wjs` as a bin alias in @webjsdev/cli** Adds `"wjs": "bin/webjs.js"` alongside the existing `"webjs"` entry, so `npm i -g @webjsdev/cli` now puts both commands on PATH from a single install. Same script either way; the long form matches the documentation, the short form saves keystrokes. Existing scaffold templates, `npm run dev`, and AI-agent docs that reference `webjs ` continue to work unchanged. diff --git a/changelog/cli/0.8.3.md b/changelog/cli/0.8.3.md deleted file mode 100644 index ee89771a..00000000 --- a/changelog/cli/0.8.3.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -package: "@webjsdev/cli" -version: 0.8.3 -date: 2026-05-22T17:09:16+05:30 -commit_count: 1 ---- -## Breaking - -- **revert the `wjs` bin alias introduced in 0.8.2** The bin map is back to the original single `webjs` entry. Only `webjs` is provided as a command name going forward; users who want `npx ` discoverability for the scaffolder use [`create-webjs-app`](https://www.npmjs.com/package/create-webjs-app), and users who want the CLI under an unscoped install path use the [`webjsdev`](https://www.npmjs.com/package/webjsdev) package (which also ships only `webjs` as its bin). - Migration note for anyone who installed `@webjsdev/cli@0.8.2` and used the `wjs` command: replace `wjs ` calls with `webjs `. The command name is the only change; behaviour is identical. diff --git a/changelog/cli/0.8.4.md b/changelog/cli/0.8.4.md deleted file mode 100644 index 72eab839..00000000 --- a/changelog/cli/0.8.4.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -package: "@webjsdev/cli" -version: 0.8.4 -date: 2026-05-22T17:56:26+05:30 -commit_count: 1 ---- -## Features - -- **reorder webjs create output so the run command is the last thing on screen** Previously the "Next steps:" banner printed BEFORE the AI-driven-development guidance and the for-AI-agents bullet list, which together push the actionable `cd && run dev` line off the visible terminal. After this change, the AI guidance prints first (long reading material, scrolls past), the install step runs, then the run command lands as the final output. Users land on the actionable command without scrolling. diff --git a/changelog/cli/0.8.5.md b/changelog/cli/0.8.5.md index 96f39186..c67ab1af 100644 --- a/changelog/cli/0.8.5.md +++ b/changelog/cli/0.8.5.md @@ -1,9 +1,13 @@ --- package: "@webjsdev/cli" version: 0.8.5 -date: 2026-05-22T19:02:29+05:30 +date: 2026-05-22T19:59:14+05:30 commit_count: 1 --- -## Fixes +## Features -- **scaffold's next-steps banner now points at `npx webjsdev ui ...` instead of the broken `npx webjs ui ...`** The bare `webjs` npm name is owned by an unrelated package, so `npx webjs ` would fetch THAT package rather than ours when run outside a scaffolded project. Switched both banner lines (the api-template hint and the non-api Optional line) to `npx webjsdev `, our unscoped CLI alias. Behaviour matches `@webjsdev/cli` exactly via npx's single-bin fallback, with no scope to type. +- **npx-first scaffold UX (create-webjs-app, wjs alias, auto-install)** ([#72](https://github.com/webjsdev/webjs/pull/72)) [`4f13870`](https://github.com/webjsdev/webjs/commit/4f13870) + * feat(cli): auto-install dependencies after webjs create + + `webjs create ` now runs ` install` inside the new directory + by default. Pass `--no-install` to opt out and get the prior behaviour