diff --git a/app/controllers/releases/lts.js b/app/controllers/releases/lts.js index 8eb8c036..53737533 100644 --- a/app/controllers/releases/lts.js +++ b/app/controllers/releases/lts.js @@ -3,14 +3,174 @@ import Controller from '@ember/controller'; export default class ReleasesLtsController extends Controller { // promotion date should be the day of the release of the following ember minor version // you can run `npm info ember-source time` to see a list - currentlySupportedLTS = [ + emberLtsReleases = [ { version: '5.8', promotionDate: new Date('2024-04-15'), + isActive: true, }, { version: '5.4', promotionDate: new Date('2023-12-11'), + isActive: true, + }, + { + version: '4.12', + promotionDate: new Date('2023-05-14'), + isActive: false, + }, + { + version: '4.8', + promotionDate: new Date('2022-12-08'), + isActive: false, + }, + { + version: '4.4', + promotionDate: new Date('2022-07-13'), + isActive: false, + }, + { + version: '3.28', + promotionDate: new Date('2021-12-20'), + isActive: false, + }, + { + version: '3.24', + promotionDate: new Date('2021-02-25'), + isActive: false, + }, + { + version: '3.20', + promotionDate: new Date('2020-09-02'), + isActive: false, + }, + { + version: '3.16', + promotionDate: new Date('2020-03-16'), + isActive: false, + }, + { + version: '3.12', + promotionDate: new Date('2019-09-25'), + isActive: false, + }, + { + version: '3.8', + promotionDate: new Date('2019-04-10'), + isActive: false, + }, + { + version: '3.4', + promotionDate: new Date('2018-10-15'), + isActive: false, + }, + { + version: '2.18', + promotionDate: new Date('2018-02-14'), + isActive: false, + }, + { + version: '2.16', + promotionDate: new Date('2017-11-20'), + isActive: false, + }, + { + version: '2.12', + promotionDate: new Date('2017-04-29'), + isActive: false, + }, + { + version: '2.8', + promotionDate: new Date('2016-10-17'), + isActive: false, + }, + { + version: '2.4', + promotionDate: new Date('2016-04-11'), + isActive: false, + }, + ]; + + dataLtsReleases = [ + { + version: '5.3', + promotionDate: new Date('2023-12-10'), + isActive: true, + }, + { + version: '4.12', + promotionDate: new Date('2023-05-14'), + isActive: true, + }, + { + version: '4.8', + promotionDate: new Date('2022-12-08'), + isActive: false, + }, + { + version: '4.4', + promotionDate: new Date('2022-07-13'), + isActive: false, + }, + { + version: '3.28', + promotionDate: new Date('2021-12-20'), + isActive: false, + }, + { + version: '3.24', + promotionDate: new Date('2021-02-25'), + isActive: false, + }, + { + version: '3.20', + promotionDate: new Date('2020-09-02'), + isActive: false, + }, + { + version: '3.16', + promotionDate: new Date('2020-03-16'), + isActive: false, + }, + { + version: '3.12', + promotionDate: new Date('2019-09-25'), + isActive: false, + }, + { + version: '3.8', + promotionDate: new Date('2019-04-10'), + isActive: false, + }, + { + version: '3.4', + promotionDate: new Date('2018-10-15'), + isActive: false, + }, + { + version: '2.18', + promotionDate: new Date('2018-02-14'), + isActive: false, + }, + { + version: '2.16', + promotionDate: new Date('2017-11-20'), + isActive: false, + }, + { + version: '2.12', + promotionDate: new Date('2017-04-29'), + isActive: false, + }, + { + version: '2.8', + promotionDate: new Date('2016-10-17'), + isActive: false, + }, + { + version: '2.4', + promotionDate: new Date('2016-04-11'), + isActive: false, }, ]; } diff --git a/app/routes/releases/lts.js b/app/routes/releases/lts.js index a0ed0588..75b79290 100644 --- a/app/routes/releases/lts.js +++ b/app/routes/releases/lts.js @@ -1,3 +1,4 @@ +import { hash } from 'rsvp'; import Route from '@ember/routing/route'; import { inject as service } from '@ember/service'; @@ -5,6 +6,9 @@ export default class ReleasesLtsRoute extends Route { @service store; model() { - return this.store.find('project', 'ember/lts'); + return hash({ + ember: this.store.find('project', 'ember/lts'), + emberData: this.store.find('project', 'emberData/lts'), + }); } } diff --git a/app/templates/releases/lts.hbs b/app/templates/releases/lts.hbs index d1de44a1..3fe31f93 100644 --- a/app/templates/releases/lts.hbs +++ b/app/templates/releases/lts.hbs @@ -1,185 +1,138 @@ -{{page-title "LTS"}} +{{page-title 'LTS'}} -
- Long Term Support (LTS) releases receive bugfixes and security updates for an extended period. + Long Term Support (LTS) releases receive bugfixes and security updates for an + extended period.
-- Once a release of Ember gets promoted to LTS, it receives bugfixes for 36 weeks and security updates for 54 weeks. + Once a release of Ember gets promoted to LTS, it receives + bugfixes for 36 weeks + and + security updates for 54 weeks.
- An LTS release is the best version to use if you won't be updating your app frequently, but want to help your app stay secure and working smoothly. - - Another reason to use an LTS is if you have a very large, complex app, since LTS versions get even more testing and scrutiny than usual. + An LTS release is the best version to use if you won't be updating your app + frequently, but want to help your app stay secure and working smoothly. + Another reason to use an LTS is if you have a very large, complex app, since + LTS versions get even more testing and scrutiny than usual.
- An LTS is declared roughly every 4 minor versions, excluding the x.0 minor version. - - The last minor version before the next major release is also considered to be an LTS. - - For example, in Ember 2.x, the following versions were considered LTS's: 2.4, 2.8, 2.12, 2.16, and 2.18 (last version). + An LTS is declared roughly every 4 minor versions, excluding the x.0 minor + version. The last minor version before the next major release is also + considered to be an LTS. For example, in Ember 2.x, the following versions + were considered LTS's: 2.4, 2.8, 2.12, 2.16, and 2.18 (last version).
- Before a version can be called an "LTS" release, it has to spend at least 6 weeks as a stable release, where it is used and tested by thousands of developers. + Before a version can be called an "LTS" release, it has to spend at least 6 + weeks as a stable release, where it is used and tested by thousands of + developers.
- A complete release history for Ember is available on GitHub. + A complete release history for Ember is available + on GitHub.
-- Ember currently supports these LTS versions for Ember.js, Ember CLI, and Ember Data. + Ember currently supports these LTS versions for Ember.js and Ember Data.
-LTS version | +LTS Version | Promotion date | Bugfixes until | Security patches until | +Status | ||
---|---|---|---|---|---|---|---|
{{release.version}} | -{{format-date-time release.promotionDate "MMMM D, YYYY"}} | -{{format-date-time (add-weeks release.promotionDate 30) "MMMM D, YYYY"}} | -{{format-date-time (add-weeks release.promotionDate 54) "MMMM D, YYYY"}} | +{{format-date-time release.promotionDate 'MMMM D, YYYY'}} | +{{format-date-time + (add-weeks release.promotionDate 30) + 'MMMM D, YYYY' + }} | +{{format-date-time + (add-weeks release.promotionDate 54) + 'MMMM D, YYYY' + }} | +{{if release.isActive 'Active' 'End of life'}} |
LTS Version | +Promotion date | +Bugfixes until | +Security patches until | +Status | +
---|
LTS version | -LTS promotion | -Bugfixes until | -Security patches until | -
---|---|---|---|
4.12 | -May 14, 2023 | -December 10, 2023 | -May 26, 2024 | -
4.8 | -December 8, 2022 | -July 6, 2023 | -December 21, 2023 | -
4.4 | -July 13, 2022 | -February 8, 2023 | -July 26, 2023 | -
3.28 | -December 20, 2021 | -July 18, 2022 | -January 2, 2023 | -
3.24 | -February 25, 2021 | -September 23, 2021 | -March 10, 2022 | -
3.20 | -September 2, 2020 | -March 31, 2021 | -September 15, 2021 | -
3.16 | -March 16, 2020 | -October 12, 2020 | -March 29, 2021 | -
3.12 | -September 25, 2019 | -April 22, 2020 | -October 7, 2020 | -
3.8 | -April 10, 2019 | -November 6, 2019 | -April 22, 2020 | -
3.4 | -October 15, 2018 | -May 13, 2019 | -October 28, 2019 | -
2.18 | -February 14, 2018 | -September 12, 2018 | -February 27, 2019 | -
2.16 | -November 20, 2017 | -June 18, 2018 | -December 3, 2018 | -
2.12 | -April 29, 2017 | -November 25, 2017 | -May 12, 2018 | -
2.8 | -October 17, 2016 | -May 15, 2017 | -October 30, 2017 | -
2.4 | -April 11, 2016 | -November 7, 2016 | -April 24, 2017 | -