All jobs

Upgrade Nuxt Dependencies Every Week

An agent moved 50 of Elk's packages in tested groups, skipped nuxt 4.6, tiptap 3 and vue-tsc 3 with their errors, and all four checks exit 0.

Run this on RushOpens the console with this prompt ready to send, in a Project that has your repository.

What the agent does

The agent enables pnpm 11.6.0 through corepack, as packageManager in package.json names, and runs pnpm nuxi prepare, npx vitest run, pnpm lint and pnpm test:typecheck on the untouched clone first. All four exit 0, though vitest later failed one of three reruns with an EnvironmentTeardownError while all 49 tests passed.

It updates one group at a time, mostly with pnpm update --latest, with a clean install before every check, and reverts a group that fails. pnpm ran out of memory in the sandbox, so every install ran with NODE_OPTIONS=--max-old-space-size=8192. In pnpm-workspace.yaml it drops @vueuse/integrations@13.9.0 from trustPolicyExclude once all five @vueuse packages sit on 14.4.0.

Start it with one API call

POST https://api.phoenix.so/o/{org}/sessions with this body:

{
  "agent": "claude",
  "input": "Upgrade this project's dependencies to their latest compatible releases with the pnpm version packageManager names, one group at a time: nuxt with @nuxt/test-utils and @nuxt/devtools; vue with vue-tsc and @vue/test-utils; all @tiptap packages together, updating trustPolicyExclude; the @vueuse packages onto one major; then the rest. Update pnpm-workspace.yaml overrides when a bump needs it. After each group run pnpm nuxi prepare, npx vitest run, pnpm lint and pnpm test:typecheck. Do not update snapshots to make tests pass. Revert any group that fails and record the error. Open one pull request listing each bump with its old and new version and each skipped upgrade with the error that blocked it.",
  "resources": [
    {
      "url": "https://github.com/your-org/your-app"
    }
  ]
}
  1. Get an API key. In the console, open Settings, then API keys, and create a key for your org. Send it in the Authorization header as a Bearer token.
  2. Send the request. POST the body in request.json to https://api.phoenix.so/o/{org}/sessions, with your repository as the resources URL. The run starts in its own cloud sandbox.
  3. Read what came back. Follow the run on its live stream or wait for the run.completed webhook, then read the result and its trajectory.

What comes back

Tried on elk-zone/elk at 3405d745: 3 files changed, 4720 insertions(+), 3979 deletions(-) in package.json, pnpm-lock.yaml and pnpm-workspace.yaml, 50 packages in 30 local commits, including majors such as vite 8, pinia 4, eslint 10 and vite-plugin-pwa 2. On the final tree all four checks exited 0, npx vitest run ending Tests 49 passed (49). Skipped with their errors: nuxt 4.6.3 with @nuxt/test-utils 4.3.4 and @nuxt/devtools 4.0.0, every @tiptap package at 3.32.2, vue-tsc 3 (14 type errors), vitest 5 and @vueuse 15, among others.

For the reviewer: whether to take those majors in follow-up pull requests, since each needs code or test changes. workbox 7.4.1 is refused with ERR_PNPM_TRUST_DOWNGRADE under trustPolicy: no-downgrade, and the run added no exclusion for it. No pull request was opened.

Run it on every Monday at 09:00 UTC

An automation with a schedule trigger, cron 0 9 * * 1, saves this request as its prompt. It asks for the latest releases each time, so a group skipped this week, like nuxt 4.6, is tried again next Monday.

The use case this job follows, with its automation and trigger: Upgrade dependencies weekly.

Why run it on Rush?

Elk's checks catch what a version number hides. Nuxt 4.6 with test-utils 4 installs and then breaks vitest's setupFiles; tiptap 3 and vue-tsc 3 fail the type check; prettier 3.9.10 changes the </pre> whitespace in a content-rich snapshot. The run kept each out with its error instead of updating the snapshot, and found the baseline's vitest flake before blaming an upgrade for it.

Frequently asked questions

Why does the diff touch about 8,600 lockfile lines?

The run reports that pnpm 11 re-resolved transitive dependencies across pnpm-lock.yaml. The run copied the full diff and the manifest-only diff to /workspace/.rush/artifacts/ instead of pasting them, but capture keeps no .diff file, so neither came back.

Did it weaken the trust policy?

It removed one exclusion, @vueuse/integrations@13.9.0, whose comment said it existed for the docs workspace's v14; a frozen install passes without it. It added none, which is why workbox stays on 7.4.0.

More Nuxt jobs

The same job on other stacks

Keep reading