-
Notifications
You must be signed in to change notification settings - Fork 0
Upgrade all packages to latest versions for security #53
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 |
|---|---|---|
|
|
@@ -48,30 +48,30 @@ | |
| "example:error": "tsx examples/error-handling-demo.ts" | ||
| }, | ||
| "dependencies": { | ||
| "chalk": "^5.3.0", | ||
| "chalk": "^5.6.2", | ||
| "crypto-js": "^4.2.0", | ||
| "ollama": "0.5.17", | ||
| "openai": "5.20.1" | ||
| "ollama": "0.6.3", | ||
|
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
# Search for ollama imports and usage
rg -n --type=ts --type=js 'from\s+["\']ollama|import\s+.*\s+from\s+["\']ollama' -A 10Repository: ChristopherAlphonse/logger Length of output: 138 🏁 Script executed: #!/bin/bash
# Also search for ollama usage more broadly
rg -n 'ollama' --type=ts --type=js --type=json -B 2 -A 2Repository: ChristopherAlphonse/logger Length of output: 13924 🏁 Script executed: #!/bin/bash
# Check package.json for ollama version and dependencies
cat -n package.json | grep -A 5 -B 5 ollamaRepository: ChristopherAlphonse/logger Length of output: 431 🌐 Web query:
💡 Result: Short answer: There are no wide-reaching API signature breaks in v0.6.3, but one change can break integrations — the default access scope for newly created resources (models, tools, knowledge) is now private by default (so existing workflows that relied on new resources being public may fail unless you explicitly set scopes). See the 0.6.3 changelog (Apr 12, 2025). [1] Relevant items:
Sources:
🌐 Web query:
💡 Result: Short answer: v0.6.3 (published in the ollama-js GitHub releases) is a newer release than the npm-published package (npm currently shows v0.5.17). v0.6.3 includes API additions (e.g., server version function, logprobs, browser websearch/webcrawl features) so it is not strictly a drop-in identical build to 0.5.17 — expect new features and small API surface changes; if you rely on the npm package, installing via npm currently yields 0.5.17. Sources: GitHub releases (v0.6.3) and npm/jsDelivr package listings. [1][2][3] If you want, I can list the concrete API diffs or point to the exact commits/files that changed between 0.5.17 and 0.6.3. Sources:
🌐 Web query:
💡 Result: I can't find an npm release for ollama@0.6.3. The npm registry shows latest published version 0.5.17. [1] jsDelivr/other CDNs list up to 0.6.2 but not 0.6.3. [2][3] Sources:
🌐 Web query:
💡 Result: Short summary of breaking changes affecting "generate" and "list" when upgrading Ollama clients (Node.js and others):
Pointers:
Sources: Ollama version 0.6.3 does not exist on npm registry. The package.json specifies 🤖 Prompt for AI Agents |
||
| "openai": "6.10.0" | ||
| }, | ||
| "devDependencies": { | ||
| "@biomejs/biome": "^1.9.4", | ||
| "@semantic-release/changelog": "^6.0.0", | ||
| "@semantic-release/commit-analyzer": "^10.0.0", | ||
| "@semantic-release/git": "^10.0.0", | ||
| "@semantic-release/github": "^9.0.0", | ||
| "@semantic-release/npm": "^9.0.0", | ||
| "@biomejs/biome": "^2.3.8", | ||
| "@semantic-release/changelog": "^6.0.3", | ||
| "@semantic-release/commit-analyzer": "^13.0.1", | ||
|
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: find . -name "package.json" -type f | head -5Repository: ChristopherAlphonse/logger Length of output: 84 🏁 Script executed: cat -n package.json | sed -n '55,75p'Repository: ChristopherAlphonse/logger Length of output: 886 🌐 Web query:
💡 Result: v25.0.2 (2025-11-07) contains only a bugfix (update of read-package-up) and lists no breaking changes. The breaking changes for the v25 series were introduced in v25.0.0: raised minimum Node.js requirements (minimum for v24 range is v24.10.0 and a minimum of Node v22.14 is now required). [1] Sources: 🏁 Script executed: find . -path ./.git -prune -o -type f \( -name ".github" -o -name ".gitlab-ci.yml" -o -name ".circleci" \) -print 2>/dev/null | head -10Repository: ChristopherAlphonse/logger Length of output: 52 🏁 Script executed: find . -type f \( -name ".github" -o -name "*.yml" -o -name "*.yaml" \) | grep -E "(workflow|\.github|ci)" | head -20Repository: ChristopherAlphonse/logger Length of output: 338 🏁 Script executed: cat -n package.json | grep -A 5 -B 5 "engines"Repository: ChristopherAlphonse/logger Length of output: 359 🏁 Script executed: find . -type f \( -name ".nvmrc" -o -name ".node-version" -o -name ".tool-versions" \) 2>/dev/nullRepository: ChristopherAlphonse/logger Length of output: 78 🏁 Script executed: cat -n .nvmrcRepository: ChristopherAlphonse/logger Length of output: 91 🏁 Script executed: cat -n .github/workflows/semantic-release.ymlRepository: ChristopherAlphonse/logger Length of output: 8116 Update Node.js version to satisfy semantic-release v25.0.2 requirements. The CI/CD release workflow is incompatible with the semantic-release v25 dependencies. semantic-release v25.0.2 requires Node.js v22.14+ or v24.10.0+, but the release pipeline (.github/workflows/semantic-release.yml) and .nvmrc are configured for Node 20.x. Update the following:
🤖 Prompt for AI Agents |
||
| "@semantic-release/git": "^10.0.1", | ||
| "@semantic-release/github": "^12.0.2", | ||
| "@semantic-release/npm": "^13.1.2", | ||
| "@semantic-release/release-notes-generator": "^14.1.0", | ||
| "@types/crypto-js": "^4.2.2", | ||
| "@types/jest": "^29.5.12", | ||
| "@types/node": "^24.9.1", | ||
| "jest": "^29.7.0", | ||
| "rimraf": "^5.0.5", | ||
| "semantic-release": "^21.0.0", | ||
| "ts-jest": "^29.1.2", | ||
| "tslib": "^2.8.0", | ||
| "tsx": "^4.19.2", | ||
| "typescript": "^5.6.3", | ||
| "vite": "^7.0.5", | ||
| "@types/jest": "^30.0.0", | ||
| "@types/node": "^24.10.1", | ||
| "jest": "^30.2.0", | ||
| "rimraf": "^6.1.2", | ||
| "semantic-release": "^25.0.2", | ||
| "ts-jest": "^29.4.6", | ||
| "tslib": "^2.8.1", | ||
| "tsx": "^4.21.0", | ||
| "typescript": "^5.9.3", | ||
| "vite": "^7.2.6", | ||
| "vite-plugin-dts": "^4.5.4" | ||
| }, | ||
| "engines": { | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🏁 Script executed:
Repository: ChristopherAlphonse/logger
Length of output: 82
🏁 Script executed:
cat biome.json | head -60Repository: ChristopherAlphonse/logger
Length of output: 1236
🌐 Web query:
Biome v2 style rules migration removed recommendations💡 Result:
Short answer: In Biome v2 the "style" rules were removed from the recommended set (they no longer emit errors by default). The v2 upgrade/migration tooling will try to preserve your prior behavior (the migrate command updates severities so previously-recommended style rules continue to error), but you should still review the migrated config because some rules were dropped from the recommended set and/or not migrated automatically (e.g., reports of specific rules like noDelete not being added back by migrate). [1][2][3]
What to do
Sources
[1] Biome upgrade-to-v2 / migration notes (style rules no longer emit errors; migrate updates severities).
[2] Biome blog / v2 release notes (notes that style rules aren’t recommended anymore).
[3] GitHub issue showing an example rule (noDelete) that wasn’t migrated.
[4] Biome migrate docs (migrate CLI and ESLint/Prettier helpers).
🏁 Script executed:
Repository: ChristopherAlphonse/logger
Length of output: 156
Fix invalid JSON syntax in the style section configuration.
The trailing comma on line 52 after
"useTemplate": "error",followed by whitespace on line 53 creates malformed JSON. In Biome v2, style rules are no longer part of the recommended ruleset; if you had them previously enabled, explicitly set their severity or remove them.Replace the blank line with one of these options:
"style": { "useConst": "error", "useTemplate": "error", - + "useShorthandArrayType": "off" },Or restore the rule if it should remain enabled:
"style": { "useConst": "error", "useTemplate": "error", + "useShorthandArrayType": "error" },📝 Committable suggestion
🤖 Prompt for AI Agents