@syncular/dialect-bun-sqlite 0.0.2-128 → 0.0.2-133

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @syncular/dialect-bun-sqlite
2
2
 
3
- Bun SQLite Kysely dialect for Syncular clients and scripts. Includes JSON serialization support via `SerializePlugin`.
3
+ Bun SQLite Kysely dialect for Syncular clients and scripts.
4
4
 
5
5
  ## Install
6
6
 
package/dist/index.d.ts CHANGED
@@ -1,10 +1,8 @@
1
1
  /**
2
2
  * @syncular/dialect-bun-sqlite - Bun SQLite dialect for sync
3
3
  *
4
- * Provides a Kysely dialect for bun:sqlite with SerializePlugin
5
- * for automatic JSON serialization/deserialization.
4
+ * Provides a Kysely dialect for bun:sqlite.
6
5
  */
7
- import { SerializePlugin } from '@syncular/core';
8
6
  import { Kysely } from 'kysely';
9
7
  import { BunSqliteDialect } from 'kysely-bun-sqlite';
10
8
  export interface BunSqliteOptions {
@@ -12,10 +10,7 @@ export interface BunSqliteOptions {
12
10
  path: string;
13
11
  }
14
12
  /**
15
- * Create a Kysely instance with Bun SQLite dialect and SerializePlugin.
16
- *
17
- * The SerializePlugin automatically handles JSON serialization/deserialization
18
- * for object values, so you can work with JS objects directly.
13
+ * Create a Kysely instance with Bun SQLite dialect.
19
14
  *
20
15
  * @example
21
16
  * const db = createBunSqliteDb<MyDb>({ path: ':memory:' });
@@ -24,15 +19,11 @@ export interface BunSqliteOptions {
24
19
  */
25
20
  export declare function createBunSqliteDb<T>(options: BunSqliteOptions): Kysely<T>;
26
21
  /**
27
- * Create the Bun SQLite dialect directly (without SerializePlugin).
22
+ * Create the Bun SQLite dialect directly.
28
23
  *
29
24
  * @example
30
25
  * const dialect = createBunSqliteDialect({ path: ':memory:' });
31
- * const db = new Kysely<MyDb>({ dialect, plugins: [new SerializePlugin()] });
26
+ * const db = new Kysely<MyDb>({ dialect });
32
27
  */
33
28
  export declare function createBunSqliteDialect(options: BunSqliteOptions): BunSqliteDialect;
34
- /**
35
- * Create a SerializePlugin instance.
36
- */
37
- export declare function createSerializePlugin(): SerializePlugin;
38
29
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC,CAOzE;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,GACxB,gBAAgB,CAGlB;AAED;;GAEG;AACH,wBAAgB,qBAAqB,IAAI,eAAe,CAEvD"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAChC,OAAO,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAErD,MAAM,WAAW,gBAAgB;IAC/B,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,CAAC,EAAE,OAAO,EAAE,gBAAgB,GAAG,MAAM,CAAC,CAAC,CAAC,CAMzE;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,gBAAgB,GACxB,gBAAgB,CAGlB"}
package/dist/index.js CHANGED
@@ -1,18 +1,13 @@
1
1
  /**
2
2
  * @syncular/dialect-bun-sqlite - Bun SQLite dialect for sync
3
3
  *
4
- * Provides a Kysely dialect for bun:sqlite with SerializePlugin
5
- * for automatic JSON serialization/deserialization.
4
+ * Provides a Kysely dialect for bun:sqlite.
6
5
  */
7
6
  import { Database } from 'bun:sqlite';
8
- import { SerializePlugin } from '@syncular/core';
9
7
  import { Kysely } from 'kysely';
10
8
  import { BunSqliteDialect } from 'kysely-bun-sqlite';
11
9
  /**
12
- * Create a Kysely instance with Bun SQLite dialect and SerializePlugin.
13
- *
14
- * The SerializePlugin automatically handles JSON serialization/deserialization
15
- * for object values, so you can work with JS objects directly.
10
+ * Create a Kysely instance with Bun SQLite dialect.
16
11
  *
17
12
  * @example
18
13
  * const db = createBunSqliteDb<MyDb>({ path: ':memory:' });
@@ -23,24 +18,17 @@ export function createBunSqliteDb(options) {
23
18
  const database = new Database(options.path);
24
19
  return new Kysely({
25
20
  dialect: new BunSqliteDialect({ database }),
26
- plugins: [new SerializePlugin()],
27
21
  });
28
22
  }
29
23
  /**
30
- * Create the Bun SQLite dialect directly (without SerializePlugin).
24
+ * Create the Bun SQLite dialect directly.
31
25
  *
32
26
  * @example
33
27
  * const dialect = createBunSqliteDialect({ path: ':memory:' });
34
- * const db = new Kysely<MyDb>({ dialect, plugins: [new SerializePlugin()] });
28
+ * const db = new Kysely<MyDb>({ dialect });
35
29
  */
36
30
  export function createBunSqliteDialect(options) {
37
31
  const database = new Database(options.path);
38
32
  return new BunSqliteDialect({ database });
39
33
  }
40
- /**
41
- * Create a SerializePlugin instance.
42
- */
43
- export function createSerializePlugin() {
44
- return new SerializePlugin();
45
- }
46
34
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,eAAe,EAAE,MAAM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,CACJ;AAED;;;;;;GAMG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAAyB,EACP;IAClB,MAAM,QAAQ,GAAG,IAAI,QAAQ,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC5C,OAAO,IAAI,gBAAgB,CAAC,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CAC3C"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@syncular/dialect-bun-sqlite",
3
- "version": "0.0.2-128",
3
+ "version": "0.0.2-133",
4
4
  "description": "Bun SQLite dialect for the Syncular client",
5
5
  "license": "MIT",
6
6
  "author": "Benjamin Kniffler",
@@ -42,7 +42,6 @@
42
42
  "release": "bunx syncular-publish"
43
43
  },
44
44
  "dependencies": {
45
- "@syncular/core": "0.0.2-128",
46
45
  "kysely-bun-sqlite": "^0.4.0"
47
46
  },
48
47
  "peerDependencies": {
package/src/index.ts CHANGED
@@ -1,12 +1,10 @@
1
1
  /**
2
2
  * @syncular/dialect-bun-sqlite - Bun SQLite dialect for sync
3
3
  *
4
- * Provides a Kysely dialect for bun:sqlite with SerializePlugin
5
- * for automatic JSON serialization/deserialization.
4
+ * Provides a Kysely dialect for bun:sqlite.
6
5
  */
7
6
 
8
7
  import { Database } from 'bun:sqlite';
9
- import { SerializePlugin } from '@syncular/core';
10
8
  import { Kysely } from 'kysely';
11
9
  import { BunSqliteDialect } from 'kysely-bun-sqlite';
12
10
 
@@ -16,10 +14,7 @@ export interface BunSqliteOptions {
16
14
  }
17
15
 
18
16
  /**
19
- * Create a Kysely instance with Bun SQLite dialect and SerializePlugin.
20
- *
21
- * The SerializePlugin automatically handles JSON serialization/deserialization
22
- * for object values, so you can work with JS objects directly.
17
+ * Create a Kysely instance with Bun SQLite dialect.
23
18
  *
24
19
  * @example
25
20
  * const db = createBunSqliteDb<MyDb>({ path: ':memory:' });
@@ -31,16 +26,15 @@ export function createBunSqliteDb<T>(options: BunSqliteOptions): Kysely<T> {
31
26
 
32
27
  return new Kysely<T>({
33
28
  dialect: new BunSqliteDialect({ database }),
34
- plugins: [new SerializePlugin()],
35
29
  });
36
30
  }
37
31
 
38
32
  /**
39
- * Create the Bun SQLite dialect directly (without SerializePlugin).
33
+ * Create the Bun SQLite dialect directly.
40
34
  *
41
35
  * @example
42
36
  * const dialect = createBunSqliteDialect({ path: ':memory:' });
43
- * const db = new Kysely<MyDb>({ dialect, plugins: [new SerializePlugin()] });
37
+ * const db = new Kysely<MyDb>({ dialect });
44
38
  */
45
39
  export function createBunSqliteDialect(
46
40
  options: BunSqliteOptions
@@ -48,10 +42,3 @@ export function createBunSqliteDialect(
48
42
  const database = new Database(options.path);
49
43
  return new BunSqliteDialect({ database });
50
44
  }
51
-
52
- /**
53
- * Create a SerializePlugin instance.
54
- */
55
- export function createSerializePlugin(): SerializePlugin {
56
- return new SerializePlugin();
57
- }