Skip to content

feat: add promise API for resolve#520

Merged
alexander-akait merged 6 commits intomainfrom
claude/implement-promise-api-g0tLD
Apr 15, 2026
Merged

feat: add promise API for resolve#520
alexander-akait merged 6 commits intomainfrom
claude/implement-promise-api-g0tLD

Conversation

@alexander-akait
Copy link
Copy Markdown
Member

@alexander-akait alexander-akait commented Apr 14, 2026

Add resolve.promise and resolve.create.promise that return a
Promise<string | false> instead of using a callback, complementing
the existing callback (resolve) and sync (resolve.sync) APIs.

fixes #309

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Apr 14, 2026

🦋 Changeset detected

Latest commit: d0083bb

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

This PR includes changesets to release 1 package
Name Type
enhanced-resolve Minor

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

@linux-foundation-easycla
Copy link
Copy Markdown

linux-foundation-easycla Bot commented Apr 14, 2026

CLA Not Signed

@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 14, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 93.57%. Comparing base (0bb2e70) to head (d0083bb).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #520      +/-   ##
==========================================
+ Coverage   92.68%   93.57%   +0.88%     
==========================================
  Files          50       50              
  Lines        2555     2582      +27     
  Branches      779      785       +6     
==========================================
+ Hits         2368     2416      +48     
+ Misses        157      137      -20     
+ Partials       30       29       -1     
Flag Coverage Δ
integration 93.57% <100.00%> (+0.88%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented Apr 14, 2026

Merging this PR will not alter performance

✅ 43 untouched benchmarks


Comparing claude/implement-promise-api-g0tLD (d0083bb) with main (ba9a8e2)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (0bb2e70) during the generation of this report, so ba9a8e2 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

claude and others added 3 commits April 15, 2026 18:03
Add `resolve.promise` and `resolve.create.promise` that return a
`Promise<string | false>` instead of using a callback, complementing
the existing callback (`resolve`) and sync (`resolve.sync`) APIs.
Add a `resolvePromise` method to the `Resolver` class that returns a
`Promise<string | false>`, mirroring the existing `resolveSync` method.
The module-level `resolve.promise` and `resolve.create.promise` APIs
now delegate to it.
@alexander-akait alexander-akait force-pushed the claude/implement-promise-api-g0tLD branch from e671b53 to fcf99c7 Compare April 15, 2026 15:45
@alexander-akait alexander-akait merged commit 06a7e36 into main Apr 15, 2026
31 of 32 checks passed
@alexander-akait alexander-akait deleted the claude/implement-promise-api-g0tLD branch April 15, 2026 16:06
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.

Promise api

2 participants