Update npm dependencies and fix vulnerabilities#33
Open
AnHeuermann wants to merge 4 commits intoOpenModelica:mainfrom
Open
Update npm dependencies and fix vulnerabilities#33AnHeuermann wants to merge 4 commits intoOpenModelica:mainfrom
AnHeuermann wants to merge 4 commits intoOpenModelica:mainfrom
Conversation
- Update all packages in root, client and server to latest versions - Broaden node engine constraint from "20" to ">=20" - Add npm overrides to fix transitive vulnerabilities: - diff >=8.0.3 (DoS in mocha dep) - serialize-javascript >=7.0.3 (RCE in mocha dep) - minimatch >=5.1.9 (vuln in vscode-languageclient dep) - brace-expansion >=2.0.2 (vuln in vscode-languageclient dep) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add missing @nodelib/fs.walk dependency to server/package.json - Update WASM source path in esbuild.config.js (renamed to web-tree-sitter.wasm in v0.26) - Update parser.ts for new web-tree-sitter v0.26 API: use named imports and Language.load() instead of Parser.Language.load() Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Use named import { Parser } instead of default import across all
server source files
- Use named import { Language } in parser.ts
- Replace Parser.Language.load() with Language.load()
- Add non-null assertion on parser.parse() which now returns Tree | null
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Parser sub-types (Tree, SyntaxNode, Point) are now top-level named
exports and SyntaxNode was renamed to Node. Edit() now requires a
constructor call instead of a plain object.
- Import Tree, Point, Edit, Node directly instead of via Parser namespace
- Replace Parser.SyntaxNode with Node across all server source files
- Add non-null assertions on parse() which now returns Tree | null
- Use new Edit({...}) constructor for tree.edit() calls
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes