Library version
See original GitHub issueConsidering the following facts about this library:
- Huge user base
- Used on both server-side and client-side
- Frequent update schedule
It is asking to extend the library’s root with a version
object, similar to that of Angular JS:
require('bluebird').version = {
name: 'false-positives-slayer',
full: '3.3.4',
major: 3,
minor: 3,
build: 4
};
It will help with the diagnostics in libraries built on extensive use of bluebird.
Issue Analytics
- State:
- Created 8 years ago
- Comments:11 (10 by maintainers)
Top Results From Across the Web
Library Versions - Documentation
Each new library version has a unique version number. The recommended versioning approach uses version numbers in the format MAJOR.MINOR.PATCH.
Read more >Check the version of Python package/library - nkmk note
This article describes how to check the version of packages (libraries) and modules used in Python scripts, and the version of packages ...
Read more >How versioning works in lists and libraries - Microsoft Support
When versioning is enabled in a list or library, you can store, track, and restore items in a list and files in a...
Read more >Library versions | Google Play services
As of version 15.0.0, the Google Play services libraries are maintained individually, which allows the development teams for each library to ship fixes...
Read more >Find out library version - linux - Super User
I want to find out what version of a C library is installed in my system (Ubuntu 12.04). In particular, I'm interested in...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For my purposes, just the full version string would be easily sufficient. But it would be really useful to have a
.version
property available. Some libraries allow a Promise implementation to be injected (i.e. “please return promises of this type”) and it’d be useful to be able to know inside the library the version of bluebird you’re dealing with e.g. to work around the different syntax ofPromise.promisify()
in v2.x and v3.x.I’m not sure if the
.version
property is best added by something like this in the main codebase:Promise.version = require('../package.json').version
or by adding it in the build step.Please let me know your preference, and I’ll submit a PR.
Yeah I think it’s unreasonable to expect all that to be implemented in bluebird. The users who really need more than a string can parse the string easily into such object using the semver module.