:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(deps): upgrade pnpm to 11.28.5 (#118806)
Raúl Negrón-Otero83cf6d3dc767
diff --git a/.depot/actions/pnpm-install/action.yml b/.depot/actions/pnpm-install/action.ymlindex a1d51afed17d..0876efa5bcaa 100644--- a/.depot/actions/pnpm-install/action.yml+++ b/.depot/actions/pnpm-install/action.yml@@ -68,12 +68,8 @@ runs:# Pass the command through env and eval it rather than interpolating# ${{ }} straight into run: — that trips semgrep's run-shell-injection# rule. eval keeps shell parsing so quoted --filter globs survive.- # pnpm reads npm_config_* — keep cache-miss fetches resilient to blips.env:INSTALL_COMMAND: ${{ inputs.install-command }}- npm_config_fetch_retries: 3- npm_config_fetch_retry_mintimeout: 10000- npm_config_fetch_retry_maxtimeout: 60000run: eval "$INSTALL_COMMAND"# Save only on the default branch. Caches written on a PR/branch ref arediff --git a/.depot/actions/setup-turbo/action.yml b/.depot/actions/setup-turbo/action.ymlindex f286357b4c93..f7a178d4e1f0 100644--- a/.depot/actions/setup-turbo/action.yml+++ b/.depot/actions/setup-turbo/action.yml@@ -19,9 +19,7 @@ runs:shell: bashenv:LOCKFILE: ${{ inputs.lockfile }}- npm_config_fetch_retries: 3- npm_config_fetch_retry_mintimeout: 10000- npm_config_fetch_retry_maxtimeout: 60000+ pnpm_config_fetch_retries: 3run: |set -euo pipefaildiff --git a/.github/actions/pnpm-install/action.yml b/.github/actions/pnpm-install/action.ymlindex 59a21202b55a..e4d096d51fe1 100644--- a/.github/actions/pnpm-install/action.yml+++ b/.github/actions/pnpm-install/action.yml@@ -62,10 +62,6 @@ runs:# Pass the command through env and eval it rather than interpolating# ${{ }} straight into run: — that trips semgrep's run-shell-injection# rule. eval keeps shell parsing so quoted --filter globs survive.- # pnpm reads npm_config_* — keep cache-miss fetches resilient to blips.env:INSTALL_COMMAND: ${{ inputs.install-command }}- npm_config_fetch_retries: 3- npm_config_fetch_retry_mintimeout: 10000- npm_config_fetch_retry_maxtimeout: 60000run: eval "$INSTALL_COMMAND"diff --git a/.github/actions/setup-turbo/action.yml b/.github/actions/setup-turbo/action.ymlindex f286357b4c93..f7a178d4e1f0 100644--- a/.github/actions/setup-turbo/action.yml+++ b/.github/actions/setup-turbo/action.yml@@ -19,9 +19,7 @@ runs:shell: bashenv:LOCKFILE: ${{ inputs.lockfile }}- npm_config_fetch_retries: 3- npm_config_fetch_retry_mintimeout: 10000- npm_config_fetch_retry_maxtimeout: 60000+ pnpm_config_fetch_retries: 3run: |set -euo pipefaildiff --git a/.github/workflows/pnpm-store-cache.yml b/.github/workflows/pnpm-store-cache.ymlindex d798339949aa..8ce5e89ff97d 100644--- a/.github/workflows/pnpm-store-cache.yml+++ b/.github/workflows/pnpm-store-cache.yml@@ -32,12 +32,6 @@ concurrency:permissions:contents: read-env:- # pnpm reads npm_config_*; a cold install fetches every package, so ride out blips.- npm_config_fetch_retries: 3- npm_config_fetch_retry_mintimeout: 10000- npm_config_fetch_retry_maxtimeout: 60000-jobs:write:name: Write pnpm store (${{ matrix.runner }})diff --git a/bin/dev-sandbox.sb b/bin/dev-sandbox.sbindex 2ae4cc967d89..eca5befefd22 100644--- a/bin/dev-sandbox.sb+++ b/bin/dev-sandbox.sb@@ -80,9 +80,11 @@;; Canonicalization (realpath) lstats every path component, so uv resolving its;; managed-interpreter symlinks needs metadata on the dir nodes between $HOME and;; ~/.local/share/uv. Metadata only — contents of ~/.local{,/share} stay denied.+;; pnpm opens its SQLite store index under ~/Library/pnpm the same way.(allow file-read-metadata(literal (string-append (param "HOME") "/.local"))- (literal (string-append (param "HOME") "/.local/share")))+ (literal (string-append (param "HOME") "/.local/share"))+ (literal (string-append (param "HOME") "/Library")));; Keep the crates.io publish token blocked even though ~/.cargo is allowed above.(deny file-read*diff --git a/bin/sandbox-entrypoint.py b/bin/sandbox-entrypoint.pyindex 14ba98cd8134..127ed845d779 100644--- a/bin/sandbox-entrypoint.py+++ b/bin/sandbox-entrypoint.py@@ -130,7 +130,9 @@ def export_environment(uid: int, gid: int) -> None:"UV_LINK_MODE": "copy","XDG_CACHE_HOME": "/tmp/sandbox-cache","CARGO_TARGET_DIR": "/cache/cargo-target",+ # The image outlives the checkout. A checkout that pins an older pnpm reads npm_config_* instead."npm_config_store_dir": "/cache/pnpm",+ "pnpm_config_store_dir": "/cache/pnpm","COREPACK_ENABLE_AUTO_PIN": "0","COREPACK_ENABLE_DOWNLOAD_PROMPT": "0",}@@ -593,6 +595,7 @@ def _setup_user_env() -> None:"COREPACK_ENABLE_DOWNLOAD_PROMPT": "0","CARGO_TARGET_DIR": "/cache/cargo-target","npm_config_store_dir": "/cache/pnpm",+ "pnpm_config_store_dir": "/cache/pnpm",})_configure_ssh_agent_env()diff --git a/package.json b/package.jsonindex 84bafe613796..aeb2bff77601 100644--- a/package.json+++ b/package.json@@ -121,5 +121,5 @@"engines": {"node": ">=24 <25"},- "packageManager": "[email protected]"+ "packageManager": "[email protected]"}diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yamlindex 4b54c3dfd5c4..6c3eb563d916 100644--- a/pnpm-workspace.yaml+++ b/pnpm-workspace.yaml@@ -33,6 +33,17 @@ packages:blockExoticSubdeps: truetrustPolicy: no-downgrade+# Maintenance releases published without the provenance of an earlier release.+trustPolicyExclude:+ - [email protected] || 6.3.1+# `pnpm run` must not start an install, because Docker builds install a filtered subset.+verifyDepsBeforeRun: false+# Installs without a terminal (flox activation, agent hooks, CI) abort when pnpm asks before+# it rebuilds node_modules after a store or layout change, so rebuild without asking.+confirmModulesPurge: false+# A cold install fetches every package, so retry past brief registry errors.+fetchRetries: 3# Fix React versions across the monorepo.overrides:@@ -113,28 +124,33 @@ patchedDependencies:[email protected]: patches/[email protected]# Dependencies that require preinstall scripts. Add entries with caution.-onlyBuiltDependencies:- - '@modelcontextprotocol/ext-apps'- - '@mongodb-js/zstd'- - '@parcel/watcher'- - chartjs-plugin-stacked100- - '@swc/core'- - core-js- - core-js-pure- - cpu-features- - esbuild- - lmdb- - lz4- - msgpackr-extract- - msw- - node-gyp- - node-rdkafka- - protobufjs- - re2- - sharp- - ssh2- - unrs-resolver- - workerd+allowBuilds:+ '@modelcontextprotocol/ext-apps': true+ '@mongodb-js/zstd': true+ '@parcel/watcher': true+ chartjs-plugin-stacked100: true+ '@swc/core': true+ core-js: true+ core-js-pure: true+ cpu-features: true+ esbuild: true+ lmdb: true+ lz4: true+ msgpackr-extract: true+ msw: true+ node-gyp: true+ node-rdkafka: true+ protobufjs: true+ re2: true+ sharp: true+ ssh2: true+ unrs-resolver: true+ workerd: true+ # These install without their build scripts.+ '@datadog/pprof': false+ ffmpeg-static: false+ free-email-domains: false+ puppeteer: falsecatalog:# Kea ecosystem - state managementdiff --git a/tools/hedgebox-dummy/package.json b/tools/hedgebox-dummy/package.jsonindex 7d9011ce6c2a..cf6a258f81ac 100644--- a/tools/hedgebox-dummy/package.json+++ b/tools/hedgebox-dummy/package.json@@ -28,14 +28,5 @@"postcss": "^8.5.15","tailwindcss": "^3.3.0","typescript": "^5"- },- "pnpm": {- "overrides": {- "protobufjs": ">=8.2.0",- "postcss": ">=8.5.10",- "flatted": ">=3.4.2",- "glob@>=10.0.0": ">=10.5.0",- "minimatch@<3.1.4": ">=3.1.4"- }}}diff --git a/tools/hedgebox-dummy/pnpm-workspace.yaml b/tools/hedgebox-dummy/pnpm-workspace.yamlindex c7184f9cce62..0d8b544c0945 100644--- a/tools/hedgebox-dummy/pnpm-workspace.yaml+++ b/tools/hedgebox-dummy/pnpm-workspace.yaml@@ -3,4 +3,24 @@ packages:blockExoticSubdeps: truetrustPolicy: no-downgrade+trustPolicyExclude:+# phrocs installs without a terminal, so rebuild node_modules from older pnpm without asking.+confirmModulesPurge: false++# These install without their build scripts.+allowBuilds:+ core-js: false+ protobufjs: false+ sharp: false+ unrs-resolver: falseminimumReleaseAge: 10080++overrides:+ protobufjs: '>=8.2.0'+ postcss: '>=8.5.10'+ flatted: '>=3.4.2'+ glob@>=10.0.0: '>=10.5.0'+ minimatch@<3.1.4: '>=3.1.4'