Skip to content

refactor(dom): rename @dunky.dev/dom-navigation to @dunky.dev/browser-navigation - #46

Merged
ivanbanov merged 1 commit into
mainfrom
rename-use-dom-nav
Aug 24, 2026
Merged

refactor(dom): rename @dunky.dev/dom-navigation to @dunky.dev/browser-navigation#46
ivanbanov merged 1 commit into
mainfrom
rename-use-dom-nav

Conversation

@ivanbanov

Copy link
Copy Markdown
Member

What

Renames the @dunky.dev/dom-navigation package to @dunky.dev/browser-navigation. The API is unchanged — interceptBackNavigation and its contract are untouched — and the directory stays packages/dom/utils/navigation.

Why

The util guards the browser's session history (Back, Forward, reload) and never touches the DOM, so the dom- prefix pointed at the wrong layer. browser-navigation names what it actually owns.

Changes

  • packages/dom/utils/navigation: package name, README, changelog H1 (historical entries left as-is)
  • @dunky.dev/dom-dialog: dependency and import updated, deps re-sorted alphabetically
  • Root tsconfig.json path alias and pnpm-lock.yaml regenerated
  • Changeset: minor for @dunky.dev/browser-navigation, patch for @dunky.dev/dom-dialog

@dunky.dev/dom-navigation will receive no further releases.

🤖 Generated with Claude Code

…-navigation

The util guards the browser's session history — Back, Forward, reload —
and never touches the DOM, so the old name pointed at the wrong layer.
API unchanged; the directory stays packages/dom/utils/navigation.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@ivanbanov
ivanbanov merged commit 5a21b2a into main Aug 24, 2026
6 checks passed
ivanbanov added a commit that referenced this pull request Aug 24, 2026
main's #46 renamed @dunky.dev/dom-navigation to @dunky.dev/browser-navigation
and #48 hardened the same interceptor this branch extends. Two conflicts, both
unions rather than choices:

- detachWhenIdle: the listener now outlives armed guards, parked watchers,
  in-flight self-caused pops, AND undecided releases. Dropping the parked
  check would end a Forward watch the moment its layer closed.
- The unwind loop: main removes the guard by identity (onBack may have
  released it, and a positional pop would evict the guard beneath). Parking
  now happens only when that removal actually found the guard — a layer that
  released itself inside onBack tore itself down rather than closing, so
  there is nothing to offer a reopen to. New test and SPEC clause for it.

The changeset follows the rename. Full suite (240), typecheck, lint, format,
and build pass; SPECs reconciled against the merged code.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant