chore: correct float64 keyword leftovers in @stdlib/constants/float32 packages#11964
Open
Planeshifter wants to merge 3 commits intodevelopfrom
Open
chore: correct float64 keyword leftovers in @stdlib/constants/float32 packages#11964Planeshifter wants to merge 3 commits intodevelopfrom
@stdlib/constants/float32 packages#11964Planeshifter wants to merge 3 commits intodevelopfrom
Conversation
Replace `float64`, `64bit`, and `64-bit` keywords with `float32`, `32bit`, and `32-bit`. Keyword array was previously identical to the float64 sibling (no localization performed when the package was introduced); package itself returns the float32-quantized value.
…/fourth-root-eps` The float32 package retained the `dbl` (double abbreviation) keyword from its float64 sibling; replace with the corresponding float32 abbreviation `flt`.
…at32/num-significand-bits` Package returns the number of significand bits in single-precision (23) and is in the float32 namespace, but its keyword array contained `64bit` alongside `float32`. Replace with `32bit` so the keywords match the package's actual precision.
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
This pull request:
@stdlib/constants/float32packages, restoring keyword consistency with the rest of the namespace.Namespace summary
@stdlib/constants/float32(68 non-autogenerated members).package.jsonshape,manifest.jsonshape, README section list,package.jsonkeyword arrays,lib/index.jsJSDoc tag presence, source-level dependencies.package.jsontop-level key set (100%),manifest.jsonshape (100%),@type/@constant/@default/@module/@exampleJSDoc tag presence (100%), keywordfloat(87%),mathematics(84%),math(84%),float32(82%).See Alsois auto-populated and present in only 69%),@seetag in the constant block (82% but absence is consistent with the float64 sibling for every outlier — intentional), keywordsingle/single-precision(44%), keywordflt(19%).Per outlier package
@stdlib/constants/float32/gamma-lanczos-gThe keyword array was copied verbatim from the float64 sibling, leaving
"float64","64bit", and"64-bit"in a package that exports the float32-quantized Lanczos approximation constant (1.42845618724823). Among the 12 float32 packages with precision-specific keyword tokens, this was the sole outlier — 11 of 12 siblings carry correctly localized tokens. Replaced the three erroneous tokens with their float32 equivalents to restore consistency with namespace conventions.@stdlib/constants/float32/fourth-root-epsThe
keywordsarray contained"dbl", a stale copy-paste artifact from the float64 sibling. No other float32 constant package in the namespace retains this keyword; the correct abbreviation is"flt", consistent with 13 existing float32 packages. Replace"dbl"with"flt"to restore keyword conformance across the float32 constants namespace.@stdlib/constants/float32/num-significand-bitsRemoves an erroneous
"64bit"keyword from the package metadata. The package exports23, the number of significand bits in an IEEE 754 single-precision (32-bit) float, and was the sole remainingfloat32constant carrying a"64bit"tag after prior cleanup. Replaces"64bit"with"32bit"to match the siblingnum-exponent-bitspackage and align with the documented single-precision semantics.Related Issues
No.
Questions
No.
Other
Validation
package.jsonandmanifest.jsonshapes, README headings, test/example/benchmark filenames, and keyword arrays.confirmed-driftwith no test or example dependence on the keyword strings.mathematics/mathare integer-bound max/min/factorial/Fibonacci constants whose float64 siblings also omit those tokens; 9 packages missingfloat, all consistent with float64); the auto-populated## See AlsoREADME section (gated);@seeJSDoc-tag absences that match the float64 sibling for every outlier; keywordflt(no clear majority — 19% — so absence is not drift, only its presence as a leftover fromdblis).Checklist
AI Assistance
If you answered "yes" above, how did you use AI assistance?
Disclosure
This PR was written by Claude Code as part of an automated cross-package API drift detection routine. The routine extracted structural and semantic features from every package in the
@stdlib/constants/float32namespace, identified majority patterns, flagged outliers, and ran a three-agent validation pass (semantic-review, cross-reference, structural-review) before applying any fix. Each correction is a mechanical keyword swap inpackage.jsononly — no source, test, or example files were touched.@stdlib-js/reviewers
Generated by Claude Code