Skip to content

docs: fix invalid minimum dependency age example#3166

Merged
bartlomieju merged 2 commits into
mainfrom
fix/minimum-dependency-age-example
May 25, 2026
Merged

docs: fix invalid minimum dependency age example#3166
bartlomieju merged 2 commits into
mainfrom
fix/minimum-dependency-age-example

Conversation

@bartlomieju
Copy link
Copy Markdown
Member

The example for minimumDependencyAge used "72h", but neither the
deno.json parser nor the --minimum-dependency-age CLI flag accepts
that format. The parser only takes an ISO-8601 duration (P3D,
PT72H), an integer interpreted as minutes, an absolute date or
RFC3339 timestamp, or 0 to disable. The .npmrc min-release-age
setting is different again: it accepts only a whole number of days.

Updates the deno.json and CLI examples to P3D, the .npmrc
example to 3, and rewrites the surrounding paragraph so the listed
formats actually match what's accepted.

Fixes #3161

The example used "72h", which the deno.json parser and the
--minimum-dependency-age CLI flag don't accept (only ISO-8601
durations, integer minutes, dates/timestamps, or 0 are valid).
The .npmrc setting accepts only an integer number of days.

Fixes #3161
@bartlomieju bartlomieju merged commit 571ed78 into main May 25, 2026
1 of 2 checks passed
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.

Feedback: /runtime/fundamentals/modules/ - Needs Improvement

1 participant