@marktiderman/genesis-supabase 0.10.0 → 0.10.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.
Files changed (1) hide show
  1. package/package.json +31 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-supabase",
3
- "version": "0.10.0",
3
+ "version": "0.10.1",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -57,7 +57,7 @@
57
57
  "README.md"
58
58
  ],
59
59
  "dependencies": {
60
- "@marktiderman/genesis-features": "^0.6.1"
60
+ "@marktiderman/genesis-features": "^0.7.0"
61
61
  },
62
62
  "peerDependencies": {
63
63
  "@supabase/supabase-js": "^2.118.0",
@@ -244,6 +244,35 @@
244
244
  "In the native app, call openOnWeb from @marktiderman/genesis-native/web-handoff with the mint route, the session's access token and expo-web-browser."
245
245
  ]
246
246
  }
247
+ },
248
+ "doctor": {
249
+ "prefer": [
250
+ {
251
+ "id": "client-from-genesis",
252
+ "need": "a Supabase client in the app or on the phone",
253
+ "level": "warn",
254
+ "exclude": [
255
+ "**/*.server.*",
256
+ "**/server/**",
257
+ "**/api/**"
258
+ ],
259
+ "forbid": {
260
+ "pattern": "import\\s*\\{[^}]*\\bcreateClient\\b[^}]*\\}\\s*from\\s*[\"']@supabase/supabase-js[\"']"
261
+ },
262
+ "use": "createGenesisSupabase()",
263
+ "import": "@marktiderman/genesis-supabase",
264
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/supabase/README.md",
265
+ "why": "Genesis's client sets PKCE, session storage that survives interrupted writes and refresh only while the app is in front. Server files (a service-key client) aren't checked."
266
+ }
267
+ ],
268
+ "primitives": [
269
+ {
270
+ "need": "background jobs",
271
+ "use": "enqueueJob and runJobs",
272
+ "import": "@marktiderman/genesis-supabase/jobs",
273
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/supabase/README.md"
274
+ }
275
+ ]
247
276
  }
248
277
  },
249
278
  "peerDependenciesMeta": {