Skip to content

Commit d96805e

Browse files
authored
Merge branch 'main' into rm-dated-pp
2 parents 6258c78 + f4497ec commit d96805e

31 files changed

+251
-211
lines changed

.github/workflows/node.js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: ubuntu-latest
1515
strategy:
1616
matrix:
17-
node-version: [18.x, 20.x, 22.x]
17+
node-version: [20.x, 22.x]
1818
steps:
1919
- name: Checkout
2020
if: ${{ github.event_name != 'pull_request_target' }}

lib/profiles/TR/Recommendation/DISC.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ export const config = {
1414
};
1515

1616
export const rules = removeRules(baseRules, [
17+
'headers.editor-participation',
1718
'structure.security-privacy',
1819
'sotd.diff',
1920
]);

lib/rules.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

lib/rules/sotd/draft-stability.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export function check(sr, done) {
1515
const sotd = sr.getSotDSection();
1616
const { crType, cryType } = sr.config;
1717
const STABILITY_REX =
18-
/This is a draft document and may be updated, replaced,? or obsoleted by other documents at any time\. It is inappropriate to cite this document as other than work in progress\./;
18+
/This is a draft document and may be updated, replaced,? or obsoleted by other documents at any time\. It is inappropriate to cite this document as other than a work in progress\./;
1919

2020
const STABILITY_2 =
2121
'This document is maintained and updated at any time. Some parts of this document are work in progress.';

lib/rules/sotd/pp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ function buildWanted(groups, sr) {
4848
}instructions for disclosing a patent\\.`;
4949
if (config.track === 'Recommendation' || config.track === 'Note')
5050
wanted +=
51-
' An individual who has actual knowledge of a patent which the individual ' +
51+
' An individual who has actual knowledge of a patent that the individual ' +
5252
'believes contains Essential Claim\\(s\\) must disclose the information in ' +
5353
'accordance with section 6 of the W3C Patent Policy\\.';
5454
} else {

lib/rules/sotd/supersedable.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// <p><em>This section describes the status of this document at the time of its publication.
44
// A list of current W3C publications and the
55
// latest revision of this technical report can be found in the
6-
// <a href="https://www.w3.org/TR/">W3C Standards and draft index</a> at https://www.w3.org/TR/.</em></p>
6+
// <a href="https://www.w3.org/TR/">W3C Standards and draft index</a>.</em></p>
77

88
import { filter } from '../../util.js';
99

@@ -38,7 +38,7 @@ export function check(sr, done) {
3838
sr.config.status === 'SUBM'
3939
? ''
4040
: 'and the latest revision of this technical report '
41-
}can be found in the W3C standards and drafts index at https://www.w3.org/TR/.`;
41+
}can be found in the W3C standards and drafts index.`;
4242

4343
const deprecatedWanted = wanted.replace(
4444
'W3C standards and drafts index',

lib/util.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,22 @@ export const allProfiles = [
5353
...filesSUBM.map(x => `SUBM/${x}`),
5454
];
5555

56+
export const profiles = Object.fromEntries(
57+
allProfiles
58+
.map(file => {
59+
const match =
60+
/((TR|SUBM)\/([A-Za-z]+\/)?([A-Z][A-Z-]*[A-Z](-Echidna)?))\.js$/.exec(
61+
file
62+
);
63+
if (match && match[4]) {
64+
const key = match[4];
65+
return [key, import(`./profiles/${match[0]}`)];
66+
}
67+
return null;
68+
})
69+
.filter(Boolean)
70+
);
71+
5672
/**
5773
* Build a function that builds an “options” object based on certain parameters.
5874
*

0 commit comments

Comments
 (0)