Skip to content

chore: fix keyword#12410

Merged
kgryte merged 1 commit into
developfrom
philipp/drift-random-streams-2026-06-01
Jun 1, 2026
Merged

chore: fix keyword#12410
kgryte merged 1 commit into
developfrom
philipp/drift-random-streams-2026-06-01

Conversation

@Planeshifter
Copy link
Copy Markdown
Member

Description

This pull request:

  • Corrects a keyword mismatch in @stdlib/random/streams/poisson: replaces "continuous" with "discrete" in package.json. The Poisson distribution has discrete (non-negative integer) support, and all other discrete-distribution stream packages (bernoulli, binomial, discrete-uniform, geometric, hypergeometric, negative-binomial, randi) already use the "discrete" keyword. This change brings @stdlib/random/streams/poisson into conformance with 31/41 sibling packages in random/streams/ and with the corresponding random/iter, random/array, and random/strided Poisson packages.

Related Issues

None.

Questions

No.

Other

Single-line metadata correction in package.json; no source, tests, examples, or documentation are touched. No tests or downstream consumers read the keywords array of this package.

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 authored by Claude Code, running a cross-package API drift detection routine across the @stdlib/random/streams namespace. The routine identified random/streams/poisson as a single-feature outlier (keyword classification), confirmed via cross-reference against sibling random/{iter,array,strided}/poisson packages, and applied the mechanical one-line fix. Two validation passes (cross-reference and structural review) confirmed confirmed-drift before the change was committed.


@stdlib-js/reviewers


Generated by Claude Code

Replace the `continuous` keyword with `discrete` in
`@stdlib/random/streams/poisson` to reflect the fact that the
Poisson distribution has discrete (non-negative integer)
support. All other discrete-distribution packages in
`@stdlib/random/streams` (`bernoulli`, `binomial`,
`discrete-uniform`, `geometric`, `hypergeometric`,
`negative-binomial`, `randi`) use `discrete`, and the
sibling `random/iter/poisson`, `random/array/poisson`, and
`random/strided/poisson` packages also use `discrete`. The
prior `continuous` keyword appears to be a copy-paste
oversight (drift conformance: 31/41 sibling packages use a
distribution-class keyword consistent with their support).

https://claude.ai/code/session_01BTTDiC5C9zLzcmWNQQd1tf
@stdlib-bot
Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
random/streams/poisson $\color{green}812/812$
$\color{green}+100.00\%$
$\color{green}92/92$
$\color{green}+100.00\%$
$\color{green}15/15$
$\color{green}+100.00\%$
$\color{green}812/812$
$\color{green}+100.00\%$

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

@kgryte kgryte marked this pull request as ready for review June 1, 2026 05:48
@kgryte kgryte requested a review from a team June 1, 2026 05:48
@stdlib-bot stdlib-bot added the Needs Review A pull request which needs code review. label Jun 1, 2026
@kgryte kgryte changed the title fix: correct random/streams/poisson keyword from continuous to discrete chore: fix keyword Jun 1, 2026
@kgryte kgryte removed the Needs Review A pull request which needs code review. label Jun 1, 2026
@kgryte kgryte merged commit 1eccb1f into develop Jun 1, 2026
40 checks passed
@kgryte kgryte deleted the philipp/drift-random-streams-2026-06-01 branch June 1, 2026 05:52
MeKaustubh07 pushed a commit to ShabiShett07/stdlib that referenced this pull request Jun 1, 2026
PR-URL: stdlib-js#12410
Reviewed-by: Athan Reines <kgryte@gmail.com>
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.

4 participants