fact-kit-facts 0.7.0 → 0.7.1
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 +380 -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.12.
|
|
8
|
+
"fact-kit-js": "0.12.1"
|
|
9
9
|
},
|
|
10
10
|
"publish": {
|
|
11
11
|
"target": "npm",
|
|
@@ -1147,6 +1147,203 @@
|
|
|
1147
1147
|
}
|
|
1148
1148
|
]
|
|
1149
1149
|
}
|
|
1150
|
+
},
|
|
1151
|
+
{
|
|
1152
|
+
"since": "0.12.1-alpha.1",
|
|
1153
|
+
"content": {
|
|
1154
|
+
"value": [
|
|
1155
|
+
{
|
|
1156
|
+
"code": "format",
|
|
1157
|
+
"rule": "A fact, index, schema file or example does not fit its meta-schema.",
|
|
1158
|
+
"reads": "sources and built indexes"
|
|
1159
|
+
},
|
|
1160
|
+
{
|
|
1161
|
+
"code": "duplicate-id",
|
|
1162
|
+
"rule": "Two facts have one id.",
|
|
1163
|
+
"reads": "sources and built indexes"
|
|
1164
|
+
},
|
|
1165
|
+
{
|
|
1166
|
+
"code": "id-prefix",
|
|
1167
|
+
"rule": "A fact id does not start with its tool and a dot.",
|
|
1168
|
+
"reads": "sources and built indexes"
|
|
1169
|
+
},
|
|
1170
|
+
{
|
|
1171
|
+
"code": "local-path",
|
|
1172
|
+
"rule": "A fact holds a local absolute path.",
|
|
1173
|
+
"reads": "sources and built indexes"
|
|
1174
|
+
},
|
|
1175
|
+
{
|
|
1176
|
+
"code": "unregistered-domain",
|
|
1177
|
+
"rule": "A fact holds a URL whose host is not in `allowedDomains`.",
|
|
1178
|
+
"reads": "sources and built indexes"
|
|
1179
|
+
},
|
|
1180
|
+
{
|
|
1181
|
+
"code": "unknown-fact-id",
|
|
1182
|
+
"rule": "`replacement`, `derivedFrom` or an example names a fact that does not exist.",
|
|
1183
|
+
"reads": "sources and built indexes"
|
|
1184
|
+
},
|
|
1185
|
+
{
|
|
1186
|
+
"code": "missing-schema-file",
|
|
1187
|
+
"rule": "A `$ref` points at a file under `schemas/` that is not there.",
|
|
1188
|
+
"reads": "sources and built indexes"
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"code": "describes",
|
|
1192
|
+
"rule": "`describes` names more than one component, or the entries of one package disagree (different components, or `{}` mixed with one).",
|
|
1193
|
+
"reads": "sources"
|
|
1194
|
+
},
|
|
1195
|
+
{
|
|
1196
|
+
"code": "publish",
|
|
1197
|
+
"rule": "The entries of one package disagree on `publish` (different targets or names, or one entry without it).",
|
|
1198
|
+
"reads": "sources"
|
|
1199
|
+
},
|
|
1200
|
+
{
|
|
1201
|
+
"code": "since-format",
|
|
1202
|
+
"rule": "A `since` is not a version, `next`, or an array of versions that may end in `next`.",
|
|
1203
|
+
"reads": "sources and built indexes"
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"code": "same-line",
|
|
1207
|
+
"rule": "A `since` array has two versions on one release line.",
|
|
1208
|
+
"reads": "sources and built indexes"
|
|
1209
|
+
},
|
|
1210
|
+
{
|
|
1211
|
+
"code": "ambiguous-rows",
|
|
1212
|
+
"rule": "Two rows apply to the same readers with the same bound, so a reader can not choose.",
|
|
1213
|
+
"reads": "sources and built indexes"
|
|
1214
|
+
},
|
|
1215
|
+
{
|
|
1216
|
+
"code": "relation-cycle",
|
|
1217
|
+
"rule": "Facts are derived from each other in a loop through `derivedFrom`.",
|
|
1218
|
+
"reads": "sources and built indexes"
|
|
1219
|
+
},
|
|
1220
|
+
{
|
|
1221
|
+
"code": "relates-foreign",
|
|
1222
|
+
"rule": "`relates` or `factLink` holds a fact object that is not a fact of this package, such as one imported from another package.",
|
|
1223
|
+
"reads": "sources"
|
|
1224
|
+
},
|
|
1225
|
+
{
|
|
1226
|
+
"code": "history",
|
|
1227
|
+
"rule": "A `history` row does not fit: a key that matches no item, a key that is already there, an array that is not keyed, a bad pointer, or a pointer that goes into an array by index. Name an item by its key, or replace the whole array.",
|
|
1228
|
+
"reads": "sources"
|
|
1229
|
+
},
|
|
1230
|
+
{
|
|
1231
|
+
"code": "derive",
|
|
1232
|
+
"rule": "`derive` finds no installed upstream package, no such fact in it, or `map` returns something that is not an object.",
|
|
1233
|
+
"reads": "the installed upstream package"
|
|
1234
|
+
},
|
|
1235
|
+
{
|
|
1236
|
+
"code": "derive-version",
|
|
1237
|
+
"rule": "`derived.lock.json`, or a built index passed with `--index`, records another upstream version than the one installed.",
|
|
1238
|
+
"reads": "the installed upstream package, `derived.lock.json`"
|
|
1239
|
+
},
|
|
1240
|
+
{
|
|
1241
|
+
"code": "lib-rows",
|
|
1242
|
+
"rule": "A row with `since` in `facts/_lib`, which holds only functions and constants.",
|
|
1243
|
+
"reads": "source code, parsed with oxc"
|
|
1244
|
+
},
|
|
1245
|
+
{
|
|
1246
|
+
"code": "since-ahead",
|
|
1247
|
+
"rule": "A `since` is newer than `describes`, or than the `--train` version of its component when one is given.",
|
|
1248
|
+
"reads": "sources, `--train`"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
"code": "train-next",
|
|
1252
|
+
"rule": "A component named by `--train` still has a row that says `next` and is not pending, or a `when.deprecatedIn` or `when.removeIn` that says `next`. Run `pin` first.",
|
|
1253
|
+
"reads": "sources, `--train`"
|
|
1254
|
+
},
|
|
1255
|
+
{
|
|
1256
|
+
"code": "pending-untested",
|
|
1257
|
+
"rule": "A `pending` label is not passed as `include` by any test in `testDirs`.",
|
|
1258
|
+
"reads": "`testDirs`, parsed with oxc"
|
|
1259
|
+
},
|
|
1260
|
+
{
|
|
1261
|
+
"code": "doc-unknown-id",
|
|
1262
|
+
"rule": "A `fact:<id>` or `fact:<spec>:<id>` in `docsDirs` names a fact that does not exist.",
|
|
1263
|
+
"reads": "`docsDirs`"
|
|
1264
|
+
},
|
|
1265
|
+
{
|
|
1266
|
+
"code": "impl-imports-facts",
|
|
1267
|
+
"rule": "Code in `implDirs` imports a `-facts` package (with or without the publish target suffix), a `.facts.ts` or `.doc.ts` file (with or without the extension), or a path inside the `factsDir` of the package by a relative or absolute specifier. A path that holds `facts/dist` is left to `impl-reads-facts-dist`. See `fact-kit.impl-rules-basis`.",
|
|
1268
|
+
"reads": "`implDirs`, parsed with oxc"
|
|
1269
|
+
},
|
|
1270
|
+
{
|
|
1271
|
+
"code": "impl-reads-facts-dist",
|
|
1272
|
+
"rule": "A string in `implDirs` code, or a fixed part of a template, holds `facts/dist` as a path part (bounded by the start, the end, `/` or `\\`). It covers an import, `require`, `readFileSync` and `new URL`. It matches the literal text, so a path built as `join('facts', 'dist')` is not found, and implementations in other languages are out of scope.",
|
|
1273
|
+
"reads": "`implDirs`, parsed with oxc"
|
|
1274
|
+
},
|
|
1275
|
+
{
|
|
1276
|
+
"code": "impl-depends-on-facts",
|
|
1277
|
+
"rule": "A package that is not a facts package lists a `-facts` package in `dependencies`. A name with the publish target suffix, such as `fact-kit-facts.npm`, is a `-facts` package too.",
|
|
1278
|
+
"reads": "every package.json under `repoRoot`"
|
|
1279
|
+
},
|
|
1280
|
+
{
|
|
1281
|
+
"code": "top-level-content",
|
|
1282
|
+
"rule": "A warning. No row applies to a reader that names no platform, so the top-level content is a guess.",
|
|
1283
|
+
"reads": "sources and built indexes"
|
|
1284
|
+
},
|
|
1285
|
+
{
|
|
1286
|
+
"code": "load",
|
|
1287
|
+
"rule": "A source module, example or index file can not be run or parsed.",
|
|
1288
|
+
"reads": "sources"
|
|
1289
|
+
},
|
|
1290
|
+
{
|
|
1291
|
+
"code": "builder",
|
|
1292
|
+
"rule": "A builder, `mf.*`, `contentOf` or `subsetOf` got input that does not fit, such as a name with a leading dot, rows whose first row is not the kind of the method, a subset whose parent is not a fact object, or a state machine, relations or sequence with an end that is not declared, or an entity, value object, aggregate or use case whose names do not match (an identity or `required` name that is not a field, a layer that is not one of three). `history` also raises it when a row makes what a builder checked invalid. The message names the row and the key. Only `check` prints the code. `build` stops with the message.",
|
|
1293
|
+
"reads": "sources"
|
|
1294
|
+
},
|
|
1295
|
+
{
|
|
1296
|
+
"code": "subset-of",
|
|
1297
|
+
"rule": "A list declared with `subsetOf` has, at some version boundary, a value that the list of its parent lacks, or the parent has no row that applies there. The boundaries are those of `ambiguous-rows`, taken over the rows of both facts. The message names the oldest version where it happens and the value. `build` runs this rule too.",
|
|
1298
|
+
"reads": "sources"
|
|
1299
|
+
},
|
|
1300
|
+
{
|
|
1301
|
+
"code": "ref",
|
|
1302
|
+
"rule": "A `ref(fact, field?)` does not resolve. At some version boundary of the two facts, the reader gets a row of the fact that writes the `ref` but no row of the target applies, the target lacks the field (a field name with a dot can not be referenced), the target is a statement and the `ref` has a field, or the target is not a schema where the `ref` is a `$ref`. Also: a field path with an empty part, `$defs` that already has the key with another schema, schemas that embed each other in a loop, a schema of another entry with a file `$ref` embedded here, a `$dynamicRef` or `$recursiveRef`, or a `$ref` to the root inside a subschema with an `$id`, in an embedded schema, which can not be moved into the schema that embeds it, and a target with several rows whose rows can not be aligned with the rows of the fact that writes the `ref`, so some reader gets a schema in `$defs` that is not the one it gets from the target. The message names the oldest version where it happens. `build` runs this rule too.",
|
|
1303
|
+
"reads": "sources"
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"code": "schema-property",
|
|
1307
|
+
"rule": "An `x-identity` names a field that is not in the `properties` of the same schema. It reads every schema of a fact, in every row, and every file under `schemas/`. A `required` list that builders make is checked by `builder`, not by this rule.",
|
|
1308
|
+
"reads": "sources and built indexes"
|
|
1309
|
+
},
|
|
1310
|
+
{
|
|
1311
|
+
"code": "policy-scope",
|
|
1312
|
+
"rule": "The `release-policy.json` at `repoRoot` has `access: \"restricted\"` at the top or in a unit, and no top-level `scope`. `check` reports it itself and does not leave it to the schema of the policy. A repository with no `release-policy.json` is not checked. See `fact-kit.facts-package-naming`.",
|
|
1313
|
+
"reads": "`release-policy.json`"
|
|
1314
|
+
},
|
|
1315
|
+
{
|
|
1316
|
+
"code": "facts-name",
|
|
1317
|
+
"rule": "In an aggregate package (the config has `aggregate`), the name of the aggregate or of a component package is not the one `fact-kit.facts-package-naming` works out from `release-policy.json`: a missing or extra `@<scope>/` prefix, a missing or extra publish target suffix, or a shared base name with no publish target to tell the packages apart. The message names the expected name. A repository with no `release-policy.json` is not checked. A component that is not found in node_modules or in the workspace, or whose facts cannot be loaded, gets a warning with code `facts-name` and is not checked.",
|
|
1318
|
+
"reads": "`release-policy.json`, `release-please-config.json`, the component packages and their facts sources"
|
|
1319
|
+
},
|
|
1320
|
+
{
|
|
1321
|
+
"code": "facts-file-orphan",
|
|
1322
|
+
"rule": "A `*.facts.ts` is under no entry (no `index.ts` in its directory or above it, below the facts directory), or is in a directory whose name starts with `_` or below one. See `fact-kit.facts-file-collection`.",
|
|
1323
|
+
"reads": "the files under `factsDir`"
|
|
1324
|
+
},
|
|
1325
|
+
{
|
|
1326
|
+
"code": "split-topic",
|
|
1327
|
+
"rule": "The facts of one `*.facts.ts` have more than one value of `topics[0]`. Runs only when `splitRules` is `true` in the config. See `fact-kit.split-rules`.",
|
|
1328
|
+
"reads": "`*.facts.ts` files and `index.ts`, parsed with oxc"
|
|
1329
|
+
},
|
|
1330
|
+
{
|
|
1331
|
+
"code": "split-size",
|
|
1332
|
+
"rule": "A `*.facts.ts` holds more facts than `maxFactsPerFile`, 40 unless the config says otherwise. Runs only when `splitRules` is `true` in the config. See `fact-kit.split-rules`.",
|
|
1333
|
+
"reads": "`*.facts.ts` files and `index.ts`, parsed with oxc"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"code": "split-index",
|
|
1337
|
+
"rule": "The `index.ts` of an entry that has `*.facts.ts` files holds a fact object. Runs only when `splitRules` is `true` in the config. See `fact-kit.split-rules`.",
|
|
1338
|
+
"reads": "`*.facts.ts` files and `index.ts`, parsed with oxc"
|
|
1339
|
+
},
|
|
1340
|
+
{
|
|
1341
|
+
"code": "split-tool",
|
|
1342
|
+
"rule": "A `tool` is written in a `*.facts.ts` anywhere but in the argument of `factsOf(`. Runs only when `splitRules` is `true` in the config. See `fact-kit.split-rules`.",
|
|
1343
|
+
"reads": "`*.facts.ts` files and `index.ts`, parsed with oxc"
|
|
1344
|
+
}
|
|
1345
|
+
]
|
|
1346
|
+
}
|
|
1150
1347
|
}
|
|
1151
1348
|
],
|
|
1152
1349
|
"tool": "fact-kit",
|
|
@@ -1252,7 +1449,7 @@
|
|
|
1252
1449
|
},
|
|
1253
1450
|
{
|
|
1254
1451
|
"code": "train-next",
|
|
1255
|
-
"rule": "A component named by `--train` still has a row that says `next` and is not pending.",
|
|
1452
|
+
"rule": "A component named by `--train` still has a row that says `next` and is not pending, or a `when.deprecatedIn` or `when.removeIn` that says `next`. Run `pin` first.",
|
|
1256
1453
|
"reads": "sources, `--train`"
|
|
1257
1454
|
},
|
|
1258
1455
|
{
|
|
@@ -3517,6 +3714,186 @@
|
|
|
3517
3714
|
}
|
|
3518
3715
|
}
|
|
3519
3716
|
}
|
|
3717
|
+
},
|
|
3718
|
+
{
|
|
3719
|
+
"since": "0.12.1-alpha.1",
|
|
3720
|
+
"content": {
|
|
3721
|
+
"value": {
|
|
3722
|
+
"global": {
|
|
3723
|
+
"options": [
|
|
3724
|
+
{
|
|
3725
|
+
"flag": "-h",
|
|
3726
|
+
"alias": "--help",
|
|
3727
|
+
"summary": "Show the help text and exit with 0."
|
|
3728
|
+
},
|
|
3729
|
+
{
|
|
3730
|
+
"flag": "-v",
|
|
3731
|
+
"alias": "--version",
|
|
3732
|
+
"summary": "Print the fact-kit version."
|
|
3733
|
+
}
|
|
3734
|
+
],
|
|
3735
|
+
"exitCodes": {
|
|
3736
|
+
"0": "No problem found.",
|
|
3737
|
+
"1": "A problem was found, or the command failed. For `merge-since`: a conflict is left.",
|
|
3738
|
+
"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, or with one that is not semver, 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."
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3741
|
+
"check": {
|
|
3742
|
+
"summary": "Validate facts, examples and what must not ship (local paths, unregistered domains).",
|
|
3743
|
+
"arguments": [],
|
|
3744
|
+
"options": [
|
|
3745
|
+
{
|
|
3746
|
+
"flag": "--cwd",
|
|
3747
|
+
"value": "<dir>",
|
|
3748
|
+
"default": "the current directory",
|
|
3749
|
+
"summary": "Package directory."
|
|
3750
|
+
},
|
|
3751
|
+
{
|
|
3752
|
+
"flag": "--config",
|
|
3753
|
+
"value": "<file>",
|
|
3754
|
+
"default": "fact-kit.config.json when present",
|
|
3755
|
+
"summary": "Config file."
|
|
3756
|
+
},
|
|
3757
|
+
{
|
|
3758
|
+
"flag": "--facts-dir",
|
|
3759
|
+
"value": "<dir>",
|
|
3760
|
+
"default": "facts",
|
|
3761
|
+
"summary": "Fact sources, relative to --cwd."
|
|
3762
|
+
},
|
|
3763
|
+
{
|
|
3764
|
+
"flag": "--examples-dir",
|
|
3765
|
+
"value": "<dir>",
|
|
3766
|
+
"default": "examples",
|
|
3767
|
+
"summary": "Example files, relative to --cwd."
|
|
3768
|
+
},
|
|
3769
|
+
{
|
|
3770
|
+
"flag": "--index",
|
|
3771
|
+
"value": "<path>",
|
|
3772
|
+
"default": "none",
|
|
3773
|
+
"summary": "A built index.json (or its directory) to check too.",
|
|
3774
|
+
"repeatable": true
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"flag": "--allow-domain",
|
|
3778
|
+
"value": "<host>",
|
|
3779
|
+
"default": "none",
|
|
3780
|
+
"summary": "Host URLs may point at, subdomains included.",
|
|
3781
|
+
"repeatable": true
|
|
3782
|
+
},
|
|
3783
|
+
{
|
|
3784
|
+
"flag": "--train",
|
|
3785
|
+
"value": "<component>=<version>",
|
|
3786
|
+
"default": "none",
|
|
3787
|
+
"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`.",
|
|
3788
|
+
"repeatable": true
|
|
3789
|
+
},
|
|
3790
|
+
{
|
|
3791
|
+
"flag": "--json",
|
|
3792
|
+
"summary": "Print `{ problems: [{ code, message, location }] }` on stdout instead of the text on stderr."
|
|
3793
|
+
}
|
|
3794
|
+
]
|
|
3795
|
+
},
|
|
3796
|
+
"build": {
|
|
3797
|
+
"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.",
|
|
3798
|
+
"arguments": [],
|
|
3799
|
+
"options": [
|
|
3800
|
+
{
|
|
3801
|
+
"flag": "--cwd",
|
|
3802
|
+
"value": "<dir>",
|
|
3803
|
+
"default": "the current directory",
|
|
3804
|
+
"summary": "Package directory."
|
|
3805
|
+
},
|
|
3806
|
+
{
|
|
3807
|
+
"flag": "--facts-dir",
|
|
3808
|
+
"value": "<dir>",
|
|
3809
|
+
"default": "facts",
|
|
3810
|
+
"summary": "Fact sources."
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"flag": "--out-dir",
|
|
3814
|
+
"value": "<dir>",
|
|
3815
|
+
"default": "dist",
|
|
3816
|
+
"summary": "Output directory."
|
|
3817
|
+
},
|
|
3818
|
+
{
|
|
3819
|
+
"flag": "--write-exports",
|
|
3820
|
+
"summary": "Add the missing \"exports\" entries to package.json."
|
|
3821
|
+
},
|
|
3822
|
+
{
|
|
3823
|
+
"flag": "--accept-upstream",
|
|
3824
|
+
"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."
|
|
3825
|
+
}
|
|
3826
|
+
],
|
|
3827
|
+
"factsDir": "The fact sources directory. `--facts-dir` wins, then `factsDir` of the config file, then `facts`."
|
|
3828
|
+
},
|
|
3829
|
+
"diff": {
|
|
3830
|
+
"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.",
|
|
3831
|
+
"arguments": [
|
|
3832
|
+
"<old>",
|
|
3833
|
+
"<new>"
|
|
3834
|
+
],
|
|
3835
|
+
"options": [
|
|
3836
|
+
{
|
|
3837
|
+
"flag": "--json",
|
|
3838
|
+
"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 }] }."
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
"flag": "--impact",
|
|
3842
|
+
"value": "<id>",
|
|
3843
|
+
"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."
|
|
3844
|
+
},
|
|
3845
|
+
{
|
|
3846
|
+
"flag": "--cwd",
|
|
3847
|
+
"value": "<dir>",
|
|
3848
|
+
"default": "the current directory",
|
|
3849
|
+
"summary": "With --impact: the aggregate package directory."
|
|
3850
|
+
}
|
|
3851
|
+
]
|
|
3852
|
+
},
|
|
3853
|
+
"pin": {
|
|
3854
|
+
"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, so do `describes` and `<facts-dir>/_lib`. Only the text of the literal changes, so a second run changes nothing. Needs oxc-parser.",
|
|
3855
|
+
"arguments": [],
|
|
3856
|
+
"options": [
|
|
3857
|
+
{
|
|
3858
|
+
"flag": "--version",
|
|
3859
|
+
"value": "<v>",
|
|
3860
|
+
"default": "none",
|
|
3861
|
+
"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."
|
|
3862
|
+
},
|
|
3863
|
+
{
|
|
3864
|
+
"flag": "--cwd",
|
|
3865
|
+
"value": "<dir>",
|
|
3866
|
+
"default": "the current directory",
|
|
3867
|
+
"summary": "Package directory."
|
|
3868
|
+
},
|
|
3869
|
+
{
|
|
3870
|
+
"flag": "--config",
|
|
3871
|
+
"value": "<file>",
|
|
3872
|
+
"default": "fact-kit.config.json when present",
|
|
3873
|
+
"summary": "Config file."
|
|
3874
|
+
},
|
|
3875
|
+
{
|
|
3876
|
+
"flag": "--facts-dir",
|
|
3877
|
+
"value": "<dir>",
|
|
3878
|
+
"default": "facts",
|
|
3879
|
+
"summary": "Fact sources, relative to --cwd."
|
|
3880
|
+
}
|
|
3881
|
+
]
|
|
3882
|
+
},
|
|
3883
|
+
"merge-since": {
|
|
3884
|
+
"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.",
|
|
3885
|
+
"arguments": [],
|
|
3886
|
+
"options": [
|
|
3887
|
+
{
|
|
3888
|
+
"flag": "--cwd",
|
|
3889
|
+
"value": "<dir>",
|
|
3890
|
+
"default": "the current directory",
|
|
3891
|
+
"summary": "A directory in the repository. Only files under it are read."
|
|
3892
|
+
}
|
|
3893
|
+
]
|
|
3894
|
+
}
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3520
3897
|
}
|
|
3521
3898
|
],
|
|
3522
3899
|
"tool": "fact-kit",
|
|
@@ -3657,7 +4034,7 @@
|
|
|
3657
4034
|
]
|
|
3658
4035
|
},
|
|
3659
4036
|
"pin": {
|
|
3660
|
-
"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`. A row with a `pending` label stays, so do `describes` and `<facts-dir>/_lib`. Only the text of the literal changes, so a second run changes nothing. Needs oxc-parser.",
|
|
4037
|
+
"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, so do `describes` and `<facts-dir>/_lib`. Only the text of the literal changes, so a second run changes nothing. Needs oxc-parser.",
|
|
3661
4038
|
"arguments": [],
|
|
3662
4039
|
"options": [
|
|
3663
4040
|
{
|