@tailor-platform/create-sdk 1.0.0 → 1.1.0

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/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # @tailor-platform/create-sdk
2
2
 
3
+ ## 1.1.0
4
+
3
5
  ## 1.0.0
4
6
 
5
7
  ## 0.24.0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tailor-platform/create-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "A CLI tool to quickly create a new Tailor Platform SDK project",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -12,7 +12,7 @@
12
12
  },
13
13
  "devDependencies": {
14
14
  "@eslint/js": "9.39.2",
15
- "@tailor-platform/sdk": "1.0.0",
15
+ "@tailor-platform/sdk": "1.1.0",
16
16
  "@types/node": "24.10.4",
17
17
  "eslint": "9.39.2",
18
18
  "prettier": "3.7.4",
@@ -18,7 +18,7 @@
18
18
  "devDependencies": {
19
19
  "@eslint/js": "9.39.2",
20
20
  "@tailor-platform/function-types": "0.8.0",
21
- "@tailor-platform/sdk": "1.0.0",
21
+ "@tailor-platform/sdk": "1.1.0",
22
22
  "@types/node": "24.10.4",
23
23
  "eslint": "9.39.2",
24
24
  "prettier": "3.7.4",
@@ -1,4 +1,4 @@
1
- import { type ColumnType, Kysely } from "kysely";
1
+ import { type ColumnType, Kysely, type KyselyConfig } from "kysely";
2
2
  import { TailordbDialect } from "@tailor-platform/function-kysely-tailordb";
3
3
 
4
4
  type Timestamp = ColumnType<Date, Date | string, Date | string>;
@@ -83,9 +83,15 @@ export interface Namespace {
83
83
  }
84
84
  }
85
85
 
86
- export function getDB<const N extends keyof Namespace>(namespace: N): Kysely<Namespace[N]> {
86
+ export function getDB<const N extends keyof Namespace>(
87
+ namespace: N,
88
+ kyselyConfig?: Omit<KyselyConfig, "dialect">,
89
+ ): Kysely<Namespace[N]> {
87
90
  const client = new tailordb.Client({ namespace });
88
- return new Kysely<Namespace[N]>({ dialect: new TailordbDialect(client) });
91
+ return new Kysely<Namespace[N]>({
92
+ dialect: new TailordbDialect(client),
93
+ ...kyselyConfig,
94
+ });
89
95
  }
90
96
 
91
97
  export type DB<N extends keyof Namespace = keyof Namespace> = ReturnType<typeof getDB<N>>;
@@ -14,7 +14,7 @@
14
14
  },
15
15
  "devDependencies": {
16
16
  "@eslint/js": "9.39.2",
17
- "@tailor-platform/sdk": "1.0.0",
17
+ "@tailor-platform/sdk": "1.1.0",
18
18
  "@types/node": "24.10.4",
19
19
  "eslint": "9.39.2",
20
20
  "prettier": "3.7.4",
@@ -21,7 +21,7 @@
21
21
  "devDependencies": {
22
22
  "@eslint/js": "9.39.2",
23
23
  "@tailor-platform/function-types": "0.8.0",
24
- "@tailor-platform/sdk": "1.0.0",
24
+ "@tailor-platform/sdk": "1.1.0",
25
25
  "@types/node": "24.10.4",
26
26
  "eslint": "9.39.2",
27
27
  "graphql-request": "7.4.0",
@@ -1,4 +1,4 @@
1
- import { type ColumnType, Kysely } from "kysely";
1
+ import { type ColumnType, Kysely, type KyselyConfig } from "kysely";
2
2
  import { TailordbDialect } from "@tailor-platform/function-kysely-tailordb";
3
3
 
4
4
  type Timestamp = ColumnType<Date, Date | string, Date | string>;
@@ -19,9 +19,15 @@ export interface Namespace {
19
19
  }
20
20
  }
21
21
 
22
- export function getDB<const N extends keyof Namespace>(namespace: N): Kysely<Namespace[N]> {
22
+ export function getDB<const N extends keyof Namespace>(
23
+ namespace: N,
24
+ kyselyConfig?: Omit<KyselyConfig, "dialect">,
25
+ ): Kysely<Namespace[N]> {
23
26
  const client = new tailordb.Client({ namespace });
24
- return new Kysely<Namespace[N]>({ dialect: new TailordbDialect(client) });
27
+ return new Kysely<Namespace[N]>({
28
+ dialect: new TailordbDialect(client),
29
+ ...kyselyConfig,
30
+ });
25
31
  }
26
32
 
27
33
  export type DB<N extends keyof Namespace = keyof Namespace> = ReturnType<typeof getDB<N>>;