From 07c79bfabf8288523fd33b6ed34f6e9bf1638649 Mon Sep 17 00:00:00 2001 From: dietrich ayala Date: Tue, 3 Dec 2024 15:34:43 +0000 Subject: [PATCH 1/2] Add Text Encoding API --- .../spec/encoding.yml => text-encoding.yml} | 11 +++++++--- ...coding.yml.dist => text-encoding.yml.dist} | 20 ++++++++++--------- 2 files changed, 19 insertions(+), 12 deletions(-) rename features/{draft/spec/encoding.yml => text-encoding.yml} (69%) rename features/{draft/spec/encoding.yml.dist => text-encoding.yml.dist} (89%) diff --git a/features/draft/spec/encoding.yml b/features/text-encoding.yml similarity index 69% rename from features/draft/spec/encoding.yml rename to features/text-encoding.yml index 7c527da15de..1727fc10b84 100644 --- a/features/draft/spec/encoding.yml +++ b/features/text-encoding.yml @@ -1,7 +1,12 @@ -draft_date: 2024-10-21 -name: Encoding Standard -description: TODO +name: Text encoding and decoding +description: " The `TextEncoder` API generates a byte stream with UTF-8 encoding from a stream of code points, and `TextDecoder` does the reverse." spec: https://encoding.spec.whatwg.org/ +caniuse: textencoder +# Status generated to match Caniuse. +status: + compute_from: + - api.TextDecoder + - api.TextEncoder compat_features: - api.TextDecoder - api.TextDecoder.TextDecoder diff --git a/features/draft/spec/encoding.yml.dist b/features/text-encoding.yml.dist similarity index 89% rename from features/draft/spec/encoding.yml.dist rename to features/text-encoding.yml.dist index 2117168e0b6..85e6f6296d5 100644 --- a/features/draft/spec/encoding.yml.dist +++ b/features/text-encoding.yml.dist @@ -1,17 +1,18 @@ -# Generated from: encoding.yml +# Generated from: text-encoding.yml # Do not edit this file by hand. Edit the source file instead! status: - baseline: low - baseline_low_date: 2022-09-20 + baseline: high + baseline_low_date: 2020-01-15 + baseline_high_date: 2022-07-15 support: - chrome: "74" - chrome_android: "74" + chrome: "38" + chrome_android: "38" edge: "79" - firefox: "105" - firefox_android: "105" - safari: "14.1" - safari_ios: "14.5" + firefox: "19" + firefox_android: "19" + safari: "10.1" + safari_ios: "10.3" compat_features: # baseline: high # baseline_low_date: 2020-01-15 @@ -29,6 +30,7 @@ compat_features: - api.TextEncoder.encode - api.TextEncoder.encoding + # ⬇️ Same status as overall feature ⬇️ # baseline: high # baseline_low_date: 2020-01-15 # baseline_high_date: 2022-07-15 From c31183598e89d7848a8a1fee1317f1f9af488404 Mon Sep 17 00:00:00 2001 From: Dietrich Ayala <50103+autonome@users.noreply.github.com> Date: Thu, 5 Dec 2024 00:10:46 +0700 Subject: [PATCH 2/2] Update features/text-encoding.yml Co-authored-by: James Stuckey Weber --- features/text-encoding.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/text-encoding.yml b/features/text-encoding.yml index 1727fc10b84..8df1c78e33d 100644 --- a/features/text-encoding.yml +++ b/features/text-encoding.yml @@ -1,5 +1,5 @@ name: Text encoding and decoding -description: " The `TextEncoder` API generates a byte stream with UTF-8 encoding from a stream of code points, and `TextDecoder` does the reverse." +description: "The `TextEncoder` API transforms a stream of code points into a byte stream with UTF-8 encoding, and `TextDecoder` does the reverse." spec: https://encoding.spec.whatwg.org/ caniuse: textencoder # Status generated to match Caniuse.