Skip to content

v0.39.0

Latest

Choose a tag to compare

@github-actions github-actions released this 25 Nov 12:56
f68cebd

Highlights

  • Faster installs: a fresh install (no lockfile, 50 packages) is 2.4x faster than v0.38.1 on Linux and macOS, and 2x faster on Windows.
  • Re-running apm install with nothing to change is about 3x faster than v0.38.1 at 10 packages and 6-7x faster at 50, on Linux, macOS and Windows. apm install --frozen with nothing to change is 2.4-2.9x faster at 10 packages and 4.3-4.9x at 50.
  • Claude instructions: install-only projects keep the 0.37 .claude/rules/ layout; compiled AGENTS.md keeps working (#5394).
  • Safer supply chain: checkouts are verified against their commit objects, cached git config is allow-listed, refs must match an origin branch or tag exactly, and APM's helper tools resolve only from outside the project.
  • Install crash recovery: an interrupted install restores the files it changed, or reports the ones it cannot restore.
  • Community: thanks to Andres Campos (@AndresDvst) (#3737), Antonin Rouxel (@anrouxel) (#4807), Sami (@Yshuro) (#5243) and Mohammed Alkindi (@MohammedAlkindi) (#4576, which returns in 0.40 with a safety ceiling), and to Melivo for reporting #5415.

Fixed

  • Helper tools such as git installed under your home directory are found when you run APM outside a project, for example apm install -g from your home directory (#5468, #5470).

Breaking changes and upgrade notes

See the "Breaking changes and upgrade notes" section of CHANGELOG (11 entries). The most likely to affect you:

  • Blocking org policy now refuses installs that violate manifest.scripts: deny, unmanaged_files.action: deny or dependencies.max_depth; the error names the field to fix (#4853).
  • Exact dependency refs (a ref must name an origin branch or tag exactly).
  • Transitive MCP servers need an mcp.allow entry under any org policy unless mcp.trust_transitive: true.
  • A self-defined transitive MCP server you trusted in 0.38 with --trust-transitive-mcp is parked and removed on your first plain 0.39 install. To keep it, run apm approve <pkg> and then apm install again; if your org policy blocks transitive servers not listed in mcp.allow, the policy owner must also add it there.
  • Helper tools (git, az, npm) resolve only from PATH directories outside the project.

Claude instructions (since 0.38.0)

<OPS holds relnote-5343.md; keep that section verbatim.>

Known issues

  • In a monorepo, a package that depends on a sibling package by local path records that sibling's absolute path in apm.lock.yaml, so clones at different paths produce different lockfiles and the path can include your user name. Check apm.lock.yaml for absolute paths before you commit it. A fix is planned for 0.40.0 (#5418).
  • On Windows, apm uninstall can exit 1 if another process (an editor or an antivirus scan) holds a deployed file open. Close it and run apm uninstall again. A fix is planned for 0.40.0 (#5441).
  • The unmanaged-files policy gate does not yet count the MCP, hook and LSP configuration files that install creates or edits (for example .mcp.json, Claude hook settings, .github/lsp.json). A fix is planned for 0.40.0 (#4956).
  • apm update does not pick up content changes in a local dependency (./path); run apm install to redeploy it. A fix is planned for 0.40.0 (#5463).
  • Declaring the same local directory twice with different spellings (./vendor/a and ./vendor/a/) records two lock rows; declare each local dependency once. A fix is planned for 0.40.0 (#5455).
  • If apm install <new-package> is killed abruptly (for example by SIGKILL or power loss), apm.yml can list the package without a lock row and apm install --frozen then fails; run a plain apm install to repair it. A fix is planned for 0.40.0 (#5454).
  • A local dependency diamond whose parents spell one directory with different case or Unicode normalization at different depths can make apm install --frozen fail; spell local paths consistently. A fix is planned for 0.40.0 (#5457).