Skip to content

Commit eb11c8c

Browse files
👷 Update all non-major dependencies (#3980)
* 👷 Update all non-major dependencies * fix types / format / lint * bump CI image * proper types for sdkInfos --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Bastien Caudan <bastien.caudan@datadoghq.com>
1 parent d6befd4 commit eb11c8c

File tree

23 files changed

+737
-913
lines changed

23 files changed

+737
-913
lines changed

‎.github/workflows/cla.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
if: github.event_name == 'merge_group'
2222
run: echo "CLA verification not needed for merge queue - already checked on PR"
2323

24-
- uses: DataDog/dd-octo-sts-action@08f2144903ced3254a3dafec2592563409ba2aa0 # v1.0.1
24+
- uses: DataDog/dd-octo-sts-action@acaa02eee7e3bb0839e4272dacb37b8f3b58ba80 # v1.0.3
2525
if: github.event_name != 'merge_group'
2626
id: octo-sts
2727
with:

‎.github/workflows/codeql-analysis.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2121

2222
- name: Initialize CodeQL
23-
uses: github/codeql-action/init@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
23+
uses: github/codeql-action/init@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6
2424
with:
2525
languages: javascript
2626
config-file: .github/codeql-config.yml
2727

2828
- name: Perform CodeQL Analysis
29-
uses: github/codeql-action/analyze@0499de31b99561a6d14a36a5f662c2a54f91beee # v4.31.2
29+
uses: github/codeql-action/analyze@fe4161a26a8629af62121b670040955b330f9af2 # v4.31.6

‎.gitlab-ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
variables:
22
CURRENT_STAGING: staging-50
33
APP: 'browser-sdk'
4-
CURRENT_CI_IMAGE: 93
4+
CURRENT_CI_IMAGE: 94
55
BUILD_STABLE_REGISTRY: 'registry.ddbuild.io'
66
CI_IMAGE: '$BUILD_STABLE_REGISTRY/ci/$APP:$CURRENT_CI_IMAGE'
77
GIT_REPOSITORY: 'git@github.com:DataDog/browser-sdk.git'
Lines changed: 191 additions & 191 deletions
Large diffs are not rendered by default.

‎.yarnrc.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
yarnPath: .yarn/releases/yarn-4.11.0.cjs
1+
yarnPath: .yarn/releases/yarn-4.12.0.cjs
22
defaultSemverRangePrefix: ''
33
nodeLinker: node-modules
44

‎Dockerfile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:24.11.0-bookworm-slim
1+
FROM node:24.11.1-bookworm-slim
22

33
ARG CHROME_PACKAGE_VERSION
44

‎developer-extension/package.json‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
"dev": "wxt"
88
},
99
"devDependencies": {
10-
"@types/chrome": "0.1.27",
11-
"@types/react": "19.2.2",
12-
"@types/react-dom": "19.2.2",
10+
"@types/chrome": "0.1.31",
11+
"@types/react": "19.2.7",
12+
"@types/react-dom": "19.2.3",
1313
"@wxt-dev/module-react": "1.1.5",
1414
"typescript": "5.9.3"
1515
},
1616
"dependencies": {
1717
"@datadog/browser-core": "workspace:*",
1818
"@datadog/browser-logs": "workspace:*",
1919
"@datadog/browser-rum": "workspace:*",
20-
"@mantine/core": "8.3.7",
21-
"@mantine/hooks": "8.3.7",
20+
"@mantine/core": "8.3.9",
21+
"@mantine/hooks": "8.3.9",
2222
"@tabler/icons-react": "3.35.0",
2323
"clsx": "2.1.1",
2424
"react": "19.2.0",

‎developer-extension/src/panel/facets.constants.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// Represents the path of a field in an event object. The special value '$eventSource' represent the
22
// event source (rum, logs, ...)
33
export type FieldPath = string
4-
export type FieldValue = string | number | null | boolean | object
4+
export type FieldValue = string | number | null | boolean | Record<string, unknown>
55
export type FieldMultiValue = FieldValue | FieldValue[]
66

77
// For now, facet values are only strings (we don't support number pickers etc.)

‎developer-extension/src/panel/hooks/useEvents/facetRegistry.ts‎

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { getEventSource, type SdkEvent } from '../../sdkEvent'
22
import { createLogger } from '../../../common/logger'
3-
import { FACET_ROOT } from '../../facets.constants'
43
import type { FacetValue, FieldPath, FieldMultiValue, FieldValue } from '../../facets.constants'
4+
import { FACET_ROOT } from '../../facets.constants'
55

66
const logger = createLogger('facetRegistry')
77

@@ -117,15 +117,16 @@ export function getAllFields(event: object) {
117117
getAllFieldsRecursively(item, path)
118118
}
119119
} else if (typeof value === 'object' && value !== null) {
120+
const typedValue = value as Record<string, unknown>
120121
if (path !== undefined) {
121122
// Store the intermediary field
122-
pushField(path, value)
123+
pushField(path, typedValue)
123124
}
124125
// Recurse inside objects, building the path on the way
125-
for (const key in value) {
126-
if (Object.prototype.hasOwnProperty.call(value, key)) {
126+
for (const key in typedValue) {
127+
if (Object.prototype.hasOwnProperty.call(typedValue, key)) {
127128
const itemPath = path === undefined ? key : `${path}.${key}`
128-
const itemValue = (value as { [key: string]: unknown })[key]
129+
const itemValue = (typedValue as { [key: string]: unknown })[key]
129130
getAllFieldsRecursively(itemValue, itemPath)
130131
}
131132
}

‎developer-extension/src/panel/hooks/useSdkInfos.ts‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
import { useEffect, useState } from 'react'
2+
import type { RumInternalContext, Context } from '@datadog/browser-core'
3+
import type { LogsInitConfiguration } from '@datadog/browser-logs'
4+
import type { RumInitConfiguration } from '@datadog/browser-rum'
25
import { createLogger } from '../../common/logger'
36
import { evalInWindow } from '../evalInWindow'
47

@@ -9,16 +12,16 @@ const REFRESH_INFOS_INTERVAL = 2000
912
export interface SdkInfos {
1013
rum?: {
1114
version?: string
12-
config?: object & { site?: string }
13-
internalContext?: object & { session: { id: string } }
14-
globalContext?: object
15-
user: object
15+
config?: RumInitConfiguration
16+
internalContext?: RumInternalContext
17+
globalContext?: Context
18+
user: Context
1619
}
1720
logs?: {
1821
version?: string
19-
config?: object & { site?: string }
20-
globalContext?: object
21-
user: object
22+
config?: LogsInitConfiguration
23+
globalContext?: Context
24+
user: Context
2225
}
2326
cookie?: {
2427
id?: string

0 commit comments

Comments
 (0)