Skip to content

chore(deps): drop the starlight-image-zoom packageExtensions once it declares astro as a peer #746

Description

@EricAndrechek

Trigger. Remove the starlight-image-zoom entry from packageExtensions in pnpm-workspace.yaml once a starlight-image-zoom release declares astro as a peer dependency.

Why the entry exists. starlight-image-zoom imports astro/zod and astro/errors at runtime (index.ts) but declares only @astrojs/starlight as a peer. With pnpm's hoisted fallback turned off (hoist: false, #581), those imports no longer resolve, and Astro can't load the docs config. The packageExtensions entry adds the missing astro peer, so the plugin shares the docs site's own astro instance.

State (measured 2026-10-07). The newest release, 0.16.0, still declares only the @astrojs/starlight peer. No upstream issue asks for the astro peer. The plugin's closed #21 ("Cannot find module 'astro/errors'") shows the same symptom but was closed without the peer being added. Reporting it upstream would let this entry go away.

How to check. On a Dependabot bump of starlight-image-zoom, read the new version's peerDependencies. If astro is there, delete the entry and run pnpm install, make check-docs and make build-docs.

Related: #581.

Activity

  1. EricAndrechek commented on Oct 7, 2026

    @EricAndrechek
    MemberAuthor

    Reported upstream: HiDeoo/starlight-image-zoom#72 (reproduced on 0.16.0 with a minimal pnpm workspace, hoist: false; a declared astro peer fixes it).

  2. EricAndrechek commented on Oct 7, 2026

    @EricAndrechek
    MemberAuthor

    Upstream fix proposed: HiDeoo/starlight-image-zoom#73 (adds astro: ^7.2.10 as a peer). The trigger above fires once a release containing it ships.

  3. EricAndrechek commented on Oct 8, 2026

    @EricAndrechek
    MemberAuthor

    Trigger fired: HiDeoo/starlight-image-zoom#73 merged and shipped in 0.16.1 (2026-10-08), which declares astro: >=7.2.10 as a peer.

    The swap waits on two things:

    • Release age: the repo's 7-day minimumReleaseAge admits 0.16.1 from about 2026-10-15.
    • Starlight: 0.16.x requires @astrojs/starlight >=0.42.0, and docs/ is on ^0.41.7.

    Once both hold (likely via Dependabot), bump starlight-image-zoom to ^0.16.1 and Starlight to ^0.42, delete the packageExtensions entry in pnpm-workspace.yaml, and run pnpm install, make check-docs and make build-docs.


    — Posted by Claude Code on behalf of @EricAndrechek

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/docsDocumentation, site/, README

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions