Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
77 changes: 41 additions & 36 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,43 +1,48 @@
2.4.1 / 2022-02-22
==================
2.4.2
=====

* Use `writableEnded` instead of deprecated `finished`, with a fallback for older Node.js versions (#54)

2.4.1
=====

* Fix error on early async hooks implementations

2.4.0 / 2022-02-21
==================
2.4.0
=====

* Prevent loss of async hooks context

2.3.0 / 2015-05-26
==================
2.3.0
=====

* Add defined behavior for HTTP `CONNECT` requests
* Add defined behavior for HTTP `Upgrade` requests
* deps: ee-first@1.1.1

2.2.1 / 2015-04-22
==================
2.2.1
=====

* Fix `isFinished(req)` when data buffered

2.2.0 / 2014-12-22
==================
2.2.0
=====

* Add message object to callback arguments

2.1.1 / 2014-10-22
==================
2.1.1
=====

* Fix handling of pipelined requests

2.1.0 / 2014-08-16
==================
2.1.0
=====

* Check if `socket` is detached
* Return `undefined` for `isFinished` if state unknown

2.0.0 / 2014-08-16
==================
2.0.0
=====

* Add `isFinished` function
* Move to `jshttp` organization
Expand All @@ -46,53 +51,53 @@
* Support both `req` and `res` as arguments
* deps: ee-first@1.0.5

1.2.2 / 2014-06-10
==================
1.2.2
=====

* Reduce listeners added to emitters
- avoids "event emitter leak" warnings when used multiple times on same request

1.2.1 / 2014-06-08
==================
1.2.1
=====

* Fix returned value when already finished

1.2.0 / 2014-06-05
==================
1.2.0
=====

* Call callback when called on already-finished socket

1.1.4 / 2014-05-27
==================
1.1.4
=====

* Support node.js 0.8

1.1.3 / 2014-04-30
==================
1.1.3
=====

* Make sure errors passed as instanceof `Error`

1.1.2 / 2014-04-18
==================
1.1.2
=====

* Default the `socket` to passed-in object

1.1.1 / 2014-01-16
==================
1.1.1
=====

* Rename module to `finished`

1.1.0 / 2013-12-25
==================
1.1.0
=====

* Call callback when called on already-errored socket

1.0.1 / 2013-12-20
==================
1.0.1
=====

* Actually pass the error to the callback

1.0.0 / 2013-12-20
==================
1.0.0
=====

* Initial release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "on-finished",
"description": "Execute a callback when a request closes, finishes, or errors",
"version": "2.4.1",
"version": "2.4.2",
"contributors": [
"Douglas Christopher Wilson <doug@somethingdoug.com>",
"Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)"
Expand Down
Loading