-
Notifications
You must be signed in to change notification settings - Fork 576
fix: handle stricter Express request param types and update dependencies #524
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| /** | ||
| * Request utility functions for handling Express request parameters | ||
| */ | ||
|
|
||
| /** | ||
| * Extracts a string parameter from req.params, handling both string and string[] types. | ||
| * If the parameter is an array, returns the first element. | ||
| * | ||
| * @param param - The parameter value from req.params (string | string[]) | ||
| * @returns The parameter as a string | ||
| */ | ||
| export function getStringParam(param: string | string[]): string { | ||
| if (Array.isArray(param)) { | ||
| return param[0] ?? ''; | ||
| } | ||
| return param; | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -63,13 +63,13 @@ | |
| "@radix-ui/react-switch": "1.2.6", | ||
| "@radix-ui/react-tabs": "1.1.13", | ||
| "@radix-ui/react-tooltip": "1.2.8", | ||
| "@tanstack/react-query": "5.90.12", | ||
| "@tanstack/react-router": "1.141.6", | ||
| "@tanstack/react-query": "5.90.18", | ||
| "@tanstack/react-router": "1.150.0", | ||
| "@uiw/react-codemirror": "4.25.4", | ||
| "@xterm/addon-fit": "0.10.0", | ||
| "@xterm/addon-search": "0.15.0", | ||
| "@xterm/addon-web-links": "0.11.0", | ||
| "@xterm/addon-webgl": "0.18.0", | ||
| "@xterm/addon-fit": "0.11.0", | ||
| "@xterm/addon-search": "0.16.0", | ||
| "@xterm/addon-web-links": "0.12.0", | ||
| "@xterm/addon-webgl": "0.19.0", | ||
| "@xterm/xterm": "5.5.0", | ||
|
Comment on lines
+69
to
73
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: #!/bin/bash
# Check peer dependency requirements for specific xterm addon versions
echo "Checking npm peer dependencies for xterm addons..."
for pkg in "@xterm/addon-fit@0.11.0" "@xterm/addon-search@0.16.0" "@xterm/addon-web-links@0.12.0" "@xterm/addon-webgl@0.19.0"; do
echo "=== $pkg ==="
npm view "$pkg" peerDependencies --json 2>/dev/null || echo "No peer deps found"
echo ""
doneRepository: AutoMaker-Org/automaker Length of output: 260 🏁 Script executed: #!/bin/bash
# Get full package metadata from npm registry
echo "Checking full package metadata for xterm addons..."
npm view "@xterm/addon-fit@0.11.0" --json 2>/dev/null | jq -r '.peerDependencies, .engines, .dependencies' || echo "Failed to get fit metadata"
echo ""
echo "Checking `@xterm/xterm`@5.5.0 metadata..."
npm view "@xterm/xterm@5.5.0" --json 2>/dev/null | jq -r '.version, .dependencies' || echo "Failed to get xterm metadata"Repository: AutoMaker-Org/automaker Length of output: 184 🏁 Script executed: #!/bin/bash
# Get complete package metadata
echo "=== Full metadata for `@xterm/addon-fit`@0.11.0 ==="
npm view "@xterm/addon-fit@0.11.0" --json 2>/dev/null | head -50
echo ""
echo "=== Checking npm registry URL for addon compatibility info ==="
npm view "@xterm/addon-fit" versions --json 2>/dev/null | tail -20Repository: AutoMaker-Org/automaker Length of output: 1620 🏁 Script executed: #!/bin/bash
# Get specific fields from npm registry that contain dependency info
echo "=== Checking dependencies for addon versions ==="
npm view "@xterm/addon-fit@0.11.0" --json 2>/dev/null | jq '.peerDependencies // "no peer deps" | .dependencies // "no deps"'
echo ""
echo "=== Getting full object keys to understand structure ==="
npm view "@xterm/addon-fit@0.11.0" --json 2>/dev/null | jq 'keys' | head -30Repository: AutoMaker-Org/automaker Length of output: 683 🏁 Script executed: #!/bin/bash
# Search for xterm addons in the codebase to find any package-lock or version info
echo "=== Checking for xterm addon info in node_modules or lock files ==="
cd apps/ui
if [ -f "package-lock.json" ]; then
echo "Found package-lock.json, checking xterm addon entries..."
jq '.dependencies[] | select(.name | startswith("@xterm/addon")) | {name, version, requires}' package-lock.json 2>/dev/null | head -100
elif [ -f "yarn.lock" ]; then
echo "Checking yarn.lock for xterm addons..."
grep -A 5 "@xterm/addon" yarn.lock | head -50
else
echo "No lock file found"
fiRepository: AutoMaker-Org/automaker Length of output: 153 🏁 Script executed: #!/bin/bash
# Check the actual package.json content for context
cd apps/ui
echo "=== Full xterm dependency section from package.json ==="
cat package.json | jq '.dependencies | to_entries[] | select(.key | contains("xterm"))' 2>/dev/nullRepository: AutoMaker-Org/automaker Length of output: 393 🌐 Web query:
💡 Result: For
(See xterm.js 5.5.0 release notes / compatible addon table.) [1][2] Sources: Downgrade xterm addons to versions compatible with The current addon versions are incompatible with the installed xterm version. According to the official xterm.js 5.5.0 release notes, the following versions must be used:
Using newer addon versions with xterm 5.5.0 will cause runtime errors in the terminal component. 🤖 Prompt for AI Agents
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The peer dependency version for these packages was removed between the 5.5.0 release and the current version. As the tests are passing, it might not be a breaking change internally. Did you check what the changes between those versions are and what the impact might be?
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "@xyflow/react": "12.10.0", | ||
| "class-variance-authority": "0.7.1", | ||
|
|
@@ -87,40 +87,40 @@ | |
| "sonner": "2.0.7", | ||
| "tailwind-merge": "3.4.0", | ||
| "usehooks-ts": "3.1.1", | ||
| "zustand": "5.0.9" | ||
| "zustand": "5.0.10" | ||
| }, | ||
| "optionalDependencies": { | ||
| "lightningcss-darwin-arm64": "1.29.2", | ||
| "lightningcss-darwin-x64": "1.29.2", | ||
| "lightningcss-linux-arm-gnueabihf": "1.29.2", | ||
| "lightningcss-linux-arm64-gnu": "1.29.2", | ||
| "lightningcss-linux-arm64-musl": "1.29.2", | ||
| "lightningcss-linux-x64-gnu": "1.29.2", | ||
| "lightningcss-linux-x64-musl": "1.29.2", | ||
| "lightningcss-win32-arm64-msvc": "1.29.2", | ||
| "lightningcss-win32-x64-msvc": "1.29.2" | ||
| "lightningcss-darwin-arm64": "1.30.2", | ||
| "lightningcss-darwin-x64": "1.30.2", | ||
| "lightningcss-linux-arm-gnueabihf": "1.30.2", | ||
| "lightningcss-linux-arm64-gnu": "1.30.2", | ||
| "lightningcss-linux-arm64-musl": "1.30.2", | ||
| "lightningcss-linux-x64-gnu": "1.30.2", | ||
| "lightningcss-linux-x64-musl": "1.30.2", | ||
| "lightningcss-win32-arm64-msvc": "1.30.2", | ||
| "lightningcss-win32-x64-msvc": "1.30.2" | ||
| }, | ||
| "devDependencies": { | ||
| "@electron/rebuild": "4.0.2", | ||
| "@eslint/js": "9.0.0", | ||
| "@eslint/js": "9.39.2", | ||
| "@playwright/test": "1.57.0", | ||
| "@tailwindcss/vite": "4.1.18", | ||
| "@tanstack/router-plugin": "1.141.7", | ||
| "@tanstack/router-plugin": "1.150.0", | ||
| "@types/dagre": "0.7.53", | ||
| "@types/node": "22.19.3", | ||
| "@types/react": "19.2.7", | ||
| "@types/react": "19.2.8", | ||
| "@types/react-dom": "19.2.3", | ||
| "@typescript-eslint/eslint-plugin": "8.50.0", | ||
| "@typescript-eslint/parser": "8.50.0", | ||
| "@typescript-eslint/eslint-plugin": "8.53.0", | ||
| "@typescript-eslint/parser": "8.53.0", | ||
| "@vitejs/plugin-react": "5.1.2", | ||
| "cross-env": "10.1.0", | ||
| "electron": "39.2.7", | ||
| "electron-builder": "26.0.12", | ||
| "electron-builder": "26.4.0", | ||
| "eslint": "9.39.2", | ||
| "tailwindcss": "4.1.18", | ||
| "tw-animate-css": "1.4.0", | ||
| "typescript": "5.9.3", | ||
| "vite": "7.3.0", | ||
| "vite": "7.3.1", | ||
| "vite-plugin-electron": "0.29.0", | ||
| "vite-plugin-electron-renderer": "0.14.6" | ||
| }, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -34,6 +34,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -28,6 +28,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -27,6 +27,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,6 @@ | |
| "devDependencies": { | ||
| "@types/node": "22.19.3", | ||
| "typescript": "5.9.3", | ||
| "vitest": "4.0.16" | ||
| "vitest": "4.0.17" | ||
| } | ||
| } | ||
Uh oh!
There was an error while loading. Please reload this page.