Commit Graph

18 Commits

Author SHA1 Message Date
David Luna 34475825e8
chore: update `module` config in tsconfig.base.json (#5347)
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
2025-01-23 10:35:36 +00:00
Simen Bekkhus dc94696d5a
chore: remove handling of node versions 8, 9 and 10 in tests (#3696)
Co-authored-by: Chengzhong Wu <legendecas@gmail.com>
Co-authored-by: Marc Pichler <marc.pichler@dynatrace.com>
2023-03-28 08:01:33 +02:00
Chengzhong Wu 369b07e1c7
chore: enforce format with prettier (#3444) 2022-12-01 14:58:56 +08:00
Daniel Dyla dcc9f860be
Prevent double wrapping event emitter listeners (#3133) 2022-08-03 17:28:59 -04:00
Rauno Viskus 1998542d35
feat: unify the signatures of bind and with (#2247)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-06-30 14:50:04 -04:00
Daniel Dyla d4df2f7eba
chore: update API to 0.21.0 (#2255)
* chore: update API to 0.21.0

* chore: revert accidentally renamed argument

* chore: fix test

* chore: make tsdocs more clear
2021-06-05 10:23:21 +02:00
Gerhard Stöbich a2fff0dd2e
fix: correct removeAllListeners in case no event is passed (#2088)
Co-authored-by: Valentin Marchaud <contact@vmarchaud.fr>
2021-04-09 11:31:51 +02:00
Gerhard Stöbich 67f7e70a3d
chore: update API to 0.18.0 (#1977) 2021-03-01 08:30:13 -05:00
Gerhard Stöbich 9437d7e886
fix: isolate binding EventEmitter (#1937)
Binding an EventEmitter a second time via another instances of ContextManager
shouldn't have side effects to the first ContextManager.

Use an unique symbol per ContextManager instance to isolate them.
2021-02-22 21:43:52 +01:00
Gerhard Stöbich 70a128ff5d
feat: add support to forward args in context.with (#1883)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2021-02-08 11:12:34 -05:00
Daniel Dyla 75ae34c0a2
chore: use interface for context types (#1515) 2020-09-21 15:14:03 -04:00
Gerhard Stöbich 3bc4d57977
fix: ignore TIMERWRAP in AsyncHooksContextManager (#1530)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-09-21 12:18:07 -04:00
Johannes Würbach bf2f6177ea
AsyncLocalStorage based ContextManager (#1210)
Co-authored-by: Daniel Dyla <dyladan@users.noreply.github.com>
2020-06-25 22:17:15 -04:00
Mark Wolff e9b2cf9aeb
refactor: remove copyright year from file headers (#1150) 2020-06-12 09:27:21 -04:00
Valentin Marchaud 12e6246bb9
fix(asynchooks-scope): fix context loss using .with() #1101 (#1099)
This addresses #1101 #752, and #1013

- Fix context loss when used in some async cases
2020-05-28 15:26:39 -04:00
Olivier Albertini 05e7bb9c8f
fix(lint): move tslint to eslint (#892) 2020-05-20 20:42:17 -07:00
Valentin Marchaud 5ea299da78
feat(context): implement withAsync #752 (#926) 2020-04-29 11:38:56 -04:00
Daniel Dyla 9a3fd7b560
Rename scope to context (#853) 2020-03-13 15:01:07 -04:00