details:   https://hg.nginx.org/njs/rev/3d8f6b9548c0
branches:  
changeset: 1546:3d8f6b9548c0
user:      Jakub Jirutka <[email protected]>
date:      Mon Oct 19 21:42:01 2020 +0200
description:
Types: mark String.bytesFrom() in as deprecated.

diffstat:

 src/ts/njs_core.d.ts |  4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diffs (18 lines):

diff -r 11da5c960017 -r 3d8f6b9548c0 src/ts/njs_core.d.ts
--- a/src/ts/njs_core.d.ts      Fri Oct 09 17:28:58 2020 +0200
+++ b/src/ts/njs_core.d.ts      Mon Oct 19 21:42:01 2020 +0200
@@ -3,10 +3,14 @@ type BufferEncoding = "utf8" | "hex" | "
 interface StringConstructor {
     /**
      * Creates a byte string from an encoded string.
+     *
+     * @deprecated will be removed in the future.
      */
     bytesFrom(bytes: string, encoding: Exclude<BufferEncoding, "utf8">): 
NjsByteString;
     /**
      * Creates a byte string from an array that contains octets.
+     *
+     * @deprecated will be removed in the future.
      */
     bytesFrom(bytes: Array<number>): NjsByteString;
 }
_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to