Skip to content

Commit ce7012d

Browse files
authored
[Chore] Deprecate release notes RSS feed (#22701)
* [Chore] Deprecate release notes RSS feed * Added redirect * remove test * remove one more test
1 parent 08a61ae commit ce7012d

File tree

6 files changed

+2
-171
lines changed

6 files changed

+2
-171
lines changed

public/__redirects

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
/ssl/changelog/index.xml /changelog/rss/ssl.xml 301
3838

3939
## legacy
40-
/changelog/index.xml /release-notes/index.xml 301
40+
/release-notes/index.xml /changelog/rss/index.xml 301
4141
/release-notes/ /changelog/ 301
4242

4343
# 1dot1_redirect
@@ -1317,7 +1317,7 @@
13171317
/support/account-management-billing/cloudflare-billing-policy/ /billing/billing-policy/ 301
13181318
/support/account-management-billing/billing-add-on-service/ /billing/usage-based-billing/ 301
13191319
/support/account-management-billing/understanding-cloudflare-sales-tax/ /billing/sales-tax/ 301
1320-
/support/account-management-billing/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
1320+
/support/account-management-billing/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
13211321
/support/account-management-billing/cannot-locate-dashboard-account/ /support/troubleshooting/general-troubleshooting/cannot-locate-dashboard-account/ 301
13221322

13231323
# r2

src/content/release-notes/feed-deprecation-ddos.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/content/release-notes/feed-deprecation-waf.yaml

Lines changed: 0 additions & 13 deletions
This file was deleted.

src/content/release-notes/feed-deprecation.yaml

Lines changed: 0 additions & 20 deletions
This file was deleted.

src/pages/release-notes/index.xml.ts

Lines changed: 0 additions & 95 deletions
This file was deleted.

worker/index.worker.test.ts

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,6 @@ describe("Cloudflare Docs", () => {
4343
expect(response.headers.get("Location")).toBe("/products/");
4444
});
4545

46-
it("redirects /changelog/index.xml to /release-notes/index.xml", async () => {
47-
const request = new Request("http://fakehost/changelog/index.xml");
48-
const response = await SELF.fetch(request, { redirect: "manual" });
49-
expect(response.status).toBe(301);
50-
expect(response.headers.get("Location")).toBe("/release-notes/index.xml");
51-
});
52-
5346
it("redirects /changelog-next/ to /changelog/", async () => {
5447
const request = new Request("http://fakehost/changelog-next/");
5548
const response = await SELF.fetch(request, { redirect: "manual" });
@@ -166,27 +159,6 @@ describe("Cloudflare Docs", () => {
166159
expect(item.pubDate).toBe("Mon, 03 Mar 2025 06:00:00 GMT");
167160
});
168161

169-
it("legacy global", async () => {
170-
const request = new Request("http://fakehost/release-notes/index.xml");
171-
const response = await SELF.fetch(request);
172-
173-
expect(response.status).toBe(200);
174-
175-
const xml = await response.text();
176-
const parsed = parser.parse(xml);
177-
const { channel } = parsed.rss;
178-
179-
expect(channel.title).toBe("Cloudflare release notes");
180-
181-
const item = channel.item.find(
182-
(item: any) => item.title === "WAF - 2025-02-24",
183-
);
184-
185-
expect(item).toBeDefined();
186-
expect(item.product).toBe("WAF");
187-
expect(item.pubDate).toBe("Mon, 24 Feb 2025 00:00:00 GMT");
188-
});
189-
190162
it("legacy product-specific", async () => {
191163
const request = new Request("http://fakehost/waf/change-log/index.xml");
192164
const response = await SELF.fetch(request);

0 commit comments

Comments
 (0)