@mark1russell7/site-pages 0.3.0 → 0.3.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/README.md +8 -1
- package/build/chunks/build.js +113 -21
- package/build/chunks/build.js.map +1 -1
- package/build/index.d.ts +34 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +2 -2
- package/package.json +1 -1
package/build/index.d.ts
CHANGED
|
@@ -157,6 +157,39 @@ export declare function githubReleases(options: GitHubOptions & {
|
|
|
157
157
|
endpoint?: string;
|
|
158
158
|
maxPages?: number;
|
|
159
159
|
}): Promise<GitHubReleases>;
|
|
160
|
+
/** The result of `githubReleaseLag`. The field `at` is the time of the read, and `release` is the tag of the release. */
|
|
161
|
+
type GitHubReleaseLag = {
|
|
162
|
+
available: true;
|
|
163
|
+
value: number;
|
|
164
|
+
at: string;
|
|
165
|
+
release: string;
|
|
166
|
+
} | {
|
|
167
|
+
available: false;
|
|
168
|
+
reason: string;
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* This function gives the age in days of the oldest commit after a release, rounded to 2 decimals. It gives 0 when no commit
|
|
172
|
+
* follows the release.
|
|
173
|
+
*
|
|
174
|
+
* @param oldest - The commit date of the oldest commit after the release, or undefined for no commit.
|
|
175
|
+
* @param now - The time of the read, as an ISO date.
|
|
176
|
+
*/
|
|
177
|
+
export declare function releaseLagOf(oldest: string | undefined, now: string): number;
|
|
178
|
+
/**
|
|
179
|
+
* This function reads how many days a branch is ahead of its newest release. That is the age of the oldest commit of the branch
|
|
180
|
+
* after the newest release whose tag starts with `tagPrefix`. It skips drafts and pre-releases, because a pre-release is not the
|
|
181
|
+
* version that most users get. It gives `{ available: false, reason }` without a token, after an error, or with no such release.
|
|
182
|
+
*
|
|
183
|
+
* @remarks The function reads the releases until it finds one, at most `maxPages` pages of 100 (default 10). It then reads one
|
|
184
|
+
* commit on each page of the branch since that release, and asks GitHub for the last page only.
|
|
185
|
+
*/
|
|
186
|
+
export declare function githubReleaseLag(options: GitHubOptions & {
|
|
187
|
+
tagPrefix: string;
|
|
188
|
+
branch?: string;
|
|
189
|
+
endpoint?: string;
|
|
190
|
+
maxPages?: number;
|
|
191
|
+
now?: string;
|
|
192
|
+
}): Promise<GitHubReleaseLag>;
|
|
160
193
|
/** The result of `githubGreenRun`. The field `at` is the end of the newest scheduled run that ended. */
|
|
161
194
|
type GitHubGreenRun = {
|
|
162
195
|
available: true;
|
|
@@ -712,5 +745,5 @@ export declare function parseBuildArgs(argv: readonly string[], io: Pick<CliIo,
|
|
|
712
745
|
* source is not correct, and 2 for an incorrect command line.
|
|
713
746
|
*/
|
|
714
747
|
export declare function runCli(argv: readonly string[], io: CliIo): Promise<number>;
|
|
715
|
-
export { type BoardIssue, type BoardItem, type BoardPullRequest, type BoardSection, type BuildOptions, type BuildResult, type ChangelogEntry, type ChangelogFault, type ChangelogFaultKind, type ChangelogFaultOptions, type ChangelogSection, type ChangelogSource, type CheckState, type CliIo, type CronLine, DATA_STAMP_SCHEMA, type DataLimit, type DataRun, type DataStamps, type DataStampsParse, type FailingCase, type FreshnessCheck, type FreshnessOptions, type GitHubGreenRun, type GitHubOpenWork, type GitHubOptions, type GitHubRelease, type GitHubReleases, type ItemGroup, KPI_FILE, KPI_FORMAT, type KpiEngine, KpiError, type KpiFile, type KpiInput, type KpiMeasure, LAST_LIMIT_START, type Link, type LinkOptions, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, MAX_STUDY_LIMIT_DAYS, type MarkdownTable, type NoAgeLimit, type NpmOptions, type NpmPublishTimes, type NpmVersionTime, type OpenWorkTotals, type PageOptions, type PageParts, type PageStamp, type ParsedVersion, type ReadReleasesOptions, type ReadStatusBoardOptions, type Release, type ReleaseChange, type ReleaseGap, type ReleaseKind, type ReleaseListSources, type ReleasePoint, type ReleaseReading, type ReleaseSources, type ReleaseSummary, type StatusBoardData, type StatusBoardInput, type StatusClass, type TagDate, type TagVersion, type TimelineBand, type TimelineLayout, type TimelineMark, type TimelineOptions, type WorkflowRunEnd, checkFreshness, cronLines, failingCases, kpiFile, kpiProblems, kpiText, latestAt, minorsBehind, parseDataStamps, readKpi, writeKpi };
|
|
748
|
+
export { type BoardIssue, type BoardItem, type BoardPullRequest, type BoardSection, type BuildOptions, type BuildResult, type ChangelogEntry, type ChangelogFault, type ChangelogFaultKind, type ChangelogFaultOptions, type ChangelogSection, type ChangelogSource, type CheckState, type CliIo, type CronLine, DATA_STAMP_SCHEMA, type DataLimit, type DataRun, type DataStamps, type DataStampsParse, type FailingCase, type FreshnessCheck, type FreshnessOptions, type GitHubGreenRun, type GitHubOpenWork, type GitHubOptions, type GitHubRelease, type GitHubReleaseLag, type GitHubReleases, type ItemGroup, KPI_FILE, KPI_FORMAT, type KpiEngine, KpiError, type KpiFile, type KpiInput, type KpiMeasure, LAST_LIMIT_START, type Link, type LinkOptions, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, MAX_STUDY_LIMIT_DAYS, type MarkdownTable, type NoAgeLimit, type NpmOptions, type NpmPublishTimes, type NpmVersionTime, type OpenWorkTotals, type PageOptions, type PageParts, type PageStamp, type ParsedVersion, type ReadReleasesOptions, type ReadStatusBoardOptions, type Release, type ReleaseChange, type ReleaseGap, type ReleaseKind, type ReleaseListSources, type ReleasePoint, type ReleaseReading, type ReleaseSources, type ReleaseSummary, type StatusBoardData, type StatusBoardInput, type StatusClass, type TagDate, type TagVersion, type TimelineBand, type TimelineLayout, type TimelineMark, type TimelineOptions, type WorkflowRunEnd, checkFreshness, cronLines, failingCases, kpiFile, kpiProblems, kpiText, latestAt, minorsBehind, parseDataStamps, readKpi, writeKpi };
|
|
716
749
|
//# sourceMappingURL=index.d.ts.map
|
package/build/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/versions.ts","../src/data/changelog.ts","../src/data/github.ts","../src/data/npm.ts","../src/data/git.ts","../src/data/glob.ts","../src/data/releases.ts","../src/data/status.ts","../src/render/html.ts","../src/render/dates.ts","../src/render/theme.ts","../src/render/timeline.ts","../src/render/releases.ts","../src/render/status.ts","../src/check/probe.ts","../src/render/data-stamp.ts","../src/build.ts"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;;;wBAMc,aAAa,kBAAkB;;;;;;wBAgB/B,gBAAgB,WAAW;;;;;wBA2B3B,OAAO,iBAAiB,kBAAkB;;UASzC;EACf;EACA;;;;;;wBAOc,aAAa,cAAc;;;;;;;UCvE1B;;EAEf;;EAEA;;;UAIe;EACf;;EAEA;EACA,SAAS;;;;;;;;;wBAqBK,cAAc;;;;;;;wBA0Cd,eAAe,mBAAmB;;;;;;;;KA2CtC;;UAGK;EACf;EACA,MAAM;;EAEN;;;UAIe;;EAEf;;;;;;EAMA;;;;;;;;wBAec,kBAAkB;;;;;;;;;;wBAmFlB,gBAAgB,kBAAkB,UAAS,wBAA6B;;;;;wBAkCxE,mBAAmB,eAAe;;;;;wBAqClC,cAAc;;wBASd,kBAAkB;;qBCzTrB;;qBAEA;;UAKI;EACf;EACA;;EAEA;;EAEA,eAAe;;EAEf;;;wBA0Bc,aAAa;EAAU;uBAA6C;;;;;;wBA4C9D,eAAe,SAAS;EAAkB;EAAmB;IAAmB,QAAQ;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../src/data/versions.ts","../src/data/changelog.ts","../src/data/github.ts","../src/data/npm.ts","../src/data/git.ts","../src/data/glob.ts","../src/data/releases.ts","../src/data/status.ts","../src/render/html.ts","../src/render/dates.ts","../src/render/theme.ts","../src/render/timeline.ts","../src/render/releases.ts","../src/render/status.ts","../src/check/probe.ts","../src/render/data-stamp.ts","../src/build.ts"],"mappings":";;UAOiB;EACf;EACA;EACA;EACA;;;wBAMc,aAAa,kBAAkB;;;;;;wBAgB/B,gBAAgB,WAAW;;;;;wBA2B3B,OAA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,SAAS,eAAe,QAAQ;;qBA6C/C;;UA+BI;EACf;EACA,KAAK;EACL,SAAS;EACT,SAAS;EACT,eAAe;EACf;;;;;;;wBAQc,eAAe,yBAAyB,IAAI,KAAK,wBAAwB;;;;;wBAiEnE,OAAO,yBAAyB,IAAI,QAAQ"}
|
package/build/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { A as headCommit, B as versionOfTag, C as kpiFile, D as writeKpi, E as readKpi, F as NPM_REGISTRY, I as npmPublishTimes, L as compareVersions, M as isShallow, N as originRepository, P as versionCommitTime, R as kindOf, S as KpiError, T as kpiText, a as MAX_MINORS_BEHIND, b as KPI_FILE, c as cronLines, d as minorsBehind, f as parseDataStamps, h as inlineMarkdown, i as MAX_LIMIT_DAYS_WITHOUT_RULING, j as headingDate, k as gitTagDates, l as failingCases, m as escapeHtml, n as LAST_LIMIT_START, o as MAX_STUDY_LIMIT_DAYS, r as MAX_DATA_AGE_DAYS, s as checkFreshness, t as DATA_STAMP_SCHEMA, u as latestAt, w as kpiProblems, x as KPI_FORMAT, y as safeUrl, z as parseVersion } from "./chunks/freshness.js";
|
|
2
|
-
import { $ as
|
|
2
|
+
import { $ as githubReleases, A as STATUS_CLASSES, B as DEFAULT_CHANGELOGS, C as pageShell, D as utcDay, E as shortDate, F as plainText, G as releaseReading, H as mergeReleases, I as readStatusBoard, J as GITHUB_GRAPHQL, K as globFiles, L as roadmapItems, M as linksOf, N as markdownTables, O as OPEN_CLASSES, P as parseRoadmap, Q as githubReleaseLag, R as splitRow, S as BASE_CSS, T as longDate, U as readChangelogs, V as ReleaseDataError, W as readReleases, X as githubGreenRun, Y as checkStateOf, Z as githubOpenWork, _ as renderReleasesPage, a as runCli, at as headingAnchor, b as releaseSummary, c as STATUS_SCRIPT, ct as sectionMarksBreak, d as renderStatusPage, et as greenRunOf, f as sectionsOf, g as releasesLead, h as RELEASES_SCRIPT, i as parseBuildArgs, it as firstSentence, j as buildStatusBoard, k as RoadmapParseError, l as classCounts, m as statusLead, n as UsageError, nt as changelogFaults, o as TYPESCRIPT_PROBE, ot as parseChangelog, p as slugOf, q as GITHUB_API, r as build, rt as changelogVersions, s as probeScript, st as releaseBodyEntries, t as HELP, tt as releaseLagOf, u as openGroups, v as laneCenter, w as dayRange, x as timelineLayout, y as oldestFirst, z as statusClassOf } from "./chunks/build.js";
|
|
3
3
|
import { t as renderDataStamp } from "./chunks/data-stamp.js";
|
|
4
|
-
export { BASE_CSS, DATA_STAMP_SCHEMA, DEFAULT_CHANGELOGS, GITHUB_API, GITHUB_GRAPHQL, HELP, KPI_FILE, KPI_FORMAT, KpiError, LAST_LIMIT_START, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, MAX_STUDY_LIMIT_DAYS, NPM_REGISTRY, OPEN_CLASSES, RELEASES_SCRIPT, ReleaseDataError, RoadmapParseError, STATUS_CLASSES, STATUS_SCRIPT, TYPESCRIPT_PROBE, UsageError, build, buildStatusBoard, changelogFaults, changelogVersions, checkFreshness, checkStateOf, classCounts, compareVersions, cronLines, dayRange, escapeHtml, failingCases, firstSentence, gitTagDates, githubGreenRun, githubOpenWork, githubReleases, globFiles, greenRunOf, headCommit, headingAnchor, headingDate, inlineMarkdown, isShallow, kindOf, kpiFile, kpiProblems, kpiText, laneCenter, latestAt, linksOf, longDate, markdownTables, mergeReleases, minorsBehind, npmPublishTimes, oldestFirst, openGroups, originRepository, pageShell, parseBuildArgs, parseChangelog, parseDataStamps, parseRoadmap, parseVersion, plainText, probeScript, readChangelogs, readKpi, readReleases, readStatusBoard, releaseBodyEntries, releaseReading, releaseSummary, releasesLead, renderDataStamp, renderReleasesPage, renderStatusPage, roadmapItems, runCli, safeUrl, sectionMarksBreak, sectionsOf, shortDate, slugOf, splitRow, statusClassOf, statusLead, timelineLayout, utcDay, versionCommitTime, versionOfTag, writeKpi };
|
|
4
|
+
export { BASE_CSS, DATA_STAMP_SCHEMA, DEFAULT_CHANGELOGS, GITHUB_API, GITHUB_GRAPHQL, HELP, KPI_FILE, KPI_FORMAT, KpiError, LAST_LIMIT_START, MAX_DATA_AGE_DAYS, MAX_LIMIT_DAYS_WITHOUT_RULING, MAX_MINORS_BEHIND, MAX_STUDY_LIMIT_DAYS, NPM_REGISTRY, OPEN_CLASSES, RELEASES_SCRIPT, ReleaseDataError, RoadmapParseError, STATUS_CLASSES, STATUS_SCRIPT, TYPESCRIPT_PROBE, UsageError, build, buildStatusBoard, changelogFaults, changelogVersions, checkFreshness, checkStateOf, classCounts, compareVersions, cronLines, dayRange, escapeHtml, failingCases, firstSentence, gitTagDates, githubGreenRun, githubOpenWork, githubReleaseLag, githubReleases, globFiles, greenRunOf, headCommit, headingAnchor, headingDate, inlineMarkdown, isShallow, kindOf, kpiFile, kpiProblems, kpiText, laneCenter, latestAt, linksOf, longDate, markdownTables, mergeReleases, minorsBehind, npmPublishTimes, oldestFirst, openGroups, originRepository, pageShell, parseBuildArgs, parseChangelog, parseDataStamps, parseRoadmap, parseVersion, plainText, probeScript, readChangelogs, readKpi, readReleases, readStatusBoard, releaseBodyEntries, releaseLagOf, releaseReading, releaseSummary, releasesLead, renderDataStamp, renderReleasesPage, renderStatusPage, roadmapItems, runCli, safeUrl, sectionMarksBreak, sectionsOf, shortDate, slugOf, splitRow, statusClassOf, statusLead, timelineLayout, utcDay, versionCommitTime, versionOfTag, writeKpi };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "https://json.schemastore.org/package",
|
|
3
3
|
"name": "@mark1russell7/site-pages",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "A release timeline page and a live status page for the site of a GitHub repository: JSON data and standalone HTML, made at deploy time.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"github-pages",
|