Skip to content

feat: Introduce Downloads Archive page #7794

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 54 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
3937420
feat: simplified download page
canerakdas May 20, 2025
fa51777
chore: resolve conflict
canerakdas May 20, 2025
3e9cbeb
chore: fix type errors
canerakdas May 20, 2025
8abad4e
chore: remove unused css file
canerakdas May 20, 2025
924c640
refactor: release check and version without minor
canerakdas May 20, 2025
9c375d5
refactor: better localization
canerakdas May 25, 2025
e586292
refactor: separate layout, markdown and sidebar logic
canerakdas May 25, 2025
644882f
refactor: simple download utils
canerakdas May 25, 2025
4a0fd1c
refactor: getNodeDownloadUrl args destructuring
canerakdas May 25, 2025
426f4ed
refactor: localize and improve sidebar getter
canerakdas May 25, 2025
1f6e3db
refactor: better naming, docs and alias import
canerakdas May 25, 2025
dfd47a0
chore: sidebargroup naming
canerakdas May 25, 2025
fd09988
fix: active simplified sidebar and more docs
canerakdas May 25, 2025
0f1ae0a
feat: simple download meta bar added
canerakdas May 28, 2025
9c96639
chore: details styles moved into the site app
canerakdas May 29, 2025
bb5c03c
chore: details styles moved into the site app
canerakdas May 29, 2025
7f9c14b
fix: win x64, mac arm64 semver compat
canerakdas May 29, 2025
107b9f7
refactor: self review
canerakdas May 29, 2025
b07ba56
docs: downloads table
canerakdas May 29, 2025
5b30781
docs: fileoverview removed
canerakdas May 31, 2025
17cc8a0
fix: layout import
canerakdas May 31, 2025
a92ad35
Update apps/site/next.mdx.use.mjs
canerakdas May 31, 2025
c7264ea
refactor: layout changes
canerakdas Jun 2, 2025
199c3e6
refactor: renamed to download archive
canerakdas Jun 2, 2025
8a43b85
refactor: enhance buildReleaseArtifacts
canerakdas Jun 3, 2025
968517f
chore: resolve conflict
canerakdas Jun 3, 2025
1e6e0f4
docs: updating according to layout/naming
canerakdas Jun 4, 2025
52b6cdc
Update apps/site/util/downloadUtils/archive.tsx
canerakdas Jun 4, 2025
2759b68
chore: review updates
canerakdas Jun 4, 2025
7186a9b
Merge branch 'feat/simplified-download' of https://github.com/canerak…
canerakdas Jun 4, 2025
2eaa893
fix: scroll and archive artifacts
canerakdas Jun 4, 2025
31400af
refactor: minor versions table
canerakdas Jun 5, 2025
e516c0b
chore: lint
canerakdas Jun 5, 2025
1417339
feat: release alert box
canerakdas Jun 5, 2025
7358d16
chore: previous releases links
canerakdas Jun 5, 2025
b832299
refactor: version navigation and content
canerakdas Jun 5, 2025
0fa1f1d
fix: separator, modal border color
canerakdas Jun 6, 2025
2b17e6b
feat: DownloadReleasesTable download archive redirects
canerakdas Jun 6, 2025
f533ebc
refactor: markdown content editing and Node.js logo added
canerakdas Jun 6, 2025
1c8abdd
feat: home page button redirects
canerakdas Jun 6, 2025
d241894
refactor: minor text and styling updates
canerakdas Jun 8, 2025
edaf4e1
Merge branch 'main' into feat/simplified-download
canerakdas Jun 8, 2025
6099b93
chore: resolve conflict
canerakdas Jul 11, 2025
2eb64c7
chore: resolve conflict
canerakdas Jul 12, 2025
91b436d
chore: unused component removed
canerakdas Jul 12, 2025
2ebb662
chore: resolve conflict
canerakdas Aug 2, 2025
aad1be0
chore: revert downloadbutton
canerakdas Aug 2, 2025
ec457eb
fix: missing exports
canerakdas Aug 2, 2025
e0f68e8
refactor: stateless select used instead of the HTML details element
canerakdas Aug 2, 2025
c794154
feat: group download archive navigation by release status
canerakdas Aug 2, 2025
2d7da01
fix: placeholder for non latest versions
canerakdas Aug 2, 2025
7a92ef5
feat: fixed header for scrollable table, minor version identifier and…
canerakdas Aug 2, 2025
339ad9a
fix: dark mode border color
canerakdas Aug 2, 2025
dfcd073
fix: duplicated alertbox message
canerakdas Aug 3, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refactor: release check and version without minor
  • Loading branch information
canerakdas committed May 20, 2025
commit 924c640632ca8403fdc884ef92b5185dc258d169
35 changes: 20 additions & 15 deletions apps/site/components/withSimplifiedDownload.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,31 @@ type WithSimplifiedDownloadProps = {
const WithSimplifiedDownload: FC<WithSimplifiedDownloadProps> = async ({
children: Component,
}) => {
const { pathname } = getClientContext();
const releaseData = await getReleaseData();

const { pathname } = getClientContext();
const major = pathname.split('/').pop();
const release = releaseData.find(
release =>
release.major === Number(major) ||
(release.isLts === true && major === 'simplified')
const version = pathname.split('/').pop();
const matchingRelease = releaseData.find(
({ major, codename, isLts }) =>
major === Number(version) ||
codename === version ||
(isLts === true && version === 'simplified')
);

const { binaries, installers, minors } = getDownloadTable(release!);
if (matchingRelease !== undefined) {
const { binaries, installers, minors } = getDownloadTable(matchingRelease);

return (
<Component
version={release?.versionWithPrefix || ''}
binaries={binaries}
installers={installers}
minors={minors}
/>
);
return (
<Component
version={matchingRelease.versionWithPrefix}
binaries={binaries}
installers={installers}
minors={minors}
/>
);
}

return null;
};

export default WithSimplifiedDownload;
49 changes: 27 additions & 22 deletions apps/site/pages/en/download/simplified.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,36 @@ Learn more about [Node.js releases](/about/previous-releases), including the rel
)}
</WithSimplifiedDownload>

## Other versions

<WithSimplifiedDownload>
{({ minors }) =>
minors.map(([binaries, installers,version]) => (
<details key={version}>
<summary><h3>Node.js® {version}</h3></summary>
<div>
<h4>Binary Downloads</h4>
<SimplifiedDownloadTable source={binaries} />
minors.length > 0 && (
<>
<h2>Other versions</h2>
{minors.map(([binaries, installers, version]) => (
<details key={version}>
<summary>
<h3>Node.js® {version}</h3>
</summary>
<div>
<h4>Binary Downloads</h4>
<SimplifiedDownloadTable source={binaries} />

<h4>Installer Packages</h4>
<SimplifiedDownloadTable source={installers} />
<h4>Installer Packages</h4>
<SimplifiedDownloadTable source={installers} />

<p>
Download a signed{' '}
<LinkWithArrow
href={`https://nodejs.org/dist/${version}/node-${version}.tar.gz`}
>
Node.js {version} source
</LinkWithArrow>{' '}
tarball.
</p>
</div>
</details>
))}
<p>
Download a signed{' '}
<LinkWithArrow
href={`https://nodejs.org/dist/${version}/node-${version}.tar.gz`}
>
Node.js {version} source
</LinkWithArrow>{' '}
tarball.
</p>
</div>
</details>
))}
</>
)}

</WithSimplifiedDownload>
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy