From 8e728d960fbcf2a1424cfbae3e726606cc5ed4ee Mon Sep 17 00:00:00 2001 From: wellwelwel <46850407+wellwelwel@users.noreply.github.com> Date: Mon, 10 Jul 2023 03:35:05 -0300 Subject: [PATCH] chore: deprecate `OkPacket` type and `changedRows` property --- typings/mysql/lib/protocol/packets/OkPacket.d.ts | 8 ++++++++ typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts | 4 ++++ 2 files changed, 12 insertions(+) diff --git a/typings/mysql/lib/protocol/packets/OkPacket.d.ts b/typings/mysql/lib/protocol/packets/OkPacket.d.ts index fedfbc08e1..321d082892 100644 --- a/typings/mysql/lib/protocol/packets/OkPacket.d.ts +++ b/typings/mysql/lib/protocol/packets/OkPacket.d.ts @@ -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; diff --git a/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts b/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts index f995b2c7cc..00b596fec8 100644 --- a/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts +++ b/typings/mysql/lib/protocol/packets/ResultSetHeader.d.ts @@ -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; }