-
-
Notifications
You must be signed in to change notification settings - Fork 6.4k
chore: consolidate Node releases data #5365
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
Merged
HinataKah0
merged 69 commits into
nodejs:main
from
HinataKah0:chore/node-release-data-server-side
Jun 17, 2023
Merged
Changes from all commits
Commits
Show all changes
69 commits
Select commit
Hold shift + click to select a range
5f5ab77
chore: update fields' name
HinataKah0 b0f46bd
chore: add script to generate Node releases data
HinataKah0 2d2ee36
chore: add Node releases data provider and hooks
HinataKah0 e6153f8
chore: add fields from NodeVersionData
HinataKah0 fa1ddf3
chore: replace NodeVersionData usages
HinataKah0 781db1e
chore: add files to .prettierignore
HinataKah0 547b5b7
chore: add Node releases data fixture
HinataKah0 bcdc6c7
refactor: change to inline conditional rendering
HinataKah0 4d30e84
chore: don't fallback to current if LTS is undefined
HinataKah0 5fd3e76
chore: remove redundant entries from fixture
HinataKah0 7bf0e3a
refactor: rename hook to useFetchNodeReleasesData
HinataKah0 04cd45c
refactor: don't store if return immediately
HinataKah0 a6b816b
refactor: remove redundant context in names
HinataKah0 a878965
refactor: remove HomeDownloadButtonProps
HinataKah0 78c607b
Merge branch 'main' into chore/node-release-data-server-side
d6087ea
refactor: simplify useNodeReleasesData hooks
HinataKah0 ef7c226
refactor: extract getNodeReleaseStatus to util
HinataKah0 3e09174
Merge branch 'main' into chore/node-release-data-server-side
ovflowd 31640d3
chore: add versionWithPrefix to NodeReleaseData
HinataKah0 cbb255a
refactor: move fetch hook call to be inside provider
HinataKah0 b0742ac
refactor: move out __dirname and path
HinataKah0 4e86cd5
chore: handle undefined lts and current
HinataKah0 b397104
refactor: no need to assign variable
HinataKah0 305158c
refactor: move context type to be inside provider
HinataKah0 013d7ea
refactor: introduce NodeReleaseStatus type
HinataKah0 4e740e1
refactor: no need to declare empty props
HinataKah0 5940988
chore: do not block when generating node releases data
HinataKah0 0646d6a
refactor: clean up constants.ts
HinataKah0 a29cfa9
refactor: remove unnecessary 'Data' suffix
HinataKah0 5cc0831
chore: update nodevu
HinataKah0 7a170ae
chore: remove hack
HinataKah0 633da4e
refactor: make inline
HinataKah0 a6af748
chore: specify default value
HinataKah0 a391941
refactor: rework how to use useNodeReleases hook
HinataKah0 4384f45
refactor: reorder providers
HinataKah0 008fee9
chore: skip duplicate v0.x
HinataKah0 a7757a2
refactor: introduce NodeReleaseSupport type
HinataKah0 1df5780
Merge remote-tracking branch 'upstream/main' into chore/node-release-…
HinataKah0 01e7a36
refactor: remove excessive spaces
HinataKah0 06673e3
refactor: fix imports
HinataKah0 d9dda20
chore: no need to ignore _app.mdx
HinataKah0 27e003f
chore: move out of static/ folder
HinataKah0 da33e8b
refactor: use prettier syntax
HinataKah0 4a1008f
refactor: simplify generateNodeReleasesData
HinataKah0 f89d2c1
refactor: introduce WithNodeRelease component
HinataKah0 085f32b
Merge remote-tracking branch 'upstream/main' into chore/node-release-…
HinataKah0 90410a4
chore: fix filter
HinataKah0 d3110ce
refactor: introduce NodeReleaseJSON type
HinataKah0 946c3f8
refactor: move getReleaseByStatus function to useNodeReleases hook
HinataKah0 d3aad0f
refactor: add empty line
HinataKah0 d59324f
refactor: rename generateNodeReleasesData
HinataKah0 b5b81d9
refactor: add next-data/index.mjs
HinataKah0 978dcc1
chore: change to use useRouter hook
HinataKah0 22c8509
chore: update nodeReleases fixture
HinataKah0 03d24bb
refactor: rename props to staticProps
HinataKah0 c65c210
refactor: move WithNodeRelease to providers
HinataKah0 b6e1ffb
fix: change to use useDownloadLink hook
HinataKah0 656f2bf
refactor: deprecate legacyMain's detect OS
HinataKah0 2a0fdd9
Merge branch 'main' into chore/node-release-data-server-side
ovflowd 1c916df
refactor: rework useDetectOS hook
HinataKah0 63af3f9
refactor: rework downloadUrlByOS util function
HinataKah0 f244689
refactor: remove unused constants
HinataKah0 57fe5d7
refactor: change file name
HinataKah0 40d3467
refactor: use inline
HinataKah0 ac70528
refactor: rework useDetectOS hook
HinataKah0 7e2e5a5
chore: delete WithNodeRelease file
HinataKah0 cb832d1
chore: add back withNodeRelease file
HinataKah0 92b7978
Merge remote-tracking branch 'upstream/main' into chore/node-release-…
HinataKah0 e7d7c3b
Merge remote-tracking branch 'upstream/main' into chore/node-release-…
HinataKah0 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,97 @@ | ||
import type { NodeRelease } from '../types'; | ||
|
||
export const createNodeReleases = (): NodeRelease[] => [ | ||
{ | ||
currentStart: '2023-04-18', | ||
ltsStart: '2023-10-24', | ||
maintenanceStart: '2024-10-22', | ||
endOfLife: '2026-04-30', | ||
major: 20, | ||
version: '20.2.0', | ||
versionWithPrefix: 'v20.2.0', | ||
codename: '', | ||
isLts: false, | ||
status: 'Current', | ||
npm: '9.6.6', | ||
v8: '11.3.244.8', | ||
releaseDate: '2023-05-16', | ||
modules: '115', | ||
}, | ||
{ | ||
currentStart: '2022-10-18', | ||
maintenanceStart: '2023-04-01', | ||
endOfLife: '2023-06-01', | ||
major: 19, | ||
version: '19.9.0', | ||
versionWithPrefix: 'v19.9.0', | ||
codename: '', | ||
isLts: false, | ||
status: 'End-of-life', | ||
npm: '9.6.3', | ||
v8: '10.8.168.25', | ||
releaseDate: '2023-04-10', | ||
modules: '111', | ||
}, | ||
{ | ||
currentStart: '2022-04-19', | ||
ltsStart: '2022-10-25', | ||
maintenanceStart: '2023-10-18', | ||
endOfLife: '2025-04-30', | ||
major: 18, | ||
version: '18.16.0', | ||
versionWithPrefix: 'v18.16.0', | ||
codename: 'Hydrogen', | ||
isLts: true, | ||
status: 'Active LTS', | ||
npm: '9.5.1', | ||
v8: '10.2.154.26', | ||
releaseDate: '2023-04-12', | ||
modules: '108', | ||
}, | ||
{ | ||
currentStart: '2021-10-19', | ||
maintenanceStart: '2022-04-01', | ||
endOfLife: '2022-06-01', | ||
major: 17, | ||
version: '17.9.1', | ||
versionWithPrefix: 'v17.9.1', | ||
codename: '', | ||
isLts: false, | ||
status: 'End-of-life', | ||
npm: '8.11.0', | ||
v8: '9.6.180.15', | ||
releaseDate: '2022-06-01', | ||
modules: '102', | ||
}, | ||
{ | ||
currentStart: '2021-04-20', | ||
ltsStart: '2021-10-26', | ||
maintenanceStart: '2022-10-18', | ||
endOfLife: '2023-09-11', | ||
major: 16, | ||
version: '16.20.0', | ||
versionWithPrefix: 'v16.20.0', | ||
codename: 'Gallium', | ||
isLts: true, | ||
status: 'Maintenance LTS', | ||
npm: '8.19.4', | ||
v8: '9.4.146.26', | ||
releaseDate: '2023-03-28', | ||
modules: '93', | ||
}, | ||
{ | ||
currentStart: '2020-10-20', | ||
maintenanceStart: '2021-04-01', | ||
endOfLife: '2021-06-01', | ||
major: 15, | ||
version: '15.14.0', | ||
versionWithPrefix: 'v15.14.0', | ||
codename: '', | ||
isLts: false, | ||
status: 'End-of-life', | ||
npm: '7.7.6', | ||
v8: '8.6.395.17', | ||
releaseDate: '2021-04-06', | ||
modules: '88', | ||
}, | ||
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.