From 3c0b45a4c93e9cad65222bc4901074080ec7c6d7 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Tue, 10 Dec 2024 11:51:30 +0100 Subject: [PATCH] Add Destructuring feature (#2386) * Add Destructuring feature * Update features/destructuring.yml Co-authored-by: James Stuckey Weber --------- Co-authored-by: James Stuckey Weber --- 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..1a488fa72f1 --- /dev/null +++ b/features/destructuring.yml @@ -0,0 +1,12 @@ +name: Destructuring +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 +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