Skip to content

Latest commit

 

History

History
306 lines (176 loc) · 14.9 KB

CHANGELOG.md

File metadata and controls

306 lines (176 loc) · 14.9 KB

Changelog

2.6.11 (2024-08-16)

Bug Fixes

  • pkg: Export LogLevel to satisfy typescript defs 3c543fb - Darin Spivey, closes: #47

2.6.10 (2024-08-15)

Chores

  • dep: Bump axios to fix SSRF 9ccf500 - Darin Spivey, closes: #89

2.6.9 (2024-06-26)

Bug Fixes

  • make compatible with pipeline cdcc6b3 - Gregory Janco, closes: #86

2.6.8 (2023-11-07)

Bug Fixes

Chores

2.6.7 (2023-04-21)

Bug Fixes

  • doc: Best practices code snipit does not work as an example 4864553 - Darin Spivey, closes: #74

Chores

  • ci: Test with node 18 efd6a44 - Darin Spivey

2.6.6 (2022-06-29)

Bug Fixes

  • ci: Specify agent label and remove beforeAgent 2b1e9c7 - Darin Spivey, closes: #72

Chores

2.6.5 (2022-05-19)

Bug Fixes

  • send: Allow _serializeBuffer() to be async f00421a - Eric Melski
  • test: Use correct expected result for error tests ea88daf - Eric Melski

2.6.4 (2022-04-21)

Code Refactoring

  • extract _serializeBuffer method d23b0c1 - Eric Melski

2.6.3 (2022-04-21)

Code Refactoring

  • extract _getPayloadSize method 68a7e54 - Eric Melski

2.6.2 (2022-04-14)

Bug Fixes

  • docs: README should recommend @logdna/browser for client-side b99c0d3 - Darin Spivey, closes: #41

Chores

  • ci: Bump to node:17 e410324 - Darin Spivey

2.6.1 (2022-01-20)

Chores

2.6.0 (2021-11-29)

Bug Fixes

  • docs: add default value for verboseEvents. f8afe88 - Eric Melski

Features

  • optionally include buffer in send/error events. e3e8755 - Eric Melski

2.5.0 (2021-11-16)

Features

  • max-attempts: support retry limits 565b8c0 - Eric Melski, closes: #58

2.4.1 (2021-09-23)

Bug Fixes

  • package: Include missing files and type definitions 4a52274 - Darin Spivey, closes: #55

2.4.0 (2021-09-08)

Chores

  • deps: Upgrade linting, tap and other deps d6e6458 - Darin Spivey

Features

  • levels: Support custom log levels 0324293 - Darin Spivey

2.3.2 (2021-04-13)

Bug Fixes

  • docs: Correct bad documentation for logging errors 0606986 - Darin Spivey

Chores

  • contributors: Use all-contributors 78d997f - Darin Spivey
  • deps: Remove unnecessary eslint plugins 1141c8d - Darin Spivey

Continuous Integration

  • Switch to using semantic-release b1fa6ca - Darin Spivey

Miscellaneous

  • add @alanzchen as a contributor 61600f3 - Darin Spivey
  • add @darinspivey as a contributor af54268 - Darin Spivey
  • add @esatterwhite as a contributor 6c8807f - Darin Spivey
  • add @ligerzero459 as a contributor 9bdeac8 - Darin Spivey
  • add @mdeltito as a contributor 369e1ac - Darin Spivey
  • add @nhuttm as a contributor e8e63c2 - Darin Spivey
  • add @relative as a contributor 50c9050 - Darin Spivey

2021-03-22, Version 2.3.1 (Stable)

  • [2cda1aac84] - fix: Turn off maxBodyLength in Axios (Darin Spivey)

2021-03-15, Version 2.3.0 (Stable)

  • [ba40b6948a] - (SEMVER-MINOR) feat: Add EADDRNOTAVAIL to the retryable error codes (Darin Spivey)

2021-02-09, Version 2.2.4 (Stable)

  • [ed7835a5d6] - fix: Move branch name from master to main (Darin Spivey)

