bun-types-no-globals 1.2.22-canary.20250908T140620 → 1.2.22-canary.20250909T140611

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.
Files changed (2) hide show
  1. package/lib/sql.d.ts +23 -22
  2. package/package.json +1 -1
package/lib/sql.d.ts CHANGED
@@ -41,22 +41,22 @@ declare module "bun" {
41
41
 
42
42
  class PostgresError extends SQLError {
43
43
  public readonly code: string;
44
- public readonly errno: string | undefined;
45
- public readonly detail: string | undefined;
46
- public readonly hint: string | undefined;
47
- public readonly severity: string | undefined;
48
- public readonly position: string | undefined;
49
- public readonly internalPosition: string | undefined;
50
- public readonly internalQuery: string | undefined;
51
- public readonly where: string | undefined;
52
- public readonly schema: string | undefined;
53
- public readonly table: string | undefined;
54
- public readonly column: string | undefined;
55
- public readonly dataType: string | undefined;
56
- public readonly constraint: string | undefined;
57
- public readonly file: string | undefined;
58
- public readonly line: string | undefined;
59
- public readonly routine: string | undefined;
44
+ public readonly errno?: string | undefined;
45
+ public readonly detail?: string | undefined;
46
+ public readonly hint?: string | undefined;
47
+ public readonly severity?: string | undefined;
48
+ public readonly position?: string | undefined;
49
+ public readonly internalPosition?: string | undefined;
50
+ public readonly internalQuery?: string | undefined;
51
+ public readonly where?: string | undefined;
52
+ public readonly schema?: string | undefined;
53
+ public readonly table?: string | undefined;
54
+ public readonly column?: string | undefined;
55
+ public readonly dataType?: string | undefined;
56
+ public readonly constraint?: string | undefined;
57
+ public readonly file?: string | undefined;
58
+ public readonly line?: string | undefined;
59
+ public readonly routine?: string | undefined;
60
60
 
61
61
  constructor(
62
62
  message: string,
@@ -84,8 +84,8 @@ declare module "bun" {
84
84
 
85
85
  class MySQLError extends SQLError {
86
86
  public readonly code: string;
87
- public readonly errno: number | undefined;
88
- public readonly sqlState: string | undefined;
87
+ public readonly errno?: number | undefined;
88
+ public readonly sqlState?: string | undefined;
89
89
  constructor(message: string, options: { code: string; errno: number | undefined; sqlState: string | undefined });
90
90
  }
91
91
 
@@ -143,13 +143,13 @@ declare module "bun" {
143
143
 
144
144
  /**
145
145
  * Database server hostname
146
+ * @deprecated Prefer {@link hostname}
146
147
  * @default "localhost"
147
148
  */
148
149
  host?: string | undefined;
149
150
 
150
151
  /**
151
- * Database server hostname (alias for host)
152
- * @deprecated Prefer {@link host}
152
+ * Database server hostname
153
153
  * @default "localhost"
154
154
  */
155
155
  hostname?: string | undefined;
@@ -264,13 +264,14 @@ declare module "bun" {
264
264
  * Whether to use TLS/SSL for the connection
265
265
  * @default false
266
266
  */
267
- tls?: TLSOptions | boolean | undefined;
267
+ tls?: Bun.BunFile | TLSOptions | boolean | undefined;
268
268
 
269
269
  /**
270
270
  * Whether to use TLS/SSL for the connection (alias for tls)
271
+ * @deprecated Prefer {@link tls}
271
272
  * @default false
272
273
  */
273
- ssl?: TLSOptions | boolean | undefined;
274
+ ssl?: Bun.BunFile | TLSOptions | boolean | undefined;
274
275
 
275
276
  /**
276
277
  * Unix domain socket path for connection
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bun-types-no-globals",
3
- "version": "1.2.22-canary.20250908T140620",
3
+ "version": "1.2.22-canary.20250909T140611",
4
4
  "main": "./generator/index.ts",
5
5
  "types": "./lib/index.d.ts",
6
6
  "description": "TypeScript type definitions for Bun without global types pollution",