Skip to content

Commit

Permalink
Use native Promise rather than any-event
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Oct 6, 2017
1 parent 838e2d6 commit 791a115
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 19 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## v2.0.0 2017-10-06

* Use native `Promise` rather than `any-event`.

## v1.2.1 2017-10-06

* Typescript: reference additional modules in our typings file.
Expand Down
13 changes: 0 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,19 +129,6 @@ and
[`PromiseWritable.once`](https://www.npmjs.com/package/promise-writable#once)
for details.

### Promise

This module uses [any-promise](https://www.npmjs.com/package/any-promise) and
any ES6 Promise library or polyfill is supported.

Ie. [bluebird](https://www.npmjs.com/package/bluebird) can be used as Promise
library for this module, if it is registered before.

```js
require('any-promise/register/bluebird')
const PromiseReadable = require('promise-duplex')
```

### License

Copyright (c) 2017 Piotr Roszatycki <piotr.roszatycki@gmail.com>
Expand Down
2 changes: 0 additions & 2 deletions lib/promise-duplex.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@
const PromiseReadable = require('promise-readable')
const PromiseWritable = require('promise-writable')

const Promise = require('any-promise')

class PromiseDuplex extends PromiseReadable /* and PromiseWritable */ {
constructor (stream) {
super(stream)
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "promise-duplex",
"version": "1.1.2",
"version": "2.0.0",
"description": "Return promise for duplex stream",
"main": "lib/promise-duplex.js",
"typings": "lib/promise-duplex.d.ts",
Expand All @@ -23,9 +23,8 @@
"node": ">=4.0.0"
},
"dependencies": {
"any-promise": "^1.3.0",
"promise-readable": "^1.2.1",
"promise-writable": "^1.3.1"
"promise-readable": "^2.0.0",
"promise-writable": "^2.0.0"
},
"devDependencies": {
"@types/byline": "^4.2.31",
Expand Down

0 comments on commit 791a115

Please sign in to comment.