Skip to content

Commit aed0404

Browse files
committed
Mention bug for fresh features and sort
1 parent c959c83 commit aed0404

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.eleventy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ export default function (eleventyConfig) {
6262
eleventyConfig.addGlobalData("freshFeatures", async () => {
6363
return all.filter(feature => {
6464
return feature.status.support.chrome > 120 || feature.status.support.firefox > 120 || feature.status.support.safari > 17;
65-
})
65+
}).sort((a, b) => new Date(b.status.baseline_low_date) -
66+
new Date(a.status.baseline_low_date)).sort((a, b) => Object.keys(b.status.support).length - Object.keys(a.status.support).length);
6667
});
6768

6869
return {

site/fresh.njk

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ layout: layout.njk
55
<h1>{{ title }}</h1>
66

77
<p>Fresh means implemented recently in either Chrome 120+ or Firefox 120+ or Safari 17+.</p>
8+
<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>
89

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

0 commit comments

Comments
 (0)