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
+2 -2
View File
@@ -2,8 +2,8 @@
// Native DOM components: render once, morph on update, lifecycle hooks via
// onload. In v8 this class is also the intended island/hydration boundary.
import morph from '@choojs/html/morph'
import nanotiming from '@choojs/core/timing'
import morph from '@uhhm/buuh-html/morph'
import nanotiming from '@uhhm/buuh/timing'
import onload, { KEY_ATTR } from './onload.js'
function makeID () {
+1 -1
View File
@@ -8,7 +8,7 @@ const KEY_ATTR = 'data-' + KEY_ID
let INDEX = 0
if (typeof window !== 'undefined' && window.MutationObserver) {
const observer = new MutationObserver(function (mutations) {
const observer = new window.MutationObserver(function (mutations) {
if (Object.keys(watch).length < 1) return
for (let i = 0; i < mutations.length; i++) {
if (mutations[i].attributeName === KEY_ATTR) {
+4 -4
View File
@@ -1,5 +1,5 @@
{
"name": "@choojs/component",
"name": "@uhhm/buuh-component",
"version": "8.0.0-dev",
"description": "Native DOM components with lifecycle hooks — the choo island boundary",
"type": "module",
@@ -15,10 +15,10 @@
"node": ">=24"
},
"dependencies": {
"@choojs/core": "*",
"@choojs/html": "*"
"@uhhm/buuh": "*",
"@uhhm/buuh-html": "*"
},
"repository": "choojs/choo",
"repository": "https://project.uhhm.no/uhhm/buuh",
"keywords": [
"component",
"dom",
+3 -3
View File
@@ -5,7 +5,7 @@ import { test, before } from 'node:test'
import assert from 'node:assert'
import { Window } from 'happy-dom'
import serverHtml from '@choojs/html/server'
import serverHtml from '@uhhm/buuh-html/server'
test('renders via createElement on the server (no window)', async () => {
const { default: Component } = await import('../index.js')
@@ -29,8 +29,8 @@ test('browser: render, mount, update morphs in place, proxy stands in', async ()
// module registry caches per specifier; component/index.js re-evaluates
// _hasWindow per instance, so importing after globals are set is enough
const { default: Component } = await import('../index.js?browser')
const { default: html } = await import('@choojs/html/browser')
const { default: morph } = await import('@choojs/html/morph')
const { default: html } = await import('@uhhm/buuh-html/browser')
const { default: morph } = await import('@uhhm/buuh-html/morph')
class Counter extends Component {
createElement (n) {