Skip to content

Commit

Permalink
chore: release 4.1.6
Browse files Browse the repository at this point in the history
- docs: add a AsyncWrap history to README.md
  • Loading branch information
Jeff-Lewis committed May 23, 2017
1 parent f4b29cd commit ffad8b5
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 21 deletions.
49 changes: 31 additions & 18 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,47 @@
### v4.1.5
* dep: update engine support ^4.7||^6.9.2||^7.3 to be same as `async-hook`'s
# `cls-hooked` Changelog

## v4.1.6

* fix: Use the correct `err` variable name in try/catch. Thanks to [@enko](https://github.com/enko).

## v4.1.5

* dep: update engine support ^4.7||^6.9.2||^7.3 to be same as `async-hook`'s
* dep: update `async-hook` to 1.7.1
* test: give `fs.watchFile` a little more time to pass on Travis CI

### v4.1.4
* supports node 4.5.0 now
* chore(ci): add node 4 to travis
## v4.1.4

* feat: supports node 4.5.0 now
* test: add node 4 to travis

## v4.1.3

* dep: updated dependencies. Fix eslint issues
* feat: add runPromise

## v4.1.2

* chore: republishing to npm v4.1.2
* test: Update travis and strict npm engine to ^6.2.2

## v4.1.1

### v4.1.3
* updated dependencies. Fix eslint issues
* add runPromise
* test: Updated travis and strict npm engine to ^6.2.2

### v4.1.2
* republishing to npm v4.1.2
* Update travis and strict npm engine to ^6.2.2
## v4.1.0

### v4.1.1
* Updated travis and strict npm engine to ^6.2.2
* feat: add `runAndReturn` method to get return value of `func` (from [@overlookmotel](https://github.com/overlookmotel/node-continuation-local-storage)).

### v4.1.0
* Feature: add `runAndReturn` method to get return value of `func` (from [@overlookmotel](https://github.com/overlookmotel/node-continuation-local-storage)).

## v4.0.1

### v4.0.1
* Same API but major change to implementation. Uses **unofficial** [AsyncWrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md) instead of [async-listener](https://github.com/othiym23/async-listener).
* feat: Same API but major change to implementation. Uses **unofficial** [AsyncWrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md) instead of [async-listener](https://github.com/othiym23/async-listener).


### v3.1.0 (2014-07-28):

* Updated to use `async-listener@0.4.7` to pick up bug fixes.
* Updated to use `async-listener@0.4.7` to pick up bug fixes.

### v3.0.0 (2013-12-14):

Expand Down
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,21 @@

# Continuation-Local Storage ( Hooked )

### This is a fork of [CLS](https://github.com/othiym23/node-continuation-local-storage) using [AsyncWrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md) instead of [async-listener](https://github.com/othiym23/async-listener). ###
## This module uses AsyncWrap which is an undocumented API, so please consider the risk before using it

**This module uses AsyncWrap which is an undocumented API, so please consider the risk before using it.** _Thanks to [@trevnorris](https://github.com/trevnorris) for [AsyncWrap](https://github.com/nodejs/node-eps/blob/master/006-asynchooks-api.md) and all the async work in Node and [@AndreasMadsen](https://github.com/AndreasMadsen) for [async-hook](https://github.com/AndreasMadsen/async-hook)._
### This is a fork of [CLS](https://github.com/othiym23/node-continuation-local-storage) using [AsyncWrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md) instead of [async-listener](https://github.com/othiym23/async-listener)

### Thanks to [@trevnorris](https://github.com/trevnorris) for [AsyncWrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md) and all the async work in Node and [@AndreasMadsen](https://github.com/AndreasMadsen) for [async-hook](https://github.com/AndreasMadsen/async-hook)

### A little history of "AsyncWrap/AsyncHook" and its incarnations

1. First implementation was called **[AsyncListener](https://github.com/nodejs/node-v0.x-archive/pull/6011)** in node v0.11 but was [removed from core](https://github.com/nodejs/node-v0.x-archive/pull/8110) prior to Nodejs v0.12
2. Second implementation called **[AsyncWrap, async-wrap or async_wrap](https://github.com/nodejs/node-eps/blob/async-wrap-ep/XXX-asyncwrap-api.md)** was included to Nodejs v0.12.
- `AsyncWrap` is unofficial and undocumented but is currently in Nodejs versions 6 & 7
- `cls-hooked` currently uses `AsyncWrap`
3. Third implementation and [offically Node-eps accepted](https://github.com/nodejs/node-eps/blob/master/006-asynchooks-api.md) **AsyncHook API** was recently merged into Nodejs's core master branch and is expected to be in Nodejs 8. :)

---
Continuation-local storage works like thread-local storage in threaded
programming, but is based on chains of Node-style callbacks instead of threads.
The standard Node convention of functions calling functions is very similar to
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cls-hooked",
"version": "4.1.5",
"version": "4.1.6",
"description": "CLS using AsynWrap instead of async-listener - Node >= 4.7.0",
"main": "context.js",
"files": [
Expand Down

0 comments on commit ffad8b5

Please sign in to comment.