Comments (8)
It's in the options as it's not the main way to use this module. Ideally, it would support promises too. I think that would be a better change.
from update-notifier.
Actually, I think we should just deprecate the callback
option and add a updateNotifier.check()
method that returns a Promise for the update.
from update-notifier.
@IssueHunt has funded $40.00 to this issue.
- Submit pull request via IssueHunt to receive this reward.
- Want to contribute? Chip in to this issue via IssueHunt.
- Checkout the IssueHunt Issue Explorer to see more funded issues.
- Need help from developers? Add your repository on IssueHunt to raise funds.
from update-notifier.
I have already solved this issue in the #151.
from update-notifier.
We can use the updateNotifier.checkNpm()
to get the version info, and it has already refactored to Promise.
from update-notifier.
I will make a new pull request to deprecate the callback
option.
from update-notifier.
Fixed by #158
from update-notifier.
@sindresorhus has rewarded $36.00 to @litomore. See it on IssueHunt
- 💰 Total deposit: $40.00
- 🎉 Repository reward(0%): $0.00
- 🔧 Service fee(10%): $4.00
from update-notifier.
Related Issues (20)
- Update notifier not working with public npm package HOT 1
- use @vercel/ncc build HOT 1
- why do i have to optout by default? HOT 1
- Audit error High
- Setting up for Angular project HOT 1
- Notification is only displayed at most once per interval HOT 3
- Run in child process instead of lazy loading every dependency HOT 4
- `update-notifier` has 88 dependencies HOT 1
- Notify Option to show Changelog in default message. HOT 4
- Dependency update HOT 1
- Dependency update "boxen" HOT 2
- Node v9 support HOT 1
- CVE-2022-33987 HOT 2
- Fix tests on Linux HOT 1
- Switch to `esmock`
- UpdateNotifierClass export missing since v6 HOT 2
- Cannot use namespace 'ConfigStore' as a type. with version 5.1.0 HOT 1
- Tilde folder name blocks backup HOT 1
- semver vulnerable to Regular Expression Denial of Service HOT 1
- [FR] Support pnpm HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from update-notifier.