Repository navigation
Closed
Description
Summary
Pre-alpha breaking cleanup to simplify the package structure and make the public surface more consistent.
This issue tracks the refactor to:
- rename root
*APItype-holder modules to*Types - keep the existing folder structure for concrete modules
- export the primary concrete type as
t - selectively re-export additional public helper types from the concrete module that uses them
- remove unrelated
openusage - remove trivial primitive aliases like
string,bool,unit, and low-value callback aliases where they do not add meaning - remove
windowandnavigatorfromGlobalwithout deletingGlobal - shift access toward owner modules such as
Window,Navigator,History,Storage,Performance, and similar modules - avoid introducing any new
includedirectives as part of the simplification
Out Of Scope
- contributor docs
- code-generation conventions
- deleting
Global - flattening the folder structure
Execution Order
- Shared groundwork for package simplification #239 must land first
- Simplify DOM, event, and observer module surfaces #238, Simplify fetch, file, canvas, URL, and socket module surfaces #240, Move runtime capability access away from Global window and navigator #241, and Simplify media and device module surfaces #243 can run in parallel after Shared groundwork for package simplification #239
- Final integration for package simplification #242 is the final integration pass
Linked Issues
- Shared groundwork for package simplification #239 Shared groundwork for package simplification
- Simplify DOM, event, and observer module surfaces #238 Simplify DOM, event, and observer module surfaces
- Simplify fetch, file, canvas, URL, and socket module surfaces #240 Simplify fetch, file, canvas, URL, and socket module surfaces
- Move runtime capability access away from Global window and navigator #241 Move runtime capability access away from Global window and navigator
- Simplify media and device module surfaces #243 Simplify media and device module surfaces
- Final integration for package simplification #242 Final integration for package simplification
Acceptance Criteria
- No root
src/*API.restype-holder files remain; they are replaced bysrc/*Types.res. - The existing folder structure remains in place.
- Each concrete module exports its main type as
t. - Concrete modules selectively re-export secondary public types only where justified.
- Unrelated
openusage is removed. - No new
includedirectives are introduced by this refactor. - Trivial primitive aliases are removed instead of being renamed or moved.
Global.windowandGlobal.navigatorare removed.- Source and tests stop depending on
Global.windowandGlobal.navigator. - The package passes
npm run buildandnpm testafter integration.
Metadata
Metadata
Assignees
Labels
No labels
Activity
refactor: complete final integration cleanup
jderochervlk commentedon Nov 8, 2026
Rechecked after the alpha PRs merged, at main
844c32af. All six linked child issues are closed as completed, so their checklist entries are now up to date.Keeping this parent open because its requirement that each concrete module export its main type as
tis not yet met. For example, Path2D returnsCanvasTypes.path2Dwithout exposingPath2D.t, and FontFace similarly lacksFontFace.t. DOMMatrix, DOMMatrixReadOnly and VideoFrame have the same gap.The child issue states alone are not enough to close this parent. The remaining public-type aliases need to be completed, or the acceptance criterion needs an explicit maintainer revision. This remains outside the required alpha scope in #382.