2021-02-05, Version 2.2.3 (Stable)

  • [a0f141bfaa] - doc: add contribution guides (Eric Satterwhite)

2021-01-27, Version 2.2.2 (Stable)

  • [e8df8ad569] - fix: Remove invalid characters from the user-agent (Darin Spivey)

2021-01-22, Version 2.2.1 (Stable)

  • [26600d6d94] - fix: Remove length validation for instantiation options (Darin Spivey)
  • [bff4b95e17] - fix: tests should not use match for Symbols (Darin Spivey)
  • [7d93f15a5c] - fix: tags array values must be converted to a string (Darin Spivey)

2021-01-19, Version 2.2.0 (Stable)

2021-01-05, Version 2.1.3 (Stable)

2020-12-17, Version 2.1.2 (Stable)

  • [4b012a8835] - fix(docs): update example of using Logger on AWS Lambda (Mike Del Tito)

2020-11-20, Version 2.1.1 (Stable)

  • [41f5dc525e] - fix: Add sendUserAgent to types.d.ts (Alan Chen)

2020-11-04, Version 2.1.0 (Stable)

  • [99c12195a3] - (SEMVER-MINOR) fix: Omit user-agent header if sendUserAgent option is false (Darin Spivey) LOG-7793

2020-10-28, Version 2.0.1 (Stable)

2020-10-20, Version 2.0.0 (Stable)

  • [c99d8b5169] - (SEMVER-MAJOR) feat: ignoreRetryableErrors will not emit retry-able errors (Darin Spivey) LOG-7639

2020-10-16, Version 1.3.3 (Stable)

CHANGELOG

This file documents all notable changes in theLogDNA Node.js logger package. The release numbering uses semantic versioning.

1.3.2 - September 14, 2020

Fixed

  • Removed eslint as an unnecessary peerDependency. It can be in devDependencies only.

1.3.1 - September 9, 2020

Fixed

  • The Typescript definition needed to extend EventEmitter
  • Fixed the default timeout to be 30 seconds instead of 5 seconds.

1.3.0 - September 9, 2020

Fixed

  • Corrected the module name in the Typescript definition

Added

  • Proxy support for either http or https proxy server URLs
  • Husky and commitlint to help enforce conventional commit style

1.2.0 - September 2, 2020

Added

  • Added additional error codes and statuses that trigger HTTP retries
  • Added support for a 207 (partial success) response. Lines which errored will emit an error event.

1.1.0 - August 31, 2020

Added

  • Added a log method (agentLog) intended for LogDNA usage only. This will handle logging from our agent.
  • Added gzip compression to support agentLog. This should not be used for public consumers and is only for the agentLog method.

1.0.1 - August 26, 2020

Fixed

  • Corrected a broken link ("Best Practices") in docs/migrating-from-older-versions.md

1.0.0 - August 25, 2020

Changed

  • Removed debug since it's not compatible everywhere. See issue #89
  • class Logger forces the use of the new keyword
  • Helper functions are broken out to declutter the class file
  • Logger class is no longer exported. Helper functions should be used to instantiate it.
  • cleanUpAll and flushAll functions were removed along with callbacks in general. The class is now an EventEmitter instead.
  • configs.js was renamed to the more appropriate constants.js
  • Made all variables consistent in naming convention (lowerCamelCase)
  • Added EventEmitter for successes, warnings and errors
  • Fixed retry logic and possibility for double timers
  • Fixed race condition with clearing a single buffer. Now, multiple buffers are used so that they can be independently cleared. This fixes a race condition where lines that were added during the HTTP request could be removed without being sent
  • log() Options as a string must now be a log level. TypeError if not.
  • Properly handles opts.meta, opts.context and this._meta according to indexMeta
  • Removed sizeof since it was buggy. Logic replaced with .length of the lines
  • Added meta to the constructor so that it can easily be set without needing to call addMetaProperty after instantiation.
  • Fixed map transitions; No dynamic addition of object properties or delete usage.
  • ip can now be an IPv6 address
  • Added a loadtest.js test to ensure there is not data loss
  • Exponential Backoff with Jitter algorithm implemented for HTTP retries