Skip to content

Organize format and capability subpaths and documentation - #4612

Open
ibgreen wants to merge 2 commits into
masterfrom
codex/module-subpath-organization
Open

ibgreen wants to merge 2 commits into
masterfrom
codex/module-subpath-organization

Conversation

@ibgreen

@ibgreen ibgreen commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Goals

Make format and capability subpaths the normal way to discover and import domain APIs, and organize the documentation sidebar around those public entrypoints.

Changes

  • Add 55 format and capability entrypoints across ArcGIS, compression, crypto, graphs, OGC, splats, SQL, tiles, tiles-3d, and traces.
  • Complete existing documents, images, scene, and scientific entrypoints so every public package-root declaration has a subpath destination.
  • Group loaders, writers, sources, options, and related types by format or capability. Keep core's general loading API at the package root.
  • Migrate named imports throughout source, applications, examples, tests, and documentation to the canonical entrypoints. Use direct implementation imports inside packages to avoid barrel cycles.
  • Replace generic API sidebar groups with linked entrypoint pages, add API inventories for new pages, retain format guides and workflow guides, and preserve retired sidebar links.
  • Keep core APIs at the root, group their reference pages by task, and remove the repeated core package heading.
  • Resolve source and emitted bundle aliases from actual export maps rather than assuming the public subpath matches an implementation folder.
  • Add checks for declaration coverage, emitted package files, representative ESM/CommonJS exports, valid sidebar entrypoints, and unique document ownership.

Existing root exports remain available. This PR does not define new lightweight-import guarantees or redesign metadata/bundled loader boundaries; that assessment follows separately.

Validation

  • Root and website dependency installs; no lockfile changes.
  • yarn lint fix and yarn test-audit: passed.
  • yarn build and yarn build-workers: passed.
  • yarn test-node: 137 files, 687 tests passed.
  • Website production build and rendered GraphML/DuckDB/core-page checks: passed.
  • Final full Chromium suite: running; fixed GeoJSON/OME metadata-contract tests and the RAD type-only reexport were verified with focused browser checks.

Note

Low Risk
Changes are primarily documentation updates, import migrations to existing subpaths, and a simple re-export file with minimal operational risk.

Overview
Updates imports across tile-converter and documentation guides to use granular format and capability subpath entrypoints (such as @loaders.gl/tiles-3d/spatial, @loaders.gl/arcgis/feature-service, and @loaders.gl/compression/gzip) rather than package roots.

Restructures docs-sidebar.json and adds dedicated subpath reference documentation across @loaders.gl/arcgis, @loaders.gl/compression, @loaders.gl/crypto, @loaders.gl/graphs, @loaders.gl/images, and related packages, grouping API docs by specific subpath capabilities instead of monolithic API lists.

Adds the @loaders.gl/compression/bzip2 subpath entrypoint file re-exporting BZip2Compressor and BZip2Decompressor.

Reviewed by Cursor Bugbot for commit cc2705f. Bugbot is set up for automated code reviews on this repo. Configure here.

This branch has not been deployed

No deployments
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