Skip to content

Releases: amplitude/Amplitude-Node

v1.0.3

06 Oct 18:37
Compare
Choose a tag to compare
  • Feature: The client now returns the Response type on logEvent, in addition to the flush function. See the Response type for documentation on what to expect! Note here that the Response Body is only available when the SDK is pointed at the http v2 api (the default server url).

v1.0.2

12 Nov 01:56
Compare
Choose a tag to compare

Fixes an issue with 1.0.0 and 1.0.1 where packages would compile to empty packages and published as empty on NPM, or require empty packages.

** Do not try to use 1.0.0 or 1.0.1 as they do not contain the entry file and will not be able to be imported **

v1.0.0

25 Sep 22:11
Compare
Choose a tag to compare

A major release of the Amplitude Node SDK!

@amplitude/node:

  • Addition of the Transport class and interface
    • Guarantees that event payloads are sent one by one, in order.
  • Addition of the RetryClass class and RetryHandler interface.
    • Attempts to retry failed transport events when appropriate (network instability, server errors, device throttling)
    • Uses the Response of the HTTP v2 API to further inform which events should and should not be retried.
    • A focus on making sure that events are sent in the correct order and that device/user throttling affects as few events as possible
  • Ability to extend and override above classes in the base SDK
  • Implementation of the flush function and turns on batching of events into larger payloads by default

@amplitude/types:

  • Addition of Response and Status types that describe the result of a request to the Amplitude HTTP v2 API
    • Helper utilities to parse the information from a request, with the assumption that we are pointed to the HTTP v2 endpoint.
  • Addition of the RetryClass and Transport interfaces, two abstraction layers for helping the Node Client maintain correctness and reliability.
  • Increased optioning on the Option type (see docs for more info):
    • debug (boolean): Whether or not to start the SDK in debug mode, turning on message logs.
    • logLevel (number): The verbosity level of messages in the SDK.
    • maxCachedEvents (number): The number of events to store before flushing.
    • maxRetries (number): The number of times the base retryClass will retry a given event before giving up and dropping.
    • retryClass (RetryClass): An instance that implements sendEventsWithRetry function, used to override our retrying mechanisms.
    • transportClass (Transport): An instance that implements the sendPayload function, used to override the Transport Layer.
    • uploadIntervalInSec (number): The number of seconds to set a timeout for after logging an event to flush all batched events. 0 by default (flushes on the next event loop).

@amplitude/utils:

  • Utilities to help Amplitude log safely in multiple environments
    • Utilities to help Amplitude configure the level at which it logs messages
  • Utilities to help collect information off of response bodies from the HTTP V2 API.

v0.3.3

02 Jun 17:39
Compare
Choose a tag to compare
  • @amplitude/node: You can customize hostname by setting serverUrl in options. Thanks the PR from @timsu

v0.3.2

28 May 06:58
Compare
Choose a tag to compare
  • @amplitude/node: Fix TypeError: "listener" ... error from http request.

v0.3.1

21 May 06:20
Compare
Choose a tag to compare
  • @amplitude/node: Fix incorrect library version.

v0.3.0

21 May 06:11
Compare
Choose a tag to compare
  • Created a new package @amplitude/types which contains the basic types to further modularize the project.
  • Also if you want to build a SDK yourself, you can just use @amplitude/types package to gain more flexibilities.

v0.2.0

07 May 06:11
Compare
Choose a tag to compare
  • Add tslib as dependency.

v0.1.0

04 May 08:19
Compare
Choose a tag to compare
  • The 1st beta release of Node.js SDK. @amplitude/node
  • Now you can call logEvent API to do identify, send event, set group operation.