fact-kit-facts 0.9.2 → 0.10.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.
- package/dist/index.json +197 -3
- package/package.json +1 -1
package/dist/index.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"entry": ".",
|
|
6
6
|
"component": "fact-kit-facts.npm",
|
|
7
7
|
"describes": {
|
|
8
|
-
"fact-kit-js": "0.
|
|
8
|
+
"fact-kit-js": "0.15.0"
|
|
9
9
|
},
|
|
10
10
|
"publish": {
|
|
11
11
|
"target": "npm",
|
|
@@ -5268,6 +5268,193 @@
|
|
|
5268
5268
|
}
|
|
5269
5269
|
}
|
|
5270
5270
|
}
|
|
5271
|
+
},
|
|
5272
|
+
{
|
|
5273
|
+
"since": "0.15.0-alpha.1",
|
|
5274
|
+
"content": {
|
|
5275
|
+
"value": {
|
|
5276
|
+
"global": {
|
|
5277
|
+
"options": [
|
|
5278
|
+
{
|
|
5279
|
+
"flag": "-h",
|
|
5280
|
+
"alias": "--help",
|
|
5281
|
+
"summary": "Show the help text and exit with 0."
|
|
5282
|
+
},
|
|
5283
|
+
{
|
|
5284
|
+
"flag": "-v",
|
|
5285
|
+
"alias": "--version",
|
|
5286
|
+
"summary": "Print the fact-kit version."
|
|
5287
|
+
}
|
|
5288
|
+
],
|
|
5289
|
+
"exitCodes": {
|
|
5290
|
+
"0": "No problem found.",
|
|
5291
|
+
"1": "A problem was found, or the command failed. For `merge-since`: a conflict is left.",
|
|
5292
|
+
"2": "Wrong usage or input: no command, an unknown command or option, the wrong number of arguments, a `--train` that is not `<component>=<version>`, a `pin` with no `--version`, with more than one, with one that is not semver, or with an empty `--release-pending`, a config or index file that can not be read, a source file that can not be parsed, `oxc-parser` that is not installed, or a `merge-since` outside a git merge."
|
|
5293
|
+
}
|
|
5294
|
+
},
|
|
5295
|
+
"check": {
|
|
5296
|
+
"summary": "Validate facts, examples and what must not ship (local paths, unregistered domains).",
|
|
5297
|
+
"arguments": [],
|
|
5298
|
+
"options": [
|
|
5299
|
+
{
|
|
5300
|
+
"flag": "--cwd",
|
|
5301
|
+
"value": "<dir>",
|
|
5302
|
+
"default": "the current directory",
|
|
5303
|
+
"summary": "Package directory."
|
|
5304
|
+
},
|
|
5305
|
+
{
|
|
5306
|
+
"flag": "--config",
|
|
5307
|
+
"value": "<file>",
|
|
5308
|
+
"default": "fact-kit.config.json when present",
|
|
5309
|
+
"summary": "Config file."
|
|
5310
|
+
},
|
|
5311
|
+
{
|
|
5312
|
+
"flag": "--facts-dir",
|
|
5313
|
+
"value": "<dir>",
|
|
5314
|
+
"default": "facts",
|
|
5315
|
+
"summary": "Fact sources, relative to --cwd."
|
|
5316
|
+
},
|
|
5317
|
+
{
|
|
5318
|
+
"flag": "--examples-dir",
|
|
5319
|
+
"value": "<dir>",
|
|
5320
|
+
"default": "examples",
|
|
5321
|
+
"summary": "Example files, relative to --cwd."
|
|
5322
|
+
},
|
|
5323
|
+
{
|
|
5324
|
+
"flag": "--index",
|
|
5325
|
+
"value": "<path>",
|
|
5326
|
+
"default": "none",
|
|
5327
|
+
"summary": "A built index.json (or its directory) to check too.",
|
|
5328
|
+
"repeatable": true
|
|
5329
|
+
},
|
|
5330
|
+
{
|
|
5331
|
+
"flag": "--allow-domain",
|
|
5332
|
+
"value": "<host>",
|
|
5333
|
+
"default": "none",
|
|
5334
|
+
"summary": "Host URLs may point at, subdomains included.",
|
|
5335
|
+
"repeatable": true
|
|
5336
|
+
},
|
|
5337
|
+
{
|
|
5338
|
+
"flag": "--train",
|
|
5339
|
+
"value": "<component>=<version>",
|
|
5340
|
+
"default": "none",
|
|
5341
|
+
"summary": "A component being released at that version: its `since` may be as new as the version, and no row but a pending one may still say `next`.",
|
|
5342
|
+
"repeatable": true
|
|
5343
|
+
},
|
|
5344
|
+
{
|
|
5345
|
+
"flag": "--json",
|
|
5346
|
+
"summary": "Print `{ problems: [{ code, message, location }] }` on stdout instead of the text on stderr."
|
|
5347
|
+
}
|
|
5348
|
+
]
|
|
5349
|
+
},
|
|
5350
|
+
"build": {
|
|
5351
|
+
"summary": "Build facts/<entry>/index.ts into dist/<entry>/index.json and schemas/, and the example groups of the examples directory into dist/examples.json (nothing is written when there are none). The snippets in the groups are not run. In an aggregate package (`aggregate` in the config) copy the built indexes and examples.json of its component packages into dist/ instead.",
|
|
5352
|
+
"arguments": [],
|
|
5353
|
+
"options": [
|
|
5354
|
+
{
|
|
5355
|
+
"flag": "--cwd",
|
|
5356
|
+
"value": "<dir>",
|
|
5357
|
+
"default": "the current directory",
|
|
5358
|
+
"summary": "Package directory."
|
|
5359
|
+
},
|
|
5360
|
+
{
|
|
5361
|
+
"flag": "--facts-dir",
|
|
5362
|
+
"value": "<dir>",
|
|
5363
|
+
"default": "facts",
|
|
5364
|
+
"summary": "Fact sources."
|
|
5365
|
+
},
|
|
5366
|
+
{
|
|
5367
|
+
"flag": "--out-dir",
|
|
5368
|
+
"value": "<dir>",
|
|
5369
|
+
"default": "dist",
|
|
5370
|
+
"summary": "Output directory."
|
|
5371
|
+
},
|
|
5372
|
+
{
|
|
5373
|
+
"flag": "--write-exports",
|
|
5374
|
+
"summary": "Add the missing \"exports\" entries to package.json."
|
|
5375
|
+
},
|
|
5376
|
+
{
|
|
5377
|
+
"flag": "--accept-upstream",
|
|
5378
|
+
"summary": "Build facts derived from another upstream version than `derived.lock.json` records, and rewrite the lock. Without it the build fails and names both versions."
|
|
5379
|
+
}
|
|
5380
|
+
],
|
|
5381
|
+
"factsDir": "The fact sources directory. `--facts-dir` wins, then `factsDir` of the config file, then `facts`."
|
|
5382
|
+
},
|
|
5383
|
+
"diff": {
|
|
5384
|
+
"summary": "List the fact ids added, removed and changed between two index.json files. With --impact, list instead what a change to one fact reaches.",
|
|
5385
|
+
"arguments": [
|
|
5386
|
+
"<old>",
|
|
5387
|
+
"<new>"
|
|
5388
|
+
],
|
|
5389
|
+
"options": [
|
|
5390
|
+
{
|
|
5391
|
+
"flag": "--json",
|
|
5392
|
+
"summary": "Print the result as JSON: { added, removed, changed }, or with --impact { id, facts: [{ id, depth, via }], docs: [{ file, line, id }], examples: [{ spec, group, scenario, id, in }] }."
|
|
5393
|
+
},
|
|
5394
|
+
{
|
|
5395
|
+
"flag": "--impact",
|
|
5396
|
+
"value": "<id>",
|
|
5397
|
+
"summary": "Take no files. Read the built indexes of the components in the aggregate config, follow derivedFrom downstream, and search docsDirs for references. Needs oxc-parser when docsDirs hold TypeScript."
|
|
5398
|
+
},
|
|
5399
|
+
{
|
|
5400
|
+
"flag": "--cwd",
|
|
5401
|
+
"value": "<dir>",
|
|
5402
|
+
"default": "the current directory",
|
|
5403
|
+
"summary": "With --impact: the aggregate package directory."
|
|
5404
|
+
}
|
|
5405
|
+
]
|
|
5406
|
+
},
|
|
5407
|
+
"pin": {
|
|
5408
|
+
"summary": "Turn every `next` in the `since` of the rows under the facts directory into one version: a `since` that is `next`, or an array that ends in `next`. It also turns a `next` in `when.deprecatedIn` and `when.removeIn` into that version, so a fact that retires in the release stops being read at the version it is pinned to. A row with a `pending` label stays, unless `--release-pending` names the label: such a row is pinned too and its `pending` property is removed. `describes` and `<facts-dir>/_lib` stay. Only the text of a literal changes, apart from a removed `pending`, so a second run changes nothing. Needs oxc-parser.",
|
|
5409
|
+
"arguments": [],
|
|
5410
|
+
"options": [
|
|
5411
|
+
{
|
|
5412
|
+
"flag": "--version",
|
|
5413
|
+
"value": "<v>",
|
|
5414
|
+
"default": "none",
|
|
5415
|
+
"summary": "The version `next` becomes. Required, and given once. It must be semver 2.0.0, and a pre-release such as `0.49.0-alpha.1` is written whole."
|
|
5416
|
+
},
|
|
5417
|
+
{
|
|
5418
|
+
"flag": "--cwd",
|
|
5419
|
+
"value": "<dir>",
|
|
5420
|
+
"default": "the current directory",
|
|
5421
|
+
"summary": "Package directory."
|
|
5422
|
+
},
|
|
5423
|
+
{
|
|
5424
|
+
"flag": "--config",
|
|
5425
|
+
"value": "<file>",
|
|
5426
|
+
"default": "fact-kit.config.json when present",
|
|
5427
|
+
"summary": "Config file."
|
|
5428
|
+
},
|
|
5429
|
+
{
|
|
5430
|
+
"flag": "--facts-dir",
|
|
5431
|
+
"value": "<dir>",
|
|
5432
|
+
"default": "facts",
|
|
5433
|
+
"summary": "Fact sources, relative to --cwd."
|
|
5434
|
+
},
|
|
5435
|
+
{
|
|
5436
|
+
"flag": "--release-pending",
|
|
5437
|
+
"value": "<label>",
|
|
5438
|
+
"default": "none",
|
|
5439
|
+
"summary": "A `pending` label that this release ships. A row whose `since` is `next` (or an array that ends in `next`) and whose `pending` is this label, written as a string literal, is pinned like the others and loses its `pending` property. A pending row with another label stays. A row whose `pending` is not a string literal, or that spreads another object, stays and is reported on stderr.",
|
|
5440
|
+
"repeatable": true
|
|
5441
|
+
}
|
|
5442
|
+
]
|
|
5443
|
+
},
|
|
5444
|
+
"merge-since": {
|
|
5445
|
+
"summary": "Run after `git merge`. In the files that `git diff --name-only --diff-filter=U` lists under --cwd, settle each conflict block whose two sides differ only in `since` (normal, `diff3` and `zdiff3` markers): the union of the versions, the smaller one when two are on one release line, ordered by release line with `next` last. Then rewrite a row that only the merged-in side has (the same fact has no row with that `since` in HEAD) whose `since` is one patch version `X.Y.Z` (`Z` above 0, no pre-release) and has no `pending` into `[\"X.Y.Z\", \"next\"]`. It writes what it settled, stages nothing, and prints each conflict left as `<file>:<line> <reason>`. A second run changes nothing. Needs oxc-parser.",
|
|
5446
|
+
"arguments": [],
|
|
5447
|
+
"options": [
|
|
5448
|
+
{
|
|
5449
|
+
"flag": "--cwd",
|
|
5450
|
+
"value": "<dir>",
|
|
5451
|
+
"default": "the current directory",
|
|
5452
|
+
"summary": "A directory in the repository. Only files under it are read."
|
|
5453
|
+
}
|
|
5454
|
+
]
|
|
5455
|
+
}
|
|
5456
|
+
}
|
|
5457
|
+
}
|
|
5271
5458
|
}
|
|
5272
5459
|
],
|
|
5273
5460
|
"tool": "fact-kit",
|
|
@@ -5292,7 +5479,7 @@
|
|
|
5292
5479
|
"exitCodes": {
|
|
5293
5480
|
"0": "No problem found.",
|
|
5294
5481
|
"1": "A problem was found, or the command failed. For `merge-since`: a conflict is left.",
|
|
5295
|
-
"2": "Wrong usage or input: no command, an unknown command or option, the wrong number of arguments, a `--train` that is not `<component>=<version>`, a `pin` with no `--version`, with more than one,
|
|
5482
|
+
"2": "Wrong usage or input: no command, an unknown command or option, the wrong number of arguments, a `--train` that is not `<component>=<version>`, a `pin` with no `--version`, with more than one, with one that is not semver, or with an empty `--release-pending`, a config or index file that can not be read, a source file that can not be parsed, `oxc-parser` that is not installed, or a `merge-since` outside a git merge."
|
|
5296
5483
|
}
|
|
5297
5484
|
},
|
|
5298
5485
|
"check": {
|
|
@@ -5408,7 +5595,7 @@
|
|
|
5408
5595
|
]
|
|
5409
5596
|
},
|
|
5410
5597
|
"pin": {
|
|
5411
|
-
"summary": "Turn every `next` in the `since` of the rows under the facts directory into one version: a `since` that is `next`, or an array that ends in `next`. It also turns a `next` in `when.deprecatedIn` and `when.removeIn` into that version, so a fact that retires in the release stops being read at the version it is pinned to. A row with a `pending` label stays,
|
|
5598
|
+
"summary": "Turn every `next` in the `since` of the rows under the facts directory into one version: a `since` that is `next`, or an array that ends in `next`. It also turns a `next` in `when.deprecatedIn` and `when.removeIn` into that version, so a fact that retires in the release stops being read at the version it is pinned to. A row with a `pending` label stays, unless `--release-pending` names the label: such a row is pinned too and its `pending` property is removed. `describes` and `<facts-dir>/_lib` stay. Only the text of a literal changes, apart from a removed `pending`, so a second run changes nothing. Needs oxc-parser.",
|
|
5412
5599
|
"arguments": [],
|
|
5413
5600
|
"options": [
|
|
5414
5601
|
{
|
|
@@ -5434,6 +5621,13 @@
|
|
|
5434
5621
|
"value": "<dir>",
|
|
5435
5622
|
"default": "facts",
|
|
5436
5623
|
"summary": "Fact sources, relative to --cwd."
|
|
5624
|
+
},
|
|
5625
|
+
{
|
|
5626
|
+
"flag": "--release-pending",
|
|
5627
|
+
"value": "<label>",
|
|
5628
|
+
"default": "none",
|
|
5629
|
+
"summary": "A `pending` label that this release ships. A row whose `since` is `next` (or an array that ends in `next`) and whose `pending` is this label, written as a string literal, is pinned like the others and loses its `pending` property. A pending row with another label stays. A row whose `pending` is not a string literal, or that spreads another object, stays and is reported on stderr.",
|
|
5630
|
+
"repeatable": true
|
|
5437
5631
|
}
|
|
5438
5632
|
]
|
|
5439
5633
|
},
|