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
+10 -10
View File
@@ -16,9 +16,9 @@ test('converts a classic choo v7 header to v8 ESM', () => {
const { code, changed, notes } = transform(src)
assert.ok(changed)
assert.match(code, /import choo from '@choojs\/core'/)
assert.match(code, /import html from '@choojs\/html'/)
assert.match(code, /import devtools from '@choojs\/devtools'/)
assert.match(code, /import choo from '@uhhm\/buuh'/)
assert.match(code, /import html from '@uhhm\/buuh-html'/)
assert.match(code, /import devtools from '@uhhm\/buuh-devtools'/)
assert.match(code, /export default app/)
assert.deepStrictEqual(notes, [])
})
@@ -48,11 +48,11 @@ test('already-ESM sources get specifiers remapped', () => {
].join('\n')
const { code } = transform(src)
assert.match(code, /from '@choojs\/core'/)
assert.match(code, /from '@choojs\/html'\n/)
assert.match(code, /from '@choojs\/html\/raw'/)
assert.match(code, /from '@choojs\/html\/morph'/)
assert.match(code, /from '@choojs\/component'/)
assert.match(code, /from '@uhhm\/buuh'/)
assert.match(code, /from '@uhhm\/buuh-html'\n/)
assert.match(code, /from '@uhhm\/buuh-html\/raw'/)
assert.match(code, /from '@uhhm\/buuh-html\/morph'/)
assert.match(code, /from '@uhhm\/buuh-component'/)
})
test('retired packages produce notes, not rewrites', () => {
@@ -69,7 +69,7 @@ test('retired packages produce notes, not rewrites', () => {
test('dynamic import() specifiers are remapped too', () => {
const { code } = transform("const mod = await import('choo/html')")
assert.match(code, /import\('@choojs\/html'\)/)
assert.match(code, /import\('@uhhm\/buuh-html'\)/)
})
test('unconvertible CJS is reported honestly', () => {
@@ -79,7 +79,7 @@ test('unconvertible CJS is reported honestly', () => {
].join('\n')
const { code, notes } = transform(src)
assert.match(code, /require\('@choojs\/core'\)/, 'specifier remapped even inside functions')
assert.match(code, /require\('@uhhm\/buuh'\)/, 'specifier remapped even inside functions')
assert.ok(notes.some((n) => n.includes('module.exports')))
assert.ok(notes.some((n) => n.includes('require() calls remain')))
})