mysql2 3.2.1 → 3.2.2

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/index.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import {
2
2
  Connection as PromiseConnection,
3
- Pool as PromisePool,
4
3
  PoolConnection as PromisePoolConnection,
5
4
  } from './promise';
6
5
 
@@ -71,7 +70,6 @@ export interface Connection extends mysql.Connection {
71
70
  ) => any
72
71
  ): mysql.Query;
73
72
  ping(callback?: (err: mysql.QueryError | null) => any): void;
74
- promise(promiseImpl?: PromiseConstructor): PromiseConnection;
75
73
  unprepare(sql: string): mysql.PrepareStatementInfo;
76
74
  prepare(sql: string, callback?: (err: mysql.QueryError | null, statement: mysql.PrepareStatementInfo) => any): mysql.Prepare;
77
75
  serverHandshake(args: any): any;
@@ -157,7 +155,6 @@ export interface Pool extends mysql.Connection {
157
155
  on(event: 'acquire', listener: (connection: PoolConnection) => any): this;
158
156
  on(event: 'release', listener: (connection: PoolConnection) => any): this;
159
157
  on(event: 'enqueue', listener: () => any): this;
160
- promise(promiseImpl?: PromiseConstructor): PromisePool;
161
158
  unprepare(sql: string): mysql.PrepareStatementInfo;
162
159
  prepare(sql: string, callback?: (err: mysql.QueryError | null, statement: mysql.PrepareStatementInfo) => any): mysql.Prepare;
163
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mysql2",
3
- "version": "3.2.1",
3
+ "version": "3.2.2",
4
4
  "description": "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
5
5
  "main": "index.js",
6
6
  "directories": {
@@ -12,6 +12,7 @@ import BasePrepare = require('./lib/protocol/sequences/Prepare');
12
12
  import {QueryOptions, StreamOptions, QueryError} from './lib/protocol/sequences/Query';
13
13
  import {PrepareStatementInfo} from './lib/protocol/sequences/Prepare';
14
14
  import Server = require('./lib/Server');
15
+ import { Pool as PromisePool } from '../../promise';
15
16
 
16
17
  export function createConnection(connectionUri: string): Connection;
17
18
  export function createConnection(config: BaseConnection.ConnectionOptions): Connection;
@@ -39,7 +40,9 @@ export {
39
40
  export * from './lib/protocol/packets/index';
40
41
 
41
42
  // Expose class interfaces
42
- export interface Connection extends BaseConnection {}
43
+ export interface Connection extends BaseConnection {
44
+ promise(promiseImpl?: PromiseConstructor): PromisePool;
45
+ }
43
46
  export interface PoolConnection extends BasePoolConnection {}
44
47
  export interface Pool extends BasePool {}
45
48
  export interface PoolCluster extends BasePoolCluster {}
@@ -290,8 +290,6 @@ declare class Connection extends EventEmitter {
290
290
  unprepare(sql: string): any;
291
291
 
292
292
  serverHandshake(args: any): any;
293
-
294
- promise(): Promise<Connection>;
295
293
  }
296
294
 
297
295
  export = Connection;