(upcomingChangesYml)
| 4 | import renderContent from '../../../../lib/render-content/index.js' |
| 5 | |
| 6 | export default async function processUpcomingChanges(upcomingChangesYml) { |
| 7 | const upcomingChanges = yaml.load(upcomingChangesYml).upcoming_changes |
| 8 | |
| 9 | for (const change of upcomingChanges) { |
| 10 | change.date = change.date.slice(0, 10) |
| 11 | change.reason = await renderContent(change.reason) |
| 12 | change.description = await renderContent(change.description) |
| 13 | } |
| 14 | |
| 15 | return groupBy(upcomingChanges.reverse(), 'date') |
| 16 | } |