Skip to content

refactor: remove API suffix from module files#233

Draft
jderochervlk wants to merge 4 commits intomainfrom
vlk/remove-api-from-module-names
Draft

refactor: remove API suffix from module files#233
jderochervlk wants to merge 4 commits intomainfrom
vlk/remove-api-from-module-names

Conversation

@jderochervlk
Copy link
Copy Markdown
Collaborator

@jderochervlk jderochervlk commented Apr 17, 2026

Summary

This refactor removes the API suffix from generated WebAPI module names so the public surface matches the underlying API names more directly.

Examples:

  • WebAPI.DOMAPI -> WebAPI.DOM
  • WebAPI.CanvasAPI -> WebAPI.Canvas
  • WebAPI.FetchAPI -> WebAPI.Fetch

This also changes the publish tag to pre-alpha to avoid interrupting anyone using the experimental tag until we've resolved the changes we want to make during the retreat. Doc publishing is also disabled until we can have the alpha ready.

What changed

  • Renamed generated top-level modules and nested module directories across src/
  • Updated generated open statements and cross-module references to use the new names
  • Updated tests and documentation to reflect the renamed modules
  • Adjusted the generator emitter so module names and generated opens are normalized automatically instead of keeping the API suffix

Notes

This is a breaking refactor for consumers that import or reference the old *API module names. Existing code will need to update imports and type/module references accordingly.

@jderochervlk jderochervlk marked this pull request as ready for review April 17, 2026 11:18
@jderochervlk jderochervlk requested review from brnrdog and tsnobip April 17, 2026 11:18
@jderochervlk jderochervlk marked this pull request as draft April 17, 2026 12:02
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.

2 participants