@livestore/livestore 0.3.2-dev.0 → 0.3.2-dev.5
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/.tsbuildinfo +1 -1
- package/dist/QueryCache.d.ts +4 -6
- package/dist/QueryCache.d.ts.map +1 -1
- package/dist/QueryCache.js +2 -3
- package/dist/QueryCache.js.map +1 -1
- package/dist/SqliteDbWrapper.d.ts.map +1 -1
- package/dist/SqliteDbWrapper.js +1 -2
- package/dist/SqliteDbWrapper.js.map +1 -1
- package/dist/SqliteDbWrapper.test.js +1 -1
- package/dist/effect/LiveStore.d.ts +2 -2
- package/dist/effect/LiveStore.js +1 -1
- package/dist/effect/mod.d.ts +2 -2
- package/dist/effect/mod.d.ts.map +1 -1
- package/dist/effect/mod.js +2 -2
- package/dist/effect/mod.js.map +1 -1
- package/dist/internal/mod.d.ts +2 -2
- package/dist/internal/mod.js +2 -2
- package/dist/live-queries/base-class.d.ts +4 -4
- package/dist/live-queries/base-class.d.ts.map +1 -1
- package/dist/live-queries/base-class.js +1 -1
- package/dist/live-queries/base-class.js.map +1 -1
- package/dist/live-queries/client-document-get-query.d.ts +1 -1
- package/dist/live-queries/computed.d.ts +4 -4
- package/dist/live-queries/computed.js +2 -2
- package/dist/live-queries/db-query.d.ts +4 -4
- package/dist/live-queries/db-query.js +4 -4
- package/dist/live-queries/db-query.test.js +12 -14
- package/dist/live-queries/db-query.test.js.map +1 -1
- package/dist/live-queries/mod.d.ts +4 -4
- package/dist/live-queries/mod.js +4 -4
- package/dist/live-queries/signal.d.ts +4 -4
- package/dist/live-queries/signal.js +1 -1
- package/dist/live-queries/signal.test.js +3 -3
- package/dist/mod.d.ts +10 -10
- package/dist/mod.d.ts.map +1 -1
- package/dist/mod.js +9 -9
- package/dist/mod.js.map +1 -1
- package/dist/reactive.d.ts.map +1 -1
- package/dist/reactive.js +1 -2
- package/dist/reactive.js.map +1 -1
- package/dist/reactive.test.js +1 -1
- package/dist/store/create-store.d.ts +6 -3
- package/dist/store/create-store.d.ts.map +1 -1
- package/dist/store/create-store.js +3 -2
- package/dist/store/create-store.js.map +1 -1
- package/dist/store/devtools.d.ts +3 -3
- package/dist/store/devtools.js +2 -2
- package/dist/store/store-types.d.ts +7 -4
- package/dist/store/store-types.d.ts.map +1 -1
- package/dist/store/store-types.js.map +1 -1
- package/dist/store/store.d.ts +7 -7
- package/dist/store/store.d.ts.map +1 -1
- package/dist/store/store.js +7 -6
- package/dist/store/store.js.map +1 -1
- package/dist/utils/dev.d.ts.map +1 -1
- package/dist/utils/dev.js +0 -1
- package/dist/utils/dev.js.map +1 -1
- package/dist/utils/stack-info.test.js +1 -1
- package/dist/utils/tests/fixture.d.ts +33 -2
- package/dist/utils/tests/fixture.d.ts.map +1 -1
- package/dist/utils/tests/fixture.js +16 -3
- package/dist/utils/tests/fixture.js.map +1 -1
- package/dist/utils/tests/mod.d.ts +3 -3
- package/dist/utils/tests/mod.d.ts.map +1 -1
- package/dist/utils/tests/mod.js +3 -3
- package/dist/utils/tests/mod.js.map +1 -1
- package/dist/utils/tests/otel.d.ts.map +1 -1
- package/dist/utils/tests/otel.js.map +1 -1
- package/package.json +5 -5
- package/src/QueryCache.ts +5 -7
- package/src/SqliteDbWrapper.test.ts +1 -1
- package/src/SqliteDbWrapper.ts +1 -3
- package/src/ambient.d.ts +0 -2
- package/src/effect/LiveStore.ts +2 -2
- package/src/effect/mod.ts +4 -4
- package/src/internal/mod.ts +2 -2
- package/src/live-queries/__snapshots__/db-query.test.ts.snap +14 -14
- package/src/live-queries/base-class.ts +11 -10
- package/src/live-queries/client-document-get-query.ts +1 -1
- package/src/live-queries/computed.ts +5 -5
- package/src/live-queries/db-query.test.ts +12 -14
- package/src/live-queries/db-query.ts +7 -7
- package/src/live-queries/mod.ts +4 -4
- package/src/live-queries/signal.test.ts +3 -3
- package/src/live-queries/signal.ts +4 -4
- package/src/mod.ts +33 -39
- package/src/reactive.test.ts +1 -1
- package/src/reactive.ts +2 -4
- package/src/store/create-store.ts +8 -3
- package/src/store/devtools.ts +5 -5
- package/src/store/store-types.ts +13 -4
- package/src/store/store.ts +11 -10
- package/src/utils/dev.ts +0 -1
- package/src/utils/stack-info.test.ts +1 -1
- package/src/utils/tests/fixture.ts +18 -3
- package/src/utils/tests/mod.ts +3 -3
- package/src/utils/tests/otel.ts +1 -0
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"fixture.js","sourceRoot":"","sources":["../../../src/utils/tests/fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;
|
1
|
+
{"version":3,"file":"fixture.js","sourceRoot":"","sources":["../../../src/utils/tests/fixture.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAC/C,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAC7E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,yBAAyB,CAAA;AAgBxD,MAAM,CAAC,MAAM,KAAK,GAAG,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC;IACtC,IAAI,EAAE,OAAO;IACb,OAAO,EAAE;QACP,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,CAAC;QAC3C,IAAI,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,EAAE,EAAE,QAAQ,EAAE,KAAK,EAAE,CAAC;QACzD,SAAS,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,OAA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AA;AAEnD,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,EAC1B,UAAU,EACV,WAAW,MAIT,EAAE,EAAE,EAAE,CACR,MAAM,CAAC,GAAG,CAAC,QAAQ,CAAC;IAClB,MAAM,KAAK,GAAG,KAAK,CAAC,CAAC,WAAW,CAAC;QAC/B,MAAM;QACN,OAAO,EAAE,SAAS;QAClB,OAAO,EAAE,mBAAmB,EAAE;QAC9B,KAAK,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE;KAC9B,CAAC,CAAA;IAEF,OAAO,KAAK,CAAA;AACd,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,iBAAiB,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,CAAC,CAAC,CAAA"}
|
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from '
|
2
|
-
export * from './
|
3
|
-
export *
|
1
|
+
export * as RG from '../../reactive.ts';
|
2
|
+
export * from './fixture.ts';
|
3
|
+
export * from './otel.ts';
|
4
4
|
//# sourceMappingURL=mod.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/mod.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"mod.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
package/dist/utils/tests/mod.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from
|
2
|
-
export * from
|
3
|
-
export *
|
1
|
+
export * as RG from "../../reactive.js";
|
2
|
+
export * from "./fixture.js";
|
3
|
+
export * from "./otel.js";
|
4
4
|
//# sourceMappingURL=mod.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/utils/tests/mod.ts"],"names":[],"mappings":"AAAA,
|
1
|
+
{"version":3,"file":"mod.js","sourceRoot":"","sources":["../../../src/utils/tests/mod.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,mBAAmB,CAAA;AACvC,cAAc,cAAc,CAAA;AAC5B,cAAc,WAAW,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/otel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;
|
1
|
+
{"version":3,"file":"otel.d.ts","sourceRoot":"","sources":["../../../src/utils/tests/otel.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAA;AAEvF,KAAK,oBAAoB,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,GAAG,CAAC;IAAC,QAAQ,EAAE,oBAAoB,EAAE,CAAA;CAAE,CAAA;AAEhG,eAAO,MAAM,qBAAqB,GAChC,UAAU,oBAAoB,EAC9B,gBAAgB,CAAC,UAAU,EAAE,UAAU,KAAK,UAAU,KACrD,oBA+CF,CAAA;AAqBD,eAAO,MAAM,WAAW,GAAI,OAAO,YAAY,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyDhD,CAAA"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"otel.js","sourceRoot":"","sources":["../../../src/utils/tests/otel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;
|
1
|
+
{"version":3,"file":"otel.js","sourceRoot":"","sources":["../../../src/utils/tests/otel.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AO,KAAK,KAAK,QAAQ;oCACvB,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;oCACxB,CAAC,CAAC,OAAO,KAAK,KAAK,QAAQ;wCACzB,CAAC,CAAC,MAAM,CAAC,SAAS,CAAC,KAAK,CAAC;4CACvB,CAAC,CAAC,EAAE,QAAQ,EAAE,KAAK,EAAE;4CACrB,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE;wCAC1B,CAAC,CAAC,OAAO,KAAK,KAAK,SAAS;4CAC1B,CAAC,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE;4CACtB,CAAC,CAAC,EAAE,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE;6BACjD,CAAC,CAAC;4BACH,sBAAsB,EAAE,IAAI,CAAC,sBAAsB,IAAI,CAAC;4BACxD,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,IAAI,CAAC;4BAChD,iBAAiB,EAAE,IAAI,CAAC,iBAAiB,IAAI,CAAC;4BAC9C,MAAM,EAAE;gCACN,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,IAAI;gCACtB,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE;6BACnC;yBACF,CAAC,CAAC;wBACH,sBAAsB,EAAE;4BACtB,IAAI,EAAE,WAAW;4BACjB,OAAO,EAAE,EAAE;yBACZ;qBACF;iBACF;aACF;SACF;KACF,CAAA;AACH,CAAC,CAAA"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@livestore/livestore",
|
3
|
-
"version": "0.3.2-dev.
|
3
|
+
"version": "0.3.2-dev.5",
|
4
4
|
"type": "module",
|
5
5
|
"sideEffects": false,
|
6
6
|
"exports": {
|
@@ -37,8 +37,8 @@
|
|
37
37
|
},
|
38
38
|
"dependencies": {
|
39
39
|
"@opentelemetry/api": "1.9.0",
|
40
|
-
"@livestore/
|
41
|
-
"@livestore/
|
40
|
+
"@livestore/common": "0.3.2-dev.5",
|
41
|
+
"@livestore/utils": "0.3.2-dev.5"
|
42
42
|
},
|
43
43
|
"devDependencies": {
|
44
44
|
"@opentelemetry/sdk-trace-base": "^2.0.0",
|
@@ -46,8 +46,8 @@
|
|
46
46
|
"typescript": "^5.8.3",
|
47
47
|
"vite": "^7.0.0",
|
48
48
|
"vitest": "3.2.4",
|
49
|
-
"@livestore/
|
50
|
-
"@livestore/
|
49
|
+
"@livestore/utils-dev": "0.3.2-dev.5",
|
50
|
+
"@livestore/adapter-web": "0.3.2-dev.5"
|
51
51
|
},
|
52
52
|
"files": [
|
53
53
|
"package.json",
|
package/src/QueryCache.ts
CHANGED
@@ -1,14 +1,12 @@
|
|
1
1
|
import type { Bindable } from '@livestore/common'
|
2
2
|
import { BoundMap, BoundSet, SessionIdSymbol } from '@livestore/common'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
readonly [Symbols.brand]: BrandType
|
7
|
-
}
|
4
|
+
const SymbolsBase = Symbol('base')
|
5
|
+
const SymbolsBrand = Symbol('brand')
|
8
6
|
|
9
|
-
|
10
|
-
|
11
|
-
|
7
|
+
type Opaque<BaseType, BrandType = unknown> = BaseType & {
|
8
|
+
readonly [SymbolsBase]: BaseType
|
9
|
+
readonly [SymbolsBrand]: BrandType
|
12
10
|
}
|
13
11
|
|
14
12
|
export type CacheKey = Opaque<string, string>
|
@@ -2,7 +2,7 @@ import { Effect } from '@livestore/utils/effect'
|
|
2
2
|
import { Vitest } from '@livestore/utils-dev/node-vitest'
|
3
3
|
import { expect } from 'vitest'
|
4
4
|
|
5
|
-
import { makeTodoMvc } from './utils/tests/fixture.
|
5
|
+
import { makeTodoMvc } from './utils/tests/fixture.ts'
|
6
6
|
|
7
7
|
Vitest.describe('SqliteDbWrapper', () => {
|
8
8
|
Vitest.describe('getTablesUsed', () => {
|
package/src/SqliteDbWrapper.ts
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
/* eslint-disable prefer-arrow/prefer-arrow-functions */
|
2
|
-
|
3
1
|
import {
|
4
2
|
BoundArray,
|
5
3
|
BoundMap,
|
@@ -19,7 +17,7 @@ import {
|
|
19
17
|
import { isDevEnv, LS_DEV } from '@livestore/utils'
|
20
18
|
import type * as otel from '@opentelemetry/api'
|
21
19
|
|
22
|
-
import QueryCache from './QueryCache.
|
20
|
+
import QueryCache from './QueryCache.ts'
|
23
21
|
|
24
22
|
export const emptyDebugInfo = (): DebugInfo => ({
|
25
23
|
slowQueries: new BoundArray(200),
|
package/src/ambient.d.ts
CHANGED
package/src/effect/LiveStore.ts
CHANGED
@@ -3,8 +3,8 @@ import type { LiveStoreSchema } from '@livestore/common/schema'
|
|
3
3
|
import type { Cause, OtelTracer, Scope } from '@livestore/utils/effect'
|
4
4
|
import { Deferred, Duration, Effect, Layer, pipe } from '@livestore/utils/effect'
|
5
5
|
|
6
|
-
import type { LiveStoreContextProps } from '../store/create-store.
|
7
|
-
import { createStore, DeferredStoreContext, LiveStoreContextRunning } from '../store/create-store.
|
6
|
+
import type { LiveStoreContextProps } from '../store/create-store.ts'
|
7
|
+
import { createStore, DeferredStoreContext, LiveStoreContextRunning } from '../store/create-store.ts'
|
8
8
|
|
9
9
|
export const makeLiveStoreContext = <TSchema extends LiveStoreSchema, TContext = {}>({
|
10
10
|
schema,
|
package/src/effect/mod.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
export { LiveStoreContextLayer, LiveStoreContextDeferred } from './LiveStore.js'
|
2
1
|
export {
|
3
|
-
LiveStoreContextRunning as LiveStoreContext,
|
4
|
-
LiveStoreContextRunning,
|
5
2
|
DeferredStoreContext,
|
6
3
|
type LiveStoreContextProps,
|
7
|
-
|
4
|
+
LiveStoreContextRunning as LiveStoreContext,
|
5
|
+
LiveStoreContextRunning,
|
6
|
+
} from '../store/create-store.ts'
|
7
|
+
export { LiveStoreContextDeferred, LiveStoreContextLayer } from './LiveStore.ts'
|
package/src/internal/mod.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
export * as LiveQueries from '../live-queries/mod.
|
2
|
-
export * as ReactiveGraph from '../reactive.
|
1
|
+
export * as LiveQueries from '../live-queries/mod.ts'
|
2
|
+
export * as ReactiveGraph from '../reactive.ts'
|
@@ -45,7 +45,7 @@ exports[`otel > QueryBuilder subscription - basic functionality 1`] = `
|
|
45
45
|
"_name": "LiveStore:commit",
|
46
46
|
"attributes": {
|
47
47
|
"livestore.eventTags": [
|
48
|
-
"
|
48
|
+
"todo.created",
|
49
49
|
],
|
50
50
|
"livestore.eventsCount": 1,
|
51
51
|
},
|
@@ -53,7 +53,7 @@ exports[`otel > QueryBuilder subscription - basic functionality 1`] = `
|
|
53
53
|
{
|
54
54
|
"_name": "livestore.in-memory-db:execute",
|
55
55
|
"attributes": {
|
56
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
56
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
57
57
|
},
|
58
58
|
},
|
59
59
|
],
|
@@ -158,7 +158,7 @@ exports[`otel > QueryBuilder subscription - direct table subscription 1`] = `
|
|
158
158
|
"_name": "LiveStore:commit",
|
159
159
|
"attributes": {
|
160
160
|
"livestore.eventTags": [
|
161
|
-
"
|
161
|
+
"todo.created",
|
162
162
|
],
|
163
163
|
"livestore.eventsCount": 1,
|
164
164
|
},
|
@@ -166,7 +166,7 @@ exports[`otel > QueryBuilder subscription - direct table subscription 1`] = `
|
|
166
166
|
{
|
167
167
|
"_name": "livestore.in-memory-db:execute",
|
168
168
|
"attributes": {
|
169
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
169
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
170
170
|
},
|
171
171
|
},
|
172
172
|
],
|
@@ -278,7 +278,7 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
278
278
|
"_name": "LiveStore:commit",
|
279
279
|
"attributes": {
|
280
280
|
"livestore.eventTags": [
|
281
|
-
"
|
281
|
+
"todo.created",
|
282
282
|
],
|
283
283
|
"livestore.eventsCount": 1,
|
284
284
|
},
|
@@ -286,7 +286,7 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
286
286
|
{
|
287
287
|
"_name": "livestore.in-memory-db:execute",
|
288
288
|
"attributes": {
|
289
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
289
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
290
290
|
},
|
291
291
|
},
|
292
292
|
],
|
@@ -295,7 +295,7 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
295
295
|
"_name": "LiveStore:commit",
|
296
296
|
"attributes": {
|
297
297
|
"livestore.eventTags": [
|
298
|
-
"
|
298
|
+
"todo.created",
|
299
299
|
],
|
300
300
|
"livestore.eventsCount": 1,
|
301
301
|
},
|
@@ -303,7 +303,7 @@ exports[`otel > QueryBuilder subscription - unsubscribe functionality 1`] = `
|
|
303
303
|
{
|
304
304
|
"_name": "livestore.in-memory-db:execute",
|
305
305
|
"attributes": {
|
306
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
306
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
307
307
|
},
|
308
308
|
},
|
309
309
|
],
|
@@ -434,7 +434,7 @@ exports[`otel > otel 3`] = `
|
|
434
434
|
"_name": "LiveStore:commit",
|
435
435
|
"attributes": {
|
436
436
|
"livestore.eventTags": [
|
437
|
-
"
|
437
|
+
"todo.created",
|
438
438
|
],
|
439
439
|
"livestore.eventsCount": 1,
|
440
440
|
},
|
@@ -442,7 +442,7 @@ exports[`otel > otel 3`] = `
|
|
442
442
|
{
|
443
443
|
"_name": "livestore.in-memory-db:execute",
|
444
444
|
"attributes": {
|
445
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
445
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
446
446
|
},
|
447
447
|
},
|
448
448
|
],
|
@@ -709,7 +709,7 @@ exports[`otel > with thunks 7`] = `
|
|
709
709
|
"_name": "LiveStore:commit",
|
710
710
|
"attributes": {
|
711
711
|
"livestore.eventTags": [
|
712
|
-
"
|
712
|
+
"todo.created",
|
713
713
|
],
|
714
714
|
"livestore.eventsCount": 1,
|
715
715
|
},
|
@@ -717,7 +717,7 @@ exports[`otel > with thunks 7`] = `
|
|
717
717
|
{
|
718
718
|
"_name": "livestore.in-memory-db:execute",
|
719
719
|
"attributes": {
|
720
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
720
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
721
721
|
},
|
722
722
|
},
|
723
723
|
],
|
@@ -818,7 +818,7 @@ exports[`otel > with thunks with query builder and without labels 3`] = `
|
|
818
818
|
"_name": "LiveStore:commit",
|
819
819
|
"attributes": {
|
820
820
|
"livestore.eventTags": [
|
821
|
-
"
|
821
|
+
"todo.created",
|
822
822
|
],
|
823
823
|
"livestore.eventsCount": 1,
|
824
824
|
},
|
@@ -826,7 +826,7 @@ exports[`otel > with thunks with query builder and without labels 3`] = `
|
|
826
826
|
{
|
827
827
|
"_name": "livestore.in-memory-db:execute",
|
828
828
|
"attributes": {
|
829
|
-
"sql.query": "INSERT INTO todos (id, text, completed) VALUES (
|
829
|
+
"sql.query": "INSERT INTO 'todos' (id, text, completed) VALUES (?, ?, ?)",
|
830
830
|
},
|
831
831
|
},
|
832
832
|
],
|
@@ -2,10 +2,10 @@ import { isNotNil } from '@livestore/utils'
|
|
2
2
|
import { Predicate } from '@livestore/utils/effect'
|
3
3
|
import type * as otel from '@opentelemetry/api'
|
4
4
|
|
5
|
-
import * as RG from '../reactive.
|
6
|
-
import type { Store } from '../store/store.
|
7
|
-
import type { QueryDebugInfo, RefreshReason } from '../store/store-types.
|
8
|
-
import type { StackInfo } from '../utils/stack-info.
|
5
|
+
import * as RG from '../reactive.ts'
|
6
|
+
import type { Store } from '../store/store.ts'
|
7
|
+
import type { QueryDebugInfo, RefreshReason } from '../store/store-types.ts'
|
8
|
+
import type { StackInfo } from '../utils/stack-info.ts'
|
9
9
|
|
10
10
|
export type ReactivityGraph = RG.ReactiveGraph<RefreshReason, QueryDebugInfo, ReactivityGraphContext>
|
11
11
|
|
@@ -23,14 +23,15 @@ export type ReactivityGraphContext = {
|
|
23
23
|
effectsWrapper: (run: () => void) => void
|
24
24
|
}
|
25
25
|
|
26
|
-
export type GetResult<TQuery extends LiveQueryDef.Any | LiveQuery.Any | SignalDef<any>> =
|
27
|
-
|
26
|
+
export type GetResult<TQuery extends LiveQueryDef.Any | LiveQuery.Any | SignalDef<any>> = TQuery extends LiveQuery<
|
27
|
+
infer TResult
|
28
|
+
>
|
29
|
+
? TResult
|
30
|
+
: TQuery extends LiveQueryDef<infer TResult>
|
28
31
|
? TResult
|
29
|
-
: TQuery extends
|
32
|
+
: TQuery extends SignalDef<infer TResult>
|
30
33
|
? TResult
|
31
|
-
:
|
32
|
-
? TResult
|
33
|
-
: unknown
|
34
|
+
: unknown
|
34
35
|
|
35
36
|
let queryIdCounter = 0
|
36
37
|
|
@@ -4,7 +4,7 @@ import { State } from '@livestore/common/schema'
|
|
4
4
|
import { shouldNeverHappen } from '@livestore/utils'
|
5
5
|
import type * as otel from '@opentelemetry/api'
|
6
6
|
|
7
|
-
import type { ReactivityGraphContext } from './base-class.
|
7
|
+
import type { ReactivityGraphContext } from './base-class.ts'
|
8
8
|
|
9
9
|
export const rowQueryLabel = (
|
10
10
|
table: State.SQLite.ClientDocumentTableDef.Any,
|
@@ -1,11 +1,11 @@
|
|
1
1
|
import { getDurationMsFromSpan } from '@livestore/common'
|
2
2
|
import * as otel from '@opentelemetry/api'
|
3
3
|
|
4
|
-
import type { Thunk } from '../reactive.
|
5
|
-
import type { RefreshReason } from '../store/store-types.
|
6
|
-
import { isValidFunctionString } from '../utils/function-string.
|
7
|
-
import type { DepKey, GetAtomResult, LiveQueryDef, ReactivityGraph, ReactivityGraphContext } from './base-class.
|
8
|
-
import { depsToString, LiveStoreQueryBase, makeGetAtomResult, withRCMap } from './base-class.
|
4
|
+
import type { Thunk } from '../reactive.ts'
|
5
|
+
import type { RefreshReason } from '../store/store-types.ts'
|
6
|
+
import { isValidFunctionString } from '../utils/function-string.ts'
|
7
|
+
import type { DepKey, GetAtomResult, LiveQueryDef, ReactivityGraph, ReactivityGraphContext } from './base-class.ts'
|
8
|
+
import { depsToString, LiveStoreQueryBase, makeGetAtomResult, withRCMap } from './base-class.ts'
|
9
9
|
|
10
10
|
export const computed = <TResult>(
|
11
11
|
fn: (get: GetAtomResult) => TResult,
|
@@ -1,16 +1,14 @@
|
|
1
|
-
import { sql } from '@livestore/common'
|
2
|
-
import { rawSqlEvent } from '@livestore/common/schema'
|
3
1
|
import { Effect, ReadonlyRecord, Schema } from '@livestore/utils/effect'
|
4
2
|
import { Vitest } from '@livestore/utils-dev/node-vitest'
|
5
3
|
import * as otel from '@opentelemetry/api'
|
6
4
|
import { BasicTracerProvider, InMemorySpanExporter, SimpleSpanProcessor } from '@opentelemetry/sdk-trace-base'
|
7
5
|
import { expect } from 'vitest'
|
8
6
|
|
9
|
-
import * as RG from '../reactive.
|
10
|
-
import { makeTodoMvc, tables } from '../utils/tests/fixture.
|
11
|
-
import { getSimplifiedRootSpan } from '../utils/tests/otel.
|
12
|
-
import { computed } from './computed.
|
13
|
-
import { queryDb } from './db-query.
|
7
|
+
import * as RG from '../reactive.ts'
|
8
|
+
import { events, makeTodoMvc, tables } from '../utils/tests/fixture.ts'
|
9
|
+
import { getSimplifiedRootSpan } from '../utils/tests/otel.ts'
|
10
|
+
import { computed } from './computed.ts'
|
11
|
+
import { queryDb } from './db-query.ts'
|
14
12
|
|
15
13
|
/*
|
16
14
|
TODO write tests for:
|
@@ -65,7 +63,7 @@ Vitest.describe('otel', () => {
|
|
65
63
|
})
|
66
64
|
expect(store.query(query$)).toMatchInlineSnapshot('[]')
|
67
65
|
|
68
|
-
store.commit(
|
66
|
+
store.commit(events.todoCreated({ id: 't1', text: 'buy milk', completed: false }))
|
69
67
|
|
70
68
|
expect(store.query(query$)).toMatchInlineSnapshot(`
|
71
69
|
[
|
@@ -119,7 +117,7 @@ Vitest.describe('otel', () => {
|
|
119
117
|
|
120
118
|
expect(store.reactivityGraph.getSnapshot({ includeResults: true })).toMatchSnapshot()
|
121
119
|
|
122
|
-
store.commit(
|
120
|
+
store.commit(events.todoCreated({ id: 't1', text: 'buy milk', completed: false }))
|
123
121
|
|
124
122
|
expect(store.reactivityGraph.getSnapshot({ includeResults: true })).toMatchSnapshot()
|
125
123
|
|
@@ -167,7 +165,7 @@ Vitest.describe('otel', () => {
|
|
167
165
|
}
|
168
166
|
`)
|
169
167
|
|
170
|
-
store.commit(
|
168
|
+
store.commit(events.todoCreated({ id: 't1', text: 'buy milk', completed: false }))
|
171
169
|
|
172
170
|
expect(store.query(query$)).toMatchInlineSnapshot(`
|
173
171
|
{
|
@@ -212,7 +210,7 @@ Vitest.describe('otel', () => {
|
|
212
210
|
expect(callbackResults).toHaveLength(1)
|
213
211
|
expect(callbackResults[0]).toMatchObject(defaultTodo)
|
214
212
|
|
215
|
-
store.commit(
|
213
|
+
store.commit(events.todoCreated({ id: 't1', text: 'buy milk', completed: false }))
|
216
214
|
|
217
215
|
expect(callbackResults).toHaveLength(2)
|
218
216
|
expect(callbackResults[1]).toMatchObject({
|
@@ -264,14 +262,14 @@ Vitest.describe('otel', () => {
|
|
264
262
|
expect(callbackResults1).toHaveLength(1)
|
265
263
|
expect(callbackResults2).toHaveLength(1)
|
266
264
|
|
267
|
-
store.commit(
|
265
|
+
store.commit(events.todoCreated({ id: 't3', text: 'read book', completed: false }))
|
268
266
|
|
269
267
|
expect(callbackResults1).toHaveLength(2)
|
270
268
|
expect(callbackResults2).toHaveLength(2)
|
271
269
|
|
272
270
|
unsubscribe1()
|
273
271
|
|
274
|
-
store.commit(
|
272
|
+
store.commit(events.todoCreated({ id: 't4', text: 'cook dinner', completed: false }))
|
275
273
|
|
276
274
|
expect(callbackResults1).toHaveLength(2)
|
277
275
|
expect(callbackResults2).toHaveLength(3)
|
@@ -307,7 +305,7 @@ Vitest.describe('otel', () => {
|
|
307
305
|
expect(callbackResults).toHaveLength(1)
|
308
306
|
expect(callbackResults[0]).toEqual([])
|
309
307
|
|
310
|
-
store.commit(
|
308
|
+
store.commit(events.todoCreated({ id: 't5', text: 'clean house', completed: true }))
|
311
309
|
|
312
310
|
expect(callbackResults).toHaveLength(2)
|
313
311
|
expect(callbackResults[1]).toHaveLength(1)
|
@@ -13,13 +13,13 @@ import { deepEqual, shouldNeverHappen } from '@livestore/utils'
|
|
13
13
|
import { Predicate, Schema, TreeFormatter } from '@livestore/utils/effect'
|
14
14
|
import * as otel from '@opentelemetry/api'
|
15
15
|
|
16
|
-
import type { Thunk } from '../reactive.
|
17
|
-
import { isThunk, NOT_REFRESHED_YET } from '../reactive.
|
18
|
-
import type { RefreshReason } from '../store/store-types.
|
19
|
-
import { isValidFunctionString } from '../utils/function-string.
|
20
|
-
import type { DepKey, GetAtomResult, LiveQueryDef, ReactivityGraph, ReactivityGraphContext } from './base-class.
|
21
|
-
import { depsToString, LiveStoreQueryBase, makeGetAtomResult, withRCMap } from './base-class.
|
22
|
-
import { makeExecBeforeFirstRun, rowQueryLabel } from './client-document-get-query.
|
16
|
+
import type { Thunk } from '../reactive.ts'
|
17
|
+
import { isThunk, NOT_REFRESHED_YET } from '../reactive.ts'
|
18
|
+
import type { RefreshReason } from '../store/store-types.ts'
|
19
|
+
import { isValidFunctionString } from '../utils/function-string.ts'
|
20
|
+
import type { DepKey, GetAtomResult, LiveQueryDef, ReactivityGraph, ReactivityGraphContext } from './base-class.ts'
|
21
|
+
import { depsToString, LiveStoreQueryBase, makeGetAtomResult, withRCMap } from './base-class.ts'
|
22
|
+
import { makeExecBeforeFirstRun, rowQueryLabel } from './client-document-get-query.ts'
|
23
23
|
|
24
24
|
export type QueryInputRaw<TDecoded, TEncoded> = {
|
25
25
|
query: string
|
package/src/live-queries/mod.ts
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
export * from './base-class.
|
2
|
-
export * from './computed.
|
3
|
-
export * from './db-query.
|
4
|
-
export * from './signal.
|
1
|
+
export * from './base-class.ts'
|
2
|
+
export * from './computed.ts'
|
3
|
+
export * from './db-query.ts'
|
4
|
+
export * from './signal.ts'
|
@@ -2,9 +2,9 @@ import { Effect } from '@livestore/utils/effect'
|
|
2
2
|
import { Vitest } from '@livestore/utils-dev/node-vitest'
|
3
3
|
import { expect } from 'vitest'
|
4
4
|
|
5
|
-
import { makeTodoMvc } from '../utils/tests/fixture.
|
6
|
-
import { computed } from './computed.
|
7
|
-
import { signal } from './signal.
|
5
|
+
import { makeTodoMvc } from '../utils/tests/fixture.ts'
|
6
|
+
import { computed } from './computed.ts'
|
7
|
+
import { signal } from './signal.ts'
|
8
8
|
|
9
9
|
Vitest.describe('signal', () => {
|
10
10
|
Vitest.scopedLive('should be able to create a signal', () =>
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { nanoid } from '@livestore/utils/nanoid'
|
2
2
|
|
3
|
-
import type * as RG from '../reactive.
|
4
|
-
import type { RefreshReason } from '../store/store-types.
|
5
|
-
import type { ISignal, ReactivityGraph, ReactivityGraphContext, SignalDef } from './base-class.
|
6
|
-
import { LiveStoreQueryBase, withRCMap } from './base-class.
|
3
|
+
import type * as RG from '../reactive.ts'
|
4
|
+
import type { RefreshReason } from '../store/store-types.ts'
|
5
|
+
import type { ISignal, ReactivityGraph, ReactivityGraphContext, SignalDef } from './base-class.ts'
|
6
|
+
import { LiveStoreQueryBase, withRCMap } from './base-class.ts'
|
7
7
|
|
8
8
|
export const signal = <T>(
|
9
9
|
defaultValue: T,
|
package/src/mod.ts
CHANGED
@@ -1,51 +1,45 @@
|
|
1
|
-
export {
|
2
|
-
export { createStore, createStorePromise, type CreateStoreOptions } from './store/create-store.js'
|
3
|
-
export type { QueryDebugInfo, RefreshReason, OtelOptions } from './store/store-types.js'
|
4
|
-
// We're re-exporting `Schema` from `effect` for convenience
|
5
|
-
export { Schema } from '@livestore/utils/effect'
|
6
|
-
|
7
|
-
export {
|
8
|
-
type LiveStoreContext,
|
9
|
-
type LiveStoreContextRunning,
|
10
|
-
type ShutdownDeferred,
|
11
|
-
makeShutdownDeferred,
|
12
|
-
} from './store/store-types.js'
|
13
|
-
|
14
|
-
export { SqliteDbWrapper, emptyDebugInfo } from './SqliteDbWrapper.js'
|
15
|
-
|
16
|
-
export {
|
17
|
-
queryDb,
|
18
|
-
computed,
|
19
|
-
signal,
|
20
|
-
type LiveQuery,
|
21
|
-
type LiveQueryDef,
|
22
|
-
type Signal,
|
23
|
-
type SignalDef,
|
24
|
-
type RcRef,
|
25
|
-
} from './live-queries/mod.js'
|
26
|
-
|
27
|
-
export * from '@livestore/common/schema'
|
1
|
+
export type { Adapter, ClientSession, PreparedStatement } from '@livestore/common'
|
28
2
|
export {
|
29
|
-
|
30
|
-
SessionIdSymbol,
|
3
|
+
type Bindable,
|
31
4
|
type BootStatus,
|
32
|
-
type SqliteDb,
|
33
5
|
type DebugInfo,
|
6
|
+
IntentionalShutdownCause,
|
34
7
|
type MutableDebugInfo,
|
35
|
-
prepareBindValues,
|
36
|
-
type Bindable,
|
37
8
|
type PreparedBindValues,
|
38
|
-
|
9
|
+
prepareBindValues,
|
10
|
+
provideOtel,
|
39
11
|
type QueryBuilder,
|
12
|
+
type QueryBuilderAst,
|
40
13
|
type RowQuery,
|
14
|
+
SessionIdSymbol,
|
15
|
+
type SqliteDb,
|
41
16
|
StoreInterrupted,
|
42
|
-
|
43
|
-
provideOtel,
|
17
|
+
sql,
|
44
18
|
} from '@livestore/common'
|
45
|
-
|
19
|
+
export * from '@livestore/common/schema'
|
46
20
|
export { deepEqual } from '@livestore/utils'
|
21
|
+
// We're re-exporting `Schema` from `effect` for convenience
|
22
|
+
export { Schema } from '@livestore/utils/effect'
|
47
23
|
export { nanoid } from '@livestore/utils/nanoid'
|
48
24
|
|
49
|
-
export
|
50
|
-
|
51
|
-
|
25
|
+
export {
|
26
|
+
computed,
|
27
|
+
type LiveQuery,
|
28
|
+
type LiveQueryDef,
|
29
|
+
queryDb,
|
30
|
+
type RcRef,
|
31
|
+
type Signal,
|
32
|
+
type SignalDef,
|
33
|
+
signal,
|
34
|
+
} from './live-queries/mod.ts'
|
35
|
+
export { emptyDebugInfo, SqliteDbWrapper } from './SqliteDbWrapper.ts'
|
36
|
+
export { type CreateStoreOptions, createStore, createStorePromise } from './store/create-store.ts'
|
37
|
+
export { Store } from './store/store.ts'
|
38
|
+
export type { OtelOptions, QueryDebugInfo, RefreshReason } from './store/store-types.ts'
|
39
|
+
export {
|
40
|
+
type LiveStoreContext,
|
41
|
+
type LiveStoreContextRunning,
|
42
|
+
makeShutdownDeferred,
|
43
|
+
type ShutdownDeferred,
|
44
|
+
} from './store/store-types.ts'
|
45
|
+
export * from './utils/stack-info.ts'
|