From 9a820ad1015f4ad50bde43413f6df2cbb4eeb8ad Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 3 Dec 2024 15:57:42 +0100 Subject: [PATCH 1/2] Add Destructuring feature --- features/destructuring.yml | 12 ++++++ features/destructuring.yml.dist | 68 +++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) create mode 100644 features/destructuring.yml create mode 100644 features/destructuring.yml.dist diff --git a/features/destructuring.yml b/features/destructuring.yml new file mode 100644 index 00000000000..2035b7a20e8 --- /dev/null +++ b/features/destructuring.yml @@ -0,0 +1,12 @@ +name: Destructuring +description: The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. +spec: + - https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-destructuring-assignment + - https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-destructuring-binding-patterns +snapshot: ecmascript-2015 +group: javascript +compat_features: + - javascript.operators.destructuring + - javascript.operators.destructuring.computed_property_names + - javascript.operators.destructuring.rest_in_arrays + - javascript.operators.destructuring.rest_in_objects diff --git a/features/destructuring.yml.dist b/features/destructuring.yml.dist new file mode 100644 index 00000000000..9c311be85a0 --- /dev/null +++ b/features/destructuring.yml.dist @@ -0,0 +1,68 @@ +# Generated from: destructuring.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: high + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 + support: + chrome: "60" + chrome_android: "60" + edge: "79" + firefox: "55" + firefox_android: "55" + safari: "11.1" + safari_ios: "11.3" +compat_features: + # baseline: high + # baseline_low_date: 2016-08-02 + # baseline_high_date: 2019-02-02 + # support: + # chrome: "49" + # chrome_android: "49" + # edge: "14" + # firefox: "41" + # firefox_android: "41" + # safari: "8" + # safari_ios: "8" + - javascript.operators.destructuring + + # baseline: high + # baseline_low_date: 2016-09-20 + # baseline_high_date: 2019-03-20 + # support: + # chrome: "49" + # chrome_android: "49" + # edge: "14" + # firefox: "41" + # firefox_android: "41" + # safari: "10" + # safari_ios: "10" + - javascript.operators.destructuring.computed_property_names + + # baseline: high + # baseline_low_date: 2017-10-17 + # baseline_high_date: 2020-04-17 + # support: + # chrome: "49" + # chrome_android: "49" + # edge: "16" + # firefox: "41" + # firefox_android: "41" + # safari: "9.1" + # safari_ios: "9.3" + - javascript.operators.destructuring.rest_in_arrays + + # ⬇️ Same status as overall feature ⬇️ + # baseline: high + # baseline_low_date: 2020-01-15 + # baseline_high_date: 2022-07-15 + # support: + # chrome: "60" + # chrome_android: "60" + # edge: "79" + # firefox: "55" + # firefox_android: "55" + # safari: "11.1" + # safari_ios: "11.3" + - javascript.operators.destructuring.rest_in_objects From 248543b93f42e8fcac1ad6a57148f95a5e4c3712 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 3 Dec 2024 17:32:21 +0100 Subject: [PATCH 2/2] Update features/destructuring.yml Co-authored-by: James Stuckey Weber --- features/destructuring.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/destructuring.yml b/features/destructuring.yml index 2035b7a20e8..1a488fa72f1 100644 --- a/features/destructuring.yml +++ b/features/destructuring.yml @@ -1,5 +1,5 @@ name: Destructuring -description: The destructuring assignment syntax is a JavaScript expression that makes it possible to unpack values from arrays, or properties from objects, into distinct variables. +description: The destructuring assignment syntax is a JavaScript expression that unpacks values from arrays, or properties from objects, into distinct variables. spec: - https://tc39.es/ecma262/multipage/ecmascript-language-expressions.html#sec-destructuring-assignment - https://tc39.es/ecma262/multipage/ecmascript-language-statements-and-declarations.html#sec-destructuring-binding-patterns