Skip to content

Commit

Permalink
EventsSDK: Bump version to 1.0.0-beta.3 (#122)
Browse files Browse the repository at this point in the history
Bump version in package.json & package-lock.json to 1.0.0-beta.3

Also add comment to ignore expected warnings in
reportBrowserAnalytics.test.ts

---------

Co-authored-by: Ethan Jaffee <[email protected]>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 16, 2023
1 parent fd43132 commit 52aa4b4
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 16 deletions.
4 changes: 2 additions & 2 deletions docs/analytics.reportbrowseranalytics.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@

An alternative entry point for the Yext Analytics Events SDK, currently used by Google Tag Manager. This method reads the config and payload from the variable analyticsEventPayload stored in the global window object. The config and payload are then passed to the report function to be sent to the Yext Analytics Events API.

<b>Signature:</b>
**Signature:**

```typescript
export declare function reportBrowserAnalytics(): Promise<string>;
```
<b>Returns:</b>
**Returns:**

Promise&lt;string&gt;

2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yext/analytics",
"version": "1.0.0-beta.2",
"version": "1.0.0-beta.3",
"description": "An analytics library for Yext",
"author": "[email protected]",
"license": "BSD-3-Clause",
Expand Down
24 changes: 12 additions & 12 deletions tests/AnalyticsEventReporter.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ describe('Test report function', () => {
action: 'C_CUSTOM_ACTION',
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
},
referrerUrl: 'https://yext.com',
destinationUrl: 'https://google.com',
Expand Down Expand Up @@ -141,7 +141,7 @@ describe('Test report function', () => {
action: 'c_lowercase_custom_action',
authorization: 'Bearer bearerToken',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
},
destinationUrl: 'https://google.com',
count: 5
Expand Down Expand Up @@ -194,7 +194,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'Bearer bearerToken',
clientSdk: {
ANALYTICS: '1.0.0-beta.2',
ANALYTICS: '1.0.0-beta.3',
chat: '1.0.1.0'
},
destinationUrl: 'https://google.com',
Expand Down Expand Up @@ -249,7 +249,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'Bearer bearerToken',
clientSdk: {
ANALYTICS: '1.0.0-beta.2',
ANALYTICS: '1.0.0-beta.3',
chat: '1.0.1.0'
},
destinationUrl: 'https://google.com',
Expand Down Expand Up @@ -301,7 +301,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'Bearer bearerToken',
clientSdk: {
ANALYTICS: '1.0.0-beta.2',
ANALYTICS: '1.0.0-beta.3',
chat: '1.0.1.0'
},
destinationUrl: 'https://google.com',
Expand Down Expand Up @@ -349,7 +349,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
},
referrerUrl: 'https://yext.com',
count: 5
Expand Down Expand Up @@ -395,7 +395,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
},
referrerUrl: 'https://yext.com',
count: 5
Expand Down Expand Up @@ -436,7 +436,7 @@ describe('Test report function', () => {
{
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
}
}
);
Expand Down Expand Up @@ -473,7 +473,7 @@ describe('Test report function', () => {
{
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
}
}
);
Expand Down Expand Up @@ -514,7 +514,7 @@ describe('Test report function', () => {
action: 'ADD_TO_CART',
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2'
ANALYTICS: '1.0.0-beta.3'
},
referrerUrl: 'https://yext.com',
count: 5
Expand Down Expand Up @@ -544,7 +544,7 @@ describe('Test report function', () => {
action: 'APPLY',
authorization: 'KEY validKey',
clientSdk: {
ANALYTICS: '1.0.0-beta.2',
ANALYTICS: '1.0.0-beta.3',
chat: '1.0.1.0'
},
destinationUrl: 'https://google.com',
Expand Down Expand Up @@ -670,7 +670,7 @@ describe('Test report function', () => {
responseId: 'responseId'
},
clientSdk: {
ANALYTICS: '1.0.0-beta.2',
ANALYTICS: '1.0.0-beta.3',
chat: '1.0.0'
},
count: 5,
Expand Down
1 change: 1 addition & 0 deletions tests/reportBrowserAnalytics.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
import { reportBrowserAnalytics } from '../src/index';
import { AnalyticsEventReporter } from '../src/AnalyticsEventReporter'; // replace with actual import path

Expand Down

0 comments on commit 52aa4b4

Please sign in to comment.