Skip to content

Shrink @mostlyrightmd/weather root bundle: move hosted shim to /hosted subpath only #110

Description

@helloiamvu

Carve-out from #107 (closed by #109). Root cause verified: the root barrel (packages-ts/weather/src/index.ts:196-225) re-exports the entire Phase 28-40 hosted shim (~5 kB gz), dragging it into the size-limited dist/index.mjs even though the lean @mostlyrightmd/weather/hosted subpath already exists. This is why the size limit was stopgap-bumped 25 → 26 kB at v1.12.0.

Plan (public-API contraction — needs its own changeset/CHANGELOG):

  1. Add mintStreamToken to src/hosted/index.ts FIRST (its only public path today is the root barrel — would be silently dropped otherwise).
  2. Remove the hosted re-export block from the root barrel; root-barrel hosted importers migrate to the /hosted subpath.
  3. Revert the weather size-limit 26 → 25 kB in root package.json.

Verified safe: the meta package does not re-export the hosted shim (no cross-package coupling). Full analysis: #107 (comment)

🤖 Generated with Claude Code

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions