Skip to content

Releases: wasp-lang/wasp

v0.15.2

19 Nov 19:53
Compare
Choose a tag to compare

0.15.2

🐞 Bug fixes

  • Fixed build step for apps that use Wasp's new TS config.

v0.15.2-rc

19 Nov 19:11
Compare
Choose a tag to compare
v0.15.2-rc Pre-release
Pre-release
Merge branch 'release'

v0.15.1

21 Oct 23:26
Compare
Choose a tag to compare

🐞 Bug fixes

  • Server and Client setup props are no longer mandatory when using TS Config.

v0.15.0

10 Oct 18:00
Compare
Choose a tag to compare

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

10 Oct 09:20
e92cb25
Compare
Choose a tag to compare

v0.15.0-rc1

04 Oct 12:07
05dfcc8
Compare
Choose a tag to compare
v0.15.0-rc1 Pre-release
Pre-release

v0.14.2

09 Sep 17:39
Compare
Choose a tag to compare

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

27 Aug 13:01
ccc652e
Compare
Choose a tag to compare

🎉 New Features

  • Wasp now supports onBeforeLogin and onAfterLogin auth hooks! You can use these hooks to run custom logic before and after a user logs in. For example, you can use the onBeforeLogin 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 the uniqueRequestId value to oauth.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

27 Aug 12:27
Compare
Choose a tag to compare
v0.14.1-rc2 Pre-release
Pre-release
Update 0.14.0 docs

v0.14.1-rc1

27 Aug 08:57
Compare
Choose a tag to compare
v0.14.1-rc1 Pre-release
Pre-release
Update docs