GithubHelp home page GithubHelp logo

npm-bluebird's People

Contributors

blakeembrey avatar demurgos avatar greenkeeper[bot] avatar jacobdr avatar lhecker avatar louy avatar putermancer avatar robscotts4rb avatar strate avatar stubb0rn avatar unional avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

npm-bluebird's Issues

An in-range update of tslint is breaking the build 🚨

Version 5.4.3 of tslint just got published.

Branch Build failing 🚨
Dependency tslint
Current Version 5.4.2
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As tslint is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Release Notes v5.4.3

πŸ›  Bugfixes

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

promise.get declaration

Hi,
I would like to know what is the problem with the declaration of .get.

This is the related part:

    /**
     * This is a convenience method for doing:
     *
     * <code>
     * promise.then(function(obj){
    *     return obj[propertyName];
    * });
     * </code>
     */
    // TODO find way to fix get()
    // get<U>(propertyName: string): Promise<U>;

Isn't it possible to just type it as get<U>(key: string | number): Promise<U>; ?

@types/bluebird missing 'Map'

@types/bluebird gives the following error:

node_modules/@types/bluebird/index.d.ts(623,33): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(623,78): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(810,39): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(810,78): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(813,27): error TS2304: Cannot find name 'Map'.
node_modules/@types/bluebird/index.d.ts(813,65): error TS2304: Cannot find name 'Map'.

Support empty param resolve()?

Should this be valid?

import Promise = require('bluebird');

new Promise((resolve, reject) => {
  resolve();
});

Currently, we have to:

...
new Promise((resolve, reject) => {
  resolve(null);
});

Not assignable to Promise

[ts] Type 'Bluebird<Model[]>' is not assignable to type 'Promise<User[]>'.
       Types of property 'then' are incompatible.
         Type '{ <U1, U2>(onFulfill: (value: Model[]) => U1 | Thenable<U1>, onReject: (error: any) => U2 | Thena...' is not assignable to type '{ <TResult1, TResult2>(onfulfilled: (value: User[]) => TResult1 | PromiseLike<TResult1>, onreject...'.
           Type 'Bluebird<any>' is not assignable to type 'Promise<any>'.
             Property '[Symbol.toStringTag]' is missing in type 'Bluebird<any>'.

This prevents Sequelize users from writing methods with a Promise return type and returning a bluebird promise.

types/sequelize#78

An in-range update of ts-node is breaking the build 🚨

Version 3.0.5 of ts-node just got published.

Branch Build failing 🚨
Dependency ts-node
Current Version 3.0.4
Type devDependency

This version is covered by your current version range and after updating it in your project the build failed.

As ts-node is β€œonly” a devDependency of this project it might not break production or downstream projects, but β€œonly” your build or test tools – preventing new deploys or publishes.

I recommend you give this issue a high priority. I’m sure you can resolve this πŸ’ͺ

Status Details
  • ❌ continuous-integration/travis-ci/push The Travis CI build failed Details

Commits

The new version differs by 7 commits.

  • c18331a 3.0.5
  • 5cf97b1 Add --inspect-brk to known flags (#343)
  • 7dfb3e3 Pin node tests at 6.x (#340)
  • 633d537 chore(package): update chai to version 4.0.1 (#337)
  • b751a56 Define exports and improve getTypeInfo help (#332)
  • d018300 Update yn default option
  • cc3bf22 Expose _ bin file for consumers to use

See the full diff

Not sure how things should work exactly?

There is a collection of frequently asked questions and of course you may always ask my humans.


Your Greenkeeper Bot 🌴

Bluebird.resolve

Hi,
I encountered an error when I wanted to use .resolve to nomalize a value that could either be a Promise or already resolved. The compiler did not let me do that:

type EventualPromise<T> = T | Bluebird.Thenable<T>;

let eventualStringPromise: EventualPromise<string>;

Bluebird.resolve(eventualPromise)
  .then((resolved: string) => {
    console.log(resolved);
  });

This fails because string | Bluebird.Thenable<string> is not assignable to string.

Here are the related definitions:

// currently:
static resolve(): Bluebird<void>;
static resolve<R>(value: Bluebird.Thenable<R>): Bluebird<R>;
static resolve<R>(value: R): Bluebird<R>;

// Proposed:
static resolve(): Bluebird<void>;
static resolve<R>(value: R | Bluebird.Thenable<R>): Bluebird<R>;

Lost .get and .join during merge

Hi,
I just noticed that the fix to .get and .join that I made a few weeks ago were lost.
Here is this repo's history: Image

The loss occurred during the highlighted merge, but it's a bit strange: the other projects did not have the same origin. Is it possible to revert it quickly ? (I'll submit a pull request but maybe there is a better way to do it).

.catch definition does not support all predicate types

It is currently valid to define .catch using a shorthand predicate. The current definition only supports function predicates.

Code snippet of a valid .catch

.catch({code: 'ENOENT'}, function(e) {
    console.log("file not found: " + e.path);
});

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.