Skip to content

chore: upgrade API Platform to 4.3.5#638

Merged
vincentchalamon merged 8 commits into
4.3from
release/api-platform-4.3.5
May 11, 2026
Merged

chore: upgrade API Platform to 4.3.5#638
vincentchalamon merged 8 commits into
4.3from
release/api-platform-4.3.5

Conversation

@vincentchalamon
Copy link
Copy Markdown
Contributor

@vincentchalamon vincentchalamon added the dependencies Pull requests that update a dependency file label May 11, 2026
@vincentchalamon vincentchalamon self-assigned this May 11, 2026
vincentchalamon and others added 7 commits May 11, 2026 14:30
Latest pnpm versions fail with "global bin directory is not in PATH"
when running `pnpm config -g set store-dir` during the image build.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Setting PNPM_HOME to the default `/root/.local/share/pnpm` left pnpm
still looking for `$PNPM_HOME/bin` in PATH. Use a dedicated directory
as recommended by pnpm Docker docs.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pnpm computes its global bin directory as `$PNPM_HOME/bin`, not
`$PNPM_HOME` itself. Add the `/bin` suffix to PATH so the check passes.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
pnpm 10.x aborts node_modules purge in absence of a TTY unless CI is
declared. Without it, `pnpm install` fails with
ERR_PNPM_ABORTED_REMOVE_MODULES_DIR_NO_TTY in Docker builds.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
`pnpm fetch --prod` misses some packages (e.g. @api-platform/admin)
that are required by `pnpm install --offline --prod`, causing
ERR_PNPM_NO_OFFLINE_TARBALL during the build. Fetching everything
ensures the offline install has all tarballs available.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Without package.json present, corepack runs `pnpm fetch` with the
@latest pnpm from the base stage, while `pnpm install` later uses the
version pinned in package.json (10.33.0). The two versions can have
incompatible store layouts, leading to ERR_PNPM_NO_OFFLINE_TARBALL.

Copy package.json alongside the lockfile so corepack uses the same
pnpm version for both steps.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Next.js 16 build fails when TypeScript is not installed, but the
project keeps typescript and @types/* in devDependencies. The final
prod image is built from the Next.js standalone output, so installing
devDeps in the builder stage does not bloat the runtime image.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vincentchalamon vincentchalamon merged commit d45cb7d into 4.3 May 11, 2026
7 checks passed
@vincentchalamon vincentchalamon deleted the release/api-platform-4.3.5 branch May 11, 2026 13:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant