style: align outliers in constants with namespace majority patterns#11909
Draft
Planeshifter wants to merge 3 commits intodevelopfrom
Draft
style: align outliers in constants with namespace majority patterns#11909Planeshifter wants to merge 3 commits intodevelopfrom
constants with namespace majority patterns#11909Planeshifter wants to merge 3 commits intodevelopfrom
Conversation
Normalize `package.json` `main` field to `./lib` (present in 80% of sibling packages in `@stdlib/constants`).
Normalize `package.json` `main` field to `./lib` (present in 80% of sibling packages in `@stdlib/constants`).
Normalize `package.json` `main` field to `./lib` (present in 80% of sibling packages in `@stdlib/constants`).
Contributor
Coverage Report
The above coverage report was generated for the changes in this PR. |
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
Aligning outliers in
@stdlib/constantswith namespace majority patterns (random namespace pick, seed20260503).This pull request normalizes the
package.json"main"field across the three outlier members of the@stdlib/constantsnamespace. The fix is mechanical and behaviorally inert under Node.js module resolution.Namespace summary
array,complex128,complex64,float16,float32,float64,int16,int32,int8,path,time,uint16,uint32,uint8,unicode)package.jsonshape and key values,manifest.jsonshape, README section structure, test/benchmark/example file naming,lib/index.jsstructure, namespace-aggregator dependenciespackage.jsontop-level keys (100%),directories(100%),engines(100%),scripts(100%),types(100%), README##sections[Usage, Examples](100%), test/example file names (100%),@stdlib/utils/define-read-only-propertydependency (100%),package.json"main"field value (80% →"./lib")lib/index.js(constants9/15 vsns6/15 — 60% plurality), README copyright year, README title (path/unicode use disambiguating titles, treated as intentional)Per-outlier notes
constants/arrayAligns
package.jsonmainfield with the namespace-wide convention:"./lib"instead of"lib/index.js". 12 of 15 packages in@stdlib/constants(80%) already use the"./lib"form. No behavioral change — Node.js resolves both identically.constants/pathAligns the
mainfield inpackage.jsonwith the"./lib"convention used by 12 of 15 packages (80%) in the@stdlib/constantsnamespace. The previous value"lib/index.js"resolves identically under Node.js module resolution, so there is no behavioral change. Purely a consistency fix to reduce drift within the namespace.constants/unicodeAligns the
mainfield with the./libpattern used by 12 of 15 packages (80%) in@stdlib/constants. The previous value"lib/index.js"resolves identically under Node.js but diverges from namespace convention. No functional change.Related Issues
None.
Questions
None.
Other
Validation
package.jsonkeys/values, README headings, test/example/benchmark file names — extracted via filesystem and JSON parsing across all 15 members.lib/main.js, no validation prologue, no error construction, no exported function with parameters), so the routine's semantic-schema fields are largely N/A. Dependency sets were extracted and confirmed identical (100% of members import only@stdlib/utils/define-read-only-propertyplus their own@stdlib/constants/<self>/*children).mainfield drift was reviewed independently by (1) an Opus semantic-review agent, (2) an Opus cross-reference agent that grepped the repo for explicitlib/index.jsreferences and inspected each outlier's tests/examples, and (3) a Sonnet structural-review agent that confirmed the 12/15 split and checked broader stdlib conventions. All three agents returnedconfirmed-driftfor all three outliers.Deliberately excluded:
lib/index.jsnamespace variable naming drift (constantsvsns) — neither value reaches the 75% threshold, so the feature has no clear majority.# Constantsvs# Path Constantsvs# Unicode Constants) — thepathandunicodetitles are intentional disambiguation, not drift.require('./../lib')and are unaffected by the change.Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was authored end-to-end by Claude Code as part of a cross-package drift detection routine: a randomly-selected namespace (
@stdlib/constants, seed20260503) was scanned for structural and semantic feature drift via majority vote (≥75% threshold). Outliers were validated by three independent review agents (one Sonnet structural-review, two Opus semantic/cross-reference) before any change was applied. A maintainer should audit the diff and the seed before promoting from draft.@stdlib-js/reviewers
Generated by Claude Code