Skip to content

chore: add missing utility and asynchronous keywords to utils/async packages - #17166

Draft
Planeshifter wants to merge 4 commits into
developfrom
claude/cool-johnson-awc94p
Draft

Planeshifter wants to merge 4 commits into
developfrom
claude/cool-johnson-awc94p

Conversation

@Planeshifter

Copy link
Copy Markdown
Member

Description

What is the purpose of this pull request?

This pull request:

  • adds the namespace-standard utility and asynchronous keywords to four utils/async packages whose package.json keyword lists had drifted from their siblings.

Namespace summary. utils/async has 33 members, none autogenerated. Features analyzed: file tree, package.json key sets (top-level, scripts, directories, keywords), README section set and order, public signature, return kind, validation prologue, error construction, JSDoc shape, and @stdlib/* dependencies. Features with a clear majority (≥75%): file tree, package.json keys, directories, core keywords, README sections, return kind, error construction, and JSDoc @example. Features without a clear majority, and therefore excluded: validation-prologue predicates (isObject vs isPlainObject), the @returns tag (67%), and signature shape.

utils/async/compose

Adds the utility keyword, which is present in 88% of utils/async packages and in 98% of utils/* packages. It goes between utilities and utils to match the sibling ordering.

utils/async/function-sequence

Adds the utility keyword (88% of siblings) between utilities and utils. The rest of the keyword prefix already matches the namespace.

utils/async/parallel

Adds utility (88% of siblings) and asynchronous (94% of siblings). With these, the shared prefix stdlib, stdutils, stdutil, utilities, utility, utils, util, asynchronous, async now matches the rest of the namespace.

utils/async/series-waterfall

Adds utility (88% of siblings) and asynchronous (94% of siblings) in their canonical positions. This does not overlap with #13046, which edits only the directories field of the same file.

Related Issues

Does this pull request have any related issues?

No.

Reference Packages

Did the content of this pull request follow one or more existing packages? Answering is optional.

This pull request followed these packages:

  • utils/async/reduce

What carried over from the reference(s)?

  • The keyword prefix and its ordering.

What differed, or what did you have to work out yourself?

  • Nothing. The changes are metadata-only.

Questions

Any questions for reviewers of this pull request?

No.

Other

Any other information relevant to this pull request? This may include screenshots, references, and/or implementation notes.

Validation. The candidates came from a structural extraction (filesystem and package.json/README strings) and a semantic extraction (one agent per package reading lib/). Each candidate was then reviewed by three agents: semantic, cross-reference (tests, examples, docs), and structural. The following were deliberately excluded:

  • compose and function-sequence throw a single placeholder-free Error without format(). This is intentional. stdlib uses format() only when interpolating, and the synchronous counterparts use the same literal.
  • parallel and series-waterfall lack a ## See Also README section. This section is generator-owned.
  • series-waterfall lacks benchmark/benchmark.js. This is already addressed in bench: add benchmark to utils/async/series-waterfall #13046.
  • Drift on features without a clear majority was not acted on.

No tests, examples, or docs read package.json keywords, so there is no change in behavior.

Checklist

Please ensure the following tasks are completed before submitting this pull request.

AI Assistance

When authoring the changes proposed in this PR, did you use any kind of 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

If you answered "yes" to using AI assistance, please provide a short disclosure indicating how you used AI assistance. This helps reviewers determine how much scrutiny to apply when reviewing your contribution. Example disclosures: "This PR was written primarily by Claude Code." or "I consulted ChatGPT to understand the codebase, but the proposed changes were fully authored manually by myself.".

This PR was written primarily by Claude Code as part of an automated cross-package drift-detection run, which used majority voting across the utils/async namespace.


@stdlib-js/reviewers

🤖 Generated with Claude Code

https://claude.ai/code/session_017wWD78X6BFU1o27yJs9K4B


Generated by Claude Code

Added missing `utility` keyword (present in 88% of `utils/async` siblings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wWD78X6BFU1o27yJs9K4B
Added missing `utility` keyword (present in 88% of `utils/async` siblings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wWD78X6BFU1o27yJs9K4B
Added missing `utility` keyword (present in 88% of `utils/async` siblings) and missing `asynchronous` keyword (94% of siblings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wWD78X6BFU1o27yJs9K4B
Added missing `utility` keyword (present in 88% of `utils/async` siblings) and missing `asynchronous` keyword (94% of siblings).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_017wWD78X6BFU1o27yJs9K4B
@stdlib-bot

Copy link
Copy Markdown
Contributor

Coverage Report

Package Statements Branches Functions Lines
utils/async/compose $\\color{green}209/209$
$\\color{green}+100.00\\%$
$\\color{green}15/15$
$\\color{green}+100.00\\%$
$\\color{green}3/3$
$\\color{green}+100.00\\%$
$\\color{green}209/209$
$\\color{green}+100.00\\%$
utils/async/function-sequence $\\color{green}212/212$
$\\color{green}+100.00\\%$
$\\color{green}15/15$
$\\color{green}+100.00\\%$
$\\color{green}3/3$
$\\color{green}+100.00\\%$
$\\color{green}212/212$
$\\color{green}+100.00\\%$
utils/async/parallel $\\color{green}484/484$
$\\color{green}+100.00\\%$
$\\color{green}44/44$
$\\color{green}+100.00\\%$
$\\color{green}9/9$
$\\color{green}+100.00\\%$
$\\color{green}484/484$
$\\color{green}+100.00\\%$
utils/async/series-waterfall $\\color{green}255/255$
$\\color{green}+100.00\\%$
$\\color{green}17/17$
$\\color{green}+100.00\\%$
$\\color{green}4/4$
$\\color{green}+100.00\\%$
$\\color{green}255/255$
$\\color{green}+100.00\\%$

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

This branch has not been deployed

No deployments
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