GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: add promise API for resolve by alexander-akait · Pull Request #520 · webpack/enhanced-resolve

Conversation

@alexander-akait

@alexander-akait alexander-akait commented Apr 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Member

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@changeset-bot

changeset-bot Bot commented Apr 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

🦋 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

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@linux-foundation-easycla

linux-foundation-easycla Bot commented Apr 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

CLA Not Signed

  • ✅ login: alexander-akait / name: alexander-akait (18045e5, d0083bb, dac36c4, fcf99c7)
  • ❌ - login: @claude / name: Claude . The commit (a017080, bf732fa) is not authorized under a signed CLA. Please click here to be authorized. For further assistance with EasyCLA, please submit a support request ticket.

claude[bot] reacted with eyes emoji
All reactions
  • 👀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codecov

codecov Bot commented Apr 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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.
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@codspeed

codspeed Bot commented Apr 14, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

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. ↩

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

claude and others added 3 commits April 15, 2026 18:03
@claude @alexander-akait
feat: add promise API for resolve
bf732fa
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.
@claude @alexander-akait
feat: add Resolver.resolvePromise method
a017080
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
refactor: logic
fcf99c7
@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 added 3 commits April 15, 2026 18:56
@alexander-akait
refactor: sync API between async, sync and promise
18045e5
@alexander-akait
chore: changelog update
dac36c4
@alexander-akait
chore: fix types
d0083bb
@alexander-akait
alexander-akait merged commit 06a7e36 into main Apr 15, 2026
31 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@alexander-akait
alexander-akait deleted the claude/implement-promise-api-g0tLD branch April 15, 2026 16:06
@github-actions github-actions Bot mentioned this pull request Apr 15, 2026
chore(release): new release #496
Merged
@alexander-akait alexander-akait mentioned this pull request Apr 15, 2026
test: add node-compare benchmark + perf: Promise.withResolvers in resolvePromise #525
Merged
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Promise api

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@alexander-akait @claude
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.