@mark1russell7/conventions 0.64.4 → 0.64.6
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/README.md +2 -0
- package/build/cli.js +1 -1
- package/build/index.d.ts +7 -0
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/build/{run-CeEPIgVg.js → run-DQBe1YEQ.js} +145 -19
- package/build/run-DQBe1YEQ.js.map +1 -0
- package/package.json +2 -2
- package/build/run-CeEPIgVg.js.map +0 -1
package/README.md
CHANGED
|
@@ -60,6 +60,7 @@ The rules come from the invariants audit of 2026-10-26 (strategy item s38). The
|
|
|
60
60
|
| `no-build-output` | Git keeps no file in a folder named `dist` or `build`, or in a `coverage` folder next to a `package.json`. | client `no-build-output`, `no-dist`, `no-dist-commit`. Only one repository of the audit tells this rule. The `.gitignore` of the template has it for each repository. |
|
|
61
61
|
| `no-local-paths` | No tracked file has the home folder of a user: `C:\Users\<name>`, `/Users/<name>` or `/home/<name>`. A CI user (`runner`), a name of one character and a placeholder (`<you>`) are not a break. The commit messages of the change (a pull request, or `--base`) and the title and the body of the pull request do not have one either. The same is true for each pattern of the option `patterns` and of the environment variable `CONVENTIONS_PRIVATE_PATTERNS`. A break of a private pattern shows only the line of the pattern in the variable, not the text. A line of the variable that is not a valid regular expression is a break of its own. | client `I12`. systems `no-identifying-names`, `no-private-identifiers`, `no-private-names`. coeval `no-private-names`. |
|
|
62
62
|
| `no-console` | No source file calls `console`. Each break names the kind of the call. Output for a person (the text, the tables and the status lines of a CLI) goes to `createPrinter` of `@mark1russell7/text/print`. A diagnostic of a library or a service (a warning, a debug line, a caught error) goes to a log record of the logger of `diagnostics(name)` of `@mark1russell7/otel-ts/log`, with its trace context. A call in a CLI file is output, except `debug` and `trace`. A CLI file starts with `#!`, has `cli`, `main`, `bin` or `commands` in its path, or reads `process.argv`. Each other call is a diagnostic, except `console.table`. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). The rule is a ratchet. The check fails when the count is not the option `baseline`. Thus a new call fails, and a fix lowers the baseline. From the day `failFrom` each call fails. The default day is 2027-01-20, the last day, and a repository can set only an earlier day. | a decision of 2026-11-25: a census found 1549 console calls in the sources of 36 repositories. |
|
|
63
|
+
| `follow-hash` | A source that reads `location.hash` also follows each change of the hash, with `followHash` of `@mark1russell7/site-pages/chrome` or a listener of `hashchange` or `popstate`. A second link to the same page in the same tab changes only the hash, and the page does not load again. A page that reads the hash only at its load keeps the old view. A write of the hash is no read, and a line that carries the hash into `history.replaceState` or `pushState` is no read. Tests, fixtures, scripts, benches and examples are not sources (the option `skip`). A break is a warning until 2026-12-21. | a fault of a docs site on 2026-12-03: a second link in the same tab kept the old record. |
|
|
63
64
|
| `release-files` | A pull request changes `.github/workflows/release.yml` or `scripts/release/` only with a line `Release-Edit: <reason>` in a commit message or in the body of the pull request. The commits of the release bot (the sync of the template) need no reason. | coeval `no-release-edit`, `no-release-edits`. crawler `no-release-edit`, `no-release-edits`. headroom `no-release-edits`, `release-files-frozen`. |
|
|
64
65
|
| `unreleased-change` | A change does not set a version that npm has: the release skips such a version. The rule compares the version of the head of the change with the version of its merge base, so a version that only the base branch changed does not count. A repository where each pull request sets its version sets the option `versionEachChange`. Then a change of the shipped files also raises the version, when npm has that version already. The files that ship are the files of the folder of the package, without the tests, the fixtures, the Markdown files and the configs (the option `unshipped`). When the package has the field `files`, an entry that git tracks ships its files. An entry that git does not track is build output. Then the inputs of the build ship: each file of `src/`, and each script, module and JSON file. The files of `main` and `bin` also ship. A change of `package.json` ships when a field of the option `fields` changes, for example `exports`, but not the dependencies. On a push to the default branch, a version that the push sets breaks only when npm had it before the push. The release of the same push can publish it. An error of the registry makes the rule show `skip`. A repository with `.changeset/config.json`, a private package and a version `0.0.0` or `0.0.0-<stage>` are not examined. | rigor #18 and #20 (2026-11-02): two pull requests set the same version, and the second change did not get to npm. crawler, coeval, template `release.yml`. |
|
|
65
66
|
| `changesets-config` | A repository with `.github/workflows/release.yml` and a package that goes to npm has `.changeset/config.json` and `@changesets/cli` in the root devDependencies. With a version number in each pull request, each release of main during the CI of a pull request takes the number, and the pull request must bump again: on 2026-11-27 alerts PR 634 took 5 CI runs (main took 0.5.7, 0.6.0, 0.6.1 and 0.6.2). With Changesets, a pull request states only the kind of its change, and the release computes the version at the merge (`scripts/release/mode.ts`). `conventions fix` writes a first config with each private package in `ignore`. The rule fails from 2026-12-14. | alerts PR 634, AL-232. |
|
|
@@ -165,6 +166,7 @@ An unknown rule, an unknown option, or an exception or a changed option without
|
|
|
165
166
|
| `no-console.failFrom` | `2027-01-20` | The day from which each call fails. A day after 2027-01-20 fails the check. |
|
|
166
167
|
| `no-console.baseline` | `-1` (no baseline) | The count of the calls in the sources. The check fails when the count is not the baseline. |
|
|
167
168
|
| `no-console.skip` | the globs of tests, fixtures, scripts, benches and examples | The files that are not sources. |
|
|
169
|
+
| `follow-hash.skip` | the globs of `NOT_SOURCE` | The globs of the files that are not sources: tests, fixtures, scripts, benches and examples. |
|
|
168
170
|
| `release-files.paths` | `[".github/workflows/release.yml", "scripts/release/**"]` | The globs of the files of the release flow. |
|
|
169
171
|
| `release-files.trailer` | `Release-Edit` | The key of the line that gives the reason. |
|
|
170
172
|
| `release-files.authors` | `["mark1russell7-release-train[bot]"]` | The authors of the release flow. Their commits need no reason. |
|
package/build/cli.js
CHANGED
package/build/index.d.ts
CHANGED
|
@@ -615,6 +615,13 @@ interface ConsoleGate {
|
|
|
615
615
|
*/
|
|
616
616
|
export declare function consoleGate(options: Options, count: number, today: string): ConsoleGate;
|
|
617
617
|
export declare const noConsole: Rule;
|
|
618
|
+
/**
|
|
619
|
+
* This function gives the break of one source file. The break is the first line that reads `location.hash`, when the file
|
|
620
|
+
* does not follow the changes of the hash. A file that follows the changes gives no break. A file that only writes the
|
|
621
|
+
* hash, or only carries it into `history.replaceState`, gives no break too.
|
|
622
|
+
*/
|
|
623
|
+
export declare function hashReadBreaks(file: string, text: string): Break[];
|
|
624
|
+
export declare const followHashRule: Rule;
|
|
618
625
|
/**
|
|
619
626
|
* The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
|
|
620
627
|
* `schema/private-names.schema.json` tells its form. This module parses the list and finds its names in a line or in a
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/setup-pnpm.ts","../src/rules/filtered-install.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/git-pin-on-npm.ts","../src/rules/pinned-git-deps.ts","../src/rules/pnpm-yaml-parses.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/job-limit-floor.ts","../src/rules/playwright-install.ts","../src/rules/pnpm-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/retired-files.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts","../src/retired.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,UAAU,SAAS;;;;;;EAMnB,QAAQ,SAAS,SAAS,OAAO;;;;;;EAMjC,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO,cAAc,gBAAgB;;wBAOrC,QAAQ,cAAc,eAAe;;qBAMxC,WAAY,gBAAgB;;qBAG5B,YAAa;;wBAGV,WAAW,cAAc;;;;;;wBASzB,WAAW;;wBA2BX,UAAU;;;;;;wBAcV,WAAW,cAAc;;;;;;wBAmBzB,kBAAkB,KAAK,YAAY;;wBAsBnC,OAAO,cAAc;;wBAOrB,mBAAmB;;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AQpC,cAAc;;wBAMd,SAAS;;wBAWT,QAAQ,cAAc;;;;;wBA+BtB,mBAAmB,SAAS;qBAW/B,aAAa;qBCIb,kBAAkB;;qBCnElB;;wBA6BG,kBAAkB;qBAiFrB,WAAW;qBC/GX,eAAe;;qBCUf;;KAmCD;;;;;wBAMI,gBAAgB,cAAc;;wBAK9B,UAAU,cAAc;;wBAKxB,YAAY,cAAc,iBAAiB;;wBAa3C,cAAc,cAAc,eAAe;;qBAc9C;;UAMI;;WAEN;;WAEA;;WAEA;;;;;;wBAOK,YAAY,SAAS,SAAS,eAAe,gBAAgB;qBAmBhE,WAAW;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/rule.ts","../src/config.ts","../src/rules/cue-preset.ts","../src/rules/gate-after-cancel.ts","../src/rules/gate-trigger.ts","../src/rules/security-gate.ts","../src/rules/security-one-job.ts","../src/rules/summary-job.ts","../src/rules/release-mode.ts","../src/rules/shared-docs.ts","../src/rules/call-permissions.ts","../src/rules/setup-cue.ts","../src/rules/setup-pnpm.ts","../src/rules/filtered-install.ts","../src/rules/shared-ci.ts","../src/rules/service-run-main.ts","../src/map.ts","../src/rules/home-module.ts","../src/rules/home-package.ts","../src/home-shapes.ts","../src/rules/home-shape.ts","../src/rules/license-file.ts","../src/rules/coverage-provider.ts","../src/rules/main-check.ts","../src/rules/no-build-output.ts","../src/rules/no-console.ts","../src/rules/follow-hash.ts","../src/private-names.ts","../src/rules/no-local-paths.ts","../src/rules/pack-no-buildinfo.ts","../src/rules/publish-text-safe.ts","../src/rules/exports-require.ts","../src/rules/api-report-script.ts","../src/rules/pages-after-release.ts","../src/rules/pages-site.ts","../src/rules/site-check-in-ci.ts","../src/rules/git-pin-on-npm.ts","../src/rules/pinned-git-deps.ts","../src/rules/pnpm-yaml-parses.ts","../src/rules/pipe-fails.ts","../src/rules/job-fails.ts","../src/rules/job-limit-floor.ts","../src/rules/playwright-install.ts","../src/rules/pnpm-install.ts","../src/rules/push-main-only.ts","../src/rules/unreleased-change.ts","../src/rules/published-minor.ts","../src/rules/release-files.ts","../src/rules/required-scripts.ts","../src/rules/retired-files.ts","../src/rules/roadmap-parses.ts","../src/rules/runner-budget.ts","../src/workflow.ts","../src/rules/runner-peak.ts","../src/rules/source-main.ts","../src/rules/tests-required.ts","../src/rules/tsconfig-test.ts","../src/rules/typed-files.ts","../src/rules/typed-scripts.ts","../src/rules/trust-policy.ts","../src/rules/version-title.ts","../src/rules/workflow-parses.ts","../src/rules/workspace-protocol.ts","../src/rules/index.ts","../src/io.ts","../src/pre-push.ts","../src/workflow-expression.ts","../src/home-exports.ts","../src/run.ts","../src/release-text.ts","../src/retired.ts"],"mappings":";;;;;;;;;;;;;;;;;;;UASiB;WACN;WACA;WACA;;;UAIM;;WAEN;;WAEA;WACA;;WAEA;;WAEA,iBAAiB;;;;;;UAOX;;WAEN;;WAEA;;WAEA;;;wBAIK,YAAY,cAAc,cAAc;;KAQ5C;;KAGA,UAAU,SAAS,eAAe;;UAG7B;WACN;WACA,SAAS;WACT;;;KAIC,WAAW,SAAS;;UAGf;WACN,iBAAiB;;WAEjB;;;UAIM;;WAEN;;WAEA;;WAEA;;WAEA;WACA,UAAU;;;UAIJ;;WAEN;;WAEA,aAAa;;WAEb,mBAAmB;;WAEnB,KAAK,SAAS;;WAEd;;WAEA;;EAET;;EAEA,IAAI;;;;;;EAMJ,SAAS;;;wBAIK,UAAU,SAAS,KAAK,iCAAiC;;KAM7D,uBAAuB;WAAqB;;;qBAG3C;;UAGI;;WAEN;;WAEA;;WAEA;;WAEA;;WAEA,kBAAkB;;WAElB,SAAS,SAAS,eAAe;;;;;WAKjC;;;;;;;WAOA;EACT,MAAM,SAAS,aAAa,SAAS,UAAU;;;;;;EAM/C,UAAU,SAAS;;;;;;EAMnB,QAAQ,SAAS,SAAS,OAAO;;;;;;EAMjC,QAAQ,SAAS,aAAa,SAAS;;;qBAO5B;;wBAGG,aAAa,UAAU,UAAU;;wBAOjC,OAAO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;;;;KCzc/C;;UAGK;WACN,OAAO,YAAY;WACnB;;WAEA;;;wBA8DK,mBAAmB,cAAc,gBAAgB;;;;;wBAoGjD,WAAW,eAAe,gBAAgB,YAAY;;;;;wBActD,OAAO,mBAAmB;;qBCjM7B,cAAc,SAAS;WAA0B;WAA0B;;;UCiBvE;WACN;WACA;WACA;;;;;WAKA;WACA,iBAAiB;;WAEjB;;WAEA;;;;;WAKA;;;UAIM;WACN,gBAAgB;;WAEhB;;;UAIM;;WAEN;;WAEA;;WAEA;WACA,MAAM,SAAS;;WAEf,iBAAiB;;WAEjB;;;wBAaK,WAAW,cAAc,iBAAgB,SAAiB;;wBAO1D,cAAc,cAAc,QAAQ,mBAAmB,UAAS,KAAK,0CAA+C;;wBAwCpH,UAAU,SAAS,eAAe;;UAuEjC;;WAEN;;WAEA;;WAEA,QAAQ;;;;;;;wBAWH,OAAO,SAAS,eAAe;;wBAyC/B,aAAa,QAAQ;;wBA4BrB,gBAAgB,QAAQ;;;;;;wBA2BxB,YAAY,QAAQ;;wBAapB,UAAU,QAAQ,+BAA+B,iBAAgB;;qBAqBpE;;wBA8EG,OAAO,yBAAyB,IAAI;;;;;;;;qBCvZvC;;wBAGG,QAAQ,cAAc,iBAAiB;;;;;;;;wBAavC,iBAAiB,kBAAkB,iBAAiB;;wBA+BpD,OAAO,cAAc;;;;;wBAQrB,aAAa,cAAc,iBAAiB;;;;;;UCzD3C;;WAEN;;WAEA;;WAEA;;;qBAQE,wBAAwB;;wBAQrB,YAAY,eAAe"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { $ as retiredFile, $n as
|
|
1
|
+
import { $ as retiredFile, $n as tsconfigTest, $r as parseWorkflow, $t as lineNameHit, A as scriptsOf, An as moduleUses, Ar as securityCallers, At as pushMainOnly, B as giveWaySlots, Bn as MAP_RULE, Br as repositoryIsPublic, Bt as PRIVATE_NAMES_FILE_VARIABLE, C as setVersions, Ci as defaultOptions, Cn as homeShapesOf, Cr as addSummaryJob, Ct as gitPinOnNpm, D as trustPolicy, Dn as HOME_SHAPES, Dr as SECURITY_SCAN_COMMIT, Dt as pinnedGitDeps, E as TRAIN_SCOPES, En as spansOf, Er as summaryJobRule, Et as isPinned, F as sourceMain, Fn as repoOf, Fr as LICENSE_TEXTS, Ft as publishTextSafe, G as workflowPeaks, Gn as npmDrift, Gr as skippableJobs, Gt as privateNamesFiles, H as repositoryPeak, Hn as mapMarkdown, Hr as convertGate, Ht as invalidPatternBreaks, I as TEMPLATE_CALLED, In as reposOf, Ir as authorOf, It as packNoBuildinfo, J as mayRun, Jn as readOverlay, Jr as JOB_LIMIT_FLOOR_MINUTES, Jt as PRIVATE_NAME_LIST, K as evaluateExpression, Kn as npmNames, Kr as summaryJob, Kt as privatePatterns, L as UNKNOWN_MATRIX_JOBS, Ln as signaturesOf, Lr as licenseFile, Lt as DEFAULT_ALLOWED, M as testsRequired, Mn as declaredName, Mr as withOneJob, Mt as pagesCalls, N as isSourcePath, Nn as homePackage, Nr as runnerBudget, Nt as pagesSite, O as typedScripts, On as homeModule, Or as SECURITY_SCAN_INPUTS, Ot as siteCheckInCi, P as pathsOf, Pn as messageOf, Pr as scheduleMinute, Pt as exportsRequire, Q as RETIRED_FILES, Qn as hasTests, Qr as MATRIX_EXPAND_MAX, Qt as isCommonUse, R as calledJobs, Rn as HOME_EXPORTS, Rr as licenseFileOf, Rt as HOME_PATTERNS, S as namedVersions, Si as specifiersOf, Sn as homeShape, Sr as SUMMARY_GATES, St as pnpmYamlParses, T as IGNORE_AFTER, Ti as parseRuleConfig, Tn as shapesOfSource, Tr as startsOnPullRequest, Tt as isGitSpecifier, U as runnerPeak, Un as mapText, Ur as gateTrigger, Ut as noLocalPaths, V as matrixPeak, Vn as findHomes, Vr as ACTIONS_COMMIT, Vt as PRIVATE_PATTERNS_VARIABLE, W as runsAtOnce, Wn as mergeHomes, Wr as prPathFilters, Wt as privateNamesFile, X as roadmapParses, Xn as runCalls, Xr as gateAfterCancel, Xt as firstNameMatch, Y as roadmapOfLine, Yn as SERVICE_PACKAGE, Yr as jobLimitFloor, Yt as PrivateNameListError, Z as retiredFiles, Zn as serviceRunMain, Zr as FILTER_KEYS, Zt as isAllowedHit, _ as runPrePushArgs, _i as replaceLine, _n as hasImportMetaMain, _r as releaseModeRule, _t as parseAdvisory, a as listRules, ai as DEPENDENCY_FIELDS, an as followHashRule, ar as filteredInstall, at as publishedMinorRule, b as GITHUB_YAML, bi as runGitShow, bn as apiReportScript, br as securityGate, bt as pipeFails, c as runCli, ci as codePackages, cn as NOT_SOURCE, cr as callPermissions, ct as SHIPPED_FIELDS, d as HOOK_MARKER, di as keyLine, dn as consoleKind, dr as blockHash, dt as unreleasedChange, ei as readAction, en as lineNameHits, er as SHARED_ACTIONS, et as requiredScripts, f as NO_READ_LINE, fi as lineOf, fn as isCliFile, fr as githubFetch, ft as unreleasedChangeRule, g as prePush, gi as readJsonc, gn as REAL_COMPARE, gr as hasReleaseMode, gt as jobFails, h as parsePrePushArgs, hi as parseJsonc, hn as noBuildOutput, hr as callsReleaseBuild, ht as hiddenFailures, i as formatResult, ii as cuePreset, in as pathNameHit, ir as sharedCi, it as publishedMinor, j as typedFiles, jn as modulesOf, jr as securityOneJob, jt as PAGES_WORKFLOWS, k as configsOfScript, kn as moduleMessage, kr as SECURITY_TIMEOUT_MINUTES, kt as pagesAfterRelease, l as runFix, li as hasFile, ln as consoleBreaks, lr as callPermissionsRule, lt as UNSHIPPED_FILES, m as installHook, mi as parseCatFileBatch, mn as noConsole, mr as addReleaseMode, mt as playwrightInstall, n as annotations, ni as yamlFaults, nn as nameMatches, nr as SHARED_WORKFLOWS, nt as lockedVersions, o as readConfig, oi as RULE_WARN_DAYS, on as hashReadBreaks, or as setupPnpm, ot as reachOf, p as PRE_PUSH_HOOK, pi as matchesAny, pn as isConsoleSource, pr as sharedDocsRule, pt as pnpmInstall, q as groupParts, qn as npmPackagesOf, qr as summaryName, qt as privateTextBreaks, r as createContext, ri as STRICT_OPTIONS, rn as parsePrivateNames, rr as callsSharedCi, rt as minorOf, s as runChecks, si as cleanPath, sn as CONSOLE_LAST_DAY, sr as setupCue, st as NPM_REGISTRY, t as USAGE, ti as readWorkflow, tn as mergePrivateNames, tr as SHARED_CI, tt as releaseFiles, u as summaryMarkdown, ui as inFolder, un as consoleGate, ur as HOME_TIMEOUT_MS, ut as npmLookup, v as RULES, vi as repositoryOfRemote, vn as mainCheck, vr as SECURITY_FILE, vt as startsTests, w as versionTitle, wi as parseConfig, wn as shapeMessage, wr as hasSummaryJob, wt as dependencySpecifiers, x as workflowParses, xi as showFiles, xn as containedHome, xr as securityWorkflow, xt as PNPM_YAML, y as workspaceProtocol, yi as runGit, yn as coverageProvider, yr as isSecurityGate, yt as swallowsTests, z as eventClass, zn as HOMES, zr as mitText, zt as PRIVATE_NAMES_FILE_CONFIG } from "./run-DQBe1YEQ.js";
|
|
2
2
|
import { OWNERS, ownerOf, ownersOf, repoKeyer, sharedNames } from "./owners.js";
|
|
3
3
|
import { a as packageFolders, i as isWorkspaceFolder, l as workspaceGlobs, n as globFolders, o as parseWorkspaceGlobs, r as globToRegExp } from "./workspace-B6xQXXcL.js";
|
|
4
4
|
// src/release-text.ts
|
|
@@ -66,6 +66,6 @@ function releaseNotes(name, version, changelog) {
|
|
|
66
66
|
if (section.length <= 1e5) return section;
|
|
67
67
|
return `${section.slice(0, MAX_NOTES)}\n\n(The CHANGELOG.md of \`${name}\` has the full text.)`;
|
|
68
68
|
}
|
|
69
|
-
export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, FILTER_KEYS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, JOB_LIMIT_FLOOR_MINUTES, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PNPM_YAML, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RETIRED_FILES, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, filteredInstall, findHomes, firstNameMatch, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isConsoleSource, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, jobLimitFloor, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmPackagesOf, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, pnpmInstall, pnpmYamlParses, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, retiredFile, retiredFiles, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, setupPnpm, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
69
|
+
export { ACTIONS_COMMIT, CONSOLE_LAST_DAY, DEFAULT_ALLOWED, DEPENDENCY_FIELDS, FILTER_KEYS, GITHUB_YAML, HOMES, HOME_EXPORTS, HOME_PATTERNS, HOME_SHAPES, HOME_TIMEOUT_MS, HOOK_MARKER, IGNORE_AFTER, JOB_LIMIT_FLOOR_MINUTES, LICENSE_TEXTS, MAP_RULE, MATRIX_EXPAND_MAX, MAX_NOTES, NOT_SOURCE, NO_READ_LINE, NPM_REGISTRY, OWNERS, PAGES_WORKFLOWS, PNPM_YAML, PRE_PUSH_HOOK, PRIVATE_NAMES_FILE_CONFIG, PRIVATE_NAMES_FILE_VARIABLE, PRIVATE_NAME_LIST, PRIVATE_PATTERNS_VARIABLE, PrivateNameListError, REAL_COMPARE, RETIRED_FILES, RULES, RULE_WARN_DAYS, SECURITY_FILE, SECURITY_SCAN_COMMIT, SECURITY_SCAN_INPUTS, SECURITY_TIMEOUT_MINUTES, SERVICE_PACKAGE, SHARED_ACTIONS, SHARED_CI, SHARED_WORKFLOWS, SHIPPED_FIELDS, STRICT_OPTIONS, SUMMARY_GATES, TEMPLATE_CALLED, TRAIN_SCOPES, UNKNOWN_MATRIX_JOBS, UNSHIPPED_FILES, USAGE, addReleaseMode, addSummaryJob, annotations, apiReportScript, authorOf, blockHash, callPermissions, callPermissionsRule, calledJobs, callsReleaseBuild, callsSharedCi, changelogSection, cleanPath, codePackages, configsOfScript, consoleBreaks, consoleGate, consoleKind, containedHome, convertGate, coverageProvider, createContext, cuePreset, declaredName, defaultOptions, dependencySpecifiers, evaluateExpression, eventClass, exportsRequire, filteredInstall, findHomes, firstNameMatch, followHashRule, formatResult, gateAfterCancel, gateTrigger, gitPinOnNpm, githubFetch, giveWaySlots, globFolders, globToRegExp, groupParts, hasFile, hasImportMetaMain, hasReleaseMode, hasSummaryJob, hasTests, hashReadBreaks, hiddenFailures, homeModule, homePackage, homeShape, homeShapesOf, inFolder, installHook, invalidPatternBreaks, isAllowedHit, isCliFile, isCommonUse, isConsoleSource, isGitSpecifier, isPinned, isSecurityGate, isSourcePath, isWorkspaceFolder, jobFails, jobLimitFloor, keyLine, licenseFile, licenseFileOf, lineNameHit, lineNameHits, lineOf, listRules, lockedVersions, mainCheck, mapMarkdown, mapText, matchesAny, matrixPeak, mayRun, mergeHomes, mergePrivateNames, messageOf, minorOf, mitText, moduleMessage, moduleUses, modulesOf, nameMatches, namedVersions, noBuildOutput, noConsole, noLocalPaths, npmDrift, npmLookup, npmNames, npmPackagesOf, npmUrl, ownerOf, ownersOf, packNoBuildinfo, packageFolders, pagesAfterRelease, pagesCalls, pagesSite, parseAdvisory, parseCatFileBatch, parseConfig, parseJsonc, parsePrePushArgs, parsePrivateNames, parseRuleConfig, parseWorkflow, parseWorkspaceGlobs, pathNameHit, pathsOf, pinnedGitDeps, pipeFails, playwrightInstall, pnpmInstall, pnpmYamlParses, prPathFilters, prePush, privateNamesFile, privateNamesFiles, privatePatterns, privateTextBreaks, publishTextSafe, publishedMinor, publishedMinorRule, pushMainOnly, reachOf, readAction, readConfig, readJsonc, readOverlay, readWorkflow, releaseFiles, releaseModeRule, releaseNotes, replaceLine, repoKeyer, repoOf, reposOf, repositoryIsPublic, repositoryOfRemote, repositoryPeak, requiredScripts, retiredFile, retiredFiles, roadmapOfLine, roadmapParses, runCalls, runChecks, runCli, runFix, runGit, runGitShow, runPrePushArgs, runnerBudget, runnerPeak, runsAtOnce, scheduleMinute, scriptsOf, securityCallers, securityGate, securityOneJob, securityWorkflow, serviceRunMain, setVersions, setupCue, setupPnpm, shapeMessage, shapesOfSource, sharedCi, sharedDocsRule, sharedNames, showFiles, signaturesOf, siteCheckInCi, skippableJobs, sourceMain, spansOf, specifiersOf, startsOnPullRequest, startsTests, summaryJob, summaryJobRule, summaryMarkdown, summaryName, swallowsTests, tagName, testsRequired, trustPolicy, tsconfigTest, typedFiles, typedScripts, unreleasedChange, unreleasedChangeRule, versionTitle, withOneJob, workflowParses, workflowPeaks, workspaceGlobs, workspaceProtocol, yamlFaults };
|
|
70
70
|
|
|
71
71
|
//# sourceMappingURL=index.js.map
|
|
@@ -5,8 +5,9 @@ import { createRequire } from "node:module";
|
|
|
5
5
|
import { spawnSync } from "node:child_process";
|
|
6
6
|
import { appendFileSync, chmodSync, existsSync, mkdirSync, readFileSync, readdirSync, statSync, writeFileSync } from "node:fs";
|
|
7
7
|
import { basename, delimiter, dirname, extname, isAbsolute, join, posix, relative, resolve } from "node:path";
|
|
8
|
-
import { LineCounter, isMap, isScalar, isSeq, parseAllDocuments } from "yaml";
|
|
9
8
|
import { errorMessage } from "@mark1russell7/text";
|
|
9
|
+
import "@mark1russell7/text/references";
|
|
10
|
+
import { LineCounter, isMap, isScalar, isSeq, parseAllDocuments } from "yaml";
|
|
10
11
|
import { createHash } from "node:crypto";
|
|
11
12
|
import { containsShape, functionsOf } from "@mark1russell7/code-shape";
|
|
12
13
|
import { SECRET_SHAPES, findSecretShapes, findSecretShapesInValue, redactSecretShapes } from "@mark1russell7/text/redact";
|
|
@@ -911,12 +912,17 @@ document.addEventListener("click", (event) => {
|
|
|
911
912
|
const label = button.querySelector("[data-sp-label]");
|
|
912
913
|
if (label) label.textContent = open ? button.dataset.less : button.dataset.more;
|
|
913
914
|
});
|
|
914
|
-
// A malformed hash, for example "#100%", must not stop the module
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
hashed =
|
|
918
|
-
|
|
919
|
-
|
|
915
|
+
// A malformed hash, for example "#100%", must not stop the module. A second link in the same tab changes only the hash,
|
|
916
|
+
// so the page follows each change of the hash, not only the hash at its load.
|
|
917
|
+
const followHash = () => {
|
|
918
|
+
let hashed = "";
|
|
919
|
+
try {
|
|
920
|
+
hashed = decodeURIComponent(location.hash.slice(1));
|
|
921
|
+
} catch {}
|
|
922
|
+
for (const [version, panel] of panels) if (panel.id === hashed) select(version, null);
|
|
923
|
+
};
|
|
924
|
+
followHash();
|
|
925
|
+
window.addEventListener("hashchange", followHash);
|
|
920
926
|
const revealAll = () => { for (const box of boxes) reveal(box, selected, false); };
|
|
921
927
|
revealAll();
|
|
922
928
|
window.addEventListener("resize", revealAll);
|
|
@@ -1037,6 +1043,34 @@ function cronLines(workflow) {
|
|
|
1037
1043
|
}];
|
|
1038
1044
|
});
|
|
1039
1045
|
}
|
|
1046
|
+
// ../site-pages/src/site/snapshot.ts
|
|
1047
|
+
/**
|
|
1048
|
+
* The source of `replaceTokenColors`, as JavaScript text. The prerender starts this text in the browser, and Node.js
|
|
1049
|
+
* makes the same function from it. A bundler does not change a text, so the two use the same code. The code needs
|
|
1050
|
+
* nothing from outside its body.
|
|
1051
|
+
*/
|
|
1052
|
+
const REPLACE_TOKEN_COLORS_SOURCE = String.raw`function replaceTokenColors(text, tokens, keepCustomProperties) {
|
|
1053
|
+
const names = new Map(tokens);
|
|
1054
|
+
const swap = (match, digits, red, green, blue) => {
|
|
1055
|
+
let color;
|
|
1056
|
+
if (digits === undefined) {
|
|
1057
|
+
color = "#" + [red, green, blue].map((value) => Number(value).toString(16).padStart(2, "0")).join("");
|
|
1058
|
+
} else {
|
|
1059
|
+
color = "#" + (digits.length === 3 ? digits.replace(/./g, "$&$&") : digits).toLowerCase();
|
|
1060
|
+
}
|
|
1061
|
+
const name = names.get(color);
|
|
1062
|
+
return name === undefined ? match : "var(" + name + ")";
|
|
1063
|
+
};
|
|
1064
|
+
if (!keepCustomProperties) {
|
|
1065
|
+
return text.replace(/(?<![\w#(-])#([0-9a-f]{6}|[0-9a-f]{3})(?![\w-])|\brgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})\s*(?:[,/]\s*1(?:\.0*)?\s*)?\)/gi, swap);
|
|
1066
|
+
}
|
|
1067
|
+
// A custom property keeps its value: it holds a fixed color for one theme, for example a color of the code.
|
|
1068
|
+
return text.replace(
|
|
1069
|
+
/((?:^|[;{\s])--[\w-]+\s*:[^;{}]*)|(?<![\w#(-])#([0-9a-f]{6}|[0-9a-f]{3})(?![\w-])|\brgba?\(\s*(\d{1,3})[\s,]+(\d{1,3})[\s,]+(\d{1,3})\s*(?:[,/]\s*1(?:\.0*)?\s*)?\)/gi,
|
|
1070
|
+
(match, custom, digits, red, green, blue) => (custom === undefined ? swap(match, digits, red, green, blue) : match),
|
|
1071
|
+
);
|
|
1072
|
+
}`;
|
|
1073
|
+
new Function(`return (${REPLACE_TOKEN_COLORS_SOURCE});`)();
|
|
1040
1074
|
// src/rules/changelog-version.ts
|
|
1041
1075
|
/**
|
|
1042
1076
|
* The rule `changelog-version`: the top release section of the changelog of a package is not above the version of
|
|
@@ -5599,7 +5633,7 @@ const HOMES = [
|
|
|
5599
5633
|
{
|
|
5600
5634
|
area: "files",
|
|
5601
5635
|
title: "Paths and files on Node.js",
|
|
5602
|
-
covers: "paths, home folder expansion, a path inside a folder, finding a file up the folders, glob matching, file walks with excludes, archives (entry /archive: ZIP reading with inflateRaw, CRC and size limits; tar and gzip planned): plain functions on node: modules only, for each general package. @procedures/fs builds on them",
|
|
5636
|
+
covers: "paths, home folder expansion, a path inside a folder, finding a file up the folders, glob matching, file walks with excludes, archives (entry /archive: ZIP reading with inflateRaw, CRC and size limits; tar and gzip planned), URL paths (entry /url-path, no node: import: no end slash, a join, a path under a base path): plain functions on node: modules only, for each general package. @procedures/fs builds on them",
|
|
5603
5637
|
packages: ["@mark1russell7/files"],
|
|
5604
5638
|
repo: "mark1russell7/files",
|
|
5605
5639
|
state: "published",
|
|
@@ -5617,7 +5651,11 @@ const HOMES = [
|
|
|
5617
5651
|
"unzip",
|
|
5618
5652
|
"inflate",
|
|
5619
5653
|
"tar",
|
|
5620
|
-
"gzip"
|
|
5654
|
+
"gzip",
|
|
5655
|
+
"url path",
|
|
5656
|
+
"end slash",
|
|
5657
|
+
"trailing slash",
|
|
5658
|
+
"base path"
|
|
5621
5659
|
],
|
|
5622
5660
|
signatures: [
|
|
5623
5661
|
"expandHome",
|
|
@@ -5625,7 +5663,10 @@ const HOMES = [
|
|
|
5625
5663
|
"isInside",
|
|
5626
5664
|
"globToRegExp",
|
|
5627
5665
|
"matchesGlob",
|
|
5628
|
-
"readZipEntries"
|
|
5666
|
+
"readZipEntries",
|
|
5667
|
+
"withoutEndSlash",
|
|
5668
|
+
"joinUrlPath",
|
|
5669
|
+
"isUnderBase"
|
|
5629
5670
|
]
|
|
5630
5671
|
},
|
|
5631
5672
|
{
|
|
@@ -6423,7 +6464,7 @@ const HOMES = [
|
|
|
6423
6464
|
{
|
|
6424
6465
|
area: "plain-text",
|
|
6425
6466
|
title: "Plain text helpers",
|
|
6426
|
-
covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form), a printer of lines and tables to injected streams (entry /print: the output of a CLI for a person; a diagnostic goes to a log record of otel-ts), a BM25 search of a set of texts with no index server (entry /bm25), a strict base64 and base64url codec (entry /base64, planned). Escaping comes first",
|
|
6467
|
+
covers: "escaping for HTML, attributes, regular expressions and Markdown, case conversion, padding and truncation, templates, English word forms (plurals, lists), the text of a thrown value (it never throws), the redaction of known secrets in a text (the raw form, the URL form and the Basic form), a printer of lines and tables to injected streams (entry /print: the output of a CLI for a person; a diagnostic goes to a log record of otel-ts), a BM25 search of a set of texts with no index server (entry /bm25), a strict base64 and base64url codec (entry /base64, planned), a class-name join (entry /class-names). Escaping comes first",
|
|
6427
6468
|
packages: ["@mark1russell7/text"],
|
|
6428
6469
|
repo: "mark1russell7/text",
|
|
6429
6470
|
state: "published",
|
|
@@ -6456,7 +6497,11 @@ const HOMES = [
|
|
|
6456
6497
|
"retrieval",
|
|
6457
6498
|
"base64",
|
|
6458
6499
|
"base64url",
|
|
6459
|
-
"codec"
|
|
6500
|
+
"codec",
|
|
6501
|
+
"class names",
|
|
6502
|
+
"classnames",
|
|
6503
|
+
"cx",
|
|
6504
|
+
"clsx"
|
|
6460
6505
|
],
|
|
6461
6506
|
signatures: [
|
|
6462
6507
|
"escapeHtml",
|
|
@@ -6476,7 +6521,8 @@ const HOMES = [
|
|
|
6476
6521
|
"encodeBase64",
|
|
6477
6522
|
"decodeBase64",
|
|
6478
6523
|
"base64Encode",
|
|
6479
|
-
"base64Decode"
|
|
6524
|
+
"base64Decode",
|
|
6525
|
+
"classNames"
|
|
6480
6526
|
]
|
|
6481
6527
|
},
|
|
6482
6528
|
{
|
|
@@ -6653,7 +6699,7 @@ const HOMES = [
|
|
|
6653
6699
|
{
|
|
6654
6700
|
area: "repo-structure",
|
|
6655
6701
|
title: "Repository structure, CI and conventions",
|
|
6656
|
-
covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check), the React kit of a docs site (entry /react of site-pages: the theme, the content registry, the sidebar, callouts, tabs, the page footer, react.css)",
|
|
6702
|
+
covers: "new repositories and packages, the CUE presets, shared CI workflows, the API report, import boundaries, the conventions check, the release and status pages, the browser check of a built site (site-pages check), the offline shell of a built site (entry /offline of site-pages: manifest, service worker, the offline check), the React kit of a docs site (entry /react of site-pages: the theme, the content registry, the sidebar, callouts, tabs, the page footer, react.css), the build tools of a docs site (the root entry of site-pages: static routes, prerender in a browser, head tags, JSON-LD, Open Graph images, the sitemap, robots.txt, font preload)",
|
|
6657
6703
|
packages: [
|
|
6658
6704
|
"@mark1russell7/conventions",
|
|
6659
6705
|
"@mark1russell7/template-cli",
|
|
@@ -6687,7 +6733,16 @@ const HOMES = [
|
|
|
6687
6733
|
"sidebar",
|
|
6688
6734
|
"callout",
|
|
6689
6735
|
"table of contents",
|
|
6690
|
-
"theme toggle"
|
|
6736
|
+
"theme toggle",
|
|
6737
|
+
"prerender",
|
|
6738
|
+
"sitemap",
|
|
6739
|
+
"robots.txt",
|
|
6740
|
+
"open graph",
|
|
6741
|
+
"head tags",
|
|
6742
|
+
"json-ld",
|
|
6743
|
+
"font preload",
|
|
6744
|
+
"static routes",
|
|
6745
|
+
"base path"
|
|
6691
6746
|
]
|
|
6692
6747
|
},
|
|
6693
6748
|
{
|
|
@@ -77056,7 +77111,7 @@ const NOT_SOURCE = [
|
|
|
77056
77111
|
/** A call of a method of `console`. The group `method` is the name of the method. */
|
|
77057
77112
|
const CALL = /\bconsole\s*\.\s*(?<method>[A-Za-z]+)\s*\(/g;
|
|
77058
77113
|
/** A line that is a comment: it starts with `//`, `/*` or `*`. */
|
|
77059
|
-
const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
|
|
77114
|
+
const COMMENT$1 = /^\s*(?:\/\/|\/\*|\*)/;
|
|
77060
77115
|
/** The path of a CLI file: a folder `cli`, `bin` or `commands`, or a file `cli.*` or `main.*`. */
|
|
77061
77116
|
const CLI_PATH = /(?:^|\/)(?:cli|bin|commands?)(?:\/|\.)|(?:^|[/._-])(?:cli|main)\.[a-z]+$/;
|
|
77062
77117
|
/**
|
|
@@ -77084,7 +77139,7 @@ function consoleBreaks(file, text) {
|
|
|
77084
77139
|
const cli = isCliFile(file, text);
|
|
77085
77140
|
const breaks = [];
|
|
77086
77141
|
text.split(/\r?\n/).forEach((line, index) => {
|
|
77087
|
-
if (COMMENT.test(line)) return;
|
|
77142
|
+
if (COMMENT$1.test(line)) return;
|
|
77088
77143
|
for (const match of line.matchAll(CALL)) {
|
|
77089
77144
|
const method = match.groups?.["method"] ?? "";
|
|
77090
77145
|
breaks.push({
|
|
@@ -77202,6 +77257,76 @@ const noConsole = {
|
|
|
77202
77257
|
return state.breaks.some((item) => item.file === CONFIG_FILE$1) ? void 0 : gate.why;
|
|
77203
77258
|
}
|
|
77204
77259
|
};
|
|
77260
|
+
// src/rules/follow-hash.ts
|
|
77261
|
+
/**
|
|
77262
|
+
* The rule `follow-hash`: a source that reads the hash of the address also follows each change of the hash. A second link
|
|
77263
|
+
* to the same page in the same tab changes only the hash, and the page does not load again. A page that reads the hash
|
|
77264
|
+
* only at its load thus keeps the old view. The function `followHash` of `@mark1russell7/site-pages/chrome` reads the
|
|
77265
|
+
* hash at its start and at each `hashchange` event.
|
|
77266
|
+
*/
|
|
77267
|
+
/** A read of the hash of the address: `location.hash` that is not the left side of an assignment. */
|
|
77268
|
+
const READ = /\blocation\s*\.\s*hash\b(?!\s*=(?!=))/;
|
|
77269
|
+
/** A line that only carries the hash into a new address of the same page: a call of `replaceState` or `pushState`. */
|
|
77270
|
+
const CARRY = /\b(?:replaceState|pushState)\s*\(/;
|
|
77271
|
+
/** A line that is a comment: it starts with `//`, `/*` or `*`. */
|
|
77272
|
+
const COMMENT = /^\s*(?:\/\/|\/\*|\*)/;
|
|
77273
|
+
/** A text that follows the changes of the hash: a listener of `hashchange` or `popstate` (also `onhashchange`), or a call of `followHash`. */
|
|
77274
|
+
const FOLLOWS = /hashchange|popstate|\bfollowHash\s*\(/;
|
|
77275
|
+
/**
|
|
77276
|
+
* This function gives the break of one source file. The break is the first line that reads `location.hash`, when the file
|
|
77277
|
+
* does not follow the changes of the hash. A file that follows the changes gives no break. A file that only writes the
|
|
77278
|
+
* hash, or only carries it into `history.replaceState`, gives no break too.
|
|
77279
|
+
*/
|
|
77280
|
+
function hashReadBreaks(file, text) {
|
|
77281
|
+
if (!text.includes("hash") || FOLLOWS.test(text)) return [];
|
|
77282
|
+
const lines = text.split(/\r?\n/);
|
|
77283
|
+
for (const [index, line] of lines.entries()) {
|
|
77284
|
+
if (COMMENT.test(line) || CARRY.test(line) || !READ.test(line)) continue;
|
|
77285
|
+
return [{
|
|
77286
|
+
file,
|
|
77287
|
+
line: index + 1,
|
|
77288
|
+
message: `${file} reads location.hash only once. A second link to the page in the same tab changes the hash, and the view stays the same.`
|
|
77289
|
+
}];
|
|
77290
|
+
}
|
|
77291
|
+
return [];
|
|
77292
|
+
}
|
|
77293
|
+
const followHashRule = {
|
|
77294
|
+
id: "follow-hash",
|
|
77295
|
+
title: "A source that reads `location.hash` also follows each change of the hash: with `followHash` of `@mark1russell7/site-pages/chrome`, or a listener of `hashchange`.",
|
|
77296
|
+
reason: "A second link to the same page in the same tab changes only the hash, and the browser does not load the page again. A page that reads the hash only at its load keeps the old view. On 2026-12-03, a docs site kept the panel of the first record after a link to a second record.",
|
|
77297
|
+
fix: "Read the hash with followHash(listener) of @mark1russell7/site-pages/chrome. It gives the hash at its start and at each change. A file that reads the hash for a different reason goes in `ignore` with its reason.",
|
|
77298
|
+
sources: [{
|
|
77299
|
+
repo: "private",
|
|
77300
|
+
rule: "bug-leaves-class-probe",
|
|
77301
|
+
doc: "a decision of direction: each fault leaves a probe of its class. The case is a docs site on 2026-12-03."
|
|
77302
|
+
}, {
|
|
77303
|
+
repo: "mark1russell7/template",
|
|
77304
|
+
rule: "site-pages releases page",
|
|
77305
|
+
doc: "the inline module of the releases page read the hash only at its load, until the fix of 2026-12-04"
|
|
77306
|
+
}],
|
|
77307
|
+
options: { skip: {
|
|
77308
|
+
type: "strings",
|
|
77309
|
+
default: NOT_SOURCE,
|
|
77310
|
+
description: "The globs of the files that are not sources: tests, fixtures, scripts, benches and examples."
|
|
77311
|
+
} },
|
|
77312
|
+
failsFrom: "2026-12-21",
|
|
77313
|
+
check(context, options) {
|
|
77314
|
+
const files = context.gitFiles();
|
|
77315
|
+
if (files === void 0) return { skipped: "the root is not in a git repository" };
|
|
77316
|
+
const skip = options["skip"];
|
|
77317
|
+
const breaks = [];
|
|
77318
|
+
for (const file of files.filter((path) => isConsoleSource(path, skip)).sort(byCode)) {
|
|
77319
|
+
let text;
|
|
77320
|
+
try {
|
|
77321
|
+
text = readFileSync(join(context.root, file), "utf8");
|
|
77322
|
+
} catch {
|
|
77323
|
+
continue;
|
|
77324
|
+
}
|
|
77325
|
+
breaks.push(...hashReadBreaks(file, text));
|
|
77326
|
+
}
|
|
77327
|
+
return breaks;
|
|
77328
|
+
}
|
|
77329
|
+
};
|
|
77205
77330
|
// src/private-names.ts
|
|
77206
77331
|
/**
|
|
77207
77332
|
* The private name list: a JSON file outside of the public repositories, with the names of private projects. The file
|
|
@@ -83675,6 +83800,7 @@ const RULES = [
|
|
|
83675
83800
|
noBuildOutput,
|
|
83676
83801
|
noLocalPaths,
|
|
83677
83802
|
noConsole,
|
|
83803
|
+
followHashRule,
|
|
83678
83804
|
apiReportScript,
|
|
83679
83805
|
releaseFiles,
|
|
83680
83806
|
unreleasedChange,
|
|
@@ -84929,6 +85055,6 @@ function runHook(args, io) {
|
|
|
84929
85055
|
git: (gitArgs) => runGit(io.cwd, gitArgs)
|
|
84930
85056
|
}, io);
|
|
84931
85057
|
}
|
|
84932
|
-
export { retiredFile as $,
|
|
85058
|
+
export { retiredFile as $, tsconfigTest as $n, parseWorkflow as $r, lineNameHit as $t, scriptsOf as A, moduleUses as An, securityCallers as Ar, pushMainOnly as At, giveWaySlots as B, MAP_RULE as Bn, repositoryIsPublic as Br, PRIVATE_NAMES_FILE_VARIABLE as Bt, setVersions as C, defaultOptions as Ci, homeShapesOf as Cn, addSummaryJob as Cr, gitPinOnNpm as Ct, trustPolicy as D, HOME_SHAPES as Dn, SECURITY_SCAN_COMMIT as Dr, pinnedGitDeps as Dt, TRAIN_SCOPES as E, spansOf as En, summaryJobRule as Er, isPinned as Et, sourceMain as F, repoOf as Fn, LICENSE_TEXTS as Fr, publishTextSafe as Ft, workflowPeaks as G, npmDrift as Gn, skippableJobs as Gr, privateNamesFiles as Gt, repositoryPeak as H, mapMarkdown as Hn, convertGate as Hr, invalidPatternBreaks as Ht, TEMPLATE_CALLED as I, reposOf as In, authorOf as Ir, packNoBuildinfo as It, mayRun as J, readOverlay as Jn, JOB_LIMIT_FLOOR_MINUTES as Jr, PRIVATE_NAME_LIST as Jt, evaluateExpression as K, npmNames as Kn, summaryJob as Kr, privatePatterns as Kt, UNKNOWN_MATRIX_JOBS as L, signaturesOf as Ln, licenseFile as Lr, DEFAULT_ALLOWED as Lt, testsRequired as M, declaredName as Mn, withOneJob as Mr, pagesCalls as Mt, isSourcePath as N, homePackage as Nn, runnerBudget as Nr, pagesSite as Nt, typedScripts as O, homeModule as On, SECURITY_SCAN_INPUTS as Or, siteCheckInCi as Ot, pathsOf as P, messageOf$1 as Pn, scheduleMinute as Pr, exportsRequire as Pt, RETIRED_FILES as Q, hasTests as Qn, MATRIX_EXPAND_MAX as Qr, isCommonUse as Qt, calledJobs as R, HOME_EXPORTS as Rn, licenseFileOf as Rr, HOME_PATTERNS as Rt, namedVersions as S, specifiersOf as Si, homeShape as Sn, SUMMARY_GATES as Sr, pnpmYamlParses as St, IGNORE_AFTER as T, parseRuleConfig as Ti, shapesOfSource as Tn, startsOnPullRequest as Tr, isGitSpecifier as Tt, runnerPeak as U, mapText as Un, gateTrigger as Ur, noLocalPaths as Ut, matrixPeak as V, findHomes as Vn, ACTIONS_COMMIT as Vr, PRIVATE_PATTERNS_VARIABLE as Vt, runsAtOnce as W, mergeHomes as Wn, prPathFilters as Wr, privateNamesFile as Wt, roadmapParses as X, runCalls as Xn, gateAfterCancel as Xr, firstNameMatch as Xt, roadmapOfLine as Y, SERVICE_PACKAGE as Yn, jobLimitFloor as Yr, PrivateNameListError as Yt, retiredFiles as Z, serviceRunMain as Zn, FILTER_KEYS as Zr, isAllowedHit as Zt, runPrePushArgs as _, replaceLine as _i, hasImportMetaMain as _n, releaseModeRule as _r, parseAdvisory as _t, listRules as a, DEPENDENCY_FIELDS as ai, followHashRule as an, filteredInstall as ar, publishedMinorRule as at, GITHUB_YAML as b, runGitShow as bi, apiReportScript as bn, securityGate as br, pipeFails as bt, runCli as c, codePackages as ci, NOT_SOURCE as cn, callPermissions as cr, SHIPPED_FIELDS as ct, HOOK_MARKER as d, keyLine as di, consoleKind as dn, blockHash as dr, unreleasedChange as dt, readAction as ei, lineNameHits as en, SHARED_ACTIONS as er, requiredScripts as et, NO_READ_LINE as f, lineOf as fi, isCliFile as fn, githubFetch as fr, unreleasedChangeRule as ft, prePush as g, readJsonc as gi, REAL_COMPARE as gn, hasReleaseMode as gr, jobFails as gt, parsePrePushArgs as h, parseJsonc as hi, noBuildOutput as hn, callsReleaseBuild as hr, hiddenFailures as ht, formatResult as i, cuePreset as ii, pathNameHit as in, sharedCi as ir, publishedMinor as it, typedFiles as j, modulesOf as jn, securityOneJob as jr, PAGES_WORKFLOWS as jt, configsOfScript as k, moduleMessage as kn, SECURITY_TIMEOUT_MINUTES as kr, pagesAfterRelease as kt, runFix as l, hasFile as li, consoleBreaks as ln, callPermissionsRule as lr, UNSHIPPED_FILES as lt, installHook as m, parseCatFileBatch as mi, noConsole as mn, addReleaseMode as mr, playwrightInstall as mt, annotations as n, yamlFaults as ni, nameMatches as nn, SHARED_WORKFLOWS as nr, lockedVersions as nt, readConfig as o, RULE_WARN_DAYS as oi, hashReadBreaks as on, setupPnpm as or, reachOf as ot, PRE_PUSH_HOOK as p, matchesAny as pi, isConsoleSource as pn, sharedDocsRule as pr, pnpmInstall as pt, groupParts as q, npmPackagesOf as qn, summaryName as qr, privateTextBreaks as qt, createContext as r, STRICT_OPTIONS as ri, parsePrivateNames as rn, callsSharedCi as rr, minorOf as rt, runChecks as s, cleanPath as si, CONSOLE_LAST_DAY as sn, setupCue as sr, NPM_REGISTRY as st, USAGE as t, readWorkflow as ti, mergePrivateNames as tn, SHARED_CI as tr, releaseFiles as tt, summaryMarkdown as u, inFolder as ui, consoleGate as un, HOME_TIMEOUT_MS as ur, npmLookup as ut, RULES as v, repositoryOfRemote as vi, mainCheck as vn, SECURITY_FILE as vr, startsTests as vt, versionTitle as w, parseConfig as wi, shapeMessage as wn, hasSummaryJob as wr, dependencySpecifiers as wt, workflowParses as x, showFiles as xi, containedHome as xn, securityWorkflow as xr, PNPM_YAML as xt, workspaceProtocol as y, runGit as yi, coverageProvider as yn, isSecurityGate as yr, swallowsTests as yt, eventClass as z, HOMES as zn, mitText as zr, PRIVATE_NAMES_FILE_CONFIG as zt };
|
|
84933
85059
|
|
|
84934
|
-
//# sourceMappingURL=run-
|
|
85060
|
+
//# sourceMappingURL=run-DQBe1YEQ.js.map
|