Skip to content

fix: hide promises from promisify - #3969

Merged
erickzhao merged 2 commits into
mainfrom
sam/hide-promises
Jul 29, 2025
Merged

erickzhao merged 2 commits into
mainfrom
sam/hide-promises

Conversation

@MarshallOfSound

@MarshallOfSound MarshallOfSound commented Jul 28, 2025 •

Copy link
Copy Markdown
Member

Takes function, wraps function, hides return value.

Get's rid of these deprecation warnings:

(node:7781) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.
    at node:internal/util:473:17
    at new Promise (<anonymous>)
    at AsyncFunction.<anonymous> (node:internal/util:458:12)
    at /Users/.../app/node_modules/@electron/packager/dist/hooks.js:9:73
    at Array.map (<anonymous>)
    at promisifyHooks (/Users/.../app/node_modules/@electron/packager/dist/hooks.js:9:29)
    at MacApp.copyTemplate (/Users/.../app/node_modules/@electron/packager/dist/platform.js:137:46)
    at async MacApp.buildApp (/Users/.../app/node_modules/@electron/packager/dist/platform.js:125:9)
    at async MacApp.initialize (/Users/.../app/node_modules/@electron/packager/dist/platform.js:120:13)
    at async MacApp.create (/Users/.../app/node_modules/@electron/packager/dist/mac.js:321:9)
    at async Promise.all (index 0)
    at async packager (/Users/.../app/node_modules/@electron/packager/dist/packager.js:237:22)

Closes #3828

@MarshallOfSound
MarshallOfSound requested a review from a team as a code owner July 28, 2025 21:22
Comment thread packages/api/core/src/api/package.ts Resolved
@MarshallOfSound
MarshallOfSound added this pull request to the merge queue Jul 28, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 28, 2025
@MarshallOfSound
MarshallOfSound added this pull request to the merge queue Jul 28, 2025
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Jul 29, 2025
@erickzhao
erickzhao added this pull request to the merge queue Jul 29, 2025
Merged via the queue into main with commit 4440ec9 Jul 29, 2025
@erickzhao
erickzhao deleted the sam/hide-promises branch July 29, 2025 05:07
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.

Multiple (node:17870) [DEP0174] DeprecationWarning: Calling promisify on a function that returns a Promise is likely a mistake.

2 participants