create-t3-app@7.39.0
Changelog
7.38.1
Patch Changes
- #2010
12fccae15d08bc11168fe6b462d978a6787b5c7cThanks @swyckoff! - Added an import for crypto in the cli envVars.ts to support older node versions.
Unclaimed project
Are you a maintainer of create-t3-app? Claim this project to take control of your public changelog and roadmap.
Changelog
The best way to start a full-stack, typesafe Next.js app
Last updated 4 months ago
Interactive roadmaps, guides and other educational content to help developers grow in their careers.
Your own personal AI assistant. Any OS. Any Platform. The lobster way. 🦞
This is the repo for Vue 2. For Vue 3, go to https://github.com/vuejs/core
Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.
12fccae15d08bc11168fe6b462d978a6787b5c7c Thanks @swyckoff! - Added an import for crypto in the cli envVars.ts to support older node versions.#2000 41de302b5a76966741d1dc270ba5da27064f82e8 Thanks @ronanru! - update to next.js 15 and next-auth v5
#2002 54b66484692b76d325f59dc233eb27e0aee59af2 Thanks @devotoare! - Change drizzle with PostgresQL to use identity columns
#1969 e08dbe307b4e37c7cc7e0cbf6243c008771ef4f8 Thanks @Guria! - fix issue with prefetch protected procedure in auth templates
#1997 fe85a233c62af607e8a39bf5ca1b2358d43c6587 Thanks @programming-with-ia! - Add more scripts in package.json
#1975 78cb06f99f15f4f4f90b57e3545f1dc0b222eaf3 Thanks @0pilatos0! - Resolved issue where database startup script did not check for docker daemon being up and running
#1936 2d1878e53767e35ab4b22a37622fbf0d5fdb4da7 Thanks @JoshuaKGoldberg! - upgrade to typescript eslint v8
#1936 2d1878e53767e35ab4b22a37622fbf0d5fdb4da7 Thanks @JoshuaKGoldberg! - upgrade to drizzle-orm@0.33 and corresponding drizzle-kit version
f9f96d069af87d4372dc917e3625409859e4e615 Thanks @ronanru! - fix typo#1945 9eea9fb5f6d26d42944a660bfcee5f7fb33438ad Thanks @datasalaryman! - resolve client error during getLatest trpc call
#1948 3a1b94d29a3addc783e2d6645c2e88a5b7273174 Thanks @keyding! - Update seed.ts in prisma in documentation
#1940 46a4e2d144da8b184bf39444b19e0b1bd00bab2b Thanks @KrishanGoyal1! - changed default password error message for start-database script
5a0cbc53afb8597d6da2bc6d184ea1427e741cec Thanks @juliusmarminge! - chore: dependency bumps42a485a29370fbfe4f03e5f756d97c0fee0b09e8 Thanks @juliusmarminge! - feat: add trpc rsc prefetching#1934 1cfbb117c892905ea956a597aa6d48e9984b1190 Thanks @juliusmarminge! - remove duplicate <main> tags
#1931 a1a4b8707b95b82e755733b2853ac595bb9d4829 Thanks @juliusmarminge! - fix: unify drizlze schema and fix sqlite timestamps
b22e2e10d005689faa7b1db771a217b59c88635f Thanks @jessedelira! - Add .idea to .gitignoref69fa29733d3bd0d6e5043d1200e250a938b6335 Thanks @TheDevilOnLine! - fix: Added $defaultFn to the user table's id field when using Drizzle to fix #19061925236bcfcafc6c490319ab5f07b2a698e88ef5 Thanks @brandon93s! - Add db:generate and db:migrate scripts to drizzle and prisma installers4236f0dfa969ff0d8b7ce2a60b5595c43ced9043 Thanks @thecmdrunner! - Apply drizzle rules for ctx.db object in tRPC context4de1927 Thanks @kakeWasTaken! - change default font from Inter to Geist Sans#1867 304a67f Thanks @xelacast! - Parsed --dbprovider flag correctly and added related error message
#1860 b5ced34 Thanks @victor-falcon! - Load PORT in start-database script
#1871 f29a69f Thanks @xelacast! - Fixed project creation of . bug in ./start-database.sh
#1858 29348b6 Thanks @lcabraja! - Added drizzle's db.sqlite location to .gitignore
#1842 088a773 Thanks @nick22985! - Infers tRPC input & output types to the client for app router
#1841 41bd524 Thanks @juliusmarminge! - mark app router as stable
ff886b3 Thanks @juliusmarminge! - bump zod and t3-env3257d0a Thanks @juliusmarminge! - feat: replace better-sqlite3 with libsqlab5fa95 Thanks @juliusmarminge! - chore: pin zod version
#1835 f66e30a Thanks @Inshiku-Han! - Only install @trpc/next when router style is page router
#1802 41380d1 Thanks @c-ehrlich! - fix: non planetscale env.js refers to YOUR_MYSQL_URL_HERE
#1808 fedd7b3 Thanks @thecmdrunner! - Apply drizzle-orm lint rules for db keyword only
5de586d Thanks @juliusmarminge! - feat: use trpc 11#1785 57dc6ab Thanks @thecmdrunner! - Include ESLlint rules for drizzle-orm.
#1794 3cca996 Thanks @thecmdrunner! - Use portable shebangs in scripts for nix systems
640a0e0 Thanks @limegorilla! - Warning about planetscale's serverless driver now only shown if using mySQL8f29eb9 Thanks @juliusmarminge! - feat(prisma): support correct typings when using .extends()#1774 0418663 Thanks @juliusmarminge! - chore: update drizzle-orm
#1763 836fccf Thanks @skullface! - fix: correct casing of “PlanetScale”
#1764 79e361c Thanks @vlxm! - fix: fix password substitution in start-database scripts
#1769 c944c49 Thanks @jhamill34! - fix: generated comments in env file
#1772 c3c4710 Thanks @mladenovic-13! - fix: use singleton pattern for client-side QueryClient to support useSuspenseQuery when there is no parent <Suspense>-element
#1748 17c2a5e Thanks @aaronmallen! - add missing pg dev dependency when using postgres drizzle option, required for drizzle-studio
#1713 e34b082 Thanks @daikiejp! - remove unused @types/inquirer
#1703 b6ccded Thanks @c-ehrlich! - update eslint setup for next 14.0.4
#1714 ba352ef Thanks @juliusmarminge! - chore: update drizzle dep to remove invalid expo peerDep
#1707 26efe48 Thanks @esize! - chore: update drizzle-orm and drizzle-kit
62fa8dc Thanks @c-ehrlich! - update drizzle-kit and change connectionString to uri6efb99a Thanks @c-ehrlich! - fix typo in env.mjsb80188e Thanks @ahkhanjani! - fix: Use the correct types for prettier-plugin-tailwindcss32e0747 Thanks @juliusmarminge! - feat: trpc server caller without http#1661 ef8f99f Thanks @c-ehrlich! - update sharp
#1667 43cc10b Thanks @juliusmarminge! - chore: bump some deps
#1666 3317a41 Thanks @juliusmarminge! - refactor: use type: module for more modern setup
#1664 66213b0 Thanks @piousdeer! - chore: replace a 2 with "error" in eslint config
4834ec3 Thanks @mattpocock! - tidy up and modernize tsconfige6649f1 Thanks @juliusmarminge! - fix: only forward required cookie header57a82d2 Thanks @CarlosZiegler! - Update Next to use last version (14.0.0)#1567 e71bedd Thanks @juliusmarminge! - feat: add app router option
#1595 d7824e0 Thanks @c-ehrlich! - show callout when scaffolding with app router
9614d84 Thanks @juliusmarminge! - bump deps and add emptyStringAsUndefined option for t3-env58ee08e Thanks @juliusmarminge! - fix: block drizzle apps when the example database url hasn't been changed yet#1461 8034db0 Thanks @juliusmarminge! - feat: add drizzle
This release adds a new option to use drizzle-orm as an alternative to Prisma.
To make the different ORM options as similar as possible, some minor changes has also been made to the Prisma installer:
db:push has been added and is included in both ORM options.db in the trpc context - you now access your database client like
examples: publicProcedure.query((opts) => {
// prisma
opts.ctx.db.example.findMany()
// drizzle
opts.ctx.db.query.example.findMany()
}),
You cannot choose the two options in the same app.
8034db0 Thanks @juliusmarminge! - refactor: swap inquirer for clack#1532 941a0fc Thanks @spicybackend! - chore(deps): upgrade Prisma to v5.1.1, bump patch versions of other dependencies
#1507 fe5755c Thanks @LevinUncu! - If the project is not in a Git repo, the next steps will show git init instead of git commit -m "initial commit".
c441a9e Thanks @JoshuaKGoldberg! - reduced stylistic linting23a9d60 Thanks @c-ehrlich! - reminder to git commit after creating an application with the CLIbb7324c Thanks @c-ehrlich! - use custom error class for IsTTYErrore8b68d9 Thanks @brunoeduardodev! - Ignore trailing slashes when prompting the app name.547f504 Thanks @ericshively! - Replace React.FC with basic function syntax#1397 be9a834 Thanks @brieyla1! - feat: Added JsonProtocol as the Default Prisma Engine for Serverless speedups
modified:
- cli/template/extras/prisma/schema/base.prisma
- cli/template/extras/prisma/schema/with-auth.prisma
Description: This pull request proposes the enabling of the JsonProtocol by default. The rationale for this change is based on the performance improvements provided by the JsonProtocol without compromising stability, even though it is still a preview feature. Empirical evidence gathered from large-scale projects, with 100+ Prisma calls, demonstrates the significant time reductions enabled by this optimization, particularly in serverless environments such as Vercel. Another point worth adding is that most projects using nextJS create-t3-app will be deployed on serverless platforms such as vercel, where the real impact is.
48dd89a Thanks @michalbundyra! - update nextjs dependency to ^13.4.1b1a35dd Thanks @c-ehrlich! - temporarily pin next to fix vercel build error#1377 00018ff Thanks @juliusmarminge! - move env validation logic out to a separate package
#1385 ac12abb Thanks @iAverages! - Fixed issue with creating git repository with git versions below 2.28
Fixed bug with check to use --inital-branch set in git v2.28
18bc6a7 Thanks @chungweileong94! - Enforce NEXT_PUBLIC_ env key on client#1358 1a8a97e Thanks @juliusmarminge! - improve boolean coercion of SKIP_ENV_VALIDATION environment variable
If defined, "0" and "false" are now considered falsey values, all other values are considered truthy.
85997e0 Thanks @juliusmarminge! - fix: create a new object for the session callback#1329 5429989 Thanks @c-ehrlich! - temporarily pin next-auth version
#1321 7fcb41c Thanks @JingLi1998! - Update the type for global prisma instance
d0a8143 Thanks @iAverages! - Replace Git Bash check with Mintty check2cb41e6 Thanks @PiotrekPKP! - fix: replace trpc linksa2af1a2 Thanks @michalbundyra! - chore: bump typescript - 5.0.210a5e0b Thanks @juliusmarminge! - feat: add errorformatter for zod errors#1263 8dc6e33 Thanks @mkreuzmayr! - search for tsconfig relative to eslintrc
#1279 ae5cd40 Thanks @arielconti10! - fix: remove //@ts-check comment in next.config
db394ed Thanks @c-ehrlich! - ignore unused vars that begin with underscore2432d76 Thanks @juliusmarminge! - chore: bump nextjs9c82f86 Thanks @juliusmarminge! - fix: bind configs to variables before exporting to make sure typeerrors are reported7baa339 Thanks @juliusmarminge! - fix: detect and handle git bash environmentab3c7cb Thanks @michalbundyra! - fix: update comment regarding schema definition of env varse111fb5 Thanks @c-ehrlich! - remove old env filesaa44574 Thanks @juliusmarminge! - single env fileefe8b7f Thanks @esotuvaka! - fix: swap @ts-check comments to checkJs: true in scaffolded app's tsconfig90955a5 Thanks @christopher-kapic! - Change unstable_getServerSession to match the updated getServerSession from next-auth (introduced in next-auth 4.19.0)#1136 715f6e8 Thanks @juliusmarminge! - feat: colocate auth config/dts/session-getter into a single file
#1134 4cb2e4e Thanks @PiotrekPKP! - feat: added package installation progress
2ed36cd Thanks @juliusmarminge! - chore: bump nextjs and add a note about appDir+i18n being incompat7490a34 Thanks @c-ehrlich! - fix: undo env changes34d6c5b Thanks @ JacobADevore! - feat: automatically destructure env objectsa8cc106 Thanks @juliusmarminge! - fix: cleanup context type in initTRPCc5ca65e Thanks @JoshuaKGoldberg! - use typescript-eslint's recommended-required-type-checkingc6704fb Thanks @prashantrahul141! - fix: update package.json->name before installing dependencies.6fe7e1e Thanks @juliusmarminge! - fix(cli): exit with error code when aborting installation
fix(cli): don't log when scaffolding in current directory and it's empty#934 c20ec70 Thanks @juliusmarminge! - feat!: implement new folder structure
create-t3-app has decided to switch out the folder structure of the generated t3-app to, what is to us, a more minimal, logical and easier to understand structure.
61ba991 Thanks @complexengine! - The CLI now stages the files on project initialization.fcf59b0 Thanks @juliusmarminge! - fix: allow dot name in name prompt9eddbab Thanks @maxmellen! - chore(create-t3-app): add @types/prettier package to tailwind installer and bump prettier versionsac32b6d Thanks @balazsorban44! - fix(cli): prompt TS first#939 77cfb4b Thanks @c-ehrlich! - use next-auth 4.18.3 and undo hotfix
#932 c04a35a Thanks @c-ehrlich! - fix next-auth error
eb55d19 Thanks @sharkby7e! - feat: add blank target to base template1037d14 Thanks @c-ehrlich! - temporarily pin next-auth9b6ae5c Thanks @c-ehrlich! - include env files in all apps#869 cd93b98 Thanks @meech-ward! - docs: add notes about env vars
#878 9abaf80 Thanks @AyanavaKarmakar! - feat: update scaffolded README.md
#845 c387187 Thanks @GabrielPedroza! - fix: typo in env-schema comments
3ace6c8 Thanks @juliusmarminge! - use trpc 10.0.0#784 f10ce0e Thanks @AyanavaKarmakar! - fix(t3-app): fix broken links
#786 4d70f04 Thanks @skuridin! - Add next-env.d.ts to .gitignore
#800 d5d5a2f Thanks @HatulaPro! - fix: removing redundant optional chaining in templates
da760c7 Thanks @c-ehrlich! - create new index pagesb6cdcb3 Thanks @juliusmarminge! - fix: rename example env file57cb2b5 Thanks @juliusmarminge! - feat: add warning message when not using latest#717 7f8e706 Thanks @robotkutya! - feat: update NEXTAUTH_SECRET validator and set a default
#719 b359802 Thanks @AyanavaKarmakar! - fix: update NEXTAUTH_SECRET validator to be optional in dev
44a107b Thanks @c-ehrlich! - remove node 18 and next 13 checksa707c4b Thanks @juliusmarminge! - chore: version bumpsf1673eb Thanks @juliusmarminge! - feat: update dependency Next.js to 136a21032 Thanks @juliusmarminge! - chore: version bumps9639419 Thanks @c-ehrlich! - get next-auth to work with node 18cf99211 Thanks @c-ehrlich! - consistent cli text color135ee5b Thanks @juliusmarminge! - add inference helper for v107f73518 Thanks @c-ehrlich! - rename index.ts to _app.tsdd0e172 Thanks @juliusmarminge! - export helper procedures for trpc instead of the t-objectc90a695 Thanks @juliusmarminge! - bump next-auth dependency to ^4.12#582 e562ee8 Thanks @juliusmarminge! - move prettier from base to tailwind installer
#587 8c0267f Thanks @c-ehrlich! - Add .env-example to scaffolded app
befc7f4 Thanks @juliusmarminge! - upgrade trpc to beta.15 and typescript to 4.8.475fcb49 Thanks @juliusmarminge! - upgrades trpc to v10 and improves cli performance by making it synchronous75fcb49 Thanks @juliusmarminge! - enable vercel_url to pass default env-schemaa3a168a Thanks @juliusmarminge! - Tailor .env to only include relevant keys2b434bb Thanks @gabrielelpidio! - Add prettier and prettier-plugin-tailwindcssf371ef8 Thanks @c-ehrlich! - temp fix for next-auth peer deps issue6f63ec6 Thanks @c-ehrlich! - feat: better cli text when scaffolding in '.'14b6d4a Thanks @xpressivecode! - fix(template): missing ctx when using ssr with trpc30f3db6 Thanks @rhenriquez28! - fixing ssr by forwarding client's headers#388 86d053c Thanks @c-ehrlich! - feat: non-tw index.tsx with styling
#381 773b27e Thanks @c-ehrlich! - feat: include all cards on all index.tsx files
#383 e05bc3d Thanks @juliusmarminge! - add safeguards for overwriting git repos
#375 296c79b Thanks @c-ehrlich! - feat: add option to continue and overwrite on existing directory
for reference see: https://github.com/t3-oss/create-t3-app/issues/230
1f43f83 Thanks @juliusmarminge! - Thanks @hnqg for the initial PR. add wrapper function for unstable_getServerSession#357 b032074 Thanks @virtuoushub! - chore: Sort package.json when in noInstallMode
#365 b3ce004 Thanks @juliusmarminge! - revert prisma cleint teardown from #353
8ee2ea0 Thanks @juliusmarminge! - Include cjs and mjs files in tsconfig. Thanks @timfee for reporting!#335 5745ad7 Thanks @julianread! - Fix invalid typeof window comparison to undefined
#334 a107f14 Thanks @c-ehrlich! - fix: build fails on trpc, trpc+next
fb5498c Thanks @juliusmarminge! - feat: wrap createContext with helper function to make it independent of req/resCreate-t3-app now accepts args!
When calling create-t3-app, you can specify the app name and directory directly from the cli.
Additonal options are visable by passing -h or --help into the command line