browser-specs 2.15.1 → 2.18.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (5) hide show
  1. package/CHANGELOG.md +1452 -0
  2. package/LICENSE.md +54 -54
  3. package/README.md +562 -562
  4. package/index.json +15441 -15335
  5. package/package.json +10 -9
package/README.md CHANGED
@@ -1,563 +1,563 @@
1
- # Web browser specifications
2
-
3
- This repository contains a curated list of technical Web specifications that are
4
- directly implemented or that will be implemented by Web browsers (see [Spec
5
- selection criteria](#spec-selection-criteria)).
6
-
7
- This list is meant to be an up-to-date input source for projects that run
8
- analyses on browser technologies to create reports on test coverage,
9
- cross-references, WebIDL, quality, etc.
10
-
11
-
12
- ## Table of Contents
13
-
14
- - [Installation and usage](#installation-and-usage)
15
- - [Spec object](#spec-object)
16
- - [`url`](#url)
17
- - [`shortname`](#shortname)
18
- - [`title`](#title)
19
- - [`shortTitle`](#shorttitle)
20
- - [`series`](#series)
21
- - [`series.shortname`](#seriesshortname)
22
- - [`series.currentSpecification`](#seriescurrentspecification)
23
- - [`series.releaseUrl`](#seriesreleaseurl)
24
- - [`series.nightlyUrl`](#seriesnightlyurl)
25
- - [`seriesVersion`](#seriesversion)
26
- - [`seriesComposition`](#seriescomposition)
27
- - [`seriesPrevious`](#seriesprevious)
28
- - [`seriesNext`](#seriesnext)
29
- - [`organization`](#organization)
30
- - [`groups`](#groups)
31
- - [`release`](#release)
32
- - [`release.url`](#releaseurl)
33
- - [`release.filename`](#releasefilename)
34
- - [`release.pages`](#releasepages)
35
- - [`nightly`](#nightly)
36
- - [`nightly.url`](#nightlyurl)
37
- - [`nightly.filename`](#nightlyfilename)
38
- - [`nightly.pages`](#nightlypages)
39
- - [`nightly.repository`](#nightlyrepository)
40
- - [`nightly.sourcePath`](#nightlysourcepath)
41
- - [`tests`](#tests)
42
- - [`tests.repository`](#testsrepository)
43
- - [`tests.testPaths`](#teststestpaths)
44
- - [`tests.excludePaths`](#testsexcludepaths)
45
- - [`source`](#source)
46
- - [How to add/update/delete a spec](#how-to-addupdatedelete-a-spec)
47
- - [Spec selection criteria](#spec-selection-criteria)
48
- - [Versioning](#versioning)
49
- - [Development notes](#development-notes)
50
- - [How to generate `index.json` manually](#how-to-generate-indexjson-manually)
51
- - [Debugging tool](#debugging-tool)
52
- - [Tests](#tests)
53
- - [How to release a new version](#how-to-release-a-new-version)
54
-
55
-
56
- ## Installation and usage
57
-
58
- The list is distributed as an NPM package. To incorporate it to your project,
59
- run:
60
-
61
- ```bash
62
- npm install browser-specs
63
- ```
64
-
65
- You can then retrieve the list from your Node.js program:
66
-
67
- ```js
68
- const specs = require("browser-specs");
69
- console.log(JSON.stringify(specs, null, 2));
70
- ```
71
-
72
- Alternatively, you can either retrieve the [latest
73
- release](https://github.com/w3c/browser-specs/releases/latest) or fetch
74
- [`index.json`](https://w3c.github.io/browser-specs/index.json).
75
-
76
- **Note:** If you choose to fetch the `index.json` file directly, keep in mind
77
- that it may contain (possibly incorrect) updates that have not yet been included
78
- in the NPM package and the latest GitHub release (see also #38).
79
-
80
-
81
- ## Spec object
82
-
83
- Each specification in the list comes with the following properties:
84
-
85
- ```json
86
- {
87
- "url": "https://www.w3.org/TR/css-color-4/",
88
- "seriesComposition": "full",
89
- "shortname": "css-color-4",
90
- "series": {
91
- "shortname": "css-color",
92
- "currentSpecification": "css-color-4",
93
- "releaseUrl": "https://www.w3.org/TR/css-color/",
94
- "nightlyUrl": "https://drafts.csswg.org/css-color/"
95
- },
96
- "seriesVersion": "4",
97
- "seriesNext": "css-color-5",
98
- "organization": "W3C",
99
- "groups": [
100
- {
101
- "name": "Cascading Style Sheets (CSS) Working Group",
102
- "url": "https://www.w3.org/Style/CSS/"
103
- }
104
- ],
105
- "release": {
106
- "url": "https://www.w3.org/TR/css-color-4/",
107
- "filename": "Overview.html"
108
- },
109
- "nightly": {
110
- "url": "https://drafts.csswg.org/css-color/",
111
- "repository": "https://github.com/w3c/csswg-drafts",
112
- "sourcePath": "css-color-4/Overview.bs",
113
- "filename": "Overview.html"
114
- },
115
- "title": "CSS Color Module Level 4",
116
- "source": "w3c",
117
- "shortTitle": "CSS Color 4",
118
- "tests": {
119
- "repository": "https://github.com/web-platform-tests/wpt",
120
- "testPaths": [
121
- "css/css-color"
122
- ]
123
- }
124
- }
125
- ```
126
-
127
-
128
- ### `url`
129
-
130
- The versioned (but not dated) URL for the spec. For W3C specs published as
131
- TR documents, this is the TR URL. For WHATWG specs, this is the URL of the
132
- living standard. In other cases, this is the URL of the latest Editor's Draft.
133
-
134
- The `url` property is always set.
135
-
136
-
137
- ### `shortname`
138
-
139
- A shortname that uniquely identifies the spec in the list. The value matches the
140
- "well-known" shortname of the spec, that usually appears in the versioned URL.
141
- For instance, for W3C specs published as TR documents, this is the TR shortname.
142
- For WHATWG specs, this is the shortname that appears at the beginning of the URL
143
- (e.g. `compat` for `https://compat.spec.whatwg.org/`). For specs developed on
144
- GitHub, this is usually the name of repository that holds the spec.
145
-
146
- The `shortname` property is always set.
147
-
148
-
149
- ### `title`
150
-
151
- The title of the spec. The title is either retrieved from the
152
- [W3C API](https://w3c.github.io/w3c-api/) for W3C specs,
153
- [Specref](https://www.specref.org/) or from the spec itself. The
154
- [`source`](#source) property details the actual provenance.
155
-
156
- The `title` property is always set.
157
-
158
-
159
- ### `shortTitle`
160
-
161
- The short title of the spec. In most cases, the short title is generated from
162
- `title` by dropping terms such as "Module", "Level", or "Standard". In some
163
- cases, the short title is set manually.
164
-
165
- The `shortTitle` property is always set. When there is no meaningful short
166
- title, the property is set to the actual (possibly long) title of the spec.
167
-
168
-
169
- ### `series`
170
-
171
- An object that describes the series that the spec is part of. A series includes
172
- existing levels/versions of the spec. For instance, CSS Color Module Level 4
173
- belongs to the same series as CSS Color Module Level 3 and CSS Color Module
174
- Level 5.
175
-
176
- Please note that the list only contains specs that are deemed to be
177
- [of interest](#spec-selection-criteria). In particular, the list does not
178
- contain levels and versions that have been fully superseded, and may not contain
179
- early drafts of new levels and versions either.
180
-
181
- The `series` property is always set.
182
-
183
-
184
- #### `series.shortname`
185
-
186
- A shortname that uniquely identifies the series. In most cases, the shortname
187
- is the shortname of the spec without the level or version number. For instance,
188
- the series' shortname for `css-color-5` is `css-color`. When a specification is
189
- not versioned, the series' shortname is identical to the spec's shortname.
190
-
191
- The `shortname` property is always set.
192
-
193
-
194
- #### `series.currentSpecification`
195
-
196
- The shortname of the spec that should be regarded as the current level or
197
- version in the series. The current spec in a series is up to the group who
198
- develops the series. In most cases, the current spec is the latest level or
199
- version in the series that is a "full" spec (see
200
- [`seriesComposition`](#seriescomposition)).
201
-
202
- The `currentSpecification` property is always set.
203
-
204
-
205
- #### `series.releaseUrl`
206
-
207
- The URL of the latest published snapshot for the spec series. For leveled specs
208
- (those that create a series), this matches the unversioned URL. That
209
- unversioned URL should return the specification identified by the
210
- [`currentSpecification`](#seriescurrentspecification) property.
211
-
212
- For instance, this property will be set to `https://www.w3.org/TR/css-fonts/`
213
- for all specifications in the CSS Fonts series.
214
-
215
- For non-leveled specs, this matches the [`url`](#url) property.
216
-
217
- The `releaseUrl` property is only set for W3C specs published as TR documents.
218
-
219
-
220
- #### `series.nightlyUrl`
221
-
222
- For leveled specs (those that create a series), this matches the unversioned URL
223
- that allows to access the latest Editor's Draft of the current specification in
224
- the series.
225
-
226
- For instance, this property will be set to `https://drafts.csswg.org/css-fonts/`
227
- for all specifications in the CSS Fonts series.
228
-
229
- For specs that are not part of a series of specs, this matches the
230
- [`nightly.url`](#nightlyurl) property.
231
-
232
- The `nightlyUrl` property is always set.
233
-
234
-
235
- ### `seriesVersion`
236
-
237
- The level or version of the spec, represented as an `x`, `x.y` or `x.y.z` string
238
- with `x`, `y` and `z` numbers, and `x` always greater than or equal to `1`. For
239
- instance, this property will have the value `1.2` (as a string, so enclosed
240
- in `"`) for the WAI-ARIA 1.2 spec.
241
-
242
- The `seriesVersion` property is only set for specs that have a level or version
243
- number.
244
-
245
-
246
- ### `seriesComposition`
247
-
248
- Whether the spec is a standalone spec, or whether it is a delta spec over the
249
- previous level or version in the series. Possible values are `full` or `delta`.
250
-
251
- The `seriesComposition` property is always set.
252
-
253
-
254
- ### `seriesPrevious`
255
-
256
- The `shortname` of the previous spec in the series.
257
-
258
- The `seriesPrevious` property is only set where there is a previous level or
259
- version.
260
-
261
-
262
- ### `seriesNext`
263
-
264
- The `shortname` of the next spec in the series.
265
-
266
- The `seriesNext` property is only set where there is a next level or version.
267
-
268
-
269
- ### `organization`
270
-
271
- The name of the standardization organization that owns the spec such as `W3C`,
272
- `WHATWG`, `IETF`, `Ecma International`, `Khronos Group`.
273
-
274
- The `organization` property is always set.
275
-
276
-
277
- ### `groups`
278
-
279
- The list the groups that develop (or developed) the spec. Each item in the array
280
- is an object with a `name` property that contains the human-readable name of the
281
- group and a `url` property that targets the homepage of the group.
282
-
283
- The `groups` property is always set. In most cases, a spec is developed by one
284
- and only one group.
285
-
286
-
287
- ### `release`
288
-
289
- An object that represents the latest published snapshot of the spec, when it
290
- exists.
291
-
292
- The `release` property is only set for W3C specs published as TR documents.
293
-
294
-
295
- #### `release.url`
296
-
297
- The URL of the latest published snapshot of the spec. Matches the versioned
298
- URL (see [`url`](#url)).
299
-
300
- The `url` property is always set.
301
-
302
-
303
- #### `release.filename`
304
-
305
- The filename of the resource that gets served when the default URL is fetched.
306
- For instance, the filename for `https://www.w3.org/TR/presentation-api/` is
307
- `Overview.html`, meaning that the specification could also be retrieved from
308
- `https://www.w3.org/TR/presentation-api/Overview.html`. The filename may be
309
- useful to distinguish links to self in a spec.
310
-
311
- The `filename` property is always set.
312
-
313
-
314
- #### `release.pages`
315
-
316
- The list of absolute page URLs when the spec is a multipage spec.
317
-
318
- The `pages` property is only set for specs identified as multipage specs.
319
-
320
-
321
- ### `nightly`
322
-
323
- An object that represents the latest Editor's Draft of the spec, or the living
324
- standard when the concept of Editor's Draft does not exist.
325
-
326
- The `nightly` property is always set.
327
-
328
-
329
- #### `nightly.url`
330
-
331
- The URL of the latest Editor's Draft or of the living standard.
332
-
333
- The URL is either retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
334
- for W3C specs, or [Specref](https://www.specref.org/). The document at the
335
- versioned URL is considered to be the latest Editor's Draft if the spec does
336
- neither exist in the W3C API nor in Specref. The [`source`](#source) property
337
- details the actual provenance.
338
-
339
- The `url` property is always set.
340
-
341
-
342
- #### `nightly.filename`
343
-
344
- The filename of the resource that gets served when the default URL is fetched.
345
- For instance, the filename for `https://w3c.github.io/presentation-api/` is
346
- `index.html`, meaning that the specification could also be retrieved from
347
- `https://w3c.github.io/presentation-api/index.html`. The filename may be
348
- useful to distinguish links to self in a spec.
349
-
350
- The `filename` property is always set.
351
-
352
-
353
- #### `nightly.pages`
354
-
355
- The list of absolute page URLs when the spec is a multipage spec.
356
-
357
- The `pages` property is only set for specs identified as multipage specs.
358
-
359
-
360
- #### `nightly.repository`
361
-
362
- The URL of the repository that contains the source of the Editor's Draft or of
363
- the living standard.
364
-
365
- The URL is either retrieved from the [Specref](https://www.specref.org/) or
366
- computed from `nightly.url`.
367
-
368
- The `repository` property is always set except for IETF specs where such a repo does not always exist.
369
-
370
-
371
- #### `nightly.sourcePath`
372
-
373
- The relative path to the filename that contains the source of the Editor's Draft
374
- or of the living standard at the HEAD of the default branch of the repository.
375
-
376
- That path is computed by parsing the contents of the repository for common
377
- patterns. The info must be specified in `specs.json` for specifications that do
378
- not follow a common pattern.
379
-
380
- The `sourcePath` property is always set when `repository` is set.
381
-
382
- **Note:** The path is relative to the root of the repository, and only valid in
383
- the default branch of the repository. If needed, the source may be fetched from
384
- the absolute HTTPS URL `${nightly.repository}/blob/HEAD/${nightly.sourcePath}`.
385
-
386
-
387
- ### `tests`
388
-
389
- An object that links the specification with its test suite when it has one.
390
-
391
-
392
- #### `tests.repository`
393
-
394
- The URL of the repository that contains the test suite of the specification,
395
- typically `https://github.com/web-platform-tests/wpt`.
396
-
397
- The `repository` property is always set when the `tests` object is present.
398
-
399
- #### `tests.testPaths`
400
-
401
- The list of relative paths to the actual tests at the HEAD of the default branch
402
- of the test repository.
403
-
404
- For test suites within [Web Platform
405
- Tests](https://github.com/web-platform-tests/wpt), the list is determined by
406
- looking at `META.yml` files within each folder.
407
-
408
- The `testPaths` array typically only contains one entry, but tests of a given
409
- spec are sometimes spread over multiple folders. For instance, that is the case
410
- for DOM and HTML tests.
411
-
412
- The `testPaths` property is usually set when the `tests` object is present. When
413
- absent, that means that the entire repository is the test suite.
414
-
415
- #### `tests.excludePaths`
416
-
417
- The list of relative sub-paths of paths listed in the `testPaths` property that
418
- do not contain tests for the underlying spec. For instance, tests for the
419
- WebXR Device API are under the
420
- [`webxr`](https://github.com/web-platform-tests/wpt/tree/master/webxr) folder,
421
- but several folders under `webxr` actually contain test suites for WebXR module
422
- specs and as such need to be excluded from the test suite of the WebXR Device
423
- API spec.
424
-
425
- The `excludePaths` property is seldom set.
426
-
427
-
428
- ### `source`
429
-
430
- The provenance for the `title` and `nightly` property values. Can be one of:
431
- - `w3c`: information retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
432
- - `specref`: information retrieved from [Specref](https://www.specref.org/)
433
- - `spec`: information retrieved from the spec itself
434
-
435
- The `source` property is always set.
436
-
437
-
438
- ## How to add/update/delete a spec
439
-
440
- If you believe that a spec should be added, modified, or removed from the list,
441
- or if you would like to otherwise contribute to this project, please check
442
- [contributing instructions](CONTRIBUTING.md).
443
-
444
-
445
- ## Spec selection criteria
446
-
447
- This repository contains a curated list of technical Web specifications that are
448
- deemed relevant for Web browsers. Roughly speaking, this list should match the
449
- list of specs that appear in projects such as [Web Platform
450
- Tests](https://github.com/web-platform-tests/wpt) or
451
- [MDN](https://developer.mozilla.org/).
452
-
453
- To try to make things more concrete, the following criteria are used to assess
454
- whether a spec should a priori appear in the list:
455
-
456
- 1. The spec is stable or in development. Superseded and abandoned specs will not
457
- appear in the list. For instance, the list contains the HTML LS spec, but not
458
- HTML 4.01 or HTML 5).
459
- 2. The spec is being developed by a well-known standardization or
460
- pre-standardization group. Today, this means a W3C Working Group or Community
461
- Group, the WHATWG, or the Khronos Group.
462
- 3. Web browsers expressed some level of support for the spec, e.g. through a
463
- public intent to implement.
464
- 4. The spec sits at the application layer or is "close to it". For instance,
465
- most IETF specs are likely out of scope, but some that are exposed to Web developers are in scope.
466
- 5. The spec defines normative content (terms, CSS, IDL), or it contains
467
- informative content that other specs often need to refer to (e.g. guidelines
468
- from horizontal activities such as accessibility, internationalization, privacy
469
- and security).
470
-
471
- There are and there will be exceptions to the rule. Besides, some of these
472
- criteria remain fuzzy and/or arbitrary, and we expect them to evolve over time,
473
- typically driven by needs expressed by projects that may want to use the list.
474
-
475
-
476
- ## Versioning
477
-
478
- This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
479
- with the following increment rules given a `major.minor.patch` version:
480
- - `major`: A property disappeared, its meaning has changed, or some other
481
- incompatible API change was made. When the `major` number gets incremented, code
482
- that parses the list likely needs to be updated.
483
- - `minor`: A new property was added, the list of specs changed (a new spec
484
- added, or a spec was removed). Code that parses the list should continue to work
485
- undisturbed, but please note that there is no guarantee that a spec that was
486
- present in the previous version will continue to appear in the new version.
487
- Situations where a spec gets dropped should remain scarce. If you believe that
488
- removal of a spec should rather trigger a `major` update, please
489
- [raise an issue](https://github.com/w3c/browser-specs/issues/new) and explain
490
- how it affects your project.
491
- - `patch`: Info about one or more specs changed. Minor updates were made to the
492
- code that don't affect the list.
493
-
494
-
495
- ## Development notes
496
-
497
- ### How to generate `index.json` manually
498
-
499
- To re-generate the `index.json` file locally, run:
500
-
501
- ```bash
502
- npm run build
503
- ```
504
-
505
- **Important:** The generation process will try to retrieve information about W3C
506
- specification from the W3C API. For that to work, the code requires the presence
507
- of a `config.json` file in the root folder with a `w3cApiKey` field set to a
508
- valid [W3C API key](https://w3c.github.io/w3c-api/) and a `githubToken` field
509
- set to a valid [GitHub Personal Token](https://github.com/settings/tokens)
510
- (default read permissions are enough).
511
-
512
-
513
- ### Tests
514
-
515
- To run all tests or to test a given module locally, use one of:
516
-
517
- ```bash
518
- npm test
519
- npm test test/compute-shortname
520
- ```
521
-
522
- Tests are run automatically on pull requests.
523
-
524
-
525
- ### Debugging tool
526
-
527
- The `index.js` module can be used as a command-line interface (CLI) to quickly
528
- look at a given spec in the `index.json` file. The command outputs the spec or
529
- list of specs that match the provided token as a formatted JSON string.
530
-
531
- For instance, to retrieve all specs, the Compatibility Standard spec, the
532
- CSS Media Queries Module Level 5 spec, all delta specs, and a spec identified by
533
- its URL, run:
534
-
535
- ```bash
536
- node index.js
537
- node index.js compat
538
- node index.js mediaqueries-5
539
- node index.js delta
540
- node index.js https://w3c.github.io/presentation-api/
541
- ```
542
-
543
- **Note:** The `index.js` CLI is not part of the released package, which only
544
- contains the actual list of specifications.
545
-
546
-
547
- ### How to release a new version
548
-
549
- Provided that you have the appropriate admin rights and that a `GITHUB_TOKEN`
550
- environment variable is set to a [GitHub Personal
551
- Token](https://github.com/settings/tokens) with `repo` rights, you may release a
552
- new version through the following command, to be run from an up-to-date local
553
- `main` branch:
554
-
555
- ```bash
556
- npm run release
557
- ```
558
-
559
- The release command should take care of everything including incrementing the
560
- version number, updating the [changelog](CHANGELOG.md), creating a GitHub
561
- Release, and publishing a new NPM package. The command is interactive and will
562
- ask you to confirm the different steps. Please check the [versioning
1
+ # Web browser specifications
2
+
3
+ This repository contains a curated list of technical Web specifications that are
4
+ directly implemented or that will be implemented by Web browsers (see [Spec
5
+ selection criteria](#spec-selection-criteria)).
6
+
7
+ This list is meant to be an up-to-date input source for projects that run
8
+ analyses on browser technologies to create reports on test coverage,
9
+ cross-references, WebIDL, quality, etc.
10
+
11
+
12
+ ## Table of Contents
13
+
14
+ - [Installation and usage](#installation-and-usage)
15
+ - [Spec object](#spec-object)
16
+ - [`url`](#url)
17
+ - [`shortname`](#shortname)
18
+ - [`title`](#title)
19
+ - [`shortTitle`](#shorttitle)
20
+ - [`series`](#series)
21
+ - [`series.shortname`](#seriesshortname)
22
+ - [`series.currentSpecification`](#seriescurrentspecification)
23
+ - [`series.releaseUrl`](#seriesreleaseurl)
24
+ - [`series.nightlyUrl`](#seriesnightlyurl)
25
+ - [`seriesVersion`](#seriesversion)
26
+ - [`seriesComposition`](#seriescomposition)
27
+ - [`seriesPrevious`](#seriesprevious)
28
+ - [`seriesNext`](#seriesnext)
29
+ - [`organization`](#organization)
30
+ - [`groups`](#groups)
31
+ - [`release`](#release)
32
+ - [`release.url`](#releaseurl)
33
+ - [`release.filename`](#releasefilename)
34
+ - [`release.pages`](#releasepages)
35
+ - [`nightly`](#nightly)
36
+ - [`nightly.url`](#nightlyurl)
37
+ - [`nightly.filename`](#nightlyfilename)
38
+ - [`nightly.pages`](#nightlypages)
39
+ - [`nightly.repository`](#nightlyrepository)
40
+ - [`nightly.sourcePath`](#nightlysourcepath)
41
+ - [`tests`](#tests)
42
+ - [`tests.repository`](#testsrepository)
43
+ - [`tests.testPaths`](#teststestpaths)
44
+ - [`tests.excludePaths`](#testsexcludepaths)
45
+ - [`source`](#source)
46
+ - [How to add/update/delete a spec](#how-to-addupdatedelete-a-spec)
47
+ - [Spec selection criteria](#spec-selection-criteria)
48
+ - [Versioning](#versioning)
49
+ - [Development notes](#development-notes)
50
+ - [How to generate `index.json` manually](#how-to-generate-indexjson-manually)
51
+ - [Debugging tool](#debugging-tool)
52
+ - [Tests](#tests)
53
+ - [How to release a new version](#how-to-release-a-new-version)
54
+
55
+
56
+ ## Installation and usage
57
+
58
+ The list is distributed as an NPM package. To incorporate it to your project,
59
+ run:
60
+
61
+ ```bash
62
+ npm install browser-specs
63
+ ```
64
+
65
+ You can then retrieve the list from your Node.js program:
66
+
67
+ ```js
68
+ const specs = require("browser-specs");
69
+ console.log(JSON.stringify(specs, null, 2));
70
+ ```
71
+
72
+ Alternatively, you can either retrieve the [latest
73
+ release](https://github.com/w3c/browser-specs/releases/latest) or fetch
74
+ [`index.json`](https://w3c.github.io/browser-specs/index.json).
75
+
76
+ **Note:** If you choose to fetch the `index.json` file directly, keep in mind
77
+ that it may contain (possibly incorrect) updates that have not yet been included
78
+ in the NPM package and the latest GitHub release (see also #38).
79
+
80
+
81
+ ## Spec object
82
+
83
+ Each specification in the list comes with the following properties:
84
+
85
+ ```json
86
+ {
87
+ "url": "https://www.w3.org/TR/css-color-4/",
88
+ "seriesComposition": "full",
89
+ "shortname": "css-color-4",
90
+ "series": {
91
+ "shortname": "css-color",
92
+ "currentSpecification": "css-color-4",
93
+ "releaseUrl": "https://www.w3.org/TR/css-color/",
94
+ "nightlyUrl": "https://drafts.csswg.org/css-color/"
95
+ },
96
+ "seriesVersion": "4",
97
+ "seriesNext": "css-color-5",
98
+ "organization": "W3C",
99
+ "groups": [
100
+ {
101
+ "name": "Cascading Style Sheets (CSS) Working Group",
102
+ "url": "https://www.w3.org/Style/CSS/"
103
+ }
104
+ ],
105
+ "release": {
106
+ "url": "https://www.w3.org/TR/css-color-4/",
107
+ "filename": "Overview.html"
108
+ },
109
+ "nightly": {
110
+ "url": "https://drafts.csswg.org/css-color/",
111
+ "repository": "https://github.com/w3c/csswg-drafts",
112
+ "sourcePath": "css-color-4/Overview.bs",
113
+ "filename": "Overview.html"
114
+ },
115
+ "title": "CSS Color Module Level 4",
116
+ "source": "w3c",
117
+ "shortTitle": "CSS Color 4",
118
+ "tests": {
119
+ "repository": "https://github.com/web-platform-tests/wpt",
120
+ "testPaths": [
121
+ "css/css-color"
122
+ ]
123
+ }
124
+ }
125
+ ```
126
+
127
+
128
+ ### `url`
129
+
130
+ The versioned (but not dated) URL for the spec. For W3C specs published as
131
+ TR documents, this is the TR URL. For WHATWG specs, this is the URL of the
132
+ living standard. In other cases, this is the URL of the latest Editor's Draft.
133
+
134
+ The `url` property is always set.
135
+
136
+
137
+ ### `shortname`
138
+
139
+ A shortname that uniquely identifies the spec in the list. The value matches the
140
+ "well-known" shortname of the spec, that usually appears in the versioned URL.
141
+ For instance, for W3C specs published as TR documents, this is the TR shortname.
142
+ For WHATWG specs, this is the shortname that appears at the beginning of the URL
143
+ (e.g. `compat` for `https://compat.spec.whatwg.org/`). For specs developed on
144
+ GitHub, this is usually the name of repository that holds the spec.
145
+
146
+ The `shortname` property is always set.
147
+
148
+
149
+ ### `title`
150
+
151
+ The title of the spec. The title is either retrieved from the
152
+ [W3C API](https://w3c.github.io/w3c-api/) for W3C specs,
153
+ [Specref](https://www.specref.org/) or from the spec itself. The
154
+ [`source`](#source) property details the actual provenance.
155
+
156
+ The `title` property is always set.
157
+
158
+
159
+ ### `shortTitle`
160
+
161
+ The short title of the spec. In most cases, the short title is generated from
162
+ `title` by dropping terms such as "Module", "Level", or "Standard". In some
163
+ cases, the short title is set manually.
164
+
165
+ The `shortTitle` property is always set. When there is no meaningful short
166
+ title, the property is set to the actual (possibly long) title of the spec.
167
+
168
+
169
+ ### `series`
170
+
171
+ An object that describes the series that the spec is part of. A series includes
172
+ existing levels/versions of the spec. For instance, CSS Color Module Level 4
173
+ belongs to the same series as CSS Color Module Level 3 and CSS Color Module
174
+ Level 5.
175
+
176
+ Please note that the list only contains specs that are deemed to be
177
+ [of interest](#spec-selection-criteria). In particular, the list does not
178
+ contain levels and versions that have been fully superseded, and may not contain
179
+ early drafts of new levels and versions either.
180
+
181
+ The `series` property is always set.
182
+
183
+
184
+ #### `series.shortname`
185
+
186
+ A shortname that uniquely identifies the series. In most cases, the shortname
187
+ is the shortname of the spec without the level or version number. For instance,
188
+ the series' shortname for `css-color-5` is `css-color`. When a specification is
189
+ not versioned, the series' shortname is identical to the spec's shortname.
190
+
191
+ The `shortname` property is always set.
192
+
193
+
194
+ #### `series.currentSpecification`
195
+
196
+ The shortname of the spec that should be regarded as the current level or
197
+ version in the series. The current spec in a series is up to the group who
198
+ develops the series. In most cases, the current spec is the latest level or
199
+ version in the series that is a "full" spec (see
200
+ [`seriesComposition`](#seriescomposition)).
201
+
202
+ The `currentSpecification` property is always set.
203
+
204
+
205
+ #### `series.releaseUrl`
206
+
207
+ The URL of the latest published snapshot for the spec series. For leveled specs
208
+ (those that create a series), this matches the unversioned URL. That
209
+ unversioned URL should return the specification identified by the
210
+ [`currentSpecification`](#seriescurrentspecification) property.
211
+
212
+ For instance, this property will be set to `https://www.w3.org/TR/css-fonts/`
213
+ for all specifications in the CSS Fonts series.
214
+
215
+ For non-leveled specs, this matches the [`url`](#url) property.
216
+
217
+ The `releaseUrl` property is only set for W3C specs published as TR documents.
218
+
219
+
220
+ #### `series.nightlyUrl`
221
+
222
+ For leveled specs (those that create a series), this matches the unversioned URL
223
+ that allows to access the latest Editor's Draft of the current specification in
224
+ the series.
225
+
226
+ For instance, this property will be set to `https://drafts.csswg.org/css-fonts/`
227
+ for all specifications in the CSS Fonts series.
228
+
229
+ For specs that are not part of a series of specs, this matches the
230
+ [`nightly.url`](#nightlyurl) property.
231
+
232
+ The `nightlyUrl` property is always set.
233
+
234
+
235
+ ### `seriesVersion`
236
+
237
+ The level or version of the spec, represented as an `x`, `x.y` or `x.y.z` string
238
+ with `x`, `y` and `z` numbers, and `x` always greater than or equal to `1`. For
239
+ instance, this property will have the value `1.2` (as a string, so enclosed
240
+ in `"`) for the WAI-ARIA 1.2 spec.
241
+
242
+ The `seriesVersion` property is only set for specs that have a level or version
243
+ number.
244
+
245
+
246
+ ### `seriesComposition`
247
+
248
+ Whether the spec is a standalone spec, or whether it is a delta spec over the
249
+ previous level or version in the series. Possible values are `full` or `delta`.
250
+
251
+ The `seriesComposition` property is always set.
252
+
253
+
254
+ ### `seriesPrevious`
255
+
256
+ The `shortname` of the previous spec in the series.
257
+
258
+ The `seriesPrevious` property is only set where there is a previous level or
259
+ version.
260
+
261
+
262
+ ### `seriesNext`
263
+
264
+ The `shortname` of the next spec in the series.
265
+
266
+ The `seriesNext` property is only set where there is a next level or version.
267
+
268
+
269
+ ### `organization`
270
+
271
+ The name of the standardization organization that owns the spec such as `W3C`,
272
+ `WHATWG`, `IETF`, `Ecma International`, `Khronos Group`.
273
+
274
+ The `organization` property is always set.
275
+
276
+
277
+ ### `groups`
278
+
279
+ The list the groups that develop (or developed) the spec. Each item in the array
280
+ is an object with a `name` property that contains the human-readable name of the
281
+ group and a `url` property that targets the homepage of the group.
282
+
283
+ The `groups` property is always set. In most cases, a spec is developed by one
284
+ and only one group.
285
+
286
+
287
+ ### `release`
288
+
289
+ An object that represents the latest published snapshot of the spec, when it
290
+ exists.
291
+
292
+ The `release` property is only set for W3C specs published as TR documents.
293
+
294
+
295
+ #### `release.url`
296
+
297
+ The URL of the latest published snapshot of the spec. Matches the versioned
298
+ URL (see [`url`](#url)).
299
+
300
+ The `url` property is always set.
301
+
302
+
303
+ #### `release.filename`
304
+
305
+ The filename of the resource that gets served when the default URL is fetched.
306
+ For instance, the filename for `https://www.w3.org/TR/presentation-api/` is
307
+ `Overview.html`, meaning that the specification could also be retrieved from
308
+ `https://www.w3.org/TR/presentation-api/Overview.html`. The filename may be
309
+ useful to distinguish links to self in a spec.
310
+
311
+ The `filename` property is always set.
312
+
313
+
314
+ #### `release.pages`
315
+
316
+ The list of absolute page URLs when the spec is a multipage spec.
317
+
318
+ The `pages` property is only set for specs identified as multipage specs.
319
+
320
+
321
+ ### `nightly`
322
+
323
+ An object that represents the latest Editor's Draft of the spec, or the living
324
+ standard when the concept of Editor's Draft does not exist.
325
+
326
+ The `nightly` property is always set.
327
+
328
+
329
+ #### `nightly.url`
330
+
331
+ The URL of the latest Editor's Draft or of the living standard.
332
+
333
+ The URL is either retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
334
+ for W3C specs, or [Specref](https://www.specref.org/). The document at the
335
+ versioned URL is considered to be the latest Editor's Draft if the spec does
336
+ neither exist in the W3C API nor in Specref. The [`source`](#source) property
337
+ details the actual provenance.
338
+
339
+ The `url` property is always set.
340
+
341
+
342
+ #### `nightly.filename`
343
+
344
+ The filename of the resource that gets served when the default URL is fetched.
345
+ For instance, the filename for `https://w3c.github.io/presentation-api/` is
346
+ `index.html`, meaning that the specification could also be retrieved from
347
+ `https://w3c.github.io/presentation-api/index.html`. The filename may be
348
+ useful to distinguish links to self in a spec.
349
+
350
+ The `filename` property is always set.
351
+
352
+
353
+ #### `nightly.pages`
354
+
355
+ The list of absolute page URLs when the spec is a multipage spec.
356
+
357
+ The `pages` property is only set for specs identified as multipage specs.
358
+
359
+
360
+ #### `nightly.repository`
361
+
362
+ The URL of the repository that contains the source of the Editor's Draft or of
363
+ the living standard.
364
+
365
+ The URL is either retrieved from the [Specref](https://www.specref.org/) or
366
+ computed from `nightly.url`.
367
+
368
+ The `repository` property is always set except for IETF specs where such a repo does not always exist.
369
+
370
+
371
+ #### `nightly.sourcePath`
372
+
373
+ The relative path to the filename that contains the source of the Editor's Draft
374
+ or of the living standard at the HEAD of the default branch of the repository.
375
+
376
+ That path is computed by parsing the contents of the repository for common
377
+ patterns. The info must be specified in `specs.json` for specifications that do
378
+ not follow a common pattern.
379
+
380
+ The `sourcePath` property is always set when `repository` is set.
381
+
382
+ **Note:** The path is relative to the root of the repository, and only valid in
383
+ the default branch of the repository. If needed, the source may be fetched from
384
+ the absolute HTTPS URL `${nightly.repository}/blob/HEAD/${nightly.sourcePath}`.
385
+
386
+
387
+ ### `tests`
388
+
389
+ An object that links the specification with its test suite when it has one.
390
+
391
+
392
+ #### `tests.repository`
393
+
394
+ The URL of the repository that contains the test suite of the specification,
395
+ typically `https://github.com/web-platform-tests/wpt`.
396
+
397
+ The `repository` property is always set when the `tests` object is present.
398
+
399
+ #### `tests.testPaths`
400
+
401
+ The list of relative paths to the actual tests at the HEAD of the default branch
402
+ of the test repository.
403
+
404
+ For test suites within [Web Platform
405
+ Tests](https://github.com/web-platform-tests/wpt), the list is determined by
406
+ looking at `META.yml` files within each folder.
407
+
408
+ The `testPaths` array typically only contains one entry, but tests of a given
409
+ spec are sometimes spread over multiple folders. For instance, that is the case
410
+ for DOM and HTML tests.
411
+
412
+ The `testPaths` property is usually set when the `tests` object is present. When
413
+ absent, that means that the entire repository is the test suite.
414
+
415
+ #### `tests.excludePaths`
416
+
417
+ The list of relative sub-paths of paths listed in the `testPaths` property that
418
+ do not contain tests for the underlying spec. For instance, tests for the
419
+ WebXR Device API are under the
420
+ [`webxr`](https://github.com/web-platform-tests/wpt/tree/master/webxr) folder,
421
+ but several folders under `webxr` actually contain test suites for WebXR module
422
+ specs and as such need to be excluded from the test suite of the WebXR Device
423
+ API spec.
424
+
425
+ The `excludePaths` property is seldom set.
426
+
427
+
428
+ ### `source`
429
+
430
+ The provenance for the `title` and `nightly` property values. Can be one of:
431
+ - `w3c`: information retrieved from the [W3C API](https://w3c.github.io/w3c-api/)
432
+ - `specref`: information retrieved from [Specref](https://www.specref.org/)
433
+ - `spec`: information retrieved from the spec itself
434
+
435
+ The `source` property is always set.
436
+
437
+
438
+ ## How to add/update/delete a spec
439
+
440
+ If you believe that a spec should be added, modified, or removed from the list,
441
+ or if you would like to otherwise contribute to this project, please check
442
+ [contributing instructions](CONTRIBUTING.md).
443
+
444
+
445
+ ## Spec selection criteria
446
+
447
+ This repository contains a curated list of technical Web specifications that are
448
+ deemed relevant for Web browsers. Roughly speaking, this list should match the
449
+ list of specs that appear in projects such as [Web Platform
450
+ Tests](https://github.com/web-platform-tests/wpt) or
451
+ [MDN](https://developer.mozilla.org/).
452
+
453
+ To try to make things more concrete, the following criteria are used to assess
454
+ whether a spec should a priori appear in the list:
455
+
456
+ 1. The spec is stable or in development. Superseded and abandoned specs will not
457
+ appear in the list. For instance, the list contains the HTML LS spec, but not
458
+ HTML 4.01 or HTML 5).
459
+ 2. The spec is being developed by a well-known standardization or
460
+ pre-standardization group. Today, this means a W3C Working Group or Community
461
+ Group, the WHATWG, or the Khronos Group.
462
+ 3. Web browsers expressed some level of support for the spec, e.g. through a
463
+ public intent to implement.
464
+ 4. The spec sits at the application layer or is "close to it". For instance,
465
+ most IETF specs are likely out of scope, but some that are exposed to Web developers are in scope.
466
+ 5. The spec defines normative content (terms, CSS, IDL), or it contains
467
+ informative content that other specs often need to refer to (e.g. guidelines
468
+ from horizontal activities such as accessibility, internationalization, privacy
469
+ and security).
470
+
471
+ There are and there will be exceptions to the rule. Besides, some of these
472
+ criteria remain fuzzy and/or arbitrary, and we expect them to evolve over time,
473
+ typically driven by needs expressed by projects that may want to use the list.
474
+
475
+
476
+ ## Versioning
477
+
478
+ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html)
479
+ with the following increment rules given a `major.minor.patch` version:
480
+ - `major`: A property disappeared, its meaning has changed, or some other
481
+ incompatible API change was made. When the `major` number gets incremented, code
482
+ that parses the list likely needs to be updated.
483
+ - `minor`: A new property was added, the list of specs changed (a new spec
484
+ added, or a spec was removed). Code that parses the list should continue to work
485
+ undisturbed, but please note that there is no guarantee that a spec that was
486
+ present in the previous version will continue to appear in the new version.
487
+ Situations where a spec gets dropped should remain scarce. If you believe that
488
+ removal of a spec should rather trigger a `major` update, please
489
+ [raise an issue](https://github.com/w3c/browser-specs/issues/new) and explain
490
+ how it affects your project.
491
+ - `patch`: Info about one or more specs changed. Minor updates were made to the
492
+ code that don't affect the list.
493
+
494
+
495
+ ## Development notes
496
+
497
+ ### How to generate `index.json` manually
498
+
499
+ To re-generate the `index.json` file locally, run:
500
+
501
+ ```bash
502
+ npm run build
503
+ ```
504
+
505
+ **Important:** The generation process will try to retrieve information about W3C
506
+ specification from the W3C API. For that to work, the code requires the presence
507
+ of a `config.json` file in the root folder with a `w3cApiKey` field set to a
508
+ valid [W3C API key](https://w3c.github.io/w3c-api/) and a `githubToken` field
509
+ set to a valid [GitHub Personal Token](https://github.com/settings/tokens)
510
+ (default read permissions are enough).
511
+
512
+
513
+ ### Tests
514
+
515
+ To run all tests or to test a given module locally, use one of:
516
+
517
+ ```bash
518
+ npm test
519
+ npm test test/compute-shortname
520
+ ```
521
+
522
+ Tests are run automatically on pull requests.
523
+
524
+
525
+ ### Debugging tool
526
+
527
+ The `index.js` module can be used as a command-line interface (CLI) to quickly
528
+ look at a given spec in the `index.json` file. The command outputs the spec or
529
+ list of specs that match the provided token as a formatted JSON string.
530
+
531
+ For instance, to retrieve all specs, the Compatibility Standard spec, the
532
+ CSS Media Queries Module Level 5 spec, all delta specs, and a spec identified by
533
+ its URL, run:
534
+
535
+ ```bash
536
+ node index.js
537
+ node index.js compat
538
+ node index.js mediaqueries-5
539
+ node index.js delta
540
+ node index.js https://w3c.github.io/presentation-api/
541
+ ```
542
+
543
+ **Note:** The `index.js` CLI is not part of the released package, which only
544
+ contains the actual list of specifications.
545
+
546
+
547
+ ### How to release a new version
548
+
549
+ Provided that you have the appropriate admin rights and that a `GITHUB_TOKEN`
550
+ environment variable is set to a [GitHub Personal
551
+ Token](https://github.com/settings/tokens) with `repo` rights, you may release a
552
+ new version through the following command, to be run from an up-to-date local
553
+ `main` branch:
554
+
555
+ ```bash
556
+ npm run release
557
+ ```
558
+
559
+ The release command should take care of everything including incrementing the
560
+ version number, updating the [changelog](CHANGELOG.md), creating a GitHub
561
+ Release, and publishing a new NPM package. The command is interactive and will
562
+ ask you to confirm the different steps. Please check the [versioning
563
563
  rules](#versioning) to select the right version part to increment!