Conversation
58d536c to
f69824c
Compare
stats/base/dists/uniform with namespace majoritypackage.json metadata in stats/base/dists/uniform/{mgf,ctor}
f69824c to
631f2d6
Compare
Adds `"npm": ">2.7.0"` to the `engines` field in the `package.json` of every distribution constructor package under `@stdlib/stats/base/dists/*/ctor`. All 34 constructor packages had only `"node": ">=0.10.0"` while 99% of `@stdlib/*` packages (5,418 of 5,469) specify both `node` and `npm` engines. Root cause is template-copy drift in the distribution-constructor scaffold; no behavior, signatures, tests, or docs are affected. Packages updated: arcsine, bernoulli, beta, betaprime, binomial, cauchy, chi, chisquare, cosine, degenerate, discrete-uniform, erlang, exponential, f, frechet, gamma, geometric, gumbel, hypergeometric, invgamma, kumaraswamy, laplace, levy, logistic, lognormal, negative-binomial, normal, pareto-type1, poisson, rayleigh, t, triangular, uniform, weibull.
631f2d6 to
24701a0
Compare
package.json metadata in stats/base/dists/uniform/{mgf,ctor}npm engine constraint to stats/base/dists/*/ctor
Contributor
Coverage ReportNo coverage information available. |
kgryte
approved these changes
Apr 21, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the missing
"npm": ">2.7.0"entry to theenginesfield in thepackage.jsonof every distribution-constructor package under@stdlib/stats/base/dists/*/ctor. All 34 ctor packages specified only"node": ">=0.10.0"while 5,418 of 5,469 (99.07%)@stdlib/*packages specify bothnodeandnpmengines. Root cause is template-copy drift in the distribution-constructor scaffold.Changes
Applied a uniform edit to 34 files — one package.json per distribution constructor:
"engines": { - "node": ">=0.10.0" + "node": ">=0.10.0", + "npm": ">2.7.0" },Packages updated (34):
arcsine,bernoulli,beta,betaprime,binomial,cauchy,chi,chisquare,cosine,degenerate,discrete-uniform,erlang,exponential,f,frechet,gamma,geometric,gumbel,hypergeometric,invgamma,kumaraswamy,laplace,levy,logistic,lognormal,negative-binomial,normal,pareto-type1,poisson,rayleigh,t,triangular,uniform,weibull.No behavior, signatures, tests, or docs are affected. The diff on every file is identical (+2 / -1).
How this was found
A majority-vote drift pass over the 14 members of
@stdlib/stats/base/dists/uniformflaggeduniform/ctoras missing thenpmengine constraint (13/14 = 93% conformance within the namespace). A follow-up codebase-wide audit over 5,469@stdlib/*packages revealed the same drift across everystats/base/dists/*/ctorpackage — a template-copy pattern:enginesshape{"node": ">=0.10.0", "npm": ">2.7.0"}{"node": ">=0.10.0"}← driftnodeconstraint, all includenpm)All 34 offenders are
stats/base/dists/*/ctorpackages; no other namespace exhibits the drift.Related Issues
None.
Questions
None.
Other
The
uniformnamespace drift routine also surfaceduniform/mgfas missing the"probability"keyword (13/14 siblings within the namespace). A cross-distribution check revealed only 2 of 21 otherstats/base/dists/*/mgfpackages (cosine, degenerate) include"probability"— theuniformnamespace convention appears to be a local template-copy, not a cross-distribution norm. That correction was dropped from this PR.Checklist
AI Assistance
Used AI assistance for:
Disclosure
This PR was authored end-to-end by Claude Code running a cross-package API drift detection routine, extended with a codebase-wide audit of the
enginesfield. The scope expanded from one package (uniform/ctor) to 34 after discovery that the drift pattern covered everystats/base/dists/*/ctorpackage. All changes are identical, mechanicalpackage.jsonedits with no behavioral impact; maintainer audit still recommended before promoting out of draft.@stdlib-js/reviewers