Skip to content

Commit

Permalink
Mention bug for fresh features and sort
Browse files Browse the repository at this point in the history
  • Loading branch information
Elchi3 committed Jun 24, 2024
1 parent c959c83 commit aed0404
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .eleventy.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ export default function (eleventyConfig) {
eleventyConfig.addGlobalData("freshFeatures", async () => {
return all.filter(feature => {
return feature.status.support.chrome > 120 || feature.status.support.firefox > 120 || feature.status.support.safari > 17;
})
}).sort((a, b) => new Date(b.status.baseline_low_date) -
new Date(a.status.baseline_low_date)).sort((a, b) => Object.keys(b.status.support).length - Object.keys(a.status.support).length);
});

return {
Expand Down
1 change: 1 addition & 0 deletions site/fresh.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ layout: layout.njk
<h1>{{ title }}</h1>

<p>Fresh means implemented recently in either Chrome 120+ or Firefox 120+ or Safari 17+.</p>
<p><strong>Bug</strong>: Doesn't yet list any pre-release features because of web-features <a href="https://github.com/web-platform-dx/web-features/issues/1275">issue #955</a>.</p>

<p>{{freshFeatures.length }} features found.</p>

Expand Down

0 comments on commit aed0404

Please sign in to comment.