Skip to content

Commit

Permalink
Merge pull request #2125 from wellwelwel/deprecateds
Browse files Browse the repository at this point in the history
chore: deprecate `OkPacket` type and `changedRows` property
  • Loading branch information
wellwelwel authored Jul 10, 2023
2 parents fd44a2a + 8e728d9 commit aee1d5d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
8 changes: 8 additions & 0 deletions typings/mysql/lib/protocol/packets/OkPacket.d.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
/**
* @deprecated
* `OkPacket` is deprecated and might be removed in the future major release. Please use `ResultSetHeader` instead.
*/
declare interface OkPacket {
constructor: {
name: 'OkPacket';
};
fieldCount: number;
affectedRows: number;
/**
* @deprecated
* `changedRows` is deprecated and might be removed in the future major release. Please use `affectedRows` property instead.
*/
changedRows: number;
insertId: number;
serverStatus: number;
Expand Down
4 changes: 4 additions & 0 deletions typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ declare interface ResultSetHeader {
insertId: number;
serverStatus: number;
warningStatus: number;
/**
* @deprecated
* `changedRows` is deprecated and might be removed in the future major release. Please use `affectedRows` property instead.
*/
changedRows: number;
}

Expand Down

0 comments on commit aee1d5d

Please sign in to comment.