Skip to content

feat(core): reduce(Async) accept single value#433

Merged
Hanssen0 merged 1 commit into
ckb-devrel:next-majorfrom
Hanssen0:feat/reduce-single
Jul 4, 2026
Merged

feat(core): reduce(Async) accept single value#433
Hanssen0 merged 1 commit into
ckb-devrel:next-majorfrom
Hanssen0:feat/reduce-single

Conversation

@Hanssen0

@Hanssen0 Hanssen0 commented Jul 4, 2026

Copy link
Copy Markdown
Member

Copilot AI review requested due to automatic review settings July 4, 2026 07:30
@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for docsccc ready!

Name Link
🔨 Latest commit 2a8f542
🔍 Latest deploy log https://app.netlify.com/projects/docsccc/deploys/6a48babc6391f70008dbba2b
😎 Deploy Preview https://deploy-preview-433--docsccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 74 (🔴 down 13 from production)
Accessibility: 95 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 75 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for appccc ready!

Name Link
🔨 Latest commit 2a8f542
🔍 Latest deploy log https://app.netlify.com/projects/appccc/deploys/6a48babc20afcc0008ad72b6
😎 Deploy Preview https://deploy-preview-433--appccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 66 (🔴 down 16 from production)
Accessibility: 89 (🟢 up 1 from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@changeset-bot

changeset-bot Bot commented Jul 4, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 2a8f542

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
Name Type
@ckb-ccc/core Minor
@ckb-ccc/co-build Patch
@ckb-ccc/did-ckb Patch
@ckb-ccc/eip6963 Patch
@ckb-ccc/joy-id Patch
@ckb-ccc/lumos-patches Patch
@ckb-ccc/nip07 Patch
@ckb-ccc/okx Patch
@ckb-ccc/rei Patch
@ckb-ccc/shell Patch
@ckb-ccc/spore Patch
@ckb-ccc/ssri Patch
@ckb-ccc/type-id Patch
@ckb-ccc/udt Patch
@ckb-ccc/uni-sat Patch
@ckb-ccc/utxo-global Patch
@ckb-ccc/xverse Patch
@ckb-ccc/ccc Patch
ckb-ccc Patch
@ckb-ccc/connector Patch
@ckb-ccc/connector-react Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for apiccc ready!

Name Link
🔨 Latest commit 2a8f542
🔍 Latest deploy log https://app.netlify.com/projects/apiccc/deploys/6a48babcb5244300083cab66
😎 Deploy Preview https://deploy-preview-433--apiccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 85 (🟢 up 1 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 95 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify

netlify Bot commented Jul 4, 2026

Copy link
Copy Markdown

Deploy Preview for liveccc ready!

Name Link
🔨 Latest commit 2a8f542
🔍 Latest deploy log https://app.netlify.com/projects/liveccc/deploys/6a48babc834f7700075d6ad0
😎 Deploy Preview https://deploy-preview-433--liveccc.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 38 (no change from production)
Accessibility: 88 (no change from production)
Best Practices: 92 (🔴 down 8 from production)
SEO: 100 (no change from production)
PWA: -
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR expands the core reduce and reduceAsync utilities to accept a single (non-iterable) value in addition to iterables, updating the public API documentation and recording the change as a minor release.

Changes:

  • Broadened reduce and reduceAsync TypeScript overloads to accept a single value alongside (async) iterables.
  • Added runtime wrapping logic to treat non-iterables as a single-element iterable.
  • Added a changeset marking @ckb-ccc/core as a minor bump for this feature.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
packages/core/src/utils/index.ts Updates reduce/reduceAsync types, docs, and runtime handling to accept single values.
.changeset/tangy-bugs-allow.md Declares a minor version bump for the new reduce(Async) capability.

Comment thread packages/core/src/utils/index.ts
Comment thread packages/core/src/utils/index.ts
Comment thread packages/core/src/utils/index.ts
@Hanssen0 Hanssen0 force-pushed the feat/reduce-single branch from 4422591 to c99f2b9 Compare July 4, 2026 07:43
@Hanssen0 Hanssen0 force-pushed the feat/reduce-single branch from c99f2b9 to 2a8f542 Compare July 4, 2026 07:48
@Hanssen0 Hanssen0 merged commit 8076f62 into ckb-devrel:next-major Jul 4, 2026
17 checks passed
@Hanssen0 Hanssen0 deleted the feat/reduce-single branch July 4, 2026 07:52
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.

2 participants