@livestore/devtools-expo 0.3.0-dev.11 → 0.3.0-dev.14
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/metro-config.cjs
CHANGED
|
@@ -23,7 +23,7 @@ const addLiveStoreDevtoolsMiddleware = (config, options) => {
|
|
|
23
23
|
const makeLiveStoreDevtoolsMiddleware = (options) => {
|
|
24
24
|
// TODO Once Expo supports proper ESM, we can make this a static import
|
|
25
25
|
// const viteServerPromise = makeViteServer(options)
|
|
26
|
-
const viteServerPromise = import('@livestore/node/devtools').then(({ makeViteServer }) => makeViteServer({ ...options, mode: { _tag: 'expo' } }).pipe(Effect_.runPromise));
|
|
26
|
+
const viteServerPromise = import('@livestore/adapter-node/devtools').then(({ makeViteServer }) => makeViteServer({ ...options, mode: { _tag: 'expo' } }).pipe(Effect_.runPromise));
|
|
27
27
|
const middleware = async (req, res, next) => {
|
|
28
28
|
if (req.url?.startsWith('/livestore-devtools') == false) {
|
|
29
29
|
return next();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metro-config.cjs","sourceRoot":"","sources":["../src/metro-config.cts"],"names":[],"mappings":";;AAEA,wFAAwF;AACxF,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,yBAAyB,CAAC,CAAA;AAMtD;;GAEG;AACH,MAAM,8BAA8B,GAAG,CAAC,MAAgC,EAAE,OAAgB,EAAE,EAAE;IAC5F,kCAAkC;IAClC,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC;QAC5C,OAAM;IACR,CAAC;IAED,MAAM,cAAc,GAAG,+BAA+B,CAAC,OAAO,CAAC,CAAA;IAE/D,MAAM,yBAAyB,GAAG,MAAM,CAAC,MAAM,CAAC,iBAGjC,CAAA;IAEf,MAAM,iBAAiB,GAAG,CAAC,eAA2B,EAAE,MAAW,EAAc,EAAE;QACjF,MAA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"}
|
|
@@ -55,7 +55,7 @@ const virtualHtmlPlugin = {
|
|
|
55
55
|
<script type="module">
|
|
56
56
|
import '@livestore/devtools-react/index.css'
|
|
57
57
|
import { mountDevtools } from '@livestore/devtools-react'
|
|
58
|
-
import sharedWorker from '@livestore/web/shared-worker?sharedworker'
|
|
58
|
+
import sharedWorker from '@livestore/adapter-web/shared-worker?sharedworker'
|
|
59
59
|
import { schema } from '@schema'
|
|
60
60
|
|
|
61
61
|
mountDevtools({ schema, rootEl: document.getElementById('root'), sharedWorker, mode: 'expo' })
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livestore/devtools-expo",
|
|
3
|
-
"version": "0.3.0-dev.
|
|
3
|
+
"version": "0.3.0-dev.14",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"types": "./dist/index.d.cts",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@livestore/devtools-
|
|
8
|
-
"@livestore/wa-sqlite": "1.0.
|
|
9
|
-
"vite": "6.0
|
|
7
|
+
"@livestore/devtools-vite": "0.3.0-dev.14",
|
|
8
|
+
"@livestore/wa-sqlite": "1.0.5-dev.1",
|
|
9
|
+
"vite": "6.1.0",
|
|
10
10
|
"ws": "8.18.0",
|
|
11
|
-
"@livestore/
|
|
12
|
-
"@livestore/
|
|
13
|
-
"@livestore/
|
|
11
|
+
"@livestore/utils": "0.3.0-dev.14",
|
|
12
|
+
"@livestore/adapter-web": "0.3.0-dev.14",
|
|
13
|
+
"@livestore/adapter-node": "0.3.0-dev.14"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
16
|
"@types/node": "^22.10.5",
|
package/src/metro-config.cts
CHANGED
|
@@ -38,7 +38,7 @@ const addLiveStoreDevtoolsMiddleware = (config: MutableDeep<MetroConfig>, option
|
|
|
38
38
|
const makeLiveStoreDevtoolsMiddleware = (options: Options) => {
|
|
39
39
|
// TODO Once Expo supports proper ESM, we can make this a static import
|
|
40
40
|
// const viteServerPromise = makeViteServer(options)
|
|
41
|
-
const viteServerPromise = import('@livestore/node/devtools').then(({ makeViteServer }) =>
|
|
41
|
+
const viteServerPromise = import('@livestore/adapter-node/devtools').then(({ makeViteServer }) =>
|
|
42
42
|
makeViteServer({ ...options, mode: { _tag: 'expo' } }).pipe(Effect_.runPromise as typeof Effect.runPromise),
|
|
43
43
|
)
|
|
44
44
|
|
|
@@ -66,7 +66,7 @@ const virtualHtmlPlugin: Vite.Plugin = {
|
|
|
66
66
|
<script type="module">
|
|
67
67
|
import '@livestore/devtools-react/index.css'
|
|
68
68
|
import { mountDevtools } from '@livestore/devtools-react'
|
|
69
|
-
import sharedWorker from '@livestore/web/shared-worker?sharedworker'
|
|
69
|
+
import sharedWorker from '@livestore/adapter-web/shared-worker?sharedworker'
|
|
70
70
|
import { schema } from '@schema'
|
|
71
71
|
|
|
72
72
|
mountDevtools({ schema, rootEl: document.getElementById('root'), sharedWorker, mode: 'expo' })
|