Skip to content

chore: add unsigned keyword to number/uint32/base/add and sub#12831

Draft
Planeshifter wants to merge 2 commits into
developfrom
philipp/drift-number-uint32-base-2026-06-12
Draft

chore: add unsigned keyword to number/uint32/base/add and sub#12831
Planeshifter wants to merge 2 commits into
developfrom
philipp/drift-number-uint32-base-2026-06-12

Conversation

@Planeshifter

Copy link
Copy Markdown
Member

Description

Adds the "unsigned" keyword to the package.json of @stdlib/number/uint32/base/add and @stdlib/number/uint32/base/sub to bring them in line with the 80% sibling conformance rate within @stdlib/number/uint32/base.

@stdlib/number/uint32/base/add

The keywords array lacked "unsigned", which 8 of 10 packages (80%) in @stdlib/number/uint32/base include. The keyword applies: the package operates on unsigned 32-bit integers via >>>0 coercion and documents operands as {uinteger}.

@stdlib/number/uint32/base/sub

The keywords array lacked "unsigned", diverging from the 80% sibling conformance rate within @stdlib/number/uint32/base. The keyword is semantically correct given the package's use of >>>0 coercion and {uinteger} JSDoc annotations.

Related Issues

No.

Questions

No.

Other

Pure package.json metadata change; no runtime behavior, public signature, or test expectation is affected. Precedent for this exact correction shape: #12816 (stats/base/dists/poisson counts keyword) and #12830 (stats/base/dists/negative-binomial keyword alignment).

Checklist

AI Assistance

  • Yes
  • No

If you answered "yes" above, how did you use AI assistance?

  • Code generation (e.g., when writing an implementation or fixing a bug)
  • Test/benchmark generation
  • Documentation (including examples)
  • Research and understanding

Disclosure

This PR was drafted by Claude Code as part of a cross-package API drift audit of the @stdlib/number/uint32/base namespace: structural and semantic features were extracted across all 10 members, a single high-signal outlier feature was identified ("unsigned" keyword absent in add and sub despite 8/10 sibling conformance), and three-agent validation (semantic / cross-reference / structural) returned confirmed-drift for both packages before the fix was applied.


@stdlib-js/reviewers


Generated by Claude Code

claude added 2 commits June 12, 2026 00:14
The `unsigned` keyword is present in 8 of the 10 sibling `@stdlib/number/uint32/base/*` packages (80% conformance); `add` and `sub` were the only outliers. The function operates on unsigned 32-bit integers, so the keyword applies.

https://claude.ai/code/session_019SVGtKk9jEos5C9ecE4ni2
The `unsigned` keyword is present in 8 of the 10 sibling `@stdlib/number/uint32/base/*` packages (80% conformance); `add` and `sub` were the only outliers. The function operates on unsigned 32-bit integers, so the keyword applies.

https://claude.ai/code/session_019SVGtKk9jEos5C9ecE4ni2
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
number/uint32/base/add $\\color{green}156/156$
$\\color{green}+100.00\\%$
$\\color{green}5/5$
$\\color{green}+100.00\\%$
$\\color{green}2/2$
$\\color{green}+100.00\\%$
$\\color{green}156/156$
$\\color{green}+100.00\\%$
number/uint32/base/sub $\\color{green}156/156$
$\\color{green}+100.00\\%$
$\\color{green}5/5$
$\\color{green}+100.00\\%$
$\\color{green}2/2$
$\\color{green}+100.00\\%$
$\\color{green}156/156$
$\\color{green}+100.00\\%$

The above coverage report was generated for the changes in this PR.

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.

3 participants