Skip to content

chore(templates): update outdated template dependencies - #1302

Merged
AmanVarshney01 merged 2 commits into
mainfrom
chore/update-template-deps
Oct 24, 2026
Merged

AmanVarshney01 merged 2 commits into
mainfrom
chore/update-template-deps

Conversation

@AmanVarshney01

@AmanVarshney01 AmanVarshney01 commented Oct 24, 2026 •

Copy link
Copy Markdown
Owner

Summary

Updates every template dependency that had fallen behind its latest release, except Prisma 8 (needs its own plan) and Polar (blocked upstream, see below).

Major versions

  • Stripe: @stripe/stripe-js 9 → 10.1.0 and @stripe/react-stripe-js 6 → 7.0.0. They move together because react-stripe-js 7 peers on stripe-js >=10 <11. The templates use none of the removed APIs; these packages are only installed as peers of @polar-sh/checkout for Convex + Polar.
  • Nx 23 → 24.0.1. Every nx.json key we generate is still in the 24 schema, and none of the 24.x migrations touch it.

Prerelease lines we track

  • Solid 2:
    • solid-js, @solidjs/web, signals, compiler and babel-plugin rc.14 → rc.18
    • @solidjs/router next.38 → next.42
    • @solidjs/vite-plugin next.49 → next.51 (required with web rc.16+)
    • Updated the pnpm overrides and minimumReleaseAgeExclude entries to match.
  • Drizzle: drizzle-orm / drizzle-kit 1.0.0-rc.4 → rc.5. kit rc.5 peers on orm rc.5. No template changes were needed: the db clients for every driver and all drizzle.config.ts variants typecheck.

Minor and patch

  • @cloudflare/vite-plugin 1.54.4 → 1.65.0, with wrangler ^4.129.0 → ^4.152.0 (the plugin's peer)
  • varlock 1.18 → 1.23 and all @varlock/* integrations to their latest (they peer on varlock ^1.23.0)
  • vite-plus 1.1 → 1.4, rolldown 1.2.13 → 1.2.15, oxfmt ^0.72 → ^0.74
  • cn ^0.2.5 → ^0.5.0 (same cn export), filesystem-routing 0.4.0 → 0.4.1

Not updated, and why

  • Polar stays on @polar-sh/better-auth ^1.8.4 / @polar-sh/sdk ^0.47.0.
    • @polar-sh/better-auth 2.1 does not export PolarBetterAuthPlugin (it lives in an internal dist/client-*.d.ts chunk). Every Better Auth + Polar project's packages/auth declaration build then fails with TS4058: Return type of exported function has or is using name 'PolarBetterAuthPlugin' … but cannot be named. 11 generated-build samples failed this way, so the update was reverted.
    • 2.x also requires sdk 1.0, and @convex-dev/polar 0.9.2 (latest) still imports sdk 0.x subpaths (core.js, funcs/*) that 1.0 removed.
  • @planetscale/database stays on ^1.20.1. 2.0 removed parameter interpolation, and drizzle-orm's planetscale-serverless session still calls execute(sql, params, …), so every query would throw ([BUG]: planetscale-serverless fails every query with @planetscale/database 2.0 (execute no longer accepts params) drizzle-team/drizzle-orm#6398, open). It still typechecks, so this is documented next to the pin.
  • @tanstack/query-core stays on 5.101.4. @tanstack/solid-query 6.0.0-rc.5 (still its latest RC) depends on that exact version.
  • TypeScript 7 (vue-tsc/svelte-check need the compiler API), the Expo SDK 58 native module set (it matches bundledNativeModules.json, and SDK 58 is the latest Expo release) and Prisma 8 are unchanged.

Upstream notes

  • @polar-sh/checkout 0.4.3 (latest) peers on older Stripe majors. Our Stripe pins were already outside that range before this PR.

Verification

  • bun run check, cd apps/cli && bun run test:ci (112 pass)
  • Full generated-builds run: 69/80 passed with the Polar 2.x update. All 11 failures were the Polar TS4058 error above. After keeping Polar on 1.x, those 11 samples pass, so all 80 pass

Summary by CodeRabbit

  • Chores
    • Updated dependency versions used in generated projects, including Solid and its routing and build tools, as well as development tooling, database and payment integrations, and UI utilities.
    • Updated package version overrides for Solid-based projects to keep generated dependencies aligned across package managers.
    • Updated dependency compatibility notes for Drizzle integrations.

- Polar: @polar-sh/sdk 1.0 and @polar-sh/better-auth 2.1 (createPolarCore,
  snake_case customer state); Convex keeps sdk 0.47 for @convex-dev/polar
- Stripe 10/7, Nx 24, Solid 2 rc.18 (router next.42, vite-plugin next.51),
  Drizzle 1.0.0-rc.5
- Cloudflare Vite plugin 1.65 (wrangler ^4.152), varlock 1.23 and its
  integrations, vite-plus 1.4, rolldown 1.2.15, oxfmt 0.74, cn 0.5,
  filesystem-routing 0.4.1
- document why @planetscale/database stays on 1.x
@vercel

vercel Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
create-better-t-stack-web Ready Ready Preview Oct 24, 2026 10:10am UTC

Request Review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 24, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-24T10:02:46.560496Z 4d15e1d PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@coderabbitai

coderabbitai Bot commented Oct 24, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: Organization UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 9603ecb2-9a33-49af-810c-ba6ed5887016
Commits

Reviewing files that changed from the base of the PR and between 4d15e1d and 044f18e.

Files ignored due to path filters: 1
  • packages/template-generator/src/templates.generated.ts is excluded by !**/*.generated.*
Files selected for processing: 1
  • packages/template-generator/src/utils/add-deps.ts

Included review availability: This review used your included allowance. Your plan provides up to 8 included reviews per hour; 6 remain after this review.

Walkthrough

The template generator updates dependency pins in its version map and generated package templates. The changes include Solid packages, development and deployment tools, Varlock integrations, Stripe packages, and the UI template’s cn dependency.

Changes

Template Generator Updates

Layer / File(s) Summary
Dependency version updates
packages/template-generator/src/utils/add-deps.ts, packages/template-generator/templates/packages/ui/package.json.hbs
The dependency map updates Drizzle, formatting and build tools, Cloudflare tools, Varlock integrations, and Stripe packages. It adds Drizzle and Polar compatibility comments. The UI template updates cn from ^0.2.5 to ^0.5.0.
Solid package version updates
packages/template-generator/src/template-handlers/extras.ts, packages/template-generator/templates/base/package.json.hbs, packages/template-generator/templates/frontend/solid/package.json.hbs
Solid overrides and minimum-release-age exclusions use updated versions. The Solid frontend template updates its router, core, web, Vite plugin, and filesystem-routing dependencies.

Priority: Low

Merge Risk: Minimal · up to 044f1

No actionable merge risk is established for this PR.

Pre-merge checks: Passed 4 · Failed 1

Failed Failed checks: 1 warning

Check name Status Explanation Resolution
Docstring Coverage Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 2 functions across 3 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
Passed Passed checks: 4 passed
Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed The title clearly and concisely describes the main change: updating outdated dependencies used by the templates.
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

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

@polar-sh/better-auth 2.1 does not export PolarBetterAuthPlugin, so the
auth package's declaration build fails with TS4058 in every Better Auth +
Polar project. Keep 1.8 with sdk 0.47 and document why.
@AmanVarshney01
AmanVarshney01 merged commit 3ebd724 into main Oct 24, 2026
11 checks passed
@AmanVarshney01
AmanVarshney01 deleted the chore/update-template-deps branch October 24, 2026 10:35
@coderabbitai coderabbitai Bot mentioned this pull request Oct 24, 2026

This branch was successfully deployed

1 active deployment
Preview — 044f18eb Deployed Oct 24, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant