Skip to content

Commit d29ceaa

Browse files
authored
chore: update deps (#1625)
## Problem Updates PostHog dependencies to their latest versions to ensure compatibility and access to new features. ## Changes - Upgraded `@posthog/rollup-plugin` from `^1.2.6` to `^1.4.0` - Upgraded `@posthog/cli` from `^0.5.26` to `^0.7.3` - Updated PostHog plugin configuration to use new API parameters: - Changed `envId` to `projectId` in the PostHog plugin configuration - Changed `project` to `releaseName` in the sourcemaps configuration ## How did you test this? The changes maintain the same functionality while using the updated API parameters required by the newer PostHog plugin versions. The configuration changes ensure sourcemap uploads continue to work with the new plugin structure.
1 parent 2362e01 commit d29ceaa

File tree

4 files changed

+96
-41
lines changed

4 files changed

+96
-41
lines changed

apps/code/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"@electron-forge/shared-types": "^7.11.1",
5353
"@electron/rebuild": "^4.0.3",
5454
"@playwright/test": "^1.42.0",
55-
"@posthog/rollup-plugin": "^1.2.6",
55+
"@posthog/rollup-plugin": "^1.4.0",
5656
"@storybook/addon-a11y": "10.2.0",
5757
"@storybook/addon-docs": "10.2.0",
5858
"@storybook/react-vite": "10.2.0",

apps/code/vite.shared.mts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ export function createPosthogPlugin(
1414
}
1515
return posthog({
1616
personalApiKey: env.POSTHOG_SOURCEMAP_API_KEY,
17-
envId: env.POSTHOG_ENV_ID,
17+
projectId: env.POSTHOG_ENV_ID,
1818
host: env.POSTHOG_HOST,
1919
sourcemaps: {
20-
project,
20+
releaseName: project,
2121
deleteAfterUpload: true,
2222
},
2323
});

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
"license": "SEE LICENSE IN LICENSE",
4343
"devDependencies": {
4444
"@biomejs/biome": "2.2.4",
45-
"@posthog/cli": "^0.5.26",
45+
"@posthog/cli": "^0.7.3",
4646
"fflate": "^0.8.2",
4747
"husky": "^9.1.7",
4848
"knip": "^5.66.3",

pnpm-lock.yaml

Lines changed: 92 additions & 37 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)