@marktiderman/genesis-native 0.5.0 → 0.5.2

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 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@marktiderman/genesis-native",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -81,10 +81,10 @@
81
81
  "README.md"
82
82
  ],
83
83
  "dependencies": {
84
- "@marktiderman/genesis-core": "^1.14.0",
85
- "@marktiderman/genesis-design-system": "^1.5.0",
86
- "@marktiderman/genesis-features": "^0.6.0",
87
- "@marktiderman/genesis-ui-native": "^2.7.0"
84
+ "@marktiderman/genesis-core": "^2.1.0",
85
+ "@marktiderman/genesis-design-system": "^1.5.1",
86
+ "@marktiderman/genesis-features": "^0.7.0",
87
+ "@marktiderman/genesis-ui-native": "^3.1.0"
88
88
  },
89
89
  "peerDependencies": {
90
90
  "@tanstack/query-async-storage-persister": "^5.0.0",
@@ -314,6 +314,32 @@
314
314
  "Create the block with createDevtools (@marktiderman/genesis-native/devtools), enabled only outside production builds, and pass it to <GenesisNativeApp blocks> (genesis-native README)."
315
315
  ]
316
316
  }
317
+ },
318
+ "doctor": {
319
+ "prefer": [
320
+ {
321
+ "id": "app-root",
322
+ "need": "the phone app's root: splash, boot, cache, session",
323
+ "level": "warn",
324
+ "platform": "native",
325
+ "forbid": {
326
+ "imports": [
327
+ "expo-splash-screen",
328
+ "@tanstack/query-async-storage-persister",
329
+ "@tanstack/react-query-persist-client"
330
+ ]
331
+ },
332
+ "unless": {
333
+ "renders": [
334
+ "GenesisNativeApp"
335
+ ]
336
+ },
337
+ "use": "<GenesisNativeApp> (boot steps behind the splash, the persisted query cache, the session gate)",
338
+ "import": "@marktiderman/genesis-native",
339
+ "docs": "https://github.com/marktiderman/genesis/blob/main/packages/native/README.md",
340
+ "why": "The boot, the fatal screen with retry, the cache and the session gate are one root; rebuilding them by hand loses the error handling."
341
+ }
342
+ ]
317
343
  }
318
344
  },
319
345
  "scripts": {