-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): pulling v3-release/3.0.0-beta.6 into main (#1353)
- Loading branch information
Showing
315 changed files
with
8,549 additions
and
11,998 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
if: startsWith(github.ref, 'refs/tags/v') || startsWith(github.ref, 'refs/heads/main') || github.event.pull_request.merged == true | ||
steps: | ||
- name: Checkout source branch | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Get new version number | ||
|
@@ -93,7 +93,7 @@ jobs: | |
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
PROJECT_NAME: 'JS SDK 1.1 NPM Package' | ||
PROJECT_NAME: 'JS SDK v1.1 NPM Package' | ||
NPM_PACKAGE_URL: 'https://www.npmjs.com/package/rudder-sdk-js' | ||
with: | ||
channel-id: ${{ secrets.SLACK_RELEASE_CHANNEL_ID }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ jobs: | |
role-to-assume: arn:aws:iam::${{ secrets.AWS_PROD_ACCOUNT_ID }}:role/${{ secrets.AWS_PROD_S3_SYNC_ROLE }} | ||
aws-region: us-east-1 | ||
|
||
- name: Checkout source branch | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Node | ||
|
@@ -87,6 +87,11 @@ jobs: | |
aws s3 cp public/list_integration_sdks.html s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/latest/modern/list_integration_sdks.html --cache-control max-age=3600 | ||
AWS_MAX_ATTEMPTS=10 aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/latest*" | ||
- name: Sync assets to S3 | ||
run: | | ||
aws s3 cp assets/integrations/AdobeAnalytics/ s3://${{ secrets.AWS_PROD_S3_BUCKET_NAME }}/adobe-analytics-js --recursive --cache-control max-age=3600 | ||
aws cloudfront create-invalidation --distribution-id ${{ secrets.AWS_PROD_CF_DISTRIBUTION_ID }} --paths "/adobe-analytics-js*" | ||
- name: Send message to Slack channel | ||
id: slack | ||
uses: slackapi/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,7 +146,7 @@ jobs: | |
} | ||
- name: Send message to Slack channel | ||
id: slack | ||
id: slack-v1dot1 | ||
uses: slackapi/[email protected] | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
/* eslint-disable no-underscore-dangle */ | ||
import { Mixpanel } from '../../../src/integrations/Mixpanel'; | ||
|
||
describe('Mixpanel init tests', () => { | ||
let mixpanel; | ||
|
||
beforeEach(() => { | ||
window.mixpanel = {}; | ||
}); | ||
|
||
test('Persistence type is missing', () => { | ||
mixpanel = new Mixpanel({ persistence: 'none' }, { logLevel: 'debug' }); | ||
mixpanel.init(); | ||
expect(window.mixpanel._i[0][1]).toEqual({ | ||
cross_subdomain_cookie: false, | ||
secure_cookie: false, | ||
persistence: 'cookie', | ||
}); | ||
}); | ||
|
||
test('Persistence type is cookie', () => { | ||
mixpanel = new Mixpanel( | ||
{ persistenceType: 'cookie', persistenceName: '' }, | ||
{ logLevel: 'debug' }, | ||
); | ||
mixpanel.init(); | ||
expect(window.mixpanel._i[0][1]).toEqual({ | ||
cross_subdomain_cookie: false, | ||
secure_cookie: false, | ||
persistence: 'cookie', | ||
}); | ||
}); | ||
|
||
test('Persistence type is localStorage and Persistence name is non empty', () => { | ||
mixpanel = new Mixpanel( | ||
{ persistenceType: 'localStorage', persistenceName: 'abc' }, | ||
{ logLevel: 'debug' }, | ||
); | ||
mixpanel.init(); | ||
expect(window.mixpanel._i[0][1]).toEqual({ | ||
cross_subdomain_cookie: false, | ||
secure_cookie: false, | ||
persistence: 'localStorage', | ||
persistence_name: 'abc', | ||
}); | ||
}); | ||
|
||
test('Persistence type is none', () => { | ||
mixpanel = new Mixpanel( | ||
{ persistenceType: 'none', persistenceName: '' }, | ||
{ logLevel: 'debug' }, | ||
); | ||
mixpanel.init(); | ||
expect(window.mixpanel._i[0][1]).toEqual({ | ||
cross_subdomain_cookie: false, | ||
secure_cookie: false, | ||
disable_persistence: true, | ||
}); | ||
}); | ||
}); |
File renamed without changes.
File renamed without changes.
Oops, something went wrong.