Releases: wasp-lang/wasp
v0.15.2
v0.15.2-rc
Merge branch 'release'
v0.15.1
🐞 Bug fixes
- Server and Client setup props are no longer mandatory when using TS Config.
v0.15.0
0.15.0
🎉 New Features and improvements
Write your app config in TypeScript (preview feature)
Wasp 0.15.0 ships a preview feature that lets you define your app in main.wasp.ts
using TypeScript instead of in main.wasp
using the Wasp DSL.
So, instead of this:
app TodoApp {
wasp: {
version: "^0.15.0"
},
title: "TodoApp",
auth: {
userEntity: User,
methods: {
usernameAndPassword: {}
},
onAuthFailedRedirectTo: "/login"
}
}
route RootRoute { path: "/", to: MainPage }
page MainPage {
authRequired: true,
component: import { MainPage } from "@src/MainPage"
}
You can now write this:
improt { App } from 'wasp-config'
const app = new App('TodoApp', {
wasp: {
version: '^0.15.0',
},
title: 'TodoApp',
})
app.auth({
userEntity: 'User',
methods: {
usernameAndPassword: {}
},
onAuthFailedRedirectTo: '/login',
})
const mainPage = app.page('MainPage', {
authRequired: true,
component: { import: 'MainPage', from: '@src/MainPage' },
})
app.route('RootRoute', { path: '/', to: mainPage })
To learn more about this feature and how to activate it, check out the Wasp TS config docs.
⚠️ Breaking Changes
There are some breaking changes with React Router 6 which will require you to update your code.
Also, the new version of Prisma may cause breaking changes depending on how you're using it.
Read more about breaking changes in the migration guide: https://wasp-lang.dev/docs/migration-guides/migrate-from-0-14-to-0-15 .
🐞 Bug fixes
- Allow setting a custom server URL when deploying to Fly.io. (by @Case-E)
- If the user uses native DB types for the
userEntity
, Wasp will use them correctly.
🔧 Small improvements
- Upgrade to the latest Prisma version which makes Wasp faster!
- Upgrade to the latest React Router version which sets us up for some cool new features in the future.
- Enable users to use Mailgun's EU region by setting the
MAILGUN_API_URL
env variable. - Validate
userEntity
ID field's@default
attribute.
Community contributions by @Case-E @therumbler
v0.15.0-rc2
v0.15.0-rc1
Pre-release docs: https://wasp-docs-on-main.pages.dev/docs
v0.14.2
Updated GPT models used in Wasp AI to latest models, since 3.5 are getting deprecated.
Default model used is now 4o (instead of old 4 + 3.5-turbo combo).
v0.14.1
🎉 New Features
- Wasp now supports
onBeforeLogin
andonAfterLogin
auth hooks! You can use these hooks to run custom logic before and after a user logs in. For example, you can use theonBeforeLogin
hook to check if the user is allowed to log in. - OAuth refresh tokens are here. If the OAuth provider supports refresh tokens, you'll be able to use them to refresh the access token when it expires. This is useful for using OAuth provider APIs in the background e.g. accessing user's calendar events.
⚠️ Breaking Changes
- To make the API consistent across different auth hooks, we change how the
onBeforeOAuthRedirect
hook receives theuniqueRequestId
value tooauth.uniqueRequestId
.
🐞 Bug fixes
- Prisma file parser now allows using empty arrays as default values.
🔧 Small improvements
- Replace
oslo/password
with directly using@node-rs/argon2
- We now use
websocket
transport for the WebSocket client to avoid issues when deploying the server behind a load balancer.
Community contributions by @rubyisrust @santolucito @sezercik @LLxD!
v0.14.1-rc2
Update 0.14.0 docs
v0.14.1-rc1
Update docs