Welcome! Log In Create A New Profile

Advanced

[njs] Types: mark String.bytesFrom() in as deprecated.

Dmitry Volyntsev
October 20, 2020 11:52AM
details: https://hg.nginx.org/njs/rev/3d8f6b9548c0
branches:
changeset: 1546:3d8f6b9548c0
user: Jakub Jirutka <jakub@jirutka.cz>
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
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[njs] Types: mark String.bytesFrom() in as deprecated.

Dmitry Volyntsev 117 October 20, 2020 11:52AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 83
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready