⚠️ Breaking Changes
Follow the the official migration guide to address all the breaking changes. Here's a short overview:
- In the
usernameAndPassword
authentication method, the functionlogin()
imported fromwasp/client/auth
now accepts an object withusername
andpassword
instead of two separate arguments (#2598) - We've made some improvements to our TypeScript setup that require you to
update thetsconfig.json
file. The migration guide will lead you through
them, but here are all the non-cosmetic ones:{ "compilerOptions": { // ... + "moduleDetection": "force", + "isolatedModules": true, - "typeRoots": [ ... ] }, }
- The types for DOM helpers in tests are now handled with an import in
src/vite-env.d.ts
(instead of overridingtypeRoots
intsconfig.json
). - Wasp will no longer generate
favicon.ico
on compile if there isn't one in thepublic
directory. New Wasp projects will start with a defaultfavicon.ico
in thepublic
directory, instead. (#1979). - Wasp will no longer automatically add a favicon
<link>
tag to theindex.html
. The<link>
tag will be included by default in themain.wasp
for new projects. (#1979). - Updated Express to v5 (#2685)
🎉 New Features
- Added support for one-line deployment with Railway to
wasp deploy
command. (#2578) - Wasp now includes a
onAfterEmailVerified
auth hook. You can use this hook to run custom logic after a user has verified their email. (#2602) - Wasp now supports Slack as an auth provider (by @Scorpil). (#2764)
- You can now return Prisma
Decimal
s from your Queries and Actions. (#2701) - Added build-time client env variable validation. (#2392)
- Added
prismaSetupFn
hook to database config to allow users to run custom Prisma setup code. (#2693)
🐞 Bug fixes
- Fixes an OAuth logic race condition where a valid session ID was cleared and users would be logged out. (#2684)
- Calling
useAuth()
when the user is not logged in will not fail the request, only returnnull
(#2689) - Fixes a bug where a Prisma file with no models defined would cause the app not to render in the browser. (#2902)
- Fixes Wasp Studio not working in Firefox. (#2848)
🔧 Small improvements
- Show a friendlier error when there are no routes defined in the Wasp file. (#2643)
- Modernized our TypeScript support for bundlers. (#2656)
- Added support for jump-to-definition for Wasp symbols. (#2656)
userSignupFields
types are now correctly propagated to client auth methods. (#2641)- The generated server code is now type-checked before building. (#2778)
- App name in
package.json
is now in kebab case (by @0xTaneja) (#2588) - Improved error handling when
npm
doesn't satisfy the minimum version requirement .(#2549)
Thanks to our community contributors @0xTaneja @Scorpil @Reikon95!