Skip to content

Bump wretch from 2.11.1 to 3.0.7#886

Open
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/wretch-3.0.7
Open

Bump wretch from 2.11.1 to 3.0.7#886
dependabot[bot] wants to merge 1 commit intomainfrom
dependabot/npm_and_yarn/wretch-3.0.7

Conversation

@dependabot
Copy link
Copy Markdown
Contributor

@dependabot dependabot bot commented on behalf of github Mar 9, 2026

Bumps wretch from 2.11.1 to 3.0.7.

Release notes

Sourced from wretch's releases.

3.0.7

3.0.7 (2026-03-07)

🏭 New feature(s)

  • Allow multiple error ids on catchers (dc93190)
// Previously:
const api = wretch("https://api.example.com")
  .catcher(401, err => redirect("/login"))
  .catcher(403, err => redirect("/login"))
  .catcher(407, err => redirect("/login"))
// Now we can write:
const api = wretch("https://api.example.com")
.catcher([401, 403, 407], err => redirect("/login"))

⬆️ Version update(s)

  • Bump fastify from 5.6.1 to 5.7.3 (153cae9)
  • Bump lodash from 4.17.21 to 4.17.23 (2355d02)
  • Bump qs from 6.14.0 to 6.14.2 (02ca86e)
  • Upgrade dependencies (f677f28)

3.0.6

3.0.6 (2025-12-12)

🐛 Bug fix(es)

  • Add Self to return type (e5582d6)
import wretch from "wretch";
import AbortAddon from "wretch/addons/abort";
const base = wretch()
.addon(AbortAddon())
.catcher(404, (error) => { throw error; });
// Previously: ❌ TypeScript error: Property 'signal' does not exist
// Now: 🟢
base.signal(new AbortController()).get("/test");

... (truncated)

Changelog

Sourced from wretch's changelog.

3.0.7 (2026-03-07)

⬆️ Version update(s)

  • Bump fastify from 5.6.1 to 5.7.3 (153cae9)
  • Bump lodash from 4.17.21 to 4.17.23 (2355d02)
  • Bump qs from 6.14.0 to 6.14.2 (02ca86e)
  • Upgrade dependencies (f677f28)

🏭 New feature(s)

  • Allow multiple error ids on catchers (dc93190)

3.0.6 (2025-12-12)

🐛 Bug fix(es)

  • Add Self to return type (e5582d6)
  • Widen catcherFallback error type (d0a3fbe), closes #290

✅ Test improvement(s)

  • Add core snippet testing infrastructure (fcea6f7)
  • Add directive system for snippet test control (106e0d6)
  • Add execution engine and test orchestration (28f60a1)
  • Add extensible plugin system with examples (262a40d)
  • Integrate snippet testing framework and document usage (9cdeb4c)

3.0.5 (2025-11-27)

🎨 Code improvement(s)

  • Add progress option to customize the upload body size computation (2cd547f)

3.0.4 (2025-11-26)

⬆️ Version update(s)

... (truncated)

Commits
  • 0b90bc4 v3.0.7
  • f677f28 ⬆️ Upgrade dependencies
  • b655993 Merge pull request #285 from ecancino/catcher-errors
  • 1abd52f docs(readme): Fix the failing snippet
  • dc93190 🏭 Allow multiple error ids on catchers
  • d06b116 Merge pull request #297 from elbywan/dependabot/npm_and_yarn/qs-6.14.2
  • 02ca86e ⬆️ Bump qs from 6.14.0 to 6.14.2
  • 23c076b Merge pull request #294 from elbywan/dependabot/npm_and_yarn/fastify-5.7.3
  • 153cae9 ⬆️ Bump fastify from 5.6.1 to 5.7.3
  • 94998e7 Merge pull request #293 from elbywan/dependabot/npm_and_yarn/lodash-4.17.23
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by [GitHub Actions](https://www.npmjs.com/~GitHub Actions), a new releaser for wretch since your current version.


Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [wretch](https://github.com/elbywan/wretch) from 2.11.1 to 3.0.7.
- [Release notes](https://github.com/elbywan/wretch/releases)
- [Changelog](https://github.com/elbywan/wretch/blob/master/CHANGELOG.md)
- [Commits](elbywan/wretch@2.11.1...3.0.7)

---
updated-dependencies:
- dependency-name: wretch
  dependency-version: 3.0.7
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Mar 9, 2026

📝 Walkthrough

Summary by CodeRabbit

  • Chores
    • Updated development dependencies to improve internal testing infrastructure.

Walkthrough

Updated the wretch devDependency in packages/app/universal-testing-utils/package.json from version ^2.11.0 to ^3.0.7, representing a major version bump. This is a single-file configuration change affecting only the dependency declaration.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~5 minutes

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is missing critical template sections: no explicit 'Changes' section describing impact, no release label selection shown, and AI assistance tracking not marked. Add a 'Changes' section explaining the update's impact, explicitly select a release label (major is appropriate given version jump), and mark AI assistance tracking as required by template.
Linked Issues check ❓ Inconclusive Linked issue #290 requires adding node-core as an explicit peer dependency to address CI breaks, but the PR only updates wretch from 2.11.1 to 3.0.7 without directly addressing the node-core dependency requirement. Clarify whether the wretch 3.0.7 update itself resolves the node-core dependency issue from #290, or if separate changes are needed to add node-core as an explicit peer dependency.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and accurately describes the main change: a dependency version bump from wretch 2.11.1 to 3.0.7.
Out of Scope Changes check ✅ Passed The PR only modifies wretch dependency version, which aligns with updating the package to v3.0.7 as described in the PR objectives.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch dependabot/npm_and_yarn/wretch-3.0.7

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@packages/app/universal-testing-utils/package.json`:
- Line 64: Add an explicit Node engine floor to this package's package.json to
prevent installing wretch@^3 on unsupported Node versions: in
packages/app/universal-testing-utils/package.json add an "engines" field with
"node": ">=22.0.0" (or ensure the repo root package.json already declares the
same and remove duplication), so the package's dependency on "wretch": "^3.0.7"
is constrained to Node 22+. Update the package.json top-level object (near the
existing dependencies block) to include the "engines" entry.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository: lokalise/coderabbit/.coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6724728e-c33e-46ad-a054-e51853543e13

📥 Commits

Reviewing files that changed from the base of the PR and between 632ee80 and 56df066.

📒 Files selected for processing (1)
  • packages/app/universal-testing-utils/package.json

"typescript": "5.9.3",
"vitest": "^4.0.15",
"wretch": "^2.11.0",
"wretch": "^3.0.7",
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🟡 Minor

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

echo "# Node/toolchain declarations"
fd -HI '(^package\.json$|^\.nvmrc$|^\.node-version$|^\.tool-versions$)' | while read -r f; do
  echo "## $f"
  if [[ "$f" == *.json ]]; then
    rg -nC2 '"engines"|"packageManager"|"volta"|"node"' "$f" || true
  else
    sed -n '1,20p' "$f"
  fi
  echo
done

echo "# CI node versions"
if [[ -d .github/workflows ]]; then
  fd -HI '\.ya?ml$' .github/workflows -x rg -nC2 'setup-node|node-version' {}
fi

echo "# Wretch imports and v2-only APIs"
rg -nC2 --glob '!**/dist/**' --glob '!**/node_modules/**' \
  'from ["'"'"']wretch["'"'"']|require\(["'"'"']wretch["'"'"']\)|\.polyfills\s*\(|wretch\.polyfills\s*\(|wretch\.options\s*\(|\.errorType\s*\(|wretch\.errorType\s*\('

Repository: lokalise/shared-ts-libs

Length of output: 2570


Add engines.node constraint to match wretch@^3's Node.js 22+ requirement.

The monorepo's CI tests on Node 22.x and 24.x, and no v2-only wretch APIs remain in use. However, universal-testing-utils (and the root package.json) do not declare an explicit engines.node floor. This allows installation on Node <22 locally, which would fail at runtime with wretch@^3. Add "engines": { "node": ">=22.0.0" } to this package's package.json (or rely on a root-level engines declaration if established repository-wide).

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@packages/app/universal-testing-utils/package.json` at line 64, Add an
explicit Node engine floor to this package's package.json to prevent installing
wretch@^3 on unsupported Node versions: in
packages/app/universal-testing-utils/package.json add an "engines" field with
"node": ">=22.0.0" (or ensure the repo root package.json already declares the
same and remove duplication), so the package's dependency on "wretch": "^3.0.7"
is constrained to Node 22+. Update the package.json top-level object (near the
existing dependencies block) to include the "engines" entry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants