zed/crates
Ben Brandt 2a00db06ce
node_runtime: Respect npm release-age filters for managed npm installs (#56957)
Zed-managed npm installers were resolving a concrete latest version with
`npm info` and then installing `package@version`. That is brittle when
users
configure npm release-age filtering via `before` or `min-release-age`:
npm's
installer applies those rules during resolution, but our pinned install
target
could disagree with it, and therefore fail to install.

This changes managed npm installs to install `package@latest` and let
npm apply
its own resolver and user config. The local latest-version lookup
remains as a
best-effort cache freshness check, not as the exact install target.

Exact extension API installs remain unchanged because extensions
explicitly
request a package and version. If we want to revisit that we can.

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #53611

Release Notes:

- Fixed npm-backed tool installs to better respect npm release-age
filters.
2026-05-18 21:10:06 +00:00
..
acp_thread acp: Support additional session directories (#57051) 2026-05-18 18:27:54 +00:00
acp_tools acp: Improve ACP debug view (#54769) 2026-04-24 15:53:14 +00:00
action_log action_log: Accept deleted hunks after commit (#56892) 2026-05-15 16:27:14 +00:00
activity_indicator Fix activity indicator menu opening when actions are running (#56865) 2026-05-15 12:01:31 +00:00
agent agent: Remove unused LanguageModelImage APIs (#57050) 2026-05-18 12:22:22 +00:00
agent_servers acp: Support additional session directories (#57051) 2026-05-18 18:27:54 +00:00
agent_settings agent: Allow specifying which model is used for subagents (#56203) 2026-05-08 17:06:02 +00:00
agent_skills Migrate Rules to global Skills and AGENTS.md (#56672) 2026-05-14 16:30:08 +00:00
agent_ui acp: Support additional session directories (#57051) 2026-05-18 18:27:54 +00:00
ai_onboarding Fix sign in disclaimer to accurately show trial benefits (#55964) 2026-05-07 15:43:43 +00:00
anthropic agent: Add Opus 4.7 speed support (#56701) 2026-05-15 13:57:33 +00:00
askpass Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
assets
audio audio: Remove rodio audio backend (#51945) 2026-03-24 00:58:09 +01:00
auto_update ci: Build nightly more frequently (#53800) 2026-05-15 09:08:55 +00:00
auto_update_helper Fix Windows icon resource for bin zed.exe (#54738) 2026-05-01 22:33:54 +00:00
auto_update_ui Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
aws_http_client
bedrock language_models: Remove unused cache_configuration API (#56884) 2026-05-15 16:27:11 +00:00
breadcrumbs editor: Replace BreadcrumbText with HighlightedText (#51083) 2026-03-13 08:00:22 +00:00
buffer_diff action_log: Fix race condition when committing changes (#53884) 2026-04-16 12:54:17 +00:00
call client: Rename UserId to LegacyUserId (#56185) 2026-05-08 15:53:40 +00:00
channel client: Rename UserId to LegacyUserId (#56185) 2026-05-08 15:53:40 +00:00
cli Stop using wrong paths for zed --diff (#56380) 2026-05-11 15:53:20 +00:00
client client: Attach system ID to sign-in request (#56675) 2026-05-14 13:29:49 +00:00
clock
cloud_api_client cloud_api_client: Add update_system_settings (#56843) 2026-05-18 14:49:40 +00:00
cloud_api_types cloud_api_client: Add update_system_settings (#56843) 2026-05-18 14:49:40 +00:00
cloud_llm_client ep: Send trigger in header (#56433) 2026-05-11 15:22:43 +00:00
codestral language_model: Decouple from Zed-specific implementation details (#52913) 2026-04-02 17:06:57 -03:00
collab collab: Remove unused fields from database user model (#56898) 2026-05-15 17:01:42 +00:00
collab_ui client: Rename UserId to LegacyUserId (#56185) 2026-05-08 15:53:40 +00:00
collections Add VecMap::entry_ref (#52601) 2026-03-27 18:06:56 -07:00
command_palette Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
command_palette_hooks
component
component_preview Simplify parallel agents onboarding (#53854) 2026-04-15 21:51:15 -03:00
context_server context_server: Mirror authorization server grant_types_supported (#53501) 2026-05-18 12:49:09 +00:00
copilot node_runtime: Respect npm release-age filters for managed npm installs (#56957) 2026-05-18 21:10:06 +00:00
copilot_chat copilot: Fix issue when switching between OpenAI and Anthropic models (#56655) 2026-05-18 09:57:08 +00:00
copilot_ui agent_ui: Adjust settings UI for some providers (#56879) 2026-05-15 17:08:40 +00:00
crashes Cleanup crashes crate (#54927) 2026-05-04 06:30:47 +00:00
credentials_provider language_model: Decouple from Zed-specific implementation details (#52913) 2026-04-02 17:06:57 -03:00
csv_preview csv_preview: Implement data_table columns pining (#56619) 2026-05-15 11:12:41 +00:00
dap dap: Support IPv6 addresses in TCP transport (#52244) 2026-04-27 08:42:45 +00:00
dap_adapters Rust 1.95 (#55104) 2026-04-29 10:27:47 +00:00
db Remove smol as a dependency from a bunch of crates (#53603) 2026-04-24 10:29:51 +00:00
debug_adapter_extension
debugger_tools Fix macOS find query seeding (#56681) 2026-05-13 23:35:10 +00:00
debugger_ui agent_ui: Render skills as creases (#56689) 2026-05-14 22:20:34 +00:00
deepseek deepseek: Add tool_choice field to DeepSeek request model (#56040) 2026-05-12 08:21:38 +00:00
denoise Rust 1.95 (#55104) 2026-04-29 10:27:47 +00:00
dev_container Trim nonalphanumeric chars before prefixing image tag name (#54578) 2026-04-23 07:36:36 +00:00
diagnostics diagnostics: Always expand at least multibuffer_context_lines per diagnostic (#56172) 2026-05-08 14:18:44 +00:00
docs_preprocessor Staged docs releases (#50136) 2026-04-30 11:10:14 +00:00
edit_prediction ep: Compress settled requests to cloud (#56793) 2026-05-15 15:14:41 +00:00
edit_prediction_cli ep: Various ep CLI improvements (#56587) 2026-05-13 11:34:50 +00:00
edit_prediction_context Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
edit_prediction_metrics ep: Drop dependency on language/gpui (#55917) 2026-05-06 17:03:01 +00:00
edit_prediction_types edit_prediction: Disable training data collection based on organization configuration (#53639) 2026-04-10 13:27:04 -04:00
edit_prediction_ui agent_ui: Render skills as creases (#56689) 2026-05-14 22:20:34 +00:00
editor editor: Add action to toggle all diff hunks (#56421) 2026-05-18 18:02:51 +00:00
editor_benchmarks editor: Improve find_matches and replace_all perf (#51941) 2026-05-06 09:28:05 +00:00
encoding_selector Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
env_var language_models: Refactor deps and extract cloud (#53270) 2026-04-07 12:28:19 -03:00
etw_tracing
eval_cli eval_cli: Wait for model discovery (#57038) 2026-05-18 08:41:02 +00:00
eval_utils
explorer_command_injector
extension extension_builder: Use cfg_select for WASI SDK asset name (#55660) 2026-05-06 18:52:31 +00:00
extension_api extension_api: Add IPv6 support in DAP extensions API (#54984) 2026-04-29 07:27:05 +00:00
extension_cli extension_cli: Disallow slash command extensions (#56864) 2026-05-18 12:59:22 +00:00
extension_host extension_host: Fix cross-device extension installs (#56437) 2026-05-11 17:58:17 +00:00
extensions_ui Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
feature_flags sidebar: Remove agent panel terminal feature flag (#56678) 2026-05-13 21:21:52 +00:00
feature_flags_macros Feature flag overrides (#54206) 2026-04-18 06:34:19 +00:00
feedback Cleanup crashes crate (#54927) 2026-05-04 06:30:47 +00:00
file_finder file_finder: Support line range queries with path:start-end syntax (#53958) 2026-05-13 12:43:39 +00:00
file_icons
fs fs: Fix unwatching causing os unwatch dispatch for recursively watched directories (#56796) 2026-05-14 21:41:37 +00:00
fs_benchmarks
fuzzy fuzzy: Fix crash with Unicode chars whose lowercase expands to multiple codepoints (#52989) 2026-04-03 11:00:13 +00:00
fuzzy_nucleo fuzzy_nucleo: Refactor multi-atom code to use nucleo::Pattern (#55264) 2026-05-06 10:56:20 +00:00
git git: Disable log.showSignature for internal commands (#55708) 2026-05-16 18:54:51 +00:00
git_graph WIP (#56923) 2026-05-15 21:34:20 +00:00
git_hosting_providers Fix GitHub bot avatar URL (#55297) 2026-04-30 14:17:32 +00:00
git_ui Make restricted mode more obvious (#57056) 2026-05-18 16:18:59 +00:00
go_to_line Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
google_ai Add Gemini 3.1 Flash Lite (#56248) 2026-05-12 08:55:22 +00:00
gpui Fix GPUI crash when using cached view with Input (#50665) 2026-05-14 15:31:46 +00:00
gpui_linux Fix text copy via mouse click on Wayland (#50406) 2026-05-15 14:29:14 +00:00
gpui_macos Improve default button focus in macOS dialogs (#56513) 2026-05-12 08:59:58 +00:00
gpui_macros Handle hiding cursor on keyboard input at GPUI level (#55664) 2026-05-04 22:51:56 +00:00
gpui_platform agent: Fix cargo test -p agent on windows (#52311) 2026-03-24 11:05:12 +00:00
gpui_shared_string gpui_shared_string: Implement SharedString via smol_str (#54649) 2026-04-24 08:58:26 +00:00
gpui_tokio gpui_tokio: Use shutdown_background to avoid WASI panic on exit (#53904) 2026-04-14 18:14:31 +02:00
gpui_util Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
gpui_web Handle hiding cursor on keyboard input at GPUI level (#55664) 2026-05-04 22:51:56 +00:00
gpui_wgpu gpui_wgpu: Respect buffer_font_fallbacks setting (#54878) 2026-05-15 15:34:18 +00:00
gpui_windows gpui_windows: Avoid process-wide priority elevation (#56050) 2026-05-07 14:09:39 +00:00
grammars languages: Exclude angle brackets from rainbow bracket colorization for Javascript (#57063) 2026-05-18 15:54:51 +00:00
html_to_markdown
http_client http_client: Fix GitHub download unpack failures on some filesystems (#53286) 2026-04-07 11:19:21 +05:30
http_client_tls
icons recent_projects: Add "open in new window" action to opened projects (#55168) 2026-04-29 11:38:03 +00:00
image_viewer Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
input_latency_ui telemetry: Add latency metrics (#54454) 2026-04-22 22:22:10 +00:00
inspector_ui agent_ui: Render skills as creases (#56689) 2026-05-14 22:20:34 +00:00
install_cli
journal Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
json_schema_store Rust 1.95 (#55104) 2026-04-29 10:27:47 +00:00
keymap_editor agent_ui: Render skills as creases (#56689) 2026-05-14 22:20:34 +00:00
language Fix zeta2 prompt format selection (#55338) 2026-05-08 13:19:33 +00:00
language_core editor: Fix soft-wrap in auto-height editors (#54051) 2026-04-18 00:55:44 +02:00
language_extension language_core: Introduce fallback highlights (#52575) 2026-04-02 12:52:42 +00:00
language_model agent: Remove unused LanguageModelImage APIs (#57050) 2026-05-18 12:22:22 +00:00
language_model_core agent: Remove unused LanguageModelImage APIs (#57050) 2026-05-18 12:22:22 +00:00
language_models opencode: Model updates (#57076) 2026-05-18 17:15:04 +00:00
language_models_cloud language_models: Remove unused cache_configuration API (#56884) 2026-05-15 16:27:11 +00:00
language_onboarding Remove some outdated comments (#52432) 2026-03-25 12:07:34 -06:00
language_selector Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
language_tools Make restricted mode more obvious (#57056) 2026-05-18 16:18:59 +00:00
languages node_runtime: Respect npm release-age filters for managed npm installs (#56957) 2026-05-18 21:10:06 +00:00
line_ending_selector Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
livekit_api
livekit_client Add ability to auto watch screens (#54839) 2026-05-01 17:29:27 +00:00
lmstudio
lsp lsp: Display readable gopls version in UI (#49835) 2026-03-17 08:36:37 +01:00
markdown markdown_preview: Independent code font family (#56744) 2026-05-14 20:03:29 +00:00
markdown_preview markdown_preview: Shrink preview to fit when pane toolbar grows (#55009) 2026-05-15 22:51:51 +00:00
media
menu
migrator Handle hiding cursor on keyboard input at GPUI level (#55664) 2026-05-04 22:51:56 +00:00
miniprofiler_ui Disable miniprofiler by default (#54645) 2026-04-23 18:41:52 +00:00
mistral Cleanup and update mistral models based on their documentation (#55443) 2026-05-06 12:27:58 +00:00
multi_buffer editor: Improve find_matches and replace_all perf (#51941) 2026-05-06 09:28:05 +00:00
nc
net
node_runtime node_runtime: Respect npm release-age filters for managed npm installs (#56957) 2026-05-18 21:10:06 +00:00
notifications Remove smol as a dependency from a bunch of crates (#53603) 2026-04-24 10:29:51 +00:00
oauth_callback_server Add ChatGPT subscription provider via OAuth 2.0 PKCE (#53166) 2026-05-14 21:03:56 +00:00
ollama Prefer Ollama configured model context length over model architecture context length (#53543) 2026-04-15 02:21:56 -04:00
onboarding Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
open_ai agent: Remove unused LanguageModelImage APIs (#57050) 2026-05-18 12:22:22 +00:00
open_path_prompt Respect sort_mode in workspace: open files (#56720) 2026-05-14 19:51:10 +00:00
open_router language_models: Refactor deps and extract cloud (#53270) 2026-04-07 12:28:19 -03:00
opencode opencode: Model updates (#57076) 2026-05-18 17:15:04 +00:00
outline outline: Fix panic due to stale outline hover selection (#55674) 2026-05-05 05:10:46 +00:00
outline_panel Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
panel git_panel: Add commit history view (#56500) 2026-05-12 15:52:52 +00:00
paths Migrate Rules to global Skills and AGENTS.md (#56672) 2026-05-14 16:30:08 +00:00
picker recent_projects: Allow bulk deleting entries without scroll jumping (#54777) 2026-05-06 14:06:48 +00:00
platform_title_bar Remove Agent V2 feature flag (#52792) 2026-04-08 00:34:54 +00:00
prettier Fix FormatSelections to only format selected ranges, not entire document (#51593) 2026-03-31 12:48:22 +03:00
project node_runtime: Respect npm release-age filters for managed npm installs (#56957) 2026-05-18 21:10:06 +00:00
project_benchmarks Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
project_panel agent_ui: Require an open project for agent panel (#56577) 2026-05-14 01:24:30 +00:00
project_symbols Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
prompt_store Migrate Rules to global Skills and AGENTS.md (#56672) 2026-05-14 16:30:08 +00:00
proto git_ui: Add force delete for unmerged branches (#55927) 2026-05-06 20:08:42 +00:00
recent_projects workspace: Always add projects to windows (#56187) 2026-05-09 01:54:42 +00:00
refineable
release_channel Add a function to produce docs scoped to release channel (#56917) 2026-05-15 21:17:43 +00:00
remote Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
remote_connection agent: Fix find_or_create repository to support remote (#54074) 2026-04-16 16:36:09 -07:00
remote_server git: Fix diff hunks not being removed on restore in remote projects (#54823) 2026-05-07 17:40:28 +00:00
repl repl: Refresh Python kernelspecs on buffer language change (#54709) 2026-05-15 12:07:32 +00:00
reqwest_client Actually remove file (#56223) 2026-05-08 21:03:40 +00:00
rope Swap arrayvec crate for heapless to use LenT optimization (#47101) 2026-03-21 14:05:30 +01:00
rpc git_graph: Add remote support for search operations (#55167) 2026-05-04 16:38:14 +00:00
rules_library Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
scheduler scheduler: Fix stacked borrows violation in scheduler (#56850) 2026-05-15 10:07:50 +00:00
schema_generator theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
search Fix macOS find query seeding (#56681) 2026-05-13 23:35:10 +00:00
session Fix shared database test isolation (#51809) 2026-03-18 12:05:57 -07:00
settings settings: Fix inverted VS Code import for files.simpleDialog.enable (#55678) 2026-05-15 22:52:11 +00:00
settings_content markdown_preview: Independent code font family (#56744) 2026-05-14 20:03:29 +00:00
settings_json Remove some outdated comments (#52432) 2026-03-25 12:07:34 -06:00
settings_macros
settings_profile_selector Settings profile base option (#52456) 2026-04-02 00:44:53 +00:00
settings_ui Make restricted mode more obvious (#57056) 2026-05-18 16:18:59 +00:00
shell_command_parser Extract nested command substitutions from arithmetic expansions (#54690) 2026-05-05 16:25:56 +00:00
sidebar sidebar: Persist terminal threads in sidebar metadata (#56966) 2026-05-18 11:18:05 +00:00
snippet
snippet_provider Rust 1.95 (#55104) 2026-04-29 10:27:47 +00:00
snippets_ui Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
sqlez Remove smol as a dependency from a bunch of crates (#53603) 2026-04-24 10:29:51 +00:00
sqlez_macros
streaming_diff
sum_tree Swap arrayvec crate for heapless to use LenT optimization (#47101) 2026-03-21 14:05:30 +01:00
svg_preview gpui: Fix BGRA conversion for SVG rendering (#52641) 2026-03-29 14:43:05 +00:00
syntax_theme Extract syntax_theme crate (#52798) 2026-03-31 08:06:37 -06:00
system_specs Cleanup crashes crate (#54927) 2026-05-04 06:30:47 +00:00
tab_switcher Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
task Add support for custom git commands in the git graph context menu (#56354) 2026-05-12 16:20:53 +00:00
tasks_ui Merge gpui::Task and scheduler::Task (#53674) 2026-05-05 22:41:13 +00:00
telemetry
telemetry_events
terminal Fix basic_terminal test flake (#56659) 2026-05-13 15:51:42 +00:00
terminal_view agent_ui: Paste dropped paths into agent terminals (#56686) 2026-05-17 17:15:09 +00:00
text editor: Improve find_matches and replace_all perf (#51941) 2026-05-06 09:28:05 +00:00
theme theme: Expose editor diff hunk colors (#51784) 2026-05-06 21:18:29 +00:00
theme_extension theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
theme_importer theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
theme_selector Fix bad GitHub merge queue merge (#54721) 2026-04-23 23:47:30 +00:00
theme_settings markdown_preview: Independent code font family (#56744) 2026-05-14 20:03:29 +00:00
time_format
title_bar Make restricted mode more obvious (#57056) 2026-05-18 16:18:59 +00:00
toolchain_selector Make all status bar tools able to hide its button via UI (#54971) 2026-05-08 10:36:03 +00:00
ui csv_preview: Implement data_table columns pining (#56619) 2026-05-15 11:12:41 +00:00
ui_input agent_ui: Mask API key input in Add LLM provider modal (#50379) 2026-03-13 19:37:18 -03:00
ui_macros ui: Make UI independent from settings crate (#52578) 2026-03-27 15:31:49 +00:00
ui_prompt theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
util Restrict tools from editing sensitive agents folders (#56456) 2026-05-12 22:47:51 +00:00
util_macros
vim Vim/Helix: Prevent undo grouping when any LSP completion (#53980) 2026-05-14 06:39:33 +00:00
vim_mode_setting workspace: Only suppress auto-save on focus transfer for the Vim/Helix command palette (#51949) 2026-03-19 12:53:26 -04:00
watch
web_search
web_search_providers Fix token refresh for HTTP requests (#56559) 2026-05-12 19:40:00 +00:00
which_key theme: Split out theme_settings crate (#52569) 2026-03-27 14:41:25 +01:00
windows_resources Fix Windows icon resource for bin zed.exe (#54738) 2026-05-01 22:33:54 +00:00
workspace Make restricted mode more obvious (#57056) 2026-05-18 16:18:59 +00:00
worktree fs: Defer initializing poll watcher until after initial worktree scan (#56207) 2026-05-08 19:28:01 +00:00
worktree_benchmarks
x_ai x_ai: Update models list (#55931) 2026-05-07 09:56:04 +00:00
zed zed: Improve zed:// URL handling (#57047) 2026-05-18 15:09:21 +00:00
zed_actions acp: Add logout support for ACP agents (#56959) 2026-05-17 20:50:16 +00:00
zed_credentials_provider language_model: Decouple from Zed-specific implementation details (#52913) 2026-04-02 17:06:57 -03:00
zed_env_vars language_model: Decouple from Zed-specific implementation details (#52913) 2026-04-02 17:06:57 -03:00
zeta_prompt ep: Various ep CLI improvements (#56587) 2026-05-13 11:34:50 +00:00
zlog
zlog_settings
ztracing
ztracing_macro