@livestore/react 0.3.0 → 0.3.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.
@@ -58,34 +58,29 @@ export declare const events: {
58
58
  }>;
59
59
  };
60
60
  export declare const tables: {
61
- todos: State.SQLite.TableDef<{
62
- name: "todos";
63
- columns: {
64
- readonly id: {
65
- columnType: "text";
66
- schema: Schema.Schema<string, string, never>;
67
- default: import("effect/Option").None<never>;
68
- nullable: false;
69
- primaryKey: true;
70
- };
71
- readonly text: {
72
- columnType: "text";
73
- schema: Schema.Schema<string, string, never>;
74
- default: import("effect/Option").Some<"">;
75
- nullable: false;
76
- primaryKey: false;
77
- };
78
- readonly completed: {
79
- columnType: "integer";
80
- schema: Schema.Schema<boolean, number, never>;
81
- default: import("effect/Option").Some<false>;
82
- nullable: false;
83
- primaryKey: false;
84
- };
61
+ todos: State.SQLite.TableDef<State.SQLite.SqliteTableDefForInput<"todos", {
62
+ readonly id: {
63
+ columnType: "text";
64
+ schema: Schema.Schema<string, string, never>;
65
+ default: import("effect/Option").None<never>;
66
+ nullable: false;
67
+ primaryKey: true;
85
68
  };
86
- indexes?: ReadonlyArray<import("@livestore/common/dist/schema/state/sqlite/db-schema/dsl/mod.js").Index>;
87
- ast: import("@livestore/common/dist/schema/state/sqlite/db-schema/ast/sqlite.js").Table;
88
- }, {
69
+ readonly text: {
70
+ columnType: "text";
71
+ schema: Schema.Schema<string, string, never>;
72
+ default: import("effect/Option").Some<"">;
73
+ nullable: false;
74
+ primaryKey: false;
75
+ };
76
+ readonly completed: {
77
+ columnType: "integer";
78
+ schema: Schema.Schema<boolean, number, never>;
79
+ default: import("effect/Option").Some<false>;
80
+ nullable: false;
81
+ primaryKey: false;
82
+ };
83
+ }>, {
89
84
  isClientDocumentTable: false;
90
85
  requiredInsertColumnNames: "id";
91
86
  }, Schema.Schema<{
@@ -97,34 +92,29 @@ export declare const tables: {
97
92
  readonly text: string;
98
93
  readonly completed: number;
99
94
  }, never>>;
100
- app: State.SQLite.TableDef<{
101
- name: "app";
102
- columns: {
103
- readonly id: {
104
- columnType: "text";
105
- schema: Schema.Schema<string, string, never>;
106
- default: import("effect/Option").Some<"static">;
107
- nullable: false;
108
- primaryKey: true;
109
- };
110
- readonly newTodoText: {
111
- columnType: "text";
112
- schema: Schema.Schema<string | null, string | null, never>;
113
- default: import("effect/Option").Some<"">;
114
- nullable: true;
115
- primaryKey: false;
116
- };
117
- readonly filter: {
118
- columnType: "text";
119
- schema: Schema.Schema<string, string, never>;
120
- default: import("effect/Option").Some<"all">;
121
- nullable: false;
122
- primaryKey: false;
123
- };
95
+ app: State.SQLite.TableDef<State.SQLite.SqliteTableDefForInput<"app", {
96
+ readonly id: {
97
+ columnType: "text";
98
+ schema: Schema.Schema<string, string, never>;
99
+ default: import("effect/Option").Some<"static">;
100
+ nullable: false;
101
+ primaryKey: true;
124
102
  };
125
- indexes?: ReadonlyArray<import("@livestore/common/dist/schema/state/sqlite/db-schema/dsl/mod.js").Index>;
126
- ast: import("@livestore/common/dist/schema/state/sqlite/db-schema/ast/sqlite.js").Table;
127
- }, {
103
+ readonly newTodoText: {
104
+ columnType: "text";
105
+ schema: Schema.Schema<string | null, string | null, never>;
106
+ default: import("effect/Option").Some<"">;
107
+ nullable: true;
108
+ primaryKey: false;
109
+ };
110
+ readonly filter: {
111
+ columnType: "text";
112
+ schema: Schema.Schema<string, string, never>;
113
+ default: import("effect/Option").Some<"all">;
114
+ nullable: false;
115
+ primaryKey: false;
116
+ };
117
+ }>, {
128
118
  isClientDocumentTable: false;
129
119
  requiredInsertColumnNames: never;
130
120
  }, Schema.Schema<{
@@ -1 +1 @@
1
- {"version":3,"file":"fixture.d.ts","sourceRoot":"","sources":["../../src/__tests__/fixture.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAsB,KAAK,EAAE,MAAM,0BAA0B,CAAA;AACpE,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAA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MAAM,EAAE,MAAM,yBAAyB,CAAA;AACxD,OAAO,KAAK,KAAK,IAAI,MAAM,oBAAoB,CAAA;AAG/C,OAAO,KAAK,cAAc,MAAM,WAAW,CAAA;AAE3C,MAAM,MAAM,IAAI,GAAG;IACjB,EAAE,EAAE,MAAM,CAAA;IACV,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,EAAE,OAAO,CAAA;CACnB,CAAA;AAED,MAAM,MAAM,MAAM,GAAG,KAAK,GAAG,QAAQ,GAAG,WAAW,CAAA;AAEnD,MAAM,MAAM,QAAQ,GAAG;IACrB,WAAW,EAAE,MAAM,CAAA;IACnB,MAAM,EAAE,MAAM,CAAA;CACf,CAAA;AAwCD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAelB,CAAA;AAOD,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAA4C,CAAA;AAG/D,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAgC,CAAA;AAEnD,eAAO,MAAM,gBAAgB,GAAI,2CAI9B;IACD,UAAU,CAAC,EAAE,IAAI,CAAC,MAAM,CAAA;IACxB,WAAW,CAAC,EAAE,IAAI,CAAC,OAAO,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;CAChB;4BAkC6B,GAAG;;;;;;6EAWgC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@livestore/react",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "sideEffects": false,
6
6
  "exports": {
@@ -23,9 +23,9 @@
23
23
  },
24
24
  "dependencies": {
25
25
  "@opentelemetry/api": "1.9.0",
26
- "@livestore/common": "0.3.0",
27
- "@livestore/utils": "0.3.0",
28
- "@livestore/livestore": "0.3.0"
26
+ "@livestore/livestore": "0.3.1",
27
+ "@livestore/common": "0.3.1",
28
+ "@livestore/utils": "0.3.1"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@opentelemetry/sdk-trace-base": "^2.0.0",
@@ -40,14 +40,15 @@
40
40
  "typescript": "^5.8.3",
41
41
  "vite": "^6.3.4",
42
42
  "vitest": "^3.1.2",
43
- "@livestore/adapter-web": "0.3.0",
44
- "@livestore/utils-dev": "0.3.0"
43
+ "@livestore/adapter-web": "0.3.1",
44
+ "@livestore/utils-dev": "0.3.1"
45
45
  },
46
46
  "files": [
47
47
  "package.json",
48
48
  "src",
49
49
  "dist"
50
50
  ],
51
+ "license": "Apache-2.0",
51
52
  "peerDependencies": {
52
53
  "react": "~19.0.0"
53
54
  },
@@ -37,7 +37,7 @@ exports[`useClientDocument > otel > should update the data based on component ke
37
37
  {
38
38
  "_name": "client-session-sync-processor:pull",
39
39
  "attributes": {
40
- "code.stacktrace": "at /Users/schickling/Code/overtone/submodules/livestore/packages/@livestore/common/src/sync/ClientSessionSyncProcessor.ts:281:14",
40
+ "code.stacktrace": "at /Users/schickling/Code/overtone/submodules/livestore/packages/@livestore/common/src/sync/ClientSessionSyncProcessor.ts:297:14",
41
41
  "span.label": "⚠︎ Interrupted",
42
42
  "status.interrupted": true,
43
43
  },
@@ -263,7 +263,7 @@ exports[`useClientDocument > otel > should update the data based on component ke
263
263
  {
264
264
  "_name": "client-session-sync-processor:pull",
265
265
  "attributes": {
266
- "code.stacktrace": "at /Users/schickling/Code/overtone/submodules/livestore/packages/@livestore/common/src/sync/ClientSessionSyncProcessor.ts:281:14",
266
+ "code.stacktrace": "at /Users/schickling/Code/overtone/submodules/livestore/packages/@livestore/common/src/sync/ClientSessionSyncProcessor.ts:297:14",
267
267
  "span.label": "⚠︎ Interrupted",
268
268
  "status.interrupted": true,
269
269
  },