diff --git a/.github/actions/build/action.yml b/.github/actions/build/action.yml index bce1f18a..fa50c3a9 100644 --- a/.github/actions/build/action.yml +++ b/.github/actions/build/action.yml @@ -14,9 +14,6 @@ inputs: GROWTHBOOK_CLIENT_KEY: description: Growthbook client key for analytics required: false - GROWTHBOOK_DECRYPTION_KEY: - description: Growthbook decryption key for analytics - required: false runs: using: composite steps: @@ -26,6 +23,5 @@ runs: TRACKJS_TOKEN: ${{ inputs.TRACKJS_TOKEN }} RUDDERSTACK_KEY: ${{ inputs.RUDDERSTACK_KEY }} GROWTHBOOK_CLIENT_KEY: ${{ inputs.GROWTHBOOK_CLIENT_KEY }} - GROWTHBOOK_DECRYPTION_KEY: ${{ inputs.GROWTHBOOK_DECRYPTION_KEY }} run: npm run build shell: bash diff --git a/.github/workflows/release_production.yml b/.github/workflows/release_production.yml index dee44cd2..156817b8 100644 --- a/.github/workflows/release_production.yml +++ b/.github/workflows/release_production.yml @@ -25,7 +25,6 @@ jobs: NODE_ENV: production TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }} RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }} - GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }} GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} - name: Versioning uses: ./.github/actions/versioning diff --git a/.github/workflows/release_staging.yml b/.github/workflows/release_staging.yml index 23a71cc2..31a2ef94 100644 --- a/.github/workflows/release_staging.yml +++ b/.github/workflows/release_staging.yml @@ -22,7 +22,6 @@ jobs: with: NODE_ENV: staging RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }} - GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }} GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} - name: Versioning uses: ./.github/actions/versioning diff --git a/.github/workflows/release_test.yml b/.github/workflows/release_test.yml index 83194139..a9aaeda2 100644 --- a/.github/workflows/release_test.yml +++ b/.github/workflows/release_test.yml @@ -27,7 +27,6 @@ jobs: NODE_ENV: staging TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }} RUDDERSTACK_KEY: ${{ vars.RUDDERSTACK_KEY }} - GROWTHBOOK_DECRYPTION_KEY: ${{ secrets.GROWTHBOOK_DECRYPTION_KEY }} GROWTHBOOK_CLIENT_KEY: ${{ vars.GROWTHBOOK_CLIENT_KEY }} - name: Versioning uses: ./.github/actions/versioning diff --git a/docusaurus.config.js b/docusaurus.config.js index bf940dc8..feca513d 100644 --- a/docusaurus.config.js +++ b/docusaurus.config.js @@ -21,7 +21,6 @@ const config = { customFields: { trackJsToken: process.env.TRACKJS_TOKEN, rudderstackKey: process.env.RUDDERSTACK_KEY, - growthbookDecryptionKey: process.env.GROWTHBOOK_DECRYPTION_KEY, growthbookClientKey: process.env.GROWTHBOOK_CLIENT_KEY, }, diff --git a/package-lock.json b/package-lock.json index 1a69345a..c8a0a210 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,7 +8,7 @@ "name": "deriv-api-docs", "version": "1.0.0", "dependencies": { - "@deriv-com/analytics": "^1.18.0", + "@deriv-com/analytics": "^1.22.1", "@deriv-com/auth-client": "^1.0.27", "@deriv/deriv-api": "^1.0.11", "@deriv/quill-icons": "^1.22.10", @@ -2568,9 +2568,10 @@ } }, "node_modules/@deriv-com/analytics": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@deriv-com/analytics/-/analytics-1.18.0.tgz", - "integrity": "sha512-n1nwd5imrZJEWw4CRvYTE0/tmO+baCuc9EpQa46JuSPFVUjLUhMwILJ5XPg5Eu24bPUjatkkVygEm+dsQBE7fg==", + "version": "1.22.1", + "resolved": "https://registry.npmjs.org/@deriv-com/analytics/-/analytics-1.22.1.tgz", + "integrity": "sha512-HmQwi9hLIT/wfsXTNMmKOwGMfw9o6zJrvcm8olJ15e5Z6aJznRR7ANw68ezEJhy37ihO4WyHJm8Ejw7x/Sc8sA==", + "license": "MIT", "dependencies": { "@growthbook/growthbook": "^1.1.0", "@rudderstack/analytics-js": "^3.5.1", diff --git a/package.json b/package.json index 89472f71..2223ead7 100644 --- a/package.json +++ b/package.json @@ -26,7 +26,7 @@ "format": "prettier --write 'src/**/*.{js,jsx,ts,tsx,md,json}' --config ./.prettierrc" }, "dependencies": { - "@deriv-com/analytics": "^1.18.0", + "@deriv-com/analytics": "^1.22.1", "@deriv-com/auth-client": "^1.0.27", "@deriv/deriv-api": "^1.0.11", "@deriv/quill-icons": "^1.22.10", diff --git a/src/theme/Root.tsx b/src/theme/Root.tsx index 12c5dc6d..d47a7f5f 100644 --- a/src/theme/Root.tsx +++ b/src/theme/Root.tsx @@ -26,10 +26,9 @@ if (trackJsToken) { console.warn('trackjs is not installed due to a missing token'); } -if (rudderstackKey && growthbookClientKey && growthbookDecryptionKey) { +if (rudderstackKey && growthbookClientKey) { Analytics?.initialise({ growthbookKey: siteConfig.customFields.growthbookClientKey.toString(), - growthbookDecryptionKey: siteConfig.customFields.growthbookDecryptionKey.toString(), rudderstackKey: siteConfig.customFields.rudderstackKey.toString(), }); } else {