Skip to content

Shared groundwork for package simplification #239

Closed

Description

@jderochervlk

Parent: #237

Summary

Land the repo-wide groundwork required before any parallel slice work can start.

Scope

  • rename every root src/*API.res type-holder file to src/*Types.res
  • rewrite source and test references from root *API modules to root *Types modules
  • establish the concrete-module pattern in the cross-cutting whole-object modules
  • add type t = ... = { ... } and current accessors in Window and Navigator
  • verify that the groundwork does not add any new include directives

Files

  • every root src/*API.res file listed in #237
  • src/**/*.res
  • tests/**/*.res
  • src/DOMAPI/Window.res
  • src/DOMAPI/Navigator.res

Checklist

  • Capture the pre-rename surface with find src -maxdepth 1 -name '*API.res' | sort
  • Rename every root type-holder file from *API to *Types
  • Rewrite source and test references to the renamed root modules
  • Add type t and current in Window and Navigator
  • Verify that the diff adds no new include directives
  • Run npm run build

Acceptance Criteria

  • no root src/*API.res type-holder files remain
  • root *Types files compile and replace the previous root *API modules
  • Window.current and Navigator.current exist
  • the groundwork diff introduces no new include directives
  • npm run build passes

Notes

This issue must land before the parallel slice issues start.

Activity

  1. self-assigned this
    on Apr 18, 2026
  2. jderochervlk commented on Apr 18, 2026

    @jderochervlk
    CollaboratorAuthor

    Codex is starting work on this issue.

    Plan of attack:

    • create an isolated branch/worktree for the shared groundwork
    • rename root *API type-holder modules to *Types
    • update repo-wide references
    • add the initial Window.current / Navigator.current concrete-module surface
    • verify no new include directives are introduced
    • run npm run build

    I’ll report back here if I hit a blocker or if the task scope needs adjustment.

  3. jderochervlk commented on Apr 18, 2026

    @jderochervlk
    CollaboratorAuthor

    Codex completed the shared-groundwork pass on local branch issue-239-shared-groundwork.

    Local commit: 744664f (refactor: rename root API modules to Types)

    Completed in this pass:

    • renamed all root src/*API.res type-holder modules to src/*Types.res
    • rewrote repo references in src and tests to the renamed root modules
    • added type t and current exports to DOMAPI/Window.res and DOMAPI/Navigator.res
    • verified no new include directives were introduced

    Verification:

    • npm run build
    • npm test

    The remaining simplification work stays in the follow-up slice issues and final integration issue.

  4. jderochervlk commented on Apr 18, 2026

    @jderochervlk
    CollaboratorAuthor

    Merged: #244

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions