Repository navigation
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 installwith 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 --frozenwith 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; compiledAGENTS.mdkeeps 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 -gfrom 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: denyordependencies.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.allowentry under any org policy unlessmcp.trust_transitive: true. - A self-defined transitive MCP server you trusted in 0.38 with
--trust-transitive-mcpis parked and removed on your first plain 0.39 install. To keep it, runapm approve <pkg>and thenapm installagain; if your org policy blocks transitive servers not listed inmcp.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. Checkapm.lock.yamlfor absolute paths before you commit it. A fix is planned for 0.40.0 (#5418). - On Windows,
apm uninstallcan exit 1 if another process (an editor or an antivirus scan) holds a deployed file open. Close it and runapm uninstallagain. 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 updatedoes not pick up content changes in a local dependency (./path); runapm installto redeploy it. A fix is planned for 0.40.0 (#5463).- Declaring the same local directory twice with different spellings (
./vendor/aand./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.ymlcan list the package without a lock row andapm install --frozenthen fails; run a plainapm installto 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 --frozenfail; spell local paths consistently. A fix is planned for 0.40.0 (#5457).