Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format ownerChanged fails with type error when using bun: "packageManager.packageAuthorChanged is not a function" #1435

Open
callumlocke opened this issue Jul 31, 2024 · 1 comment

Comments

@callumlocke
Copy link


Steps to Reproduce

.ncurc: none

Dependencies: N/A

Steps:

  1. In a project with a bun.lockb, run bunx ncu --interactive --format ownerChanged

Current Behavior

  • Fails with a TypeError

Expected Behavior

  • It should show the interactive update dialog.

Notes

  • bunx ncu --help format shows available formats: group, ownerChanged, time and lines. They all work with bun except ownerChanged.
Full termimal output
> bunx ncu --interactive --format ownerChanged
Upgrading /Users/callum/issue-demo/package.json
[====================] 61/61 100%
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
TypeError: packageManager.packageAuthorChanged is not a function
    at /Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:44:51
    at Array.reduce (<anonymous>)
    at getOwnerPerDependency (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:41:41)
    at runLocal (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/lib/runLocal.js:176:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async runUpgrades (/Users/callum/issue-demo/node_modules/npm-check-updates/build/src/index.js:240:20)
@raineorshine
Copy link
Owner

raineorshine commented Jul 31, 2024

I added interim support by using npm to fetch ownerChanged. This will fail if npm is not installed on your system.

Proper support depends on oven-sh/bun#1224.

Published in v17.0.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants