diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a70550..70c4a17 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.7.6](https://github.com/amplitude/experiment-node-server/compare/v1.7.5...v1.7.6) (2023-10-23) + +**Note:** Version bump only for package experiment-node-server-root + + + + + ## [1.7.5](https://github.com/amplitude/experiment-node-server/compare/v1.7.4...v1.7.5) (2023-10-02) diff --git a/docs/classes/AmplitudeCookie.html b/docs/classes/AmplitudeCookie.html index f660540..4bc266f 100644 --- a/docs/classes/AmplitudeCookie.html +++ b/docs/classes/AmplitudeCookie.html @@ -1,4 +1,4 @@ -
This is the API Reference for the Experiment Node.js Server SDK. For more details on implementing this SDK, view the [documentation] @@ -69,7 +69,7 @@
Const
Const
Methods
Static
cookie-- cookie
Name(amplitudeApiKey: string): string
+- cookie
Name(amplitudeApiKey: string, newFormat?: boolean): string
-
-
+-
+
Returns
The cookie name that Amplitude sets for the provided @@ -63,12 +63,16 @@
Parameters
amplitudeApiKey: string
The Amplitude API Key
+newFormat: boolean = false
+True if the cookie is in the Browser SDK 2.0 format
Returns string
Static
generate-- generate(deviceId: string): string
+- generate(deviceId: string, newFormat?: boolean): string
-
-
+-
+
Generates a cookie string to set for the Amplitude Javascript SDK
@@ -80,12 +84,16 @@Parameters
deviceId: string
A device id to set
+newFormat: boolean = false
+True if the cookie is in the Browser SDK 2.0 format
Returns string
Static
parse-- parse(amplitudeCookie: string): ExperimentUser
+- parse(amplitudeCookie: string, newFormat?: boolean): ExperimentUser
-
-
+-
+
Returns
a ExperimentUser context containing a device_id and user_id @@ -97,6 +105,10 @@
Parameters
amplitudeCookie: string
A string from the amplitude cookie
+newFormat: boolean = false
+True if the cookie is in the Browser SDK 2.0 format
Returns ExperimentUser