refactor: rename internal variable#13167
Merged
Merged
Conversation
Propagates rename from 4a927af ("refactor: rename internal variable") to 92 sibling lib/index.js files under stats/base/dists, aligning the local variable bound to require('./main.js') with the conventional 'main' naming and updating the corresponding module.exports.
kgryte
approved these changes
Jun 28, 2026
Member
|
As the CI failure is not due to changes introduced in this PR, I'll go ahead and merge. |
stats/base/dists/* index files
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
Propagating fixes merged to
developbetween7dc98086(2026-06-26 13:30 -0500) and8433af0a(2026-06-27 05:54 -0500) to sibling packages with the same underlying defect.Pattern: rename
./main.js-bound variable tomaininstats/base/dists/*index filesSource commit
4a927afarenamed the local variable bound torequire( './main.js' )from the stat-function name (mean,median,mode) to the conventionalmainacross threestats/base/dists/bernoulli/*lib/index.jsfiles, with the correspondingmodule.exportsupdate. The identical drift exists in 92 siblinglib/index.jsfiles acrossstats/base/dists/*. Each is a pure straight-through index module (single require of./main.js, single export, no conditionalbuiltin/polyfill/nativefallback), so the rename is a two-line mechanical edit per file with no semantic impact.4a927afa(refactor: rename internal variable)@stdlib/stats/base/dists/anglit(mean, median)@stdlib/stats/base/dists/arcsine(mean, median, mode)@stdlib/stats/base/dists/beta(mean, median, mode)@stdlib/stats/base/dists/betaprime(mean, mode)@stdlib/stats/base/dists/binomial(mean, median, mode)@stdlib/stats/base/dists/bradford(entropy, mean, median, mode, stdev, variance)@stdlib/stats/base/dists/cauchy(median, mode)@stdlib/stats/base/dists/chi(mean, mode)@stdlib/stats/base/dists/cosine(mean, median, mode)@stdlib/stats/base/dists/degenerate(mean, median, mode)@stdlib/stats/base/dists/discrete-uniform(mean, median)@stdlib/stats/base/dists/erlang(mean, mode)@stdlib/stats/base/dists/exponential(mean, median, mode)@stdlib/stats/base/dists/f(mean, mode)@stdlib/stats/base/dists/gamma(mean, mode)@stdlib/stats/base/dists/geometric(mean, median, mode)@stdlib/stats/base/dists/gumbel(mean, median, mode)@stdlib/stats/base/dists/halfnormal(mean, mode)@stdlib/stats/base/dists/hypergeometric(mean, mode)@stdlib/stats/base/dists/invgamma(mean, mode)@stdlib/stats/base/dists/kumaraswamy(mean, median, mode)@stdlib/stats/base/dists/laplace(mean, median, mode)@stdlib/stats/base/dists/levy(mean, median, mode)@stdlib/stats/base/dists/logistic(mean, median, mode)@stdlib/stats/base/dists/negative-binomial(mean, mode)@stdlib/stats/base/dists/normal(mean, median, mode)@stdlib/stats/base/dists/pareto-type1(median)@stdlib/stats/base/dists/planck(mean, median, mode)@stdlib/stats/base/dists/poisson(mean, median, mode)@stdlib/stats/base/dists/rayleigh(mean, median, mode)@stdlib/stats/base/dists/triangular(mean, median, mode)@stdlib/stats/base/dists/uniform(mean, median)@stdlib/stats/base/dists/wald(kurtosis, mean, mode, skewness, variance)@stdlib/stats/base/dists/weibull(mean, median, mode)Related Issues
None.
Questions
No.
Other
Validation
lib/node_modules/@stdlib/stats/base/dists/**/lib/index.js, matching the source commit's namespace. Siblinglib/index.jsfiles outsidestats/base/distswere not searched — the variable-name convention is package-local and the source commit's intent is the dists-specific consistency cleanup.var <varname> = require( './main.js' );and one matchingmodule.exports = <varname>;, (b) the variable is never referenced elsewhere in the file (no property attachment, nosetReadOnly, no third reference), and (c) the file does not also conditionally require./builtin.js,./polyfill.js, or./native.js. All 92 sites returnedconfirmedfrom both passes.Deliberately excluded:
f9377d11@example-block consolidation pattern fromstring/base/stickycase: searched the siblingstring/base/*namespace and found no otherlib/index.jswith two or more@exampleblocks sharing the same require line — the source fix was a one-off within scope.7dc98086array- likeline-wrap typo, wrong TypeScript example signature, and@returnsdescription fixes: zero remaining occurrences after the source commit (typo fully swept), or single-file scope with no sibling structure.8433af0a/8e0d6442Makefile guards intools/make/lib/examples/c.mkandtools/make/lib/benchmark/c.mk: one-off build-script fixes, no sibling Makefile rule with the same skip-when-no-C-files defect.feat:commits adding new APIs: out of scope for this routine.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored by Claude Code on behalf of @Planeshifter as an automated propagation of fixes merged to
developover the prior 24 hours. Candidate source commits were filtered for generalizable patterns, sibling sites located via grep-able pattern signatures, and each proposed patch independently validated by parallel reviewer agents (two opus validation passes plus a sonnet style-consistency pass) before commits were applied in the primary worktree. A human will audit and promote the PR out of draft.@stdlib-js/reviewers
Generated by Claude Code