Copy the table content from https://nodejs.org/en/about/releases/ to https://nodejs.dev/download/.
Today we fetch it from https://nodejs.org/dist/index.json but after a discussion about what we should show and deal with paginations/filters, we decided to leave that for later and go with a simpler version for MVP release.
I would like to work on it 馃槂
The columns on https://nodejs.org/en/about/releases/ and https://nodejs.dev/download/ are completely different...
Which one should be kept?
We should go with the data from https://nodejs.org/en/about/releases
Here's a data structure I came up with while experimenting with the react-table npm package.
interface NodeReleaseData {
release: string;
status: string;
codename: string;
initialRelease: string;
activeLTSStart: string;
maintenanceLTSStart: string;
endOfLife: string;
}
const staticData = (): NodeReleaseData[] => {
return [
{
release: 'v10',
status: 'Maintenance LTS',
codename: 'Dubnium',
initialRelease: '2018-04-24',
activeLTSStart: '2018-10-30',
maintenanceLTSStart: '2020-05-19',
endOfLife: '2021-04-30',
},
{
release: 'v12',
status: 'Active LTS',
codename: 'Erbium',
initialRelease: '2019-04-23',
activeLTSStart: '2019-10-21',
maintenanceLTSStart: '2020-10-20',
endOfLife: '2022-04-30',
},
{
release: 'v14',
status: 'Current',
codename: '',
initialRelease: '2020-04-21',
activeLTSStart: '2020-10-27',
maintenanceLTSStart: '2021-10-19',
endOfLife: '2023-04-30',
},
{
release: 'v15',
status: 'Pending',
codename: '',
initialRelease: '2020-10-20',
activeLTSStart: '',
maintenanceLTSStart: '2021-04-01',
endOfLife: '2021-06-01',
},
{
release: 'v16',
status: 'Pending',
codename: '',
initialRelease: '2021-04-20',
activeLTSStart: '2021-10-26',
maintenanceLTSStart: '2022-10-18',
endOfLife: '2024-04-30',
},
];
};
Most helpful comment
We should go with the data from https://nodejs.org/en/about/releases
Here's a data structure I came up with while experimenting with the react-table npm package.