From f0316e22b253aeb1a4e9107f01421833b957e6e9 Mon Sep 17 00:00:00 2001 From: Grace Fletcher Date: Fri, 23 May 2025 11:58:17 -0700 Subject: [PATCH 1/5] update release notes nav item to redirect to matching changelog --- src/config/sidebar.ts | 22 +++++++++++-------- ...on-release-notes.mdx => release-notes.mdx} | 0 .../{resources => }/release-notes.mdx | 0 .../{node-versions.mdx => release-notes.mdx} | 0 src/content/data-feeds/release-notes.mdx | 5 +++++ src/pages/ccip/release-notes.ts | 10 +++++++++ .../chainlink-automation/release-notes.ts | 10 +++++++++ .../chainlink-functions/release-notes.ts | 10 +++++++++ src/pages/chainlink-nodes/release-notes.ts | 10 +++++++++ src/pages/data-feeds/release-notes.ts | 10 +++++++++ src/pages/data-streams/release-notes.ts | 10 +++++++++ src/pages/vrf/release-notes.ts | 10 +++++++++ 12 files changed, 88 insertions(+), 9 deletions(-) rename src/content/chainlink-automation/{overview/automation-release-notes.mdx => release-notes.mdx} (100%) rename src/content/chainlink-functions/{resources => }/release-notes.mdx (100%) rename src/content/chainlink-nodes/{node-versions.mdx => release-notes.mdx} (100%) create mode 100644 src/content/data-feeds/release-notes.mdx create mode 100644 src/pages/ccip/release-notes.ts create mode 100644 src/pages/chainlink-automation/release-notes.ts create mode 100644 src/pages/chainlink-functions/release-notes.ts create mode 100644 src/pages/chainlink-nodes/release-notes.ts create mode 100644 src/pages/data-feeds/release-notes.ts create mode 100644 src/pages/data-streams/release-notes.ts create mode 100644 src/pages/vrf/release-notes.ts diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index 9861b2571aa..f3a5a154a73 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -105,6 +105,10 @@ export const SIDEBAR: Partial> = { title: "Flags Contract Registry", url: "data-feeds/contract-registry", }, + { + title: "Release Notes", + url: "data-feeds/release-notes", + }, ], }, { @@ -527,14 +531,14 @@ export const SIDEBAR: Partial> = { title: "Service Limits", url: "chainlink-automation/overview/service-limits", }, - { - title: "Release Notes", - url: "chainlink-automation/overview/automation-release-notes", - }, { title: "Migrate to Automation v2.1", url: "chainlink-automation/guides/migrate-to-v2", }, + { + title: "Release Notes", + url: "chainlink-automation/release-notes", + }, ], }, { @@ -712,7 +716,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "chainlink-functions/resources/release-notes", + url: "chainlink-functions/release-notes", }, ], }, @@ -1576,10 +1580,6 @@ export const SIDEBAR: Partial> = { title: "Overview", url: "chainlink-nodes", }, - { - title: "Release Notes", - url: "chainlink-nodes/node-versions", - }, { title: "Run a Chainlink Node", url: "chainlink-nodes/v1/running-a-chainlink-node", @@ -1606,6 +1606,10 @@ export const SIDEBAR: Partial> = { title: "System Requirements", url: "chainlink-nodes/resources/requirements", }, + { + title: "Release Notes", + url: "chainlink-nodes/release-notes", + }, ], }, { diff --git a/src/content/chainlink-automation/overview/automation-release-notes.mdx b/src/content/chainlink-automation/release-notes.mdx similarity index 100% rename from src/content/chainlink-automation/overview/automation-release-notes.mdx rename to src/content/chainlink-automation/release-notes.mdx diff --git a/src/content/chainlink-functions/resources/release-notes.mdx b/src/content/chainlink-functions/release-notes.mdx similarity index 100% rename from src/content/chainlink-functions/resources/release-notes.mdx rename to src/content/chainlink-functions/release-notes.mdx diff --git a/src/content/chainlink-nodes/node-versions.mdx b/src/content/chainlink-nodes/release-notes.mdx similarity index 100% rename from src/content/chainlink-nodes/node-versions.mdx rename to src/content/chainlink-nodes/release-notes.mdx diff --git a/src/content/data-feeds/release-notes.mdx b/src/content/data-feeds/release-notes.mdx new file mode 100644 index 00000000000..1cd4dd3697f --- /dev/null +++ b/src/content/data-feeds/release-notes.mdx @@ -0,0 +1,5 @@ +--- +section: dataFeeds +date: Last Modified +title: "Release Notes" +--- diff --git a/src/pages/ccip/release-notes.ts b/src/pages/ccip/release-notes.ts new file mode 100644 index 00000000000..a41299fe910 --- /dev/null +++ b/src/pages/ccip/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=CCIP", + }, + }) +} diff --git a/src/pages/chainlink-automation/release-notes.ts b/src/pages/chainlink-automation/release-notes.ts new file mode 100644 index 00000000000..a793c2da162 --- /dev/null +++ b/src/pages/chainlink-automation/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=Automation", + }, + }) +} diff --git a/src/pages/chainlink-functions/release-notes.ts b/src/pages/chainlink-functions/release-notes.ts new file mode 100644 index 00000000000..d47ea9c9533 --- /dev/null +++ b/src/pages/chainlink-functions/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=Functions", + }, + }) +} diff --git a/src/pages/chainlink-nodes/release-notes.ts b/src/pages/chainlink-nodes/release-notes.ts new file mode 100644 index 00000000000..96ad4c03226 --- /dev/null +++ b/src/pages/chainlink-nodes/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=Nodes", + }, + }) +} diff --git a/src/pages/data-feeds/release-notes.ts b/src/pages/data-feeds/release-notes.ts new file mode 100644 index 00000000000..33eb754b163 --- /dev/null +++ b/src/pages/data-feeds/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=Data+Feeds", + }, + }) +} diff --git a/src/pages/data-streams/release-notes.ts b/src/pages/data-streams/release-notes.ts new file mode 100644 index 00000000000..4a650a3f81e --- /dev/null +++ b/src/pages/data-streams/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=Data+Streams", + }, + }) +} diff --git a/src/pages/vrf/release-notes.ts b/src/pages/vrf/release-notes.ts new file mode 100644 index 00000000000..65dcee5cbda --- /dev/null +++ b/src/pages/vrf/release-notes.ts @@ -0,0 +1,10 @@ +import { type APIRoute } from "astro" + +export const GET: APIRoute = () => { + return new Response(null, { + status: 302, + headers: { + Location: "https://dev.chain.link/changelog?product=VRF", + }, + }) +} From e0e3370a31a4654928a4aee958ce16f78beaa0a5 Mon Sep 17 00:00:00 2001 From: Grace Fletcher Date: Fri, 23 May 2025 12:22:07 -0700 Subject: [PATCH 2/5] update backup files --- src/content/ccip/{release-notes.mdx => release-notes-backup.mdx} | 0 .../{release-notes.mdx => release-notes-backup.mdx} | 0 .../{release-notes.mdx => release-notes-backup.mdx} | 0 .../{release-notes.mdx => release-notes-backup.mdx} | 0 .../data-feeds/{release-notes.mdx => release-notes-backup.mdx} | 0 .../data-streams/{release-notes.mdx => release-notes-backup.mdx} | 0 src/content/vrf/{release-notes.mdx => release-notes-backup.mdx} | 0 7 files changed, 0 insertions(+), 0 deletions(-) rename src/content/ccip/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/chainlink-automation/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/chainlink-functions/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/chainlink-nodes/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/data-feeds/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/data-streams/{release-notes.mdx => release-notes-backup.mdx} (100%) rename src/content/vrf/{release-notes.mdx => release-notes-backup.mdx} (100%) diff --git a/src/content/ccip/release-notes.mdx b/src/content/ccip/release-notes-backup.mdx similarity index 100% rename from src/content/ccip/release-notes.mdx rename to src/content/ccip/release-notes-backup.mdx diff --git a/src/content/chainlink-automation/release-notes.mdx b/src/content/chainlink-automation/release-notes-backup.mdx similarity index 100% rename from src/content/chainlink-automation/release-notes.mdx rename to src/content/chainlink-automation/release-notes-backup.mdx diff --git a/src/content/chainlink-functions/release-notes.mdx b/src/content/chainlink-functions/release-notes-backup.mdx similarity index 100% rename from src/content/chainlink-functions/release-notes.mdx rename to src/content/chainlink-functions/release-notes-backup.mdx diff --git a/src/content/chainlink-nodes/release-notes.mdx b/src/content/chainlink-nodes/release-notes-backup.mdx similarity index 100% rename from src/content/chainlink-nodes/release-notes.mdx rename to src/content/chainlink-nodes/release-notes-backup.mdx diff --git a/src/content/data-feeds/release-notes.mdx b/src/content/data-feeds/release-notes-backup.mdx similarity index 100% rename from src/content/data-feeds/release-notes.mdx rename to src/content/data-feeds/release-notes-backup.mdx diff --git a/src/content/data-streams/release-notes.mdx b/src/content/data-streams/release-notes-backup.mdx similarity index 100% rename from src/content/data-streams/release-notes.mdx rename to src/content/data-streams/release-notes-backup.mdx diff --git a/src/content/vrf/release-notes.mdx b/src/content/vrf/release-notes-backup.mdx similarity index 100% rename from src/content/vrf/release-notes.mdx rename to src/content/vrf/release-notes-backup.mdx From c55577e9e3055b0a173497f4abf0db38f2a440b5 Mon Sep 17 00:00:00 2001 From: Grace Fletcher Date: Fri, 23 May 2025 12:30:27 -0700 Subject: [PATCH 3/5] fix redirect URL --- src/content/chainlink-automation/concepts/best-practice.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/chainlink-automation/concepts/best-practice.mdx b/src/content/chainlink-automation/concepts/best-practice.mdx index f8628fad460..53b7c9a6c3c 100644 --- a/src/content/chainlink-automation/concepts/best-practice.mdx +++ b/src/content/chainlink-automation/concepts/best-practice.mdx @@ -32,7 +32,7 @@ Alternatively, set the forwarder address when your upkeep is deployed and read t ### Use the Forwarder -If your upkeep performs **sensitive** functions in your protocol, consider using the [`Forwarder`](/chainlink-automation/overview/automation-release-notes) to lock it down so `performUpkeep` can only be called by the `Forwarder`. Add other permissible addresses if you need to call it yourself. Note the forwarder is only determined after registration so make this a mutable variable and ensure you add a setter function with permissions for you to set it. +If your upkeep performs **sensitive** functions in your protocol, consider using the [`Forwarder`](/chainlink-automation/overview/release-notes) to lock it down so `performUpkeep` can only be called by the `Forwarder`. Add other permissible addresses if you need to call it yourself. Note the forwarder is only determined after registration so make this a mutable variable and ensure you add a setter function with permissions for you to set it. ### Verify Data Streams reports fetched with StreamsLookup From 8cc83ff2e20bc872f9494833fa4a2d6c06ec6be1 Mon Sep 17 00:00:00 2001 From: Grace Fletcher Date: Fri, 23 May 2025 12:41:50 -0700 Subject: [PATCH 4/5] remove link --- src/content/chainlink-automation/concepts/best-practice.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/content/chainlink-automation/concepts/best-practice.mdx b/src/content/chainlink-automation/concepts/best-practice.mdx index 53b7c9a6c3c..7c7079c7323 100644 --- a/src/content/chainlink-automation/concepts/best-practice.mdx +++ b/src/content/chainlink-automation/concepts/best-practice.mdx @@ -32,7 +32,7 @@ Alternatively, set the forwarder address when your upkeep is deployed and read t ### Use the Forwarder -If your upkeep performs **sensitive** functions in your protocol, consider using the [`Forwarder`](/chainlink-automation/overview/release-notes) to lock it down so `performUpkeep` can only be called by the `Forwarder`. Add other permissible addresses if you need to call it yourself. Note the forwarder is only determined after registration so make this a mutable variable and ensure you add a setter function with permissions for you to set it. +If your upkeep performs **sensitive** functions in your protocol, consider using the `Forwarder` to lock it down so `performUpkeep` can only be called by the `Forwarder`. Add other permissible addresses if you need to call it yourself. Note the forwarder is only determined after registration so make this a mutable variable and ensure you add a setter function with permissions for you to set it. ### Verify Data Streams reports fetched with StreamsLookup From 4cc05561961dc2675c25f102b1ec6e65b5bb2544 Mon Sep 17 00:00:00 2001 From: Karim <98668332+khadni@users.noreply.github.com> Date: Tue, 27 May 2025 08:33:49 -0500 Subject: [PATCH 5/5] update --- .../LeftSidebar/RecursiveSidebar.astro | 30 +++++++++++++++++-- src/config/sidebar.ts | 14 ++++----- src/content/ccip/release-notes-backup.mdx | 11 ------- .../release-notes-backup.mdx | 20 ------------- .../release-notes-backup.mdx | 9 ------ .../chainlink-nodes/release-notes-backup.mdx | 19 ------------ .../data-feeds/release-notes-backup.mdx | 5 ---- .../data-streams/release-notes-backup.mdx | 20 ------------- src/content/vrf/release-notes-backup.mdx | 11 ------- src/features/redirects/redirects.json | 30 +++++++++++++++++++ src/pages/ccip/release-notes.ts | 10 ------- .../chainlink-automation/release-notes.ts | 10 ------- .../chainlink-functions/release-notes.ts | 10 ------- src/pages/chainlink-nodes/release-notes.ts | 10 ------- src/pages/data-feeds/release-notes.ts | 10 ------- src/pages/data-streams/release-notes.ts | 10 ------- src/pages/vrf/release-notes.ts | 10 ------- 17 files changed, 65 insertions(+), 174 deletions(-) delete mode 100644 src/content/ccip/release-notes-backup.mdx delete mode 100644 src/content/chainlink-automation/release-notes-backup.mdx delete mode 100644 src/content/chainlink-functions/release-notes-backup.mdx delete mode 100644 src/content/chainlink-nodes/release-notes-backup.mdx delete mode 100644 src/content/data-feeds/release-notes-backup.mdx delete mode 100644 src/content/data-streams/release-notes-backup.mdx delete mode 100644 src/content/vrf/release-notes-backup.mdx delete mode 100644 src/pages/ccip/release-notes.ts delete mode 100644 src/pages/chainlink-automation/release-notes.ts delete mode 100644 src/pages/chainlink-functions/release-notes.ts delete mode 100644 src/pages/chainlink-nodes/release-notes.ts delete mode 100644 src/pages/data-feeds/release-notes.ts delete mode 100644 src/pages/data-streams/release-notes.ts delete mode 100644 src/pages/vrf/release-notes.ts diff --git a/src/components/LeftSidebar/RecursiveSidebar.astro b/src/components/LeftSidebar/RecursiveSidebar.astro index ef774d47504..7bca0ad7c2e 100644 --- a/src/components/LeftSidebar/RecursiveSidebar.astro +++ b/src/components/LeftSidebar/RecursiveSidebar.astro @@ -20,6 +20,19 @@ function removeSlashes(url: string): string { return sanitizedUrl } +/** Checks if the URL is external (starts with http:// or https://) */ +function isExternalUrl(url: string): boolean { + return url.startsWith("http://") || url.startsWith("https://") +} + +/** Builds the correct href based on whether the URL is internal or external */ +function buildHref(url: string): string { + if (isExternalUrl(url)) { + return url // Return external URLs as-is + } + return `${Astro.site?.pathname}${url}` // Prepend base path for internal URLs +} + /** * Determines if a page matches the current page or should be highlighted. * Handles: @@ -29,6 +42,9 @@ function removeSlashes(url: string): string { function isCurrentPageMatch(sectionUrl: string, currentPage: string, highlightAsCurrent: string[] = []): boolean { if (!sectionUrl) return false + // External URLs should never match the current page + if (isExternalUrl(sectionUrl)) return false + const normalizedSectionUrl = removeSlashes(sectionUrl) const normalizedCurrentPage = removeSlashes(currentPage.slice(1)) @@ -51,6 +67,12 @@ function isCurrentPageMatch(sectionUrl: string, currentPage: string, highlightAs */ function shouldExpandSection(item: SectionContent, currentPage: string): boolean { const normalizedCurrentPage = removeSlashes(currentPage.slice(1)) + + // For external URLs, we don't need to expand the section + if (item.url && isExternalUrl(item.url)) { + return false + } + const normalizedItemUrl = item.url ? removeSlashes(item.url) : "" // If this item has a URL, check if the current page is this item or a descendant @@ -87,8 +109,10 @@ function shouldExpandSection(item: SectionContent, currentPage: string): boolean {item.url ? ( {item.title} @@ -103,8 +127,10 @@ function shouldExpandSection(item: SectionContent, currentPage: string): boolean ) : ( {item.title} diff --git a/src/config/sidebar.ts b/src/config/sidebar.ts index f3a5a154a73..b2f0e3683fe 100644 --- a/src/config/sidebar.ts +++ b/src/config/sidebar.ts @@ -107,7 +107,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "data-feeds/release-notes", + url: "https://dev.chain.link/changelog?product=Data+Feeds", }, ], }, @@ -299,7 +299,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "data-streams/release-notes", + url: "https://dev.chain.link/changelog?product=Data+Streams", }, ], }, @@ -537,7 +537,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "chainlink-automation/release-notes", + url: "https://dev.chain.link/changelog?product=Automation", }, ], }, @@ -716,7 +716,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "chainlink-functions/release-notes", + url: "https://dev.chain.link/changelog?product=Functions", }, ], }, @@ -915,7 +915,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "vrf/release-notes", + url: "https://dev.chain.link/changelog?product=VRF", }, ], }, @@ -1096,7 +1096,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "ccip/release-notes", + url: "https://dev.chain.link/changelog?product=CCIP", }, ], }, @@ -1608,7 +1608,7 @@ export const SIDEBAR: Partial> = { }, { title: "Release Notes", - url: "chainlink-nodes/release-notes", + url: "https://dev.chain.link/changelog?product=Nodes", }, ], }, diff --git a/src/content/ccip/release-notes-backup.mdx b/src/content/ccip/release-notes-backup.mdx deleted file mode 100644 index 703b9b9634f..00000000000 --- a/src/content/ccip/release-notes-backup.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -section: ccip -date: Last Modified -title: "Chainlink CCIP Release Notes" -metadata: - description: "Stay updated with the latest Chainlink CCIP releases. Find detailed release notes covering new features, improvements, and important updates for the protocol." ---- - -import { ReleaseNotes } from "@components" - - diff --git a/src/content/chainlink-automation/release-notes-backup.mdx b/src/content/chainlink-automation/release-notes-backup.mdx deleted file mode 100644 index 7c51b8bb372..00000000000 --- a/src/content/chainlink-automation/release-notes-backup.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -section: automation -date: Last Modified -title: "Chainlink Automation Release Notes" -isMdx: true -whatsnext: - { - "Register Time-Based Upkeeps": "/chainlink-automation/guides/job-scheduler", - "Register Custom Logic Upkeeps": "/chainlink-automation/guides/register-upkeep", - "Register Log Trigger Upkeeps": "/chainlink-automation/guides/log-trigger/", - } ---- - -import { ReleaseNotes } from "@components" - - - -## Questions - -Ask questions in the [#automation channel](https://discord.com/channels/592041321326182401/821350860302581771) in our [Discord server](https://discord.gg/qj9qarT). diff --git a/src/content/chainlink-functions/release-notes-backup.mdx b/src/content/chainlink-functions/release-notes-backup.mdx deleted file mode 100644 index 59bb9c33bda..00000000000 --- a/src/content/chainlink-functions/release-notes-backup.mdx +++ /dev/null @@ -1,9 +0,0 @@ ---- -section: chainlinkFunctions -date: Last Modified -title: "Chainlink Functions Release Notes" ---- - -import { ReleaseNotes } from "@components" - - diff --git a/src/content/chainlink-nodes/release-notes-backup.mdx b/src/content/chainlink-nodes/release-notes-backup.mdx deleted file mode 100644 index 3d46fc4d6dd..00000000000 --- a/src/content/chainlink-nodes/release-notes-backup.mdx +++ /dev/null @@ -1,19 +0,0 @@ ---- -section: nodeOperator -date: Last Modified -title: "Chainlink Node Releases" -whatsnext: { "Running a Chainlink Node": "/chainlink-nodes/v1/running-a-chainlink-node" } -metadata: - title: "Node Versions and Release Notes" - description: "Details about various node versions and how to migrate between them." ---- - -import { ReleaseNotes } from "@components" - -To find the complete list of releases, see [Chainlink GitHub repository release list](https://github.com/smartcontractkit/chainlink/releases). - - - -## Older release notes - -To find release notes for versions before v2.0.0, see [Chainlink GitHub repository release list](https://github.com/smartcontractkit/chainlink/releases). diff --git a/src/content/data-feeds/release-notes-backup.mdx b/src/content/data-feeds/release-notes-backup.mdx deleted file mode 100644 index 1cd4dd3697f..00000000000 --- a/src/content/data-feeds/release-notes-backup.mdx +++ /dev/null @@ -1,5 +0,0 @@ ---- -section: dataFeeds -date: Last Modified -title: "Release Notes" ---- diff --git a/src/content/data-streams/release-notes-backup.mdx b/src/content/data-streams/release-notes-backup.mdx deleted file mode 100644 index 42b8eee71be..00000000000 --- a/src/content/data-streams/release-notes-backup.mdx +++ /dev/null @@ -1,20 +0,0 @@ ---- -section: dataStreams -date: Last Modified -title: "Release Notes" -whatsnext: - { - "Learn the basics about how to retrieve Data Streams reports in the Getting Started guide.": "/data-streams/getting-started", - "Find the list of available feed IDs.": "/data-streams/crypto-streams", - "Find the schema of data to expect from Data Streams reports.": "/data-streams/reference/report-schema", - } ---- - -import { Aside, ReleaseNotes } from "@components" - - - - diff --git a/src/content/vrf/release-notes-backup.mdx b/src/content/vrf/release-notes-backup.mdx deleted file mode 100644 index 1ebcc47fa46..00000000000 --- a/src/content/vrf/release-notes-backup.mdx +++ /dev/null @@ -1,11 +0,0 @@ ---- -section: vrf -date: Last Modified -title: "Chainlink VRF Release Notes" -isMdx: true -whatsnext: { "Migrate to VRF V2.5": "/vrf/v2-5/migration-from-v2" } ---- - -import { ReleaseNotes } from "@components" - - diff --git a/src/features/redirects/redirects.json b/src/features/redirects/redirects.json index eda7bf7a657..b1de1a528fa 100644 --- a/src/features/redirects/redirects.json +++ b/src/features/redirects/redirects.json @@ -2309,6 +2309,36 @@ "source": "data-feeds/feed-registry/feed-registry-functions", "destination": "data-feeds", "statusCode": 301 + }, + { + "source": "data-streams/release-notes", + "destination": "https://dev.chain.link/changelog?product=Data+Streams", + "statusCode": 301 + }, + { + "source": "ccip/release-notes", + "destination": "https://dev.chain.link/changelog?product=CCIP", + "statusCode": 301 + }, + { + "source": "chainlink-automation/overview/automation-release-notes", + "destination": "https://dev.chain.link/changelog?product=Automation", + "statusCode": 301 + }, + { + "source": "chainlink-functions/resources/release-notes", + "destination": "https://dev.chain.link/changelog?product=Functions", + "statusCode": 301 + }, + { + "source": "vrf/release-notes", + "destination": "https://dev.chain.link/changelog?product=VRF", + "statusCode": 301 + }, + { + "source": "chainlink-nodes/node-versions", + "destination": "https://dev.chain.link/changelog?product=Nodes", + "statusCode": 301 } ] } diff --git a/src/pages/ccip/release-notes.ts b/src/pages/ccip/release-notes.ts deleted file mode 100644 index a41299fe910..00000000000 --- a/src/pages/ccip/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=CCIP", - }, - }) -} diff --git a/src/pages/chainlink-automation/release-notes.ts b/src/pages/chainlink-automation/release-notes.ts deleted file mode 100644 index a793c2da162..00000000000 --- a/src/pages/chainlink-automation/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=Automation", - }, - }) -} diff --git a/src/pages/chainlink-functions/release-notes.ts b/src/pages/chainlink-functions/release-notes.ts deleted file mode 100644 index d47ea9c9533..00000000000 --- a/src/pages/chainlink-functions/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=Functions", - }, - }) -} diff --git a/src/pages/chainlink-nodes/release-notes.ts b/src/pages/chainlink-nodes/release-notes.ts deleted file mode 100644 index 96ad4c03226..00000000000 --- a/src/pages/chainlink-nodes/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=Nodes", - }, - }) -} diff --git a/src/pages/data-feeds/release-notes.ts b/src/pages/data-feeds/release-notes.ts deleted file mode 100644 index 33eb754b163..00000000000 --- a/src/pages/data-feeds/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=Data+Feeds", - }, - }) -} diff --git a/src/pages/data-streams/release-notes.ts b/src/pages/data-streams/release-notes.ts deleted file mode 100644 index 4a650a3f81e..00000000000 --- a/src/pages/data-streams/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=Data+Streams", - }, - }) -} diff --git a/src/pages/vrf/release-notes.ts b/src/pages/vrf/release-notes.ts deleted file mode 100644 index 65dcee5cbda..00000000000 --- a/src/pages/vrf/release-notes.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { type APIRoute } from "astro" - -export const GET: APIRoute = () => { - return new Response(null, { - status: 302, - headers: { - Location: "https://dev.chain.link/changelog?product=VRF", - }, - }) -}