Skip to content

docs: clarify development dependency ranges and exact-pin exceptions #120

Closed

Description

@abruption

Priority: P3 maintainer documentation follow-up; no unpinned runtime regression is established.

Evidence

At v0.4.5 / a7f7e873b25cfe9785f1878e0721070cea424815, package.json pins the native runtime dependency exactly, uses caret ranges for most development tools, and pins marked, parse5, and srcset exactly. The latter three are only used by package smoke, not the published CLI runtime.

npm ci already installs the exact repository lockfile, and the published runtime-only shrinkwrap pins the consumer dependency tree. Those protections are documented and must not be weakened. The gap is an explicit policy/rationale for development manifest ranges versus exact-pin exceptions, not proof that caret ranges bypass the lockfile or that every dependency must be repinned.

Acceptance criteria

  • Document the distinct roles of development manifest ranges, the committed repository lockfile, exact runtime pins, and the generated runtime-only consumer shrinkwrap.
  • Explain the intended policy for the three exact-pinned package-smoke dependencies. Retain justified exceptions or propose a separately reviewed change; do not infer historical rationale without evidence or bulk-normalize versions just for visual consistency.
  • Document how routine minor/patch development updates, supported-major exclusions, and runtime updates pass review/CI under the existing Dependabot configuration. Preserve @types/node compatibility with the minimum supported Node major.
  • Preserve the rule that development tooling is not shipped to dependency consumers; any later policy implementation must run exact lockfile installation, the supported matrix, and package smoke.
  • Identify whether each proposed policy change is documentation-only or changes dependency resolution, and keep runtime upgrades in separately reviewed PRs.

Existing #69/#82 resolved consumer pinning/shrinkwrap issues, and #18 resolved Dependabot labels and supported-major exclusions. Open Dependabot PR #94 already tracks three development dependency updates and currently changes only package-lock.json; it is not duplicated by this issue. Its age alone is not a vulnerability or authorization to merge it. Assess it against current main when separately approved.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions