question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Considering 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:closed
  • Created 8 years ago
  • Comments:11 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
overlookmotelcommented, Apr 25, 2016

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 of Promise.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.

2reactions
petkaantonovcommented, Mar 15, 2016

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found