better-supabase 0.38.0 → 0.40.0
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/dist/ai-sdk/agents/index.d.ts +2 -2
- package/dist/{app-tables-D2c0i05-.d.ts → app-tables-jaQmdgAM.d.ts} +1 -1
- package/dist/{authorization-D8CaAdqU.d.ts → authorization-Ul_ApMYW.d.ts} +41 -2
- package/dist/{bind-5vOwNouG.d.ts → bind-B2GlypM6.d.ts} +1 -1
- package/dist/{block-env-hco8BLjC.d.ts → block-env-Bcr-jEA1.d.ts} +3 -3
- package/dist/{block-subjects-CINiJW1R.js → block-subjects-BumEsEYb.js} +17 -6
- package/dist/{block-tables-BsgdB6VG.d.ts → block-tables-nkIjJ1ly.d.ts} +1 -1
- package/dist/blocks/ai-chat/index.d.ts +3 -3
- package/dist/blocks/announcements/index.d.ts +3 -3
- package/dist/blocks/api-keys/index.d.ts +1 -1
- package/dist/blocks/attachments/index.d.ts +1 -1
- package/dist/blocks/audit/index.d.ts +2 -2
- package/dist/blocks/automations/index.d.ts +1 -1
- package/dist/blocks/billing/index.d.ts +1 -1
- package/dist/blocks/bookings/index.d.ts +1 -1
- package/dist/blocks/calendar/index.d.ts +1 -1
- package/dist/blocks/catalog/index.d.ts +25 -5
- package/dist/blocks/catalog/index.js +32 -9
- package/dist/blocks/comments/index.d.ts +4 -4
- package/dist/blocks/entitlements/index.d.ts +2 -2
- package/dist/blocks/expenses/index.js +1 -1
- package/dist/blocks/forms/index.d.ts +1 -1
- package/dist/blocks/inbox/index.d.ts +4 -4
- package/dist/blocks/index.d.ts +1 -1
- package/dist/blocks/invoices/index.d.ts +1 -0
- package/dist/blocks/invoices/index.js +18 -10
- package/dist/blocks/leave/index.d.ts +35 -1
- package/dist/blocks/leave/index.js +17 -2
- package/dist/blocks/ledger/index.d.ts +1 -0
- package/dist/blocks/ledger/index.js +2 -1
- package/dist/blocks/messaging/index.d.ts +4 -4
- package/dist/blocks/mfa/index.d.ts +1 -1
- package/dist/blocks/notifications/index.d.ts +3 -3
- package/dist/blocks/onboarding/index.d.ts +1 -1
- package/dist/blocks/organizations/index.d.ts +2 -2
- package/dist/blocks/permissions/index.d.ts +1 -1
- package/dist/blocks/push/index.d.ts +1 -1
- package/dist/blocks/reactions/index.d.ts +3 -3
- package/dist/blocks/saved-views/index.d.ts +1 -1
- package/dist/blocks/search/index.d.ts +2 -2
- package/dist/blocks/sessions/index.d.ts +1 -1
- package/dist/blocks/settings/index.d.ts +1 -1
- package/dist/blocks/subjects/index.d.ts +1 -1
- package/dist/blocks/tags/index.d.ts +1 -1
- package/dist/blocks/undo/index.d.ts +1 -1
- package/dist/blocks/usage/index.d.ts +1 -1
- package/dist/blocks/workflow-editor/index.d.ts +3 -3
- package/dist/blocks/workflows/index.d.ts +3 -3
- package/dist/claims/index.d.ts +3 -3
- package/dist/cli/{add-7nCSDmpt.js → add-BVs8Ym-K.js} +10 -10
- package/dist/cli/{add-B4tQpnXP.js → add-DP1ct-7e.js} +2 -2
- package/dist/cli/add-DrwQvDYD.js +1 -0
- package/dist/cli/{app-table-files-CtO-zxpO.js → app-table-files-gjMyFqH4.js} +2 -2
- package/dist/cli/{app-tables-B7UzcJ_g.js → app-tables-B26PHK75.js} +2 -2
- package/dist/cli/{backfill-B2nFDXaS.js → backfill-CP_LpTK2.js} +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cli/{blocks-DU4iDrYS.js → blocks-CpBLp57s.js} +1 -1
- package/dist/cli/{blocks-BX_6HUQT.js → blocks-Ewp49Kbm.js} +1 -1
- package/dist/cli/{cache-bS5bAoF-.js → cache-BxxtUXVN.js} +1 -1
- package/dist/cli/{codemod-B1sSIE2p.js → codemod-CGCxMEyD.js} +1 -1
- package/dist/cli/{content-mapper-CW6V6VRq.js → content-mapper-DngBJv4r.js} +2 -2
- package/dist/cli/{doctor-Dw2pAf1b.js → doctor-3dcMraMn.js} +17 -17
- package/dist/cli/{gen-BtoSx3go.js → gen-DrXxFwUU.js} +11 -11
- package/dist/cli/index.d.ts +1 -1
- package/dist/cli/index.js +6 -6
- package/dist/cli/{init-DZXbrKuJ.js → init-bVKQ4Onb.js} +8 -8
- package/dist/cli/{live-CDFfJcdR.js → live-CHTbAqdS.js} +2 -2
- package/dist/cli/{mcp-BukxvITV.js → mcp-BbmhntrR.js} +2 -2
- package/dist/cli/{metadata-iZizGVuY.js → metadata-BS56R_eb.js} +3 -3
- package/dist/cli/{migrate-DPnnGLzw.js → migrate-DV6a9-jI.js} +1 -1
- package/dist/cli/{migration-safety-COcnZbMO.js → migration-safety-Ce9IQwmJ.js} +1 -1
- package/dist/cli/{migrations-BBt9fmiV.js → migrations-CCCnMhmM.js} +2 -2
- package/dist/cli/{module-migration-tCmPLhQp.js → module-migration-C0cAzpNa.js} +2 -2
- package/dist/cli/powersync-Cxd3a_v_.js +1 -0
- package/dist/cli/{powersync-BRmUJ-uR.js → powersync-OIIpG-y_.js} +3 -3
- package/dist/cli/{print-DdwQNG_e.js → print-BGF3d6O2.js} +2 -2
- package/dist/cli/{providers-CaNg6Ayz.js → providers-fEzlYSLs.js} +1 -1
- package/dist/cli/{prune-workflows-BQQrI3tU.js → prune-workflows-Bx7J5T3a.js} +1 -1
- package/dist/cli/{remove-BEj9YEON.js → remove-Ds4N6WvD.js} +5 -5
- package/dist/cli/{render-UBqU9r44.js → render-BeZToAp-.js} +3 -3
- package/dist/cli/{run-3E_IuJzS.js → run-DR0sTyNQ.js} +9 -9
- package/dist/cli/{run-BXlX9YdD.js → run-iUmtksq5.js} +27 -27
- package/dist/cli/{shared-agrqD28l.js → shared-BCWYvKeR.js} +1 -1
- package/dist/cli/{snapshot-DOXmozSq.js → snapshot-CfgRxTQq.js} +2 -2
- package/dist/cli/{source-BfJprU-6.js → source-Ct3ZCy6p.js} +1 -1
- package/dist/cli/{spec-CgtIHFsl.js → spec-1eEq2P4T.js} +1 -1
- package/dist/cli/{spec-DRpSQGOW.js → spec-9vb-or-k.js} +2 -2
- package/dist/cli/{sql-layout-Cs3FMWcY.js → sql-layout-cYsnyjRf.js} +2 -2
- package/dist/cli/{sync-C_YGIDjk.js → sync-XpcpINnx.js} +4 -4
- package/dist/cli/{upgrade-OG9vaBeX.js → upgrade-A18FY5Iy.js} +2 -2
- package/dist/cli/{upgrade-ByQeJRGU.js → upgrade-DXhyb2jV.js} +5 -5
- package/dist/cli/{version-CF6Yzah0.js → version-PcwPOm4G.js} +1 -1
- package/dist/client/index.d.ts +5 -5
- package/dist/client/native/index.d.ts +4 -4
- package/dist/config/index.d.ts +2 -2
- package/dist/config/index.js +4 -4
- package/dist/{config-1-UmQczM.js → config-BRGMUEE2.js} +1 -1
- package/dist/{config-AEB5iNEO.js → config-qqAfS_1_.js} +4 -4
- package/dist/{context-CH5FYnVk.d.ts → context-dHluCmud.d.ts} +1 -1
- package/dist/contract/index.d.ts +3 -3
- package/dist/{controller-CJ6rLnpS.d.ts → controller-BQXgMwWN.d.ts} +1 -1
- package/dist/create/index.d.ts +3 -3
- package/dist/create/index.js +3 -3
- package/dist/create/lite/index.d.ts +3 -3
- package/dist/create/lite/index.js +2 -2
- package/dist/{entitlements-6gODwBSz.d.ts → entitlements-Jh_w-PgX.d.ts} +1 -1
- package/dist/{field-errors-CdSjV9Zo.d.ts → field-errors-DIDkgzFA.d.ts} +4 -4
- package/dist/{index-DnEJVKQ2.d.ts → index-BKz-E3Mv.d.ts} +6 -6
- package/dist/{index-DzLLMmUB.d.ts → index-CpZ4WDDJ.d.ts} +1 -1
- package/dist/{index-vkd2LTt2.d.ts → index-DhcLJAtX.d.ts} +1 -1
- package/dist/{index-BgRl484n.d.ts → index-IrJQqPeQ.d.ts} +1 -1
- package/dist/{index-CrOeAgSh.d.ts → index-g_eFnFqo.d.ts} +2 -2
- package/dist/{index-CgKieWlO.d.ts → index-xmb6YGTg.d.ts} +2 -2
- package/dist/{index-B5awu2SP.d.ts → index-y70eTezB.d.ts} +2 -2
- package/dist/{instances-Bycf_aus.js → instances-DqEZrffE.js} +5 -1
- package/dist/mapper/bin.js +5 -5
- package/dist/mcp/index.d.ts +1 -1
- package/dist/next/index.d.ts +4 -4
- package/dist/{operations-knMnfzgm.d.ts → operations-Sza7UQKP.d.ts} +1 -1
- package/dist/{options-X61tvckX.js → options-C5cLEJEa.js} +4 -1
- package/dist/{options-CS1DA8q9.js → options-CYZH9uxU.js} +2 -1
- package/dist/{options-CEwoGUk_.js → options-DiEoDCtf.js} +4 -1
- package/dist/otel/index.js +4 -4
- package/dist/{permissions-Ed8WvLgQ.d.ts → permissions-COamTJYz.d.ts} +1 -1
- package/dist/{ports-Bnwy2mlR.d.ts → ports-1M1E_r2n.d.ts} +1 -1
- package/dist/powersync/index.d.ts +2 -2
- package/dist/preset/index.d.ts +3 -3
- package/dist/preset/index.js +3 -3
- package/dist/{preset-DkeXFh7e.js → preset-Byz43PrL.js} +2 -2
- package/dist/{project-By0R8ioI.js → project-Y2wW_nr_.js} +5 -5
- package/dist/{push-token-CJbEvwjI.d.ts → push-token-DKImhAca.d.ts} +1 -1
- package/dist/react/index.d.ts +5 -5
- package/dist/react/native/index.d.ts +1 -1
- package/dist/react/server.d.ts +5 -5
- package/dist/realtime/index.d.ts +3 -3
- package/dist/records/index.d.ts +3 -3
- package/dist/server/index.d.ts +3 -3
- package/dist/solid/index.d.ts +5 -5
- package/dist/sql/index.d.ts +5 -5
- package/dist/sql/index.js +2 -2
- package/dist/{sql-B2cMvGnZ.js → sql-B1FA8jTx.js} +265 -84
- package/dist/ssr/index.d.ts +1 -1
- package/dist/svelte/index.d.ts +5 -5
- package/dist/{tenant-eZNRWTRJ.d.ts → tenant-DflHpV32.d.ts} +1 -1
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +1 -1
- package/dist/{topic-D7F2FBNp.d.ts → topic-CekU96q7.d.ts} +1 -1
- package/dist/{types-bqvFoBhf.d.ts → types-B42S7qfO.d.ts} +2 -2
- package/dist/vue/index.d.ts +5 -5
- package/dist/{watch-topic-BIEaSN0Y.d.ts → watch-topic-DBw411Mq.d.ts} +1 -1
- package/dist/yjs/index.d.ts +1 -1
- package/package.json +1 -1
- package/schemas/config-v1.json +13 -0
- package/skills/better-supabase/SKILL.md +26 -8
- package/dist/cli/add-CdDneXMN.js +0 -1
- package/dist/cli/powersync-CYLPcJ9G.js +0 -1
package/dist/ssr/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { A as serializeCookie, C as CookieScope, D as applyCookieWrites, E as StoredSession, O as parseCookies, S as CookieRecord, T as SessionEncoding, a as ResolveAuthOptions, j as sessionCookieName, k as readSession, n as AuthResolver, r as AuthState, t as AuthResolution, u as resolveAuth, w as CookieWrite, x as CookieOptions } from "../resolve-XlMQRUeG.js";
|
|
2
|
-
import { r as MembershipClaim } from "../entitlements-
|
|
2
|
+
import { r as MembershipClaim } from "../entitlements-Jh_w-PgX.js";
|
|
3
3
|
import { n as AuthSession, o as toSession } from "../view-eHgOOyRS.js";
|
|
4
4
|
import { a as sessionStatus, i as clearSessionCookies, n as SessionStatus, o as authContext, r as SessionStatusOptions, t as ClearSessionCookiesOptions } from "../ended-BwpmNC5k.js";
|
|
5
5
|
export { type AuthResolution, type AuthResolver, type AuthSession, type AuthState, type ClearSessionCookiesOptions, type CookieOptions, type CookieRecord, type CookieScope, type CookieWrite, type MembershipClaim, type ResolveAuthOptions, type SessionEncoding, type SessionStatus, type SessionStatusOptions, type StoredSession, applyCookieWrites, authContext, clearSessionCookies, parseCookies, readSession, resolveAuth, serializeCookie, sessionCookieName, sessionStatus, toSession };
|
package/dist/svelte/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
|
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
|
|
3
3
|
import { mt as QuerySpec } from "../define-C_He1bQO.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CekU96q7.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-B2GlypM6.js";
|
|
7
7
|
import { n as AuthSession } from "../view-eHgOOyRS.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-BQXgMwWN.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DIDkgzFA.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Bcr-jEA1.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
|
|
12
12
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
13
13
|
import { QueryClient } from "@tanstack/query-core";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { s as ClaimsSource } from "./entitlements-
|
|
1
|
+
import { s as ClaimsSource } from "./entitlements-Jh_w-PgX.js";
|
|
2
2
|
/**
|
|
3
3
|
* The active tenant of a user session: the `claim` claim (`tenant_id` by
|
|
4
4
|
* default, as `config.claims.tenant`) at the top level of the token, then in
|
package/dist/testing/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ import { a as BlockTransportMiddleware } from "../block-hooks-CtMsgLQr.js";
|
|
|
9
9
|
import { a as SessionActor, o as SessionDelegation } from "../actor-DseNR02I.js";
|
|
10
10
|
import { L as QueueProvider } from "../types-BdhE7I8Z.js";
|
|
11
11
|
import { n as Embedder } from "../knowledge-DWXAxvkN.js";
|
|
12
|
-
import { a as AuthorizationProvider } from "../authorization-
|
|
12
|
+
import { a as AuthorizationProvider } from "../authorization-Ul_ApMYW.js";
|
|
13
13
|
import { o as StreamStore } from "../store-c7QxUHX-.js";
|
|
14
14
|
import { Qt as CacheAdapter, Y as DbStats, t as BetterSupabase, y as Db } from "../define-C_He1bQO.js";
|
|
15
15
|
import { Q as StoragePath } from "../bucket-CrsJNHzi.js";
|
|
@@ -23,9 +23,9 @@ import { l as ServerOptions, o as ServerContext } from "../server-types-DpI82uNq
|
|
|
23
23
|
import { C as SupportSessionStore } from "../support-Dj5V2WTs.js";
|
|
24
24
|
import { r as GuardOptions } from "../respond-D7kUatjc.js";
|
|
25
25
|
import { l as Transcriber, s as NoteTaker, u as TranscriberInput } from "../recordings-Bw5LoocX.js";
|
|
26
|
-
import { n as Controller } from "../controller-
|
|
26
|
+
import { n as Controller } from "../controller-BQXgMwWN.js";
|
|
27
27
|
import { c as AiTaskRunner, o as AiTaskRun, r as AiTask } from "../ai-schedules-ChJkI2jo.js";
|
|
28
|
-
import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-
|
|
28
|
+
import { Qt as GeneratorModel, Vt as Generator, Yt as GeneratorInput, cn as ResolvedConfig } from "../context-dHluCmud.js";
|
|
29
29
|
import { r as WebhookInput } from "../signatures-jPr9JXyw.js";
|
|
30
30
|
import { n as Payment, o as PaymentProvider } from "../payments-BBGSGRQ7.js";
|
|
31
31
|
import { y as FlagValue } from "../flags-Cuew4tGx.js";
|
package/dist/testing/index.js
CHANGED
|
@@ -7,7 +7,7 @@ import { a as ok } from "../result-8xza7w5W.js";
|
|
|
7
7
|
import { t as BetterSupabase } from "../define-Duh2mMYk.js";
|
|
8
8
|
import { i as fromBase64, o as toBase64Url, t as base64ToText } from "../base64-CEBz6-Jj.js";
|
|
9
9
|
import "../claim-names-BKig1LOk.js";
|
|
10
|
-
import { c as resolveConfig } from "../config-
|
|
10
|
+
import { c as resolveConfig } from "../config-qqAfS_1_.js";
|
|
11
11
|
import { a as isScopeName, c as templateFunctions, l as templatePlaceholders, n as TEMPLATE_PLACEHOLDERS, s as scopeProblems, u as templateProblems } from "../access-sql-Dao1C0fz.js";
|
|
12
12
|
import { a as TRACKING_STATUSES, t as LABEL_FORMATS } from "../statuses-Qqpzda35.js";
|
|
13
13
|
import { t as importOptionalPeer } from "../optional-peer-5SOYr3lL.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { D as ValidationIssue, b as DbError, t as AsyncResult } from "./result-DTOQRyGY.js";
|
|
2
2
|
import { D as AccessTopicPolicy, O as AnyFunctions, at as Row, dt as TableKey, k as AnyModels } from "./types-BzIYSSWK.js";
|
|
3
|
-
import { t as AuthorizationFunctions } from "./authorization-
|
|
3
|
+
import { t as AuthorizationFunctions } from "./authorization-Ul_ApMYW.js";
|
|
4
4
|
import { t as BetterSupabase } from "./define-C_He1bQO.js";
|
|
5
5
|
import { et as TemplateParams, tt as TemplateValues } from "./bucket-CrsJNHzi.js";
|
|
6
6
|
import { g as SubscriberPolicy, h as SubscriberEvent, i as AuthorizationHooks, m as Subscriber } from "./authorization-hooks-CR8TVvqo.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-
|
|
2
|
-
import { k as DesignErrorCode } from "./index-
|
|
1
|
+
import { _r as AppColumnFormat, br as AppOnDeleteAction, hr as AppColumnAccess, kr as AppTableVersions, vr as AppColumnType, xi as Preset } from "./context-dHluCmud.js";
|
|
2
|
+
import { k as DesignErrorCode } from "./index-DhcLJAtX.js";
|
|
3
3
|
/** Where in the project pipeline an issue came from. */
|
|
4
4
|
type IssueSource = "design" | "rules" | "sql" | "verifier" | "plan";
|
|
5
5
|
type IssueSeverity = "error" | "warning" | "info";
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -2,12 +2,12 @@ import { b as DbError } from "../result-DTOQRyGY.js";
|
|
|
2
2
|
import { Ct as Events, D as BlockEventPattern, T as BlockEvent, bt as EventMap, k as BlockEventsMatching } from "../events-DddDlibJ.js";
|
|
3
3
|
import { mt as QuerySpec } from "../define-C_He1bQO.js";
|
|
4
4
|
import { tt as TemplateValues } from "../bucket-CrsJNHzi.js";
|
|
5
|
-
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-
|
|
6
|
-
import { t as AuthSnapshot } from "../bind-
|
|
5
|
+
import { g as TopicHandlers, m as Topic, p as SubscriptionStatus, r as PresenceMember, t as EventSchemas } from "../topic-CekU96q7.js";
|
|
6
|
+
import { t as AuthSnapshot } from "../bind-B2GlypM6.js";
|
|
7
7
|
import { n as AuthSession } from "../view-eHgOOyRS.js";
|
|
8
|
-
import { n as Controller } from "../controller-
|
|
9
|
-
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-
|
|
10
|
-
import { n as BlockOptions } from "../block-env-
|
|
8
|
+
import { n as Controller } from "../controller-BQXgMwWN.js";
|
|
9
|
+
import { C as LiveCountSource, D as ProfileOf, E as PresenceTopic, O as UseActionOptions, S as LiveCountHookOptions, T as PresenceHookOptions, _ as ActionResultOf, a as DataRows, b as ClaimsOf, c as DataWrites, d as BlockMutationState, f as BlockQueryActions, g as ActionInputOf, h as BlockRefetchOn, i as DataRow, l as BlockEventSource, m as BlockQueryState, n as DataId, o as DataSource, p as BlockQueryOptions, r as DataListArgs, s as DataState, t as fieldErrorsOf, u as BlockMutationActions, v as ActionState, w as LiveQueryHookOptions, x as ClientLike, y as BroadcastOptions } from "../field-errors-DIDkgzFA.js";
|
|
10
|
+
import { n as BlockOptions } from "../block-env-Bcr-jEA1.js";
|
|
11
11
|
import { n as BlockDataOf, r as BlockMethodName, t as BlockArgsOf } from "../block-method-QSaPsL2P.js";
|
|
12
12
|
import { t as SupportView } from "../support-view-DKZkZeM5.js";
|
|
13
13
|
import { SupabaseClient } from "@supabase/supabase-js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-
|
|
1
|
+
import { c as RealtimeClient, p as SubscriptionStatus } from "./topic-CekU96q7.js";
|
|
2
2
|
interface TopicWatch {
|
|
3
3
|
readonly onMessage: (event: string, payload: unknown) => void;
|
|
4
4
|
readonly onRejoin: () => void;
|
package/dist/yjs/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as AsyncResult } from "../result-DTOQRyGY.js";
|
|
2
|
-
import { c as RealtimeClient, r as PresenceMember } from "../topic-
|
|
2
|
+
import { c as RealtimeClient, r as PresenceMember } from "../topic-CekU96q7.js";
|
|
3
3
|
import { a as DocumentSuggestion, d as OpenedDocument, l as Documents, r as DocumentRef, t as DecidedSuggestion } from "../documents-Btk0MhC0.js";
|
|
4
4
|
type PresenceState = Readonly<Record<string, unknown>>;
|
|
5
5
|
/** The part of a `Y.Doc` the provider uses. */
|
package/package.json
CHANGED
package/schemas/config-v1.json
CHANGED
|
@@ -4792,6 +4792,10 @@
|
|
|
4792
4792
|
"companyExpenses": {
|
|
4793
4793
|
"type": "boolean",
|
|
4794
4794
|
"default": false
|
|
4795
|
+
},
|
|
4796
|
+
"withdrawApproved": {
|
|
4797
|
+
"type": "boolean",
|
|
4798
|
+
"default": false
|
|
4795
4799
|
}
|
|
4796
4800
|
}
|
|
4797
4801
|
}
|
|
@@ -5188,6 +5192,15 @@
|
|
|
5188
5192
|
"type": "string"
|
|
5189
5193
|
},
|
|
5190
5194
|
"default": ["stripe", "order"]
|
|
5195
|
+
},
|
|
5196
|
+
"uniqueNumber": {},
|
|
5197
|
+
"linePositionKey": {
|
|
5198
|
+
"type": "boolean",
|
|
5199
|
+
"default": true
|
|
5200
|
+
},
|
|
5201
|
+
"paymentsAfterWriteOff": {
|
|
5202
|
+
"type": "boolean",
|
|
5203
|
+
"default": false
|
|
5191
5204
|
}
|
|
5192
5205
|
}
|
|
5193
5206
|
}
|
|
@@ -62,9 +62,10 @@ stay hidden.
|
|
|
62
62
|
|
|
63
63
|
## Workflow: after upgrading better-supabase
|
|
64
64
|
|
|
65
|
-
1. Run `pnpm better-supabase codemod <version> --dry-run` for each
|
|
66
|
-
|
|
67
|
-
`--dry-run`, and fix the lines it lists for review.
|
|
65
|
+
1. Run `pnpm better-supabase codemod <version> --dry-run` for each version
|
|
66
|
+
that has one (`codemod` without a name lists them), then without
|
|
67
|
+
`--dry-run`, and fix the lines it lists for review. From 0.35, one
|
|
68
|
+
`codemod 0.37` covers 0.36 and 0.37; 0.38 and 0.39 have none.
|
|
68
69
|
2. Run `pnpm better-supabase upgrade`, so the SQL modules get the
|
|
69
70
|
release's SQL and any forward steps land in a migration, then write a
|
|
70
71
|
migration from the changed files (under the `migrations` workflow it
|
|
@@ -75,11 +76,17 @@ stay hidden.
|
|
|
75
76
|
the config to keep an old relation name.
|
|
76
77
|
4. Run `pnpm better-supabase skills install --check` and reinstall the skills
|
|
77
78
|
when it reports them stale.
|
|
78
|
-
5.
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
https://
|
|
79
|
+
5. Run `pnpm better-supabase doctor`. BS607 means `node_modules`, the
|
|
80
|
+
lockfile and the block SQL name different releases: run the install
|
|
81
|
+
command it prints, then `upgrade --check`.
|
|
82
|
+
6. Read the release's guide at https://bettersupabase.com/docs/migration.
|
|
83
|
+
From 0.35, read https://bettersupabase.com/docs/migration/0.35-to-0.37:
|
|
84
|
+
the proxy refreshes the session through `@supabase/ssr`, `bsb.cached()`
|
|
85
|
+
entries stay fresh for 300 seconds, `bsb.supabaseFor` is
|
|
86
|
+
`bsb.contextClient`, and stock counts fractional units. Every breaking
|
|
87
|
+
change is in
|
|
88
|
+
https://github.com/ScaleDockHQ/better-supabase/blob/main/packages/better-supabase/CHANGELOG.md.
|
|
89
|
+
For 0.6, kits are blocks imported from `better-supabase/blocks/<name>`. For 0.3: time values are
|
|
83
90
|
`Temporal` (see below), `--db-url` is gone, `doctor --format json` is
|
|
84
91
|
`doctor --json`, `BetterResultShape` is `BetterResultValue`, and an
|
|
85
92
|
exhaustive `switch` over the `invalid` auth reason needs an `'actor'` case.
|
|
@@ -102,6 +109,7 @@ Name the definition `betterSupabase` (in `lib/supabase/index.ts`) and every runt
|
|
|
102
109
|
- Express: `res.locals.db`; Fastify: `request.locals.db`; Koa: `ctx.state.db`; NestJS: `@Ctx("db")`
|
|
103
110
|
- SvelteKit: `event.locals.db`; H3, Nitro and Nuxt: `event.context.db`; TanStack Start: the middleware `context.db`
|
|
104
111
|
- Astro: `bsb.locals(Astro).db`; SolidStart: `(await bsb.require()).db`
|
|
112
|
+
- A supabase-js client on the server (Storage, Realtime, a call no repository covers): `bsb.contextClient(ctx.auth)` sends the caller's token to PostgREST, Storage and Realtime, so RLS applies. `bsb.admin().$client` is the shared secret-key client, for work no user owns
|
|
105
113
|
- Browser: `bsb.db`, or the hooks from `createHooks<typeof bsb>()`
|
|
106
114
|
- Vue, Solid and Svelte, TanStack DB collections and a local SQLite database: [references/frontend.md](references/frontend.md)
|
|
107
115
|
- UI for a block (notification bell, notification list, command search, onboarding checklist): build it from the app's shadcn or React Native components and the block's hook, following [references/ui-recipes.md](references/ui-recipes.md). There is no better-supabase UI package; install glue with `npx shadcn add @better-supabase/<item>`.
|
|
@@ -124,6 +132,16 @@ the `better-supabase-auth` skill.
|
|
|
124
132
|
`lib/supabase/providers.ts` and spread them:
|
|
125
133
|
`defineBlocks(blockConfig, { ...blocks, ...providers })`. Doctor fails on a
|
|
126
134
|
missing env key (BS504) or an unwired required provider (BS505).
|
|
135
|
+
- Write a block's tables through its client, never with
|
|
136
|
+
`.from("<block table>").insert()` or another supabase-js write: that skips
|
|
137
|
+
the block's events, hooks and checks, and doctor warns BS351. Your own
|
|
138
|
+
columns on a block table go in the method's `fields` (the block's
|
|
139
|
+
`extraColumns` option lists them, `<table>ExtraColumns` for its other
|
|
140
|
+
tables); they are written in the same
|
|
141
|
+
insert or update, so a `not null` column or a check across columns holds.
|
|
142
|
+
- A column of yours named like a secret (`access_token`, `client_secret`)
|
|
143
|
+
next to `field-encryption` or `credentials` is BS352: set `encrypted: true`
|
|
144
|
+
under `tables.<name>.columns`, or move the secret to Vault.
|
|
127
145
|
- A preset can write instances too (`preset: { blocks, instances }`); your
|
|
128
146
|
own `blocks` entry for the same key wins.
|
|
129
147
|
- Keep your own tables in your own files in `supabase/schemas`. A block
|
package/dist/cli/add-CdDneXMN.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as addCommand } from "./add-7nCSDmpt.js";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { t as powersyncStreamsCommand } from "./powersync-BRmUJ-uR.js";
|