From 7ab1a6baea3924ce70e59bf11ed7a9b34ae3dff8 Mon Sep 17 00:00:00 2001 From: Joseph P Medley Date: Fri, 19 Apr 2024 13:40:39 -0700 Subject: [PATCH] Update templates. --- .update | 2 +- package-lock.json | 8 ++++---- package.json | 2 +- templates/clear.md | 5 +---- templates/constructor.md | 4 +--- templates/css.md | 4 +--- templates/delete.md | 4 +--- templates/directive.md | 6 +----- templates/entries.md | 4 +--- templates/foreach.md | 5 +---- templates/get.md | 5 +---- templates/has.md | 5 +---- templates/header.md | 4 +--- templates/interface.md | 4 +--- templates/keys.md | 5 +---- templates/landing.md | 4 +--- templates/method.md | 4 +--- templates/property.md | 4 +--- templates/set.md | 5 +---- templates/size.md | 5 +---- templates/values.md | 5 +---- 21 files changed, 24 insertions(+), 70 deletions(-) diff --git a/.update b/.update index 3b8be3a..b2c74b2 100644 --- a/.update +++ b/.update @@ -1 +1 @@ -Mon Apr 15 2024 11:51:15 GMT-0700 (Pacific Daylight Time) \ No newline at end of file +Fri Apr 19 2024 13:24:50 GMT-0700 (Pacific Daylight Time) \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index d7f3f88..15ed7e6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.1.1", "license": "Apache-2.0", "dependencies": { - "@mdn/browser-compat-data": "^5.5.21", + "@mdn/browser-compat-data": "^5.5.22", "config": "^1.31.0", "download": "^8.0.0", "enquirer": "2.3.5", @@ -39,9 +39,9 @@ } }, "node_modules/@mdn/browser-compat-data": { - "version": "5.5.21", - "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.21.tgz", - "integrity": "sha512-M+KqctZP6J3kIHI+SwQMPbjUM510ex690NRBm0jlFwJ+TNvvuHcp3vCEzUzwtVj5RWEuTROgy5U++3XnN1Przg==" + "version": "5.5.22", + "resolved": "https://registry.npmjs.org/@mdn/browser-compat-data/-/browser-compat-data-5.5.22.tgz", + "integrity": "sha512-2v+HeCb1J4tAi4M9zMR1AtxMBA08q8HMDXbJ1H64sFpXhTU/8W2kBBjTL9TkUQiHaJDFFU6kAFBlsfslP253WA==" }, "node_modules/@sindresorhus/is": { "version": "0.7.0", diff --git a/package.json b/package.json index eeb3caa..8bc9d79 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "url": "https://github.com/jpmedley/MDNBanter/issues" }, "dependencies": { - "@mdn/browser-compat-data": "^5.5.21", + "@mdn/browser-compat-data": "^5.5.22", "config": "^1.31.0", "download": "^8.0.0", "enquirer": "2.3.5", diff --git a/templates/clear.md b/templates/clear.md index dc25c91..3b9b94c 100644 --- a/templates/clear.md +++ b/templates/clear.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].clear() slug: Web/API/[[shared:interface]]/clear -tags: - - clear - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].clear --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/constructor.md b/templates/constructor.md index 79b8f9b..ed80b46 100644 --- a/templates/constructor.md +++ b/templates/constructor.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]].[[shared:interface]]() slug: Web/API/[[shared:interface]]/[[shared:interface]] -tags: - - Constructor - - Reference +page-type: web-api-constructor browser-compat: api.[[shared:interface]].[[shared:interface]] --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/css.md b/templates/css.md index e6b45a2..6fb9f8e 100644 --- a/templates/css.md +++ b/templates/css.md @@ -1,9 +1,7 @@ --- title: [[selector]] slug: Web/CSS/[[selector]] -tags: - - CSS - - Reference +page-type: web-api-interface browser-compat: css.selectors.[[selector]] --- {{CSSRef}} diff --git a/templates/delete.md b/templates/delete.md index 020dd60..98f81e4 100644 --- a/templates/delete.md +++ b/templates/delete.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]].delete() slug: Web/API/[[shared:interface]]/delete -tags: - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].delete --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/directive.md b/templates/directive.md index e31091b..bd74dcd 100644 --- a/templates/directive.md +++ b/templates/directive.md @@ -1,11 +1,7 @@ --- title: 'CSP: [[directive]]' slug: Web/HTTP/Headers/[[shared:header]]/[[directive]] -tags: - - CSP - - Directive - - HTTP - - Reference +page-type: http-header browser-compat: http.headers.[[shared:header]].[[directive]] --- {{HTTPSidebar}} diff --git a/templates/entries.md b/templates/entries.md index 916d40a..a56e801 100644 --- a/templates/entries.md +++ b/templates/entries.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]].entries() slug: Web/API/[[shared:interface]]/entries -tags: - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].entries --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/foreach.md b/templates/foreach.md index 635fd46..41653b3 100644 --- a/templates/foreach.md +++ b/templates/foreach.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].forEach() slug: Web/API/[[shared:interface]]/forEach -tags: - - forEach - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].forEach --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/get.md b/templates/get.md index ca0c9e3..71237b4 100644 --- a/templates/get.md +++ b/templates/get.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].get() slug: Web/API/[[shared:interface]]/get -tags: - - get - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].get --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/has.md b/templates/has.md index 0cbf4f3..ce6143a 100644 --- a/templates/has.md +++ b/templates/has.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].has() slug: Web/API/[[shared:interface]]/has -tags: - - has - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].has --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/header.md b/templates/header.md index 955a909..485bd3a 100644 --- a/templates/header.md +++ b/templates/header.md @@ -1,9 +1,7 @@ --- title: [[shared:header]] slug: Web/HTTP/Headers/[[shared:header]] -tags: - - HTTP - - Reference +page-type: http-header browser-compat: http.headers.[[shared:header]] --- {{HTTPSidebar}} diff --git a/templates/interface.md b/templates/interface.md index 02908be..48aa0d0 100644 --- a/templates/interface.md +++ b/templates/interface.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]] slug: Web/API/[[shared:interface]] -tags: - - Interface - - Reference +page-type: web-api-interface browser-compat: api.[[shared:interface]] --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/keys.md b/templates/keys.md index 561eef6..e9acbf3 100644 --- a/templates/keys.md +++ b/templates/keys.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].keys() slug: Web/API/[[shared:interface]]/keys -tags: - - keys - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].keys --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/landing.md b/templates/landing.md index fdfaa37..d9deb23 100644 --- a/templates/landing.md +++ b/templates/landing.md @@ -1,9 +1,7 @@ --- title: [[shared:formalAPIName]] slug: Web/API/[[slug]] -tags: - - Overview - - Reference +page-type: web-api-overview browser-compat: api.[[shared:interface]] --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/method.md b/templates/method.md index c58e9d8..db17023 100644 --- a/templates/method.md +++ b/templates/method.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]].[[method]]() slug: Web/API/[[shared:interface]]/[[method]] -tags: - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].[[method]] --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/property.md b/templates/property.md index 2ee94b8..ca5df40 100644 --- a/templates/property.md +++ b/templates/property.md @@ -1,9 +1,7 @@ --- title: [[shared:interface]].[[property]] slug: Web/API/[[shared:interface]]/[[property]] -tags: - - Property - - Reference +page-type: web-api-instance-prop browser-compat: api.[[shared:interface]].[[property]] --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/set.md b/templates/set.md index 5755ebf..bdaa0d7 100644 --- a/templates/set.md +++ b/templates/set.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].set() slug: Web/API/[[shared:interface]]/set -tags: - - set - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].set --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/size.md b/templates/size.md index 960b4f8..6c6427f 100644 --- a/templates/size.md +++ b/templates/size.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].size() slug: Web/API/[[shared:interface]]/size -tags: - - size - - Method - - Reference +page-type: web-api-instance-method browser-compat: api.[[shared:interface]].size --- {{draft}}[[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}} diff --git a/templates/values.md b/templates/values.md index 7c6e220..94c118e 100644 --- a/templates/values.md +++ b/templates/values.md @@ -1,10 +1,7 @@ --- title: [[shared:interface]].values() slug: Web/API/[[shared:interface]]/values -tags: - - values - - Method - - Reference +page-type: web-api-instance-method browser-compat: [[shared:interface]].values --- [[shared:isSecureContext]]{{DefaultAPISidebar("[[shared:sidebarMacro]]")}}