From fdae42d88905c3664fbf7862a08ac0ae2962954d Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Thu, 13 Mar 2025 17:26:11 +0100 Subject: [PATCH 1/5] fetchlater feature --- features/fetchlater.yml | 7 +++++++ features/fetchlater.yml.dist | 10 ++++++++++ scripts/specs.ts | 4 ++++ 3 files changed, 21 insertions(+) create mode 100644 features/fetchlater.yml create mode 100644 features/fetchlater.yml.dist diff --git a/features/fetchlater.yml b/features/fetchlater.yml new file mode 100644 index 00000000000..f3855490df1 --- /dev/null +++ b/features/fetchlater.yml @@ -0,0 +1,7 @@ +name: fetchLater +description: The `fetchLater()` method requests a deferred fetch. After this method is called, the network request is queued by the browser, and is then invoked either when the document is destroyed, or after a certain time. When the request is eventually sent, the response is ignored by the browser. +spec: https://github.com/whatwg/fetch/pull/1647 +compat_features: + - api.FetchLaterResult + - api.FetchLaterResult.activated + - api.Window.fetchLater diff --git a/features/fetchlater.yml.dist b/features/fetchlater.yml.dist new file mode 100644 index 00000000000..dbcb6b28340 --- /dev/null +++ b/features/fetchlater.yml.dist @@ -0,0 +1,10 @@ +# Generated from: fetch-later.yml +# Do not edit this file by hand. Edit the source file instead! + +status: + baseline: false + support: {} +compat_features: + - api.FetchLaterResult + - api.FetchLaterResult.activated + - api.Window.fetchLater diff --git a/scripts/specs.ts b/scripts/specs.ts index cf5b568963a..1b8f0cfab35 100644 --- a/scripts/specs.ts +++ b/scripts/specs.ts @@ -124,6 +124,10 @@ const defaultAllowlist: allowlistItem[] = [ [ "https://github.com/whatwg/dom/pull/1307", "This is only place moveBefore() is spec'd. Remove this exception when https://github.com/whatwg/dom/pull/1307 merges." + ], + [ + "https://github.com/whatwg/fetch/pull/1647", + "This is where fetchLater() is in the process of being spec'd. Once the PR merges, change the spec url in fetchlater.yml, and remove this exception." ] ]; From 67c09ea3abf33533d28d4f5a2c122cbc3d67b273 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Thu, 13 Mar 2025 17:29:25 +0100 Subject: [PATCH 2/5] re-gen dist file --- features/fetchlater.yml.dist | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/fetchlater.yml.dist b/features/fetchlater.yml.dist index dbcb6b28340..f79b3788990 100644 --- a/features/fetchlater.yml.dist +++ b/features/fetchlater.yml.dist @@ -1,4 +1,4 @@ -# Generated from: fetch-later.yml +# Generated from: fetchlater.yml # Do not edit this file by hand. Edit the source file instead! status: From 1fb82852ac0caaea9b3c9145af3f2b2050454e75 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Thu, 3 Apr 2025 11:33:00 +0200 Subject: [PATCH 3/5] re-gen dist --- features/fetchlater.yml.dist | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/features/fetchlater.yml.dist b/features/fetchlater.yml.dist index f79b3788990..b8427996123 100644 --- a/features/fetchlater.yml.dist +++ b/features/fetchlater.yml.dist @@ -3,7 +3,9 @@ status: baseline: false - support: {} + support: + chrome: "135" + chrome_android: "135" compat_features: - api.FetchLaterResult - api.FetchLaterResult.activated From 16e27af9df29885db1f5fdc785375ac6b37fe329 Mon Sep 17 00:00:00 2001 From: Florian Scholz Date: Thu, 3 Apr 2025 11:47:58 +0200 Subject: [PATCH 4/5] Update features/fetchlater.yml Co-authored-by: Patrick Brosset --- features/fetchlater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/fetchlater.yml b/features/fetchlater.yml index f3855490df1..01e10f03629 100644 --- a/features/fetchlater.yml +++ b/features/fetchlater.yml @@ -1,5 +1,5 @@ name: fetchLater -description: The `fetchLater()` method requests a deferred fetch. After this method is called, the network request is queued by the browser, and is then invoked either when the document is destroyed, or after a certain time. When the request is eventually sent, the response is ignored by the browser. +description: The `fetchLater()` method requests a deferred fetch sent at an unknown time. The browser chooses a reliable time to send the request, ideally when the document is unloaded, and ignores the response. This API is useful for sending beacons, that is sending data to a server, without expecting a particular response. spec: https://github.com/whatwg/fetch/pull/1647 compat_features: - api.FetchLaterResult From c96335a7496529fa346515733269ab3f82eef502 Mon Sep 17 00:00:00 2001 From: Patrick Brosset Date: Thu, 3 Apr 2025 11:53:33 +0200 Subject: [PATCH 5/5] Update features/fetchlater.yml --- features/fetchlater.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/fetchlater.yml b/features/fetchlater.yml index 01e10f03629..e9431990552 100644 --- a/features/fetchlater.yml +++ b/features/fetchlater.yml @@ -1,5 +1,5 @@ name: fetchLater -description: The `fetchLater()` method requests a deferred fetch sent at an unknown time. The browser chooses a reliable time to send the request, ideally when the document is unloaded, and ignores the response. This API is useful for sending beacons, that is sending data to a server, without expecting a particular response. +description: "The `fetchLater()` method requests a deferred fetch sent at an unknown time. The browser chooses a reliable time to send the request, ideally when the document is unloaded, and ignores the response. This API is useful for sending beacons to a server without expecting a particular response." spec: https://github.com/whatwg/fetch/pull/1647 compat_features: - api.FetchLaterResult