fix(deps): update dependencies and fix all compilation errors

Updated dependencies to latest versions causing breaking changes:
- logos: 0.14 -> 0.16
- lalrpop: 0.21 -> 0.23
- thiserror: 1.0 -> 2.0
- petgraph: 0.6 -> 0.8
- notify: 6.0 -> 8
- toml: 0.8 -> 1.0.2
- tree-sitter (grammar): 0.20 -> 0.26

Fixed compilation issues:
1. logos 0.16: Added allow_greedy for unbounded repetitions in lexer
2. lalrpop 0.23: Changed from process_current_dir() to process()
3. tree-sitter 0.26: Updated bindings to use &Language reference

Also fixed Zed extension:
- Removed local highlights.scm override that had diverged from source
- Added regression test to prevent future divergence
This commit is contained in:
2026-02-16 23:49:29 +00:00
parent 1951be030e
commit 37793cea0d
8 changed files with 364 additions and 536 deletions

View File

@@ -20,18 +20,18 @@ name = "storybook-lsp"
path = "src/bin/storybook-lsp.rs"
[dependencies]
logos = "0.14"
lalrpop-util = "0.21"
logos = "0.16"
lalrpop-util = "0.23"
miette = { version = "7.0", features = ["fancy"] }
thiserror = "1.0"
thiserror = "2.0"
strsim = "0.11" # Fuzzy matching for "did you mean?" suggestions
indexmap = "2.0" # Order-preserving maps
petgraph = "0.6" # Cycle detection
petgraph = "0.8" # Cycle detection
# Phase 3: Public API + CLI
anyhow = "1.0" # Error handling
clap = { version = "4.5", features = ["derive"] }
notify = "6.0" # Filesystem watching
toml = "0.8" # storybook.toml parsing
notify = "8" # Filesystem watching
toml = "1.0.2" # storybook.toml parsing
walkdir = "2.4" # Directory traversal
serde = { version = "1.0", features = ["derive"] }
# LSP Server dependencies
@@ -41,7 +41,7 @@ serde_json = "1.0"
env_logger = "0.11"
[build-dependencies]
lalrpop = "0.21"
lalrpop = "0.23"
[dev-dependencies]
proptest = "1.4"