rebrand: buuh — a friendly public fork under the uhhm org

Packages renamed to the @uhhm scope (@uhhm/buuh, @uhhm/buuh-html,
@uhhm/buuh-component, @uhhm/buuh-devtools, @uhhm/buuh-migrate,
@uhhm/bankai). Scoping is load-bearing twice over: npm routes registries
per scope so @uhhm/* resolves against project.uhhm.no while everything
else stays on npmjs, and it means this fork never squats upstream's
names anywhere. The codemod now migrates choo v7 apps to the @uhhm
names. README rewritten with the fork framing and full upstream credit;
the choojs RFC moves to docs/upstream-rfc-draft.md, in the drawer for if
this work ever goes home. API unchanged — choo() is still choo().

Also: Gitea Actions CI + release workflows (npm publish to the uhhm
registry on tag push, CDN bundle uploaded as a generic package),
npm run bundle producing dist-cdn/buuh.js (the whole framework as one
minified ES module for import-map use), docs/publishing.md explaining
what Gitea Packages is (a real npm registry) and is not (a CDN — serve
the bundle from a static host with module-safe MIME instead), and
onload.js constructing window.MutationObserver to match its own guard
(surfaced by smoke-testing the bundle outside a full browser).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_014NgfSjHE11oFpoSnLVKLXd
This commit is contained in:
Bendik Aagaard Lynghaug
2026-09-08 19:55:20 +02:00
co-authored by Claude Fable 5
parent b957b02410
commit ce1ec9e4a9
42 changed files with 447 additions and 171 deletions
+15 -15
View File
@@ -5,28 +5,28 @@
// old specifier → new specifier
export const SPECIFIERS = {
choo: '@choojs/core',
'choo/html': '@choojs/html',
'choo/html/raw': '@choojs/html/raw',
'choo/component': '@choojs/component',
nanohtml: '@choojs/html',
'nanohtml/raw': '@choojs/html/raw',
nanomorph: '@choojs/html/morph',
nanocomponent: '@choojs/component',
'choo-devtools': '@choojs/devtools'
choo: '@uhhm/buuh',
'choo/html': '@uhhm/buuh-html',
'choo/html/raw': '@uhhm/buuh-html/raw',
'choo/component': '@uhhm/buuh-component',
nanohtml: '@uhhm/buuh-html',
'nanohtml/raw': '@uhhm/buuh-html/raw',
nanomorph: '@uhhm/buuh-html/morph',
nanocomponent: '@uhhm/buuh-component',
'choo-devtools': '@uhhm/buuh-devtools'
}
// old specifier → guidance (no direct replacement package)
export const RETIRED = {
nanobus: "built into @choojs/core — use app.emitter, or import Nanobus from '@choojs/core' internals is no longer needed",
nanorouter: 'built into @choojs/core — app.route covers it',
nanohref: 'built into @choojs/core — link handling is automatic',
nanotiming: "built into @choojs/core — import from '@choojs/core/timing' if you need it directly",
nanobus: "built into @uhhm/buuh — use app.emitter, or import Nanobus from '@uhhm/buuh' internals is no longer needed",
nanorouter: 'built into @uhhm/buuh — app.route covers it',
nanohref: 'built into @uhhm/buuh — link handling is automatic',
nanotiming: "built into @uhhm/buuh — import from '@uhhm/buuh/timing' if you need it directly",
nanoraf: 'retired — use requestAnimationFrame, or rely on choo render batching',
nanoquery: 'retired — state.query is built in; use URLSearchParams directly elsewhere',
nanoassert: 'retired — use plain checks or node:assert',
nanolru: 'retired — the component cache is built into @choojs/core',
'choo-lazy-route': "replaced by lazy() from '@choojs/core': app.route('/x', lazy(() => import('./x.js')))",
nanolru: 'retired — the component cache is built into @uhhm/buuh',
'choo-lazy-route': "replaced by lazy() from '@uhhm/buuh': app.route('/x', lazy(() => import('./x.js')))",
'choo-service-worker': 'kept as a concept; bankai v10 will inject the asset manifest — check docs before migrating this one'
}