Closed greenkeeper[bot] closed 4 years ago
Merging #81 into master will not change coverage. The diff coverage is
n/a
.
@@ Coverage Diff @@
## master #81 +/- ##
=======================================
Coverage 99.04% 99.04%
=======================================
Files 9 9
Lines 209 209
=======================================
Hits 207 207
Misses 2 2
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 3d10bb8...f5a6fab. Read the comment docs.
dependency
is-promise was updated from 2.2.2
to 4.0.0
.Update to this version instead 🚀
Use PromiseLike
instead of Promise
in TypeScript (#40)
This is only a breaking change for TypeScript users.
In the following code:
function foo(x: PromiseLike`string> | string) {
if (isPromise(x)) {
return x;
} else {
return Promise.resolve(x);
}
}
TypeScript would previously have incorrectly inferred foo
as returning Promise
string>when in fact it returns
PromiseLikestring>
. The latest version fixes this. If you instead had the following code, it should work exactly the same as before:
function foo(x: Promise`string> | string) {
if (isPromise(x)) {
return x;
} else {
return Promise.resolve(x);
}
}
This update is to reflect the fact that is-promise
does "duck" typing, rather than an instanceof
check.
:tada: This issue has been resolved in version 4.0.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
☝️ Important announcement: Greenkeeper will be saying goodbye 👋 and passing the torch to Snyk on June 3rd, 2020! Find out how to migrate to Snyk and more at greenkeeper.io
The dependency is-promise was updated from
2.2.2
to3.0.0
.This version is not covered by your current version range.
If you don’t accept this pull request, your project will work just like it did before. However, you might be missing out on a bunch of new features, fixes and/or performance improvements from the dependency update.
Publisher: then-bot License: MIT
Release Notes for 3.0.0
Breaking Changes
Restricted "exports" in package.json (for node 14+) (#30)
The only ways to import this are now:
or
If you were requiring things like the
package.json
file within the package, these are not part of the public API, and will no longer be accessible.is-promise now uses "default" exports in ES Modules environments (#30)
If you were using ES6 style imports via
you will need to update this to
If you were using CommonJS style
require
, no change is needed.This package now comes bundled with TypeScript definitions (#31)
This means you may get new errors that you didn't see before if you are using TypeScript. If you are not using TypeScript, this change will not impact you.
Commits
The new version differs by 8 commits.
1fc71a4
feat: use exports to expose an ES Module as well as CJS (#30)
e5e834a
test: add tests for
.then
on the prototype (#35)19c6d89
feat: add typescript definitions (#31)
3af13e9
chore: remove .npmignore (#28)
2384dee
ci: remove common-env context (#27)
8e7187d
ci: setup circleci (#25)
34dc9f8
Test on Node 12 & 14 (#21)
ca22483
Release 2.2.2
See the full diff
FAQ and help
There is a collection of [frequently asked questions](https://greenkeeper.io/faq.html). If those don’t help, you can always [ask the humans behind Greenkeeper](https://github.com/greenkeeperio/greenkeeper/issues/new).Your Greenkeeper bot :palm_tree: