nuxt-modules / supabase

Supabase module for Nuxt.
https://supabase.nuxtjs.org
MIT License
739 stars 130 forks source link

chore: update dependencies & provide client earlier #433

Closed felixgabler closed 1 week ago

felixgabler commented 1 week ago

Types of changes

Description

  1. Updated some dependencies (incl. @supabase/ssr)
  2. I moved the provide for the client in both plugins before the first await (instead of returning it at the end). This is because we found some Sentry logs that showed one of our plugins with an async setup method not having provided early enough which lead to "Right side of assignment could not be destructured" even though I would have expected that the app only runs once the plugins' setup is finished and everything is provided. Since I made the change, the errors have stopped. @larbish is this necessary or how could the provide have gone wrong in an async context?

Checklist:

netlify[bot] commented 1 week ago

Deploy request for n3-supabase pending review.

Visit the deploys page to approve it

Name Link
Latest commit e123797dd95f16b6b6c0645af8f17cb0e3e752a0