@datadog/browser-core
Advanced tools
Comparing version 5.5.1 to 5.6.0
@@ -9,3 +9,3 @@ "use strict"; | ||
var publicApi = (0, polyfills_1.assign)({ | ||
version: "5.5.1", | ||
version: "5.6.0", | ||
// This API method is intentionally not monitored, since the only thing executed is the | ||
@@ -12,0 +12,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and |
export interface CookieOptions { | ||
secure?: boolean; | ||
crossSite?: boolean; | ||
partitioned?: boolean; | ||
domain?: string; | ||
@@ -5,0 +6,0 @@ } |
@@ -14,3 +14,4 @@ "use strict"; | ||
var secure = options && options.secure ? ';secure' : ''; | ||
document.cookie = "".concat(name, "=").concat(value, ";").concat(expires, ";path=/;samesite=").concat(sameSite).concat(domain).concat(secure); | ||
var partitioned = options && options.partitioned ? ';partitioned' : ''; | ||
document.cookie = "".concat(name, "=").concat(value, ";").concat(expires, ";path=/;samesite=").concat(sameSite).concat(domain).concat(secure).concat(partitioned); | ||
} | ||
@@ -17,0 +18,0 @@ exports.setCookie = setCookie; |
@@ -25,3 +25,7 @@ import type { RawTelemetryConfiguration } from '../telemetry'; | ||
version?: string | undefined; | ||
/** | ||
* @deprecated use usePartitionedCrossSiteSessionCookie instead | ||
*/ | ||
useCrossSiteSessionCookie?: boolean | undefined; | ||
usePartitionedCrossSiteSessionCookie?: boolean | undefined; | ||
useSecureSessionCookie?: boolean | undefined; | ||
@@ -28,0 +32,0 @@ trackSessionAcrossSubdomains?: boolean | undefined; |
@@ -80,2 +80,3 @@ "use strict"; | ||
use_cross_site_session_cookie: initConfiguration.useCrossSiteSessionCookie, | ||
use_partitioned_cross_site_session_cookie: initConfiguration.usePartitionedCrossSiteSessionCookie, | ||
use_secure_session_cookie: initConfiguration.useSecureSessionCookie, | ||
@@ -82,0 +83,0 @@ use_proxy: !!initConfiguration.proxy, |
@@ -58,3 +58,3 @@ "use strict"; | ||
var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding; | ||
var tags = ["sdk_version:".concat("5.5.1"), "api:".concat(api)].concat(configurationTags); | ||
var tags = ["sdk_version:".concat("5.6.0"), "api:".concat(api)].concat(configurationTags); | ||
if (flushReason && (0, experimentalFeatures_1.isExperimentalFeatureEnabled)(experimentalFeatures_1.ExperimentalFeature.COLLECT_FLUSH_REASON)) { | ||
@@ -70,3 +70,3 @@ tags.push("flush_reason:".concat(flushReason)); | ||
"dd-api-key=".concat(clientToken), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.5.1")), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.6.0")), | ||
'dd-evp-origin=browser', | ||
@@ -73,0 +73,0 @@ "dd-request-id=".concat((0, stringUtils_1.generateUUID)()), |
@@ -46,4 +46,9 @@ "use strict"; | ||
var cookieOptions = {}; | ||
cookieOptions.secure = !!initConfiguration.useSecureSessionCookie || !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.crossSite = !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.secure = | ||
!!initConfiguration.useSecureSessionCookie || | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || | ||
!!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.crossSite = | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.partitioned = !!initConfiguration.usePartitionedCrossSiteSessionCookie; | ||
if (initConfiguration.trackSessionAcrossSubdomains) { | ||
@@ -50,0 +55,0 @@ cookieOptions.domain = (0, cookie_1.getCurrentSite)(); |
@@ -52,2 +52,3 @@ import type { Context } from '../../tools/serialisation/context'; | ||
use_cross_site_session_cookie?: boolean | undefined; | ||
use_partitioned_cross_site_session_cookie?: boolean | undefined; | ||
use_secure_session_cookie?: boolean | undefined; | ||
@@ -87,2 +88,4 @@ allow_fallback_to_local_storage?: boolean | undefined; | ||
batch_upload_frequency?: number | undefined; | ||
batch_processing_level?: number | undefined; | ||
background_tasks_enabled?: boolean | undefined; | ||
react_version?: string | undefined; | ||
@@ -89,0 +92,0 @@ react_native_version?: string | undefined; |
@@ -54,3 +54,3 @@ "use strict"; | ||
service: telemetryService, | ||
version: "5.5.1", | ||
version: "5.6.0", | ||
source: 'browser', | ||
@@ -57,0 +57,0 @@ _dd: { |
@@ -143,6 +143,10 @@ /** | ||
/** | ||
* Whether a secure cross-site session cookie is used | ||
* Whether a secure cross-site session cookie is used (deprecated) | ||
*/ | ||
use_cross_site_session_cookie?: boolean; | ||
/** | ||
* Whether a partitioned secure cross-site session cookie is used | ||
*/ | ||
use_partitioned_cross_site_session_cookie?: boolean; | ||
/** | ||
* Whether a secure session cookie is used | ||
@@ -284,2 +288,10 @@ */ | ||
/** | ||
* Maximum number of batches processed sequencially without a delay | ||
*/ | ||
batch_processing_level?: number; | ||
/** | ||
* Whether UIApplication background tasks are enabled | ||
*/ | ||
background_tasks_enabled?: boolean; | ||
/** | ||
* The version of React used in a ReactNative application | ||
@@ -286,0 +298,0 @@ */ |
@@ -16,3 +16,2 @@ /** | ||
ZERO_LCP_TELEMETRY = "zero_lcp_telemetry", | ||
SCROLLMAP = "scrollmap", | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css" | ||
@@ -19,0 +18,0 @@ } |
@@ -23,3 +23,2 @@ "use strict"; | ||
ExperimentalFeature["ZERO_LCP_TELEMETRY"] = "zero_lcp_telemetry"; | ||
ExperimentalFeature["SCROLLMAP"] = "scrollmap"; | ||
ExperimentalFeature["DISABLE_REPLAY_INLINE_CSS"] = "disable_replay_inline_css"; | ||
@@ -26,0 +25,0 @@ })(ExperimentalFeature || (exports.ExperimentalFeature = ExperimentalFeature = {})); |
@@ -6,3 +6,3 @@ import { catchUserErrors } from '../tools/catchUserErrors'; | ||
var publicApi = assign({ | ||
version: "5.5.1", | ||
version: "5.6.0", | ||
// This API method is intentionally not monitored, since the only thing executed is the | ||
@@ -9,0 +9,0 @@ // user-provided 'callback'. All SDK usages executed in the callback should be monitored, and |
export interface CookieOptions { | ||
secure?: boolean; | ||
crossSite?: boolean; | ||
partitioned?: boolean; | ||
domain?: string; | ||
@@ -5,0 +6,0 @@ } |
@@ -11,3 +11,4 @@ import { display } from '../tools/display'; | ||
var secure = options && options.secure ? ';secure' : ''; | ||
document.cookie = "".concat(name, "=").concat(value, ";").concat(expires, ";path=/;samesite=").concat(sameSite).concat(domain).concat(secure); | ||
var partitioned = options && options.partitioned ? ';partitioned' : ''; | ||
document.cookie = "".concat(name, "=").concat(value, ";").concat(expires, ";path=/;samesite=").concat(sameSite).concat(domain).concat(secure).concat(partitioned); | ||
} | ||
@@ -14,0 +15,0 @@ export function getCookie(name) { |
@@ -25,3 +25,7 @@ import type { RawTelemetryConfiguration } from '../telemetry'; | ||
version?: string | undefined; | ||
/** | ||
* @deprecated use usePartitionedCrossSiteSessionCookie instead | ||
*/ | ||
useCrossSiteSessionCookie?: boolean | undefined; | ||
usePartitionedCrossSiteSessionCookie?: boolean | undefined; | ||
useSecureSessionCookie?: boolean | undefined; | ||
@@ -28,0 +32,0 @@ trackSessionAcrossSubdomains?: boolean | undefined; |
@@ -76,2 +76,3 @@ import { catchUserErrors } from '../../tools/catchUserErrors'; | ||
use_cross_site_session_cookie: initConfiguration.useCrossSiteSessionCookie, | ||
use_partitioned_cross_site_session_cookie: initConfiguration.usePartitionedCrossSiteSessionCookie, | ||
use_secure_session_cookie: initConfiguration.useSecureSessionCookie, | ||
@@ -78,0 +79,0 @@ use_proxy: !!initConfiguration.proxy, |
@@ -54,3 +54,3 @@ import { timeStampNow } from '../../tools/utils/timeUtils'; | ||
var retry = _b.retry, flushReason = _b.flushReason, encoding = _b.encoding; | ||
var tags = ["sdk_version:".concat("5.5.1"), "api:".concat(api)].concat(configurationTags); | ||
var tags = ["sdk_version:".concat("5.6.0"), "api:".concat(api)].concat(configurationTags); | ||
if (flushReason && isExperimentalFeatureEnabled(ExperimentalFeature.COLLECT_FLUSH_REASON)) { | ||
@@ -66,3 +66,3 @@ tags.push("flush_reason:".concat(flushReason)); | ||
"dd-api-key=".concat(clientToken), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.5.1")), | ||
"dd-evp-origin-version=".concat(encodeURIComponent("5.6.0")), | ||
'dd-evp-origin=browser', | ||
@@ -69,0 +69,0 @@ "dd-request-id=".concat(generateUUID()), |
@@ -41,4 +41,9 @@ import { isChromium } from '../../../tools/utils/browserDetection'; | ||
var cookieOptions = {}; | ||
cookieOptions.secure = !!initConfiguration.useSecureSessionCookie || !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.crossSite = !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.secure = | ||
!!initConfiguration.useSecureSessionCookie || | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || | ||
!!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.crossSite = | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || !!initConfiguration.useCrossSiteSessionCookie; | ||
cookieOptions.partitioned = !!initConfiguration.usePartitionedCrossSiteSessionCookie; | ||
if (initConfiguration.trackSessionAcrossSubdomains) { | ||
@@ -45,0 +50,0 @@ cookieOptions.domain = getCurrentSite(); |
@@ -52,2 +52,3 @@ import type { Context } from '../../tools/serialisation/context'; | ||
use_cross_site_session_cookie?: boolean | undefined; | ||
use_partitioned_cross_site_session_cookie?: boolean | undefined; | ||
use_secure_session_cookie?: boolean | undefined; | ||
@@ -87,2 +88,4 @@ allow_fallback_to_local_storage?: boolean | undefined; | ||
batch_upload_frequency?: number | undefined; | ||
batch_processing_level?: number | undefined; | ||
background_tasks_enabled?: boolean | undefined; | ||
react_version?: string | undefined; | ||
@@ -89,0 +92,0 @@ react_native_version?: string | undefined; |
@@ -51,3 +51,3 @@ import { ConsoleApiName } from '../../tools/display'; | ||
service: telemetryService, | ||
version: "5.5.1", | ||
version: "5.6.0", | ||
source: 'browser', | ||
@@ -54,0 +54,0 @@ _dd: { |
@@ -143,6 +143,10 @@ /** | ||
/** | ||
* Whether a secure cross-site session cookie is used | ||
* Whether a secure cross-site session cookie is used (deprecated) | ||
*/ | ||
use_cross_site_session_cookie?: boolean; | ||
/** | ||
* Whether a partitioned secure cross-site session cookie is used | ||
*/ | ||
use_partitioned_cross_site_session_cookie?: boolean; | ||
/** | ||
* Whether a secure session cookie is used | ||
@@ -284,2 +288,10 @@ */ | ||
/** | ||
* Maximum number of batches processed sequencially without a delay | ||
*/ | ||
batch_processing_level?: number; | ||
/** | ||
* Whether UIApplication background tasks are enabled | ||
*/ | ||
background_tasks_enabled?: boolean; | ||
/** | ||
* The version of React used in a ReactNative application | ||
@@ -286,0 +298,0 @@ */ |
@@ -16,3 +16,2 @@ /** | ||
ZERO_LCP_TELEMETRY = "zero_lcp_telemetry", | ||
SCROLLMAP = "scrollmap", | ||
DISABLE_REPLAY_INLINE_CSS = "disable_replay_inline_css" | ||
@@ -19,0 +18,0 @@ } |
@@ -20,3 +20,2 @@ /** | ||
ExperimentalFeature["ZERO_LCP_TELEMETRY"] = "zero_lcp_telemetry"; | ||
ExperimentalFeature["SCROLLMAP"] = "scrollmap"; | ||
ExperimentalFeature["DISABLE_REPLAY_INLINE_CSS"] = "disable_replay_inline_css"; | ||
@@ -23,0 +22,0 @@ })(ExperimentalFeature || (ExperimentalFeature = {})); |
{ | ||
"name": "@datadog/browser-core", | ||
"version": "5.5.1", | ||
"version": "5.6.0", | ||
"license": "Apache-2.0", | ||
@@ -26,3 +26,3 @@ "main": "cjs/index.js", | ||
}, | ||
"gitHead": "1c876be1b0f5ffd4b3a49b2f74c912598065755d" | ||
"gitHead": "05639c3fb1cf1aefa19b9a49cec182a628135acb" | ||
} |
@@ -8,2 +8,3 @@ import { display } from '../tools/display' | ||
crossSite?: boolean | ||
partitioned?: boolean | ||
domain?: string | ||
@@ -19,3 +20,4 @@ } | ||
const secure = options && options.secure ? ';secure' : '' | ||
document.cookie = `${name}=${value};${expires};path=/;samesite=${sameSite}${domain}${secure}` | ||
const partitioned = options && options.partitioned ? ';partitioned' : '' | ||
document.cookie = `${name}=${value};${expires};path=/;samesite=${sameSite}${domain}${secure}${partitioned}` | ||
} | ||
@@ -22,0 +24,0 @@ |
@@ -44,3 +44,7 @@ import { catchUserErrors } from '../../tools/catchUserErrors' | ||
// cookie options | ||
/** | ||
* @deprecated use usePartitionedCrossSiteSessionCookie instead | ||
*/ | ||
useCrossSiteSessionCookie?: boolean | undefined | ||
usePartitionedCrossSiteSessionCookie?: boolean | undefined | ||
useSecureSessionCookie?: boolean | undefined | ||
@@ -173,2 +177,3 @@ trackSessionAcrossSubdomains?: boolean | undefined | ||
use_cross_site_session_cookie: initConfiguration.useCrossSiteSessionCookie, | ||
use_partitioned_cross_site_session_cookie: initConfiguration.usePartitionedCrossSiteSessionCookie, | ||
use_secure_session_cookie: initConfiguration.useSecureSessionCookie, | ||
@@ -175,0 +180,0 @@ use_proxy: !!initConfiguration.proxy, |
@@ -54,4 +54,9 @@ import { isChromium } from '../../../tools/utils/browserDetection' | ||
cookieOptions.secure = !!initConfiguration.useSecureSessionCookie || !!initConfiguration.useCrossSiteSessionCookie | ||
cookieOptions.crossSite = !!initConfiguration.useCrossSiteSessionCookie | ||
cookieOptions.secure = | ||
!!initConfiguration.useSecureSessionCookie || | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || | ||
!!initConfiguration.useCrossSiteSessionCookie | ||
cookieOptions.crossSite = | ||
!!initConfiguration.usePartitionedCrossSiteSessionCookie || !!initConfiguration.useCrossSiteSessionCookie | ||
cookieOptions.partitioned = !!initConfiguration.usePartitionedCrossSiteSessionCookie | ||
@@ -58,0 +63,0 @@ if (initConfiguration.trackSessionAcrossSubdomains) { |
@@ -145,6 +145,10 @@ /* eslint-disable */ | ||
/** | ||
* Whether a secure cross-site session cookie is used | ||
* Whether a secure cross-site session cookie is used (deprecated) | ||
*/ | ||
use_cross_site_session_cookie?: boolean | ||
/** | ||
* Whether a partitioned secure cross-site session cookie is used | ||
*/ | ||
use_partitioned_cross_site_session_cookie?: boolean | ||
/** | ||
* Whether a secure session cookie is used | ||
@@ -290,2 +294,10 @@ */ | ||
/** | ||
* Maximum number of batches processed sequencially without a delay | ||
*/ | ||
batch_processing_level?: number | ||
/** | ||
* Whether UIApplication background tasks are enabled | ||
*/ | ||
background_tasks_enabled?: boolean | ||
/** | ||
* The version of React used in a ReactNative application | ||
@@ -292,0 +304,0 @@ */ |
@@ -19,3 +19,2 @@ /** | ||
ZERO_LCP_TELEMETRY = 'zero_lcp_telemetry', | ||
SCROLLMAP = 'scrollmap', | ||
DISABLE_REPLAY_INLINE_CSS = 'disable_replay_inline_css', | ||
@@ -22,0 +21,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
1018027
17879