@gitlab/application-sdk-browser
Advanced tools
Comparing version 0.2.3 to 0.2.4
{ | ||
"name": "@gitlab/application-sdk-browser", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"description": "Client side Browser SDK for GitLab Application services", | ||
@@ -13,13 +13,16 @@ "license": "MIT", | ||
"src", | ||
"specs" | ||
"tests" | ||
], | ||
"scripts": { | ||
"clean": "rm -rf ./dist", | ||
"test": "rollup -c && jest --detectOpenHandles --runInBand --verbose false", | ||
"test": "rollup -c && jest --detectOpenHandles --runInBand --verbose true", | ||
"test:only": "jest", | ||
"build": "rollup -c" | ||
"build": "yarn clean && rollup -c", | ||
"examples:install": "cd examples/vanilla-js && yarn install", | ||
"examples:serve": "cd examples/vanilla-js && yarn serve", | ||
"examples:build": "cd examples/vanilla-js && yarn build" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+ssh://git@gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-js.git" | ||
"url": "https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-browser.git" | ||
}, | ||
@@ -40,2 +43,4 @@ "keywords": [ | ||
"@rollup/plugin-terser": "^0.4.1", | ||
"@semantic-release/git": "^10.0.1", | ||
"@semantic-release/gitlab": "^12.0.2", | ||
"@types/jest": "^29.4.0", | ||
@@ -50,2 +55,3 @@ "@types/lodash": "^4.14.191", | ||
"rollup-plugin-esbuild": "^5.0.0", | ||
"semantic-release": "^21.0.3", | ||
"ts-jest": "^29.0.5", | ||
@@ -57,8 +63,6 @@ "typescript": "^5.0.2" | ||
"@snowplow/browser-plugin-error-tracking": "^3.9.0", | ||
"@snowplow/browser-plugin-form-tracking": "^3.9.0", | ||
"@snowplow/browser-plugin-link-click-tracking": "^3.9.0", | ||
"@snowplow/browser-plugin-performance-timing": "^3.9.0", | ||
"@snowplow/browser-tracker": "^3.9.0" | ||
}, | ||
"gitHead": "460333341f4a6c35260c5dc002a959e965efd7ab" | ||
} | ||
} |
@@ -102,3 +102,2 @@ # GitLab Application SDK - Browser | ||
plugins: { | ||
formTracking: true, | ||
clientHints: true, | ||
@@ -191,8 +190,17 @@ linkTracking: true, | ||
If you want to use the Browser SDK with [devkit](https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit), follow [devkit-developement guide](https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-js/-/blob/main/packages/browser-sdk/docs/devkit-development.md). | ||
If you want to use the Browser SDK with [devkit](https://gitlab.com/gitlab-org/analytics-section/product-analytics/devkit), follow [devkit-developement guide](https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-js/-/blob/main/docs/devkit-development.md). | ||
## Contribute | ||
Want to contribute to Browser-SDK? follow [contributing guide](https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-js/-/blob/main/packages/browser-sdk/docs/Contributing.md). | ||
Want to contribute to Browser-SDK? follow [contributing guide](https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-js/-/blob/main/docs/Contributing.md). | ||
## Run VanilaJS Example | ||
To run vanila js example run below commands. | ||
``` | ||
yarn examples:install | ||
yarn examples:serve | ||
``` | ||
## Troubleshooting | ||
@@ -199,0 +207,0 @@ |
@@ -13,3 +13,2 @@ import { | ||
} from '@snowplow/browser-tracker'; | ||
import { enableFormTracking } from '@snowplow/browser-plugin-form-tracking'; | ||
import { enableLinkClickTracking } from '@snowplow/browser-plugin-link-click-tracking'; | ||
@@ -24,3 +23,7 @@ import { | ||
import { hasGlobalPrivacyControlConsent } from './utils/globalPrivacyControl'; | ||
import { SCHEMAS, DEFAULT_TRACKER_ID, DEFAULT_PAGEPING_OPTIONS } from './utils/constants'; | ||
import { | ||
SCHEMAS, | ||
DEFAULT_TRACKER_ID, | ||
DEFAULT_PAGEPING_OPTIONS, | ||
} from './utils/constants'; | ||
import { getSnowplowOptions } from './utils/getSnowplowOptions'; | ||
@@ -51,3 +54,2 @@ import { | ||
defaultPlugins: AllowedPlugins = { | ||
formTracking: true, | ||
clientHints: true, | ||
@@ -99,3 +101,2 @@ linkTracking: true, | ||
if (typeof pagePingTracking === 'boolean' && pagePingTracking) { | ||
// Enables page activity tracking (sends page pings to the Collector regularly) with default options. | ||
@@ -106,4 +107,8 @@ enableActivityTracking(DEFAULT_PAGEPING_OPTIONS); | ||
enableActivityTracking({ | ||
minimumVisitLength: pagePingTracking.minimumVisitLength ?? DEFAULT_PAGEPING_OPTIONS.minimumVisitLength, | ||
heartbeatDelay: pagePingTracking.heartbeatDelay ?? DEFAULT_PAGEPING_OPTIONS.heartbeatDelay | ||
minimumVisitLength: | ||
pagePingTracking.minimumVisitLength ?? | ||
DEFAULT_PAGEPING_OPTIONS.minimumVisitLength, | ||
heartbeatDelay: | ||
pagePingTracking.heartbeatDelay ?? | ||
DEFAULT_PAGEPING_OPTIONS.heartbeatDelay, | ||
}); | ||
@@ -114,7 +119,4 @@ } | ||
const { formTracking, linkTracking, errorTracking } = plugins; | ||
const { linkTracking, errorTracking } = plugins; | ||
if (formTracking) { | ||
enableFormTracking(); | ||
} | ||
if (linkTracking) { | ||
@@ -121,0 +123,0 @@ enableLinkClickTracking(); |
@@ -13,3 +13,2 @@ import { | ||
clientHints?: boolean; | ||
formTracking?: boolean; | ||
linkTracking?: boolean; | ||
@@ -16,0 +15,0 @@ performanceTiming?: boolean; |
import { ClientHintsPlugin } from '@snowplow/browser-plugin-client-hints'; | ||
import { FormTrackingPlugin } from '@snowplow/browser-plugin-form-tracking'; | ||
import { LinkClickTrackingPlugin } from '@snowplow/browser-plugin-link-click-tracking'; | ||
@@ -17,3 +16,2 @@ import { PerformanceTimingPlugin } from '@snowplow/browser-plugin-performance-timing'; | ||
clientHints: ClientHintsPlugin, | ||
formTracking: FormTrackingPlugin, | ||
linkTracking: LinkClickTrackingPlugin, | ||
@@ -33,4 +31,4 @@ performanceTiming: PerformanceTimingPlugin, | ||
webPage: true, | ||
browser: true | ||
} | ||
browser: true, | ||
}, | ||
}; | ||
@@ -37,0 +35,0 @@ |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
5
212
45272
19
16
857
1
- Removed@snowplow/browser-plugin-form-tracking@3.24.6(transitive)