@plutocms/supabase 0.31.0 → 0.31.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ ## [0.31.1](https://github.com/plutocms/supabase/compare/v0.31.0...v0.31.1) (2026-11-14)
4
+
5
+
6
+ ### Bug Fixes
7
+
8
+ * **supabase, supabase-blog:** type the translate helpers with the t of core ([#318](https://github.com/plutocms/supabase/issues/318)) ([ccdecaf](https://github.com/plutocms/supabase/commit/ccdecafea563fe43e29874b8ffb101d4cf8b8a75))
9
+
3
10
  ## [0.31.0](https://github.com/plutocms/supabase/compare/v0.30.0...v0.31.0) (2026-11-12)
4
11
 
5
12
 
@@ -18,14 +18,14 @@ const { status, fetchStatus, pendingCount, refresh, runMigrations } =
18
18
  const isDev = import.meta.dev
19
19
 
20
20
  // The text of each result status that the server returns.
21
- const statusLabels: Record<string, string> = {
21
+ const statusLabels = {
22
22
  applied: 'supabase.migrations.status.applied',
23
23
  skipped: 'supabase.migrations.status.skipped',
24
24
  failed: 'supabase.migrations.status.failed',
25
- }
25
+ } as const
26
26
 
27
27
  function statusText(status: string): string {
28
- const key = statusLabels[status]
28
+ const key = statusLabels[status as keyof typeof statusLabels]
29
29
 
30
30
  return key ? t(key) : status
31
31
  }
@@ -37,7 +37,7 @@ export function authErrorKey(error: unknown): string | undefined {
37
37
  */
38
38
  export function resolveAuthErrorText(
39
39
  error: unknown,
40
- i18n: { t: (key: string) => string; te: (key: string) => boolean }
40
+ i18n: Pick<ReturnType<typeof usePlutoI18n>, 't' | 'te'>
41
41
  ): string {
42
42
  const key = authErrorKey(error)
43
43
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@plutocms/supabase",
3
3
  "type": "module",
4
- "version": "0.31.0",
4
+ "version": "0.31.1",
5
5
  "description": "Supabase backend layer for Pluto",
6
6
  "author": "Victor Ribeiro",
7
7
  "license": "MIT",