feat(supabase): publish gate on the Rust core's sheet.check, fail closed
publishSheetVersion(client, versionId, validate) takes the core's sheet.check (the package never loads the module itself); anything but a publishable verdict refuses publication before the RPC: invalid_shape, not_publishable (same message as before: first error code), and validator_unavailable when the core cannot run. Tests run on the real Node core; the shape case now asserts the closed kind instead of any throw. The package no longer depends on @faunosteo/domain.
This commit is contained in:
1 parent
21906c4358
commit
6891f9ea25
6 files changed
+119
-18
No files matched your search
Generated
+3
-3
@@ -244,9 +244,6 @@ importers:
|
||||
|
||||
packages/supabase:
|
||||
dependencies:
|
||||
'@faunosteo/domain':
|
||||
specifier: workspace:*
|
||||
version: link:../domain
|
||||
'@supabase/supabase-js':
|
||||
specifier: ^2.100.0
|
||||
version: 2.117.3
|
||||
@@ -257,6 +254,9 @@ importers:
|
||||
'@electric-sql/pglite':
|
||||
specifier: ^0.3.0
|
||||
version: 0.3.16
|
||||
'@faunosteo/core-wasm':
|
||||
specifier: workspace:*
|
||||
version: link:../core-wasm
|
||||
'@types/node':
|
||||
specifier: ^20.19.41
|
||||
version: 20.19.41
|
||||
|
||||
Reference in new issue
Block a user