From 39a910483d5cb67a6f2aabed7065cf824121a821 Mon Sep 17 00:00:00 2001 From: DidaS Date: Fri, 25 Feb 2022 22:23:42 +0000 Subject: [PATCH 1/2] Targeting ES5 or lower will error during compilation Discussed in #2006 targeting a version of ecmascript older than 2015 will cause you errors. Not a breaking change but as the user suggested im adding it to the migration guide --- docs/v3-to-v4.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/v3-to-v4.md b/docs/v3-to-v4.md index 0bf0d269b90..0db56d23bf4 100644 --- a/docs/v3-to-v4.md +++ b/docs/v3-to-v4.md @@ -4,6 +4,7 @@ Version 4 of Node Redis is a major refactor. While we have tried to maintain bac ## All of the Breaking Changes +If using typescript set the target to ES2015 (ES6) or higher, ES5 and bellow are not supported due to the usage of private class functions. See the [Change Log](../CHANGELOG.md). ### Promises From db851327378136d8b58e2d6696b07496a218be7f Mon Sep 17 00:00:00 2001 From: DidaS Date: Sun, 27 Feb 2022 22:03:23 +0000 Subject: [PATCH 2/2] Update docs/v3-to-v4.md Co-authored-by: Precious --- docs/v3-to-v4.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/v3-to-v4.md b/docs/v3-to-v4.md index 0db56d23bf4..577c04835d1 100644 --- a/docs/v3-to-v4.md +++ b/docs/v3-to-v4.md @@ -4,7 +4,7 @@ Version 4 of Node Redis is a major refactor. While we have tried to maintain bac ## All of the Breaking Changes -If using typescript set the target to ES2015 (ES6) or higher, ES5 and bellow are not supported due to the usage of private class functions. +If using Typescript set the target to ES2015 (ES6) or higher, ES5 and below are not supported due to the usage of `private` class functions. See the [Change Log](../CHANGELOG.md). ### Promises