Skip to content

Commit

Permalink
Update seeder and store release date in manual-version-info.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vaughnjones-marcus committed Dec 6, 2023
1 parent 83bc375 commit 105796e
Show file tree
Hide file tree
Showing 4 changed files with 483 additions and 218 deletions.
139 changes: 6 additions & 133 deletions database/seeders/LaravelVersionSeeder.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,139 +17,12 @@ public function run(): void

public function versions(): Collection
{
return collect([
[
'major' => 10,
'released_at' => '2023-02-07',
'ends_bugfixes_at' => '2024-08-07',
'ends_securityfixes_at' => '2025-02-07',
],
[
'major' => 9,
'released_at' => '2022-02-08',
'ends_bugfixes_at' => '2023-08-08',
'ends_securityfixes_at' => '2024-02-08',
],
[
'major' => 8,
'released_at' => '2020-09-08',
'ends_bugfixes_at' => '2022-07-26',
'ends_securityfixes_at' => '2023-01-24',
],
[
'major' => 7,
'released_at' => '2020-03-03',
'ends_bugfixes_at' => '2020-10-06',
'ends_securityfixes_at' => '2021-03-03',
],
[
'major' => 6,
'released_at' => '2019-09-03',
'ends_bugfixes_at' => '2021-09-07',
'ends_securityfixes_at' => '2022-09-06',
],
[
'major' => 5,
'minor' => 8,
'released_at' => '2019-02-26',
'ends_bugfixes_at' => '2019-08-26',
'ends_securityfixes_at' => '2020-02-26',
],
[
'major' => 5,
'minor' => 7,
'released_at' => '2018-09-04',
'ends_bugfixes_at' => '2019-03-04',
'ends_securityfixes_at' => '2019-09-04',
],
[
'major' => 5,
'minor' => 6,
'released_at' => '2018-02-07',
'ends_bugfixes_at' => '2018-08-07',
'ends_securityfixes_at' => '2019-02-07',
],
[
'major' => 5,
'minor' => 5,
'released_at' => '2017-08-30',
'ends_bugfixes_at' => '2019-08-30',
'ends_securityfixes_at' => '2020-08-30',
],
[
'major' => 5,
'minor' => 4,
'released_at' => '2017-01-24',
'ends_bugfixes_at' => '2017-7-24',
'ends_securityfixes_at' => '2018-01-24',
],
[
'major' => 5,
'minor' => 3,
'released_at' => '2016-08-23',
'ends_bugfixes_at' => '2017-02-23',
'ends_securityfixes_at' => '2017-08-23',
],
[
'major' => 5,
'minor' => 2,
'released_at' => '2015-12-21',
'ends_bugfixes_at' => '2016-06-21',
'ends_securityfixes_at' => '2016-12-12',
],
[
'major' => 5,
'minor' => 1,
'released_at' => '2015-06-09',
'ends_bugfixes_at' => '2017-06-09',
'ends_securityfixes_at' => '2018-06-09',
],
[
'major' => 5,
'released_at' => '2015-02-04',
'ends_bugfixes_at' => '2015-08-04',
'ends_securityfixes_at' => '2016-02-04',
],
[
'major' => 4,
'minor' => 2,
'released_at' => '2014-06-01',
],
[
'major' => 4,
'minor' => 1,
'released_at' => '2013-12-12',
],
[
'major' => 4,
'released_at' => '2013-05-28',
],
[
'major' => 3,
'minor' => 2,
'released_at' => '2012-05-22',
],
[
'major' => 3,
'minor' => 1,
'released_at' => '2012-03-27',
],
[
'major' => 3,
'released_at' => '2012-02-22',
],
[
'major' => 2,
'released_at' => '2011-09-01',
],
[
'major' => 1,
'released_at' => '2011-06-01',
],
])->map(function ($version) {
$version['minor'] = $version['minor'] ?? 0;
$version['patch'] = $version['patch'] ?? 0;

return collect(json_decode(\File::get(base_path('manual-version-info.json')), true))->map(function ($version) {
$release = str_contains($version['release'], '.') ? $version['release'] : $version['release'] . '.0';
[$major, $minor] = EXPLODE('.', $release);
unset($version['release']);
$version['major'] = $major;
$version['minor'] = $minor;
return $version;
});
}
Expand Down
22 changes: 22 additions & 0 deletions manual-version-info.json
Original file line number Diff line number Diff line change
@@ -1,132 +1,154 @@
[
{
"release": "10",
"released_at" : "2023-02-14",
"ends_bugfixes_at": "2024-08-07",
"ends_securityfixes_at": "2025-02-07",
"supported_php": "8.1, 8.2, (8.3)"
},
{
"release": "9",
"released_at" : "2022-02-08",
"ends_bugfixes_at": "2023-08-08",
"ends_securityfixes_at": "2024-02-08",
"supported_php": "8.0, 8.1, 8.2, (8.3)"
},
{
"release": "8",
"released_at" : "2020-09-08",
"ends_bugfixes_at": "2022-07-26",
"ends_securityfixes_at": "2023-01-24",
"supported_php": "7.3, 7.4, 8.0"
},
{
"release": "7",
"released_at" : "2020-03-03",
"ends_bugfixes_at": "2020-10-06",
"ends_securityfixes_at": "2021-03-03",
"supported_php": "7.2, 7.3, 7.4, 8.0"
},
{
"release": "6",
"released_at" : "2019-09-03",
"ends_bugfixes_at": "2021-09-07",
"ends_securityfixes_at": "2022-09-06",
"supported_php": "7.2, 7.3, 7.4"
},
{
"release": "5.8",
"released_at" : "2019-02-26",
"ends_bugfixes_at": "2019-08-26",
"ends_securityfixes_at": "2020-02-26",
"supported_php": "7.1, 7.2, 7.3, 7.4?"
},
{
"release": "5.7",
"released_at" : "2018-09-04",
"ends_bugfixes_at": "2019-03-04",
"ends_securityfixes_at": "2019-09-04",
"supported_php": "7.1, 7.2, 7.3, 7.4?"
},
{
"release": "5.6",
"released_at" : "2018-02-07",
"ends_bugfixes_at": "2018-08-07",
"ends_securityfixes_at": "2019-02-07",
"supported_php": "7.1, 7.2, 7.3, 7.4?"
},
{
"release": "5.5",
"released_at" : "2017-08-30",
"ends_bugfixes_at": "2019-08-30",
"ends_securityfixes_at": "2020-08-30",
"supported_php": "7.0, 7.1, 7.2"
},
{
"release": "5.4",
"released_at" : "2017-01-24",
"ends_bugfixes_at": "2017-07-24",
"ends_securityfixes_at": "2018-01-24",
"supported_php": "5.6, 7.0, 7.1"
},
{
"release": "5.3",
"released_at" : "2016-08-23",
"ends_bugfixes_at": "2017-02-23",
"ends_securityfixes_at": "2017-08-23",
"supported_php": "5.6, 7.0"
},
{
"release": "5.2",
"released_at" : "2015-12-21",
"ends_bugfixes_at": "2016-06-21",
"ends_securityfixes_at": "2016-12-12",
"supported_php": "5.5, 5.6, 7.0"
},
{
"release": "5.1",
"released_at" : "2015-06-09",
"ends_bugfixes_at": "2017-06-09",
"ends_securityfixes_at": "2018-06-09",
"supported_php": "5.5, 5.6, 7.0?"
},
{
"release": "5.0",
"released_at" : "2015-02-04",
"ends_bugfixes_at": "2015-08-04",
"ends_securityfixes_at": "2016-02-04",
"supported_php": "5.4, 5.5, 5.6"
},
{
"release": "4.2",
"released_at" : "2014-06-01",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "4.1",
"released_at" : "2013-12-12",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "4.0",
"released_at" : "2013-05-28",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "3.2",
"released_at" : "2012-05-22",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "3.1",
"released_at" : "2012-03-27",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "3.0",
"released_at" : "2012-02-22",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "2.0",
"released_at" : "2011-09-01",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
},
{
"release": "1.0",
"released_at" : "2011-06-01",
"ends_bugfixes_at": null,
"ends_securityfixes_at": null,
"supported_php": ""
Expand Down
Loading

0 comments on commit 105796e

Please sign in to comment.