Version v2.39.2 and above break types
Likely because of bumping postgrest-js with v2.39.2 but when using strict in tsconfig and any code like this:
const { error } = await supabase
.from('Messages')
.update({ deletedAt: moment().toISOString()})
gives me Argument of type '{ deletedAt: string; }' is not assignable to parameter of type 'never'.
I have confirmed I have the latest generated types.
Bug report
-->
- [x] I confirm this is a bug with Supabase, not with my own application.
- [X] I confirm I have searched the Docs, GitHub Discussions, and Discord.
Describe the bug
See above
To Reproduce
Upgrade to v2.39.2 or above
Expected behavior
TS linter shouldn't complain
System information
- OS: [e.g. macOS, Windows]
- Browser (if applies) [e.g. chrome, safari]
- Version of supabase-js: [e.g. 2.39.2]
Additional context
Add any other context about the problem here.
Faced this issue in version v2.39.4 but not in v2.39.3.
With git bisect, I tracked down the issue to this commit : https://github.com/supabase/supabase-js/commit/a5a70dbe21a2e0ec6d8ec117caa35c605f69eb41
It seems some types are not infered properly anymore.
Having the same issue
Faced this issue in version v2.39.4 but not in v2.39.3.
With
git bisect, I tracked down the issue to this commit : a5a70dbIt seems some types are not infered properly anymore.
Same here - I reverted to 2.39.3 and all good.
Still an issue, any updates?
still an issue
still an issue