Skip to content

Commit d447ef2

Browse files
Fixed review issues
1 parent c1b9b1f commit d447ef2

3 files changed

Lines changed: 23 additions & 21 deletions

File tree

microsoft-edge/web-platform/release-notes/133.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ The Digital Goods API allows a web application to get information about its digi
280280

281281
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PwaDigitalGoods/explainer.md)
282282
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Digital+Goods%20API,OriginTrialFeedback&title=%5BDigital%20Goods%20API%5D+Feedback)
283-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/4b4a9ead-d912-4349-87b3-25e5e50b4f13)
283+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/4b4a9ead-d912-4349-87b3-25e5e50b4f13)
284284

285285

286286
<!-- ---------- -->
@@ -292,7 +292,7 @@ Allows Microsoft Store-installed Progressive Web Apps (PWAs) to access file cont
292292

293293
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/LocalFolder/explainer.md)
294294
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=LocalFolder+Access,OriginTrialFeedback&amp;title=%5BLocalFolder%20Access%5D+Feedback)
295-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/2b21a8cd-43aa-41da-810d-fad103e699dc)
295+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/2b21a8cd-43aa-41da-810d-fad103e699dc)
296296

297297

298298
<!-- ---------- -->
@@ -304,7 +304,7 @@ Granular per-document and per-element control over which content should allow or
304304

305305
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Handwriting/explainer.md)
306306
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Handwriting,OriginTrialFeedback&amp;title=%5BHandwriting%5D+Feedback)
307-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/36b56357-0271-4e89-a091-3be27184808a)
307+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/36b56357-0271-4e89-a091-3be27184808a)
308308

309309

310310
<!-- ---------- -->
@@ -316,7 +316,7 @@ Supports 3P acquisition attribution for Progressive Web Apps (PWAs) that were ac
316316

317317
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/AcquisitionInfo/explainer.md)
318318
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Acquisition+Info,OriginTrialFeedback&amp;title=%5BAcquisition%20Info%5D+Feedback)
319-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/4013a45f-3f48-4341-81ea-1bc13bf90c83)
319+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/4013a45f-3f48-4341-81ea-1bc13bf90c83)
320320

321321

322322
<!-- ------------------------------ -->

microsoft-edge/web-platform/release-notes/134.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -223,49 +223,49 @@ The following are new experimental APIs which you can try on your own live websi
223223
<!-- ---------- -->
224224
###### Digital Goods API
225225

226-
Expires on 3/31/2025.
226+
Expires on March 31, 2025.
227227

228228
The Digital Goods API allows a web application to get information about its digital products and the user's purchases managed by a digital store. The user agent abstracts connections to the store, and the Payment Request API is used to make purchases.
229229

230230
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/PwaDigitalGoods/explainer.md)
231231
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Digital+Goods%20API,OriginTrialFeedback&amp;title=%5BDigital%20Goods%20API%5D+Feedback)
232-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/4b4a9ead-d912-4349-87b3-25e5e50b4f13)
232+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/4b4a9ead-d912-4349-87b3-25e5e50b4f13)
233233

234234

235235
<!-- ---------- -->
236236
###### Web App `LocalFolder` Access
237237

238-
Expires on 3/31/2025.
238+
Expires on March 31, 2025.
239239

240240
Allows Microsoft Store-installed Progressive Web Apps (PWAs) to access file content that was previously stored in the WinRT `ApplicationData.LocalFolder` folder by an earlier, UWP version of the application.
241241

242242
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/LocalFolder/explainer.md)
243243
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=LocalFolder+Access,OriginTrialFeedback&amp;title=%5BLocalFolder%20Access%5D+Feedback)
244-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/2b21a8cd-43aa-41da-810d-fad103e699dc)
244+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/2b21a8cd-43aa-41da-810d-fad103e699dc)
245245

246246

247247
<!-- ---------- -->
248248
###### HTML+IDL handwriting attribute
249249

250-
Expires on 6/14/2025.
250+
Expires on June 14, 2025.
251251

252252
Granular per-document and per-element control over which content should allow or disallow handwriting input.
253253

254254
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/Handwriting/explainer.md)
255255
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Handwriting,OriginTrialFeedback&amp;title=%5BHandwriting%5D+Feedback)
256-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/36b56357-0271-4e89-a091-3be27184808a)
256+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/36b56357-0271-4e89-a091-3be27184808a)
257257

258258

259259
<!-- ---------- -->
260260
###### Acquisition Info API
261261

262-
Expires on 6/30/2025.
262+
Expires on June 30, 2025.
263263

264264
Supports 3P acquisition attribution for Progressive Web Apps (PWAs) that were acquired through an app store or directly from the browser.
265265

266266
* [Explainer](https://github.com/MicrosoftEdge/MSEdgeExplainers/blob/main/AcquisitionInfo/explainer.md)
267267
* [Feedback](https://github.com/MicrosoftEdge/MSEdgeExplainers/issues/new?labels=Acquisition+Info,OriginTrialFeedback&amp;title=%5BAcquisition%20Info%5D+Feedback)
268-
* [Register](https://developer.microsoft.com/en-us/microsoft-edge/origin-trials/trials/4013a45f-3f48-4341-81ea-1bc13bf90c83)
268+
* [Register](https://developer.microsoft.com/microsoft-edge/origin-trials/trials/4013a45f-3f48-4341-81ea-1bc13bf90c83)
269269

270270

271271
<!-- ====================================================================== -->

scripts/web-platform-release-notes.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ async function fetchChromeStatusAPI(url) {
1414
return data;
1515
}
1616

17+
function longDate(dateString) {
18+
const date = new Date(dateString);
19+
return date.toLocaleString("en-US", {
20+
month: "long",
21+
day: "numeric",
22+
year: "numeric",
23+
});
24+
}
25+
1726
async function main() {
1827
// --------------------------------------------------
1928
// 1. Check which is the next release (first date that's in the future compared to today).
@@ -115,7 +124,7 @@ async function main() {
115124
return {
116125
title: ot.display_name,
117126
description: ot.description,
118-
expiration: new Date(ot.end_time).toLocaleDateString(),
127+
expiration: longDate(ot.end_time),
119128
explainer: ot.documentation_url,
120129
feedback: ot.feedback_url,
121130
registration: `https://developer.chrome.com/origintrials/#/register_trial/${ot.id}`,
@@ -161,14 +170,7 @@ async function main() {
161170
return `${shortMonthWithDot} ${date.getFullYear()}`;
162171
});
163172

164-
eleventyConfig.addShortcode("monthDayYear", function (releaseDate) {
165-
const date = new Date(releaseDate);
166-
return date.toLocaleString("en-US", {
167-
month: "long",
168-
day: "numeric",
169-
year: "numeric",
170-
});
171-
});
173+
eleventyConfig.addShortcode("monthDayYear", longDate);
172174

173175
return {
174176
dir: {

0 commit comments

Comments
 (0)