Skip to content

Releases: tristanls/telemetry-events-log

v3.0.1

01 Sep 14:49

Choose a tag to compare

Removed unused test code.

v3.0.0

31 Aug 16:15

Choose a tag to compare

Replaced deprecated nodeunit test framework with jest.
Broke backwards compatibility by using ES6 features.
Dependencies are updated.

v2.0.0

27 Nov 18:23

Choose a tag to compare

This release breaks the API in a perhaps non-obvious way, hence MAJOR version bump to v2.0.0.

The API change revolves around the use case of calling log(level, message, custom) instead of the long form log(level, message, common, custom). Both, the v1 and v2 code base do not modify common parameter, but do mutate the custom parameter. The assumption being that common will be reused later in other calls, so changing it would have unexpected consequences, while custom was created per call to log(...) so it was ok to use it and mutate it directly.

What I (@tristanls) found in practice is that calling log(level, message, custom) does not occur in common usage. The much more often encountered pattern is log(level, message, common, {}), which I often mistakenly invoked via log(level, message, common).

Since log(level, message, custom) is hardly (if ever) used, v2.0.0 changes the API so that when log(...) is called with three parameters, the last parameter is interpreted as common instead of custom, as in log(level, message, common), and therefore will not be mutated in place but cloned/copied instead.

v1.0.1

13 Oct 18:35

Choose a tag to compare

Dependencies updated.