Skip to content

Commit eab8a7d

Browse files
committed
fix: remove non-existent extendArray import, add changeset
extendArray was removed from the codebase in #3253 (bundle size reduction. Revert to the spread syntax that replaced it. Add a changeset for posthog-js and @posthog/types. EOF )
1 parent 0be0de3 commit eab8a7d

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
'posthog-js': patch
3+
'@posthog/types': patch
4+
---
5+
6+
Enable $web_vitals reporting when cookieless mode is enabled

packages/browser/src/extensions/web-vitals/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ import { WEB_VITALS_ALLOWED_METRICS, WEB_VITALS_ENABLED_SERVER_SIDE } from '../.
66
import { assignableWindow, window, location } from '../../utils/globals'
77
import { maskQueryParams } from '../../utils/request-utils'
88
import { PERSONAL_DATA_CAMPAIGN_PARAMS, MASKED } from '../../utils/event-utils'
9-
import { extendArray } from '../../utils'
109

1110
const logger = createLogger('[Web Vitals]')
1211

@@ -148,7 +147,7 @@ export class WebVitalsAutocapture {
148147
const customPersonalDataProperties = this._instance.config.custom_personal_data_properties
149148

150149
const paramsToMask = maskPersonalDataProperties
151-
? extendArray([], PERSONAL_DATA_CAMPAIGN_PARAMS, customPersonalDataProperties || [])
150+
? [...PERSONAL_DATA_CAMPAIGN_PARAMS, ...(customPersonalDataProperties || [])]
152151
: []
153152

154153
return maskQueryParams(href, paramsToMask, MASKED)

0 commit comments

Comments
 (0)