@featurevisor/core 4.7.0 → 4.8.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/lib/cli/options.js +17 -0
- package/lib/cli/options.js.map +1 -1
- package/lib/config/index.d.ts +1 -0
- package/lib/config/metadataSettings.d.ts +30 -0
- package/lib/config/metadataSettings.js +264 -0
- package/lib/config/metadataSettings.js.map +1 -0
- package/lib/config/projectConfig.d.ts +6 -1
- package/lib/config/projectConfig.js +4 -0
- package/lib/config/projectConfig.js.map +1 -1
- package/lib/diff/details.js +39 -3
- package/lib/diff/details.js.map +1 -1
- package/lib/formatter/layout.d.ts +2 -1
- package/lib/formatter/layout.js +12 -5
- package/lib/formatter/layout.js.map +1 -1
- package/lib/formatter/style.d.ts +7 -0
- package/lib/formatter/style.js +13 -3
- package/lib/formatter/style.js.map +1 -1
- package/lib/linter/attributeSchema.d.ts +7 -5
- package/lib/linter/attributeSchema.js +5 -2
- package/lib/linter/attributeSchema.js.map +1 -1
- package/lib/linter/deadlineWarnings.d.ts +12 -0
- package/lib/linter/deadlineWarnings.js +34 -0
- package/lib/linter/deadlineWarnings.js.map +1 -0
- package/lib/linter/featureSchema.d.ts +2 -0
- package/lib/linter/featureSchema.js +3 -0
- package/lib/linter/featureSchema.js.map +1 -1
- package/lib/linter/lintProject.d.ts +4 -0
- package/lib/linter/lintProject.js +94 -29
- package/lib/linter/lintProject.js.map +1 -1
- package/lib/linter/metadataSchema.d.ts +20 -0
- package/lib/linter/metadataSchema.js +405 -0
- package/lib/linter/metadataSchema.js.map +1 -0
- package/lib/linter/schema.d.ts +4 -1
- package/lib/linter/schema.js +12 -4
- package/lib/linter/schema.js.map +1 -1
- package/lib/linter/segmentSchema.d.ts +2 -0
- package/lib/linter/segmentSchema.js +4 -1
- package/lib/linter/segmentSchema.js.map +1 -1
- package/lib/linter/targetSchema.d.ts +1 -0
- package/lib/linter/targetSchema.js +3 -0
- package/lib/linter/targetSchema.js.map +1 -1
- package/lib/linter/variableSchema.d.ts +2 -0
- package/lib/linter/variableSchema.js +7 -0
- package/lib/linter/variableSchema.js.map +1 -1
- package/lib/linter/warningCodes.d.ts +8 -0
- package/lib/linter/warningCodes.js +29 -0
- package/lib/linter/warningCodes.js.map +1 -0
- package/lib/list/index.js +83 -1
- package/lib/list/index.js.map +1 -1
- package/lib/metadata/index.d.ts +89 -0
- package/lib/metadata/index.js +237 -0
- package/lib/metadata/index.js.map +1 -0
- package/lib/tester/provenance.js +13 -1
- package/lib/tester/provenance.js.map +1 -1
- package/package.json +6 -6
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import type { Deadline, Metadata, MetadataKind } from "@featurevisor/types";
|
|
2
|
+
/**
|
|
3
|
+
* Metadata is for people and never reaches a datafile. Featurevisor understands two of its keys,
|
|
4
|
+
* `owner` and `deadlines`, and this module reads them for lint and `list`. Catalog cannot import
|
|
5
|
+
* Core, so catalog/src/metadata.ts keeps its own copy of the reading, and a test in this folder
|
|
6
|
+
* checks that both agree.
|
|
7
|
+
*/
|
|
8
|
+
/** The kinds of definition that can carry metadata, in the order the docs list them */
|
|
9
|
+
export declare const METADATA_KINDS: readonly MetadataKind[];
|
|
10
|
+
export type DeadlineStatus = "done" | "overdue" | "today" | "upcoming" | "later";
|
|
11
|
+
/** Words a deadline filter reads as statuses, so none of them can name a deadline type */
|
|
12
|
+
export declare const DEADLINE_STATUS_FILTERS: readonly ["overdue", "today", "upcoming", "later", "open", "done"];
|
|
13
|
+
/** How many days ahead a deadline is upcoming rather than later */
|
|
14
|
+
export declare const UPCOMING_DAYS = 30;
|
|
15
|
+
/** Featurevisor's own fields of every deadline. A type's own fields come after them. */
|
|
16
|
+
export declare const DEADLINE_FIELDS: string[];
|
|
17
|
+
export declare const TIMESTAMP_EXAMPLE = "2027-01-15T09:00:00Z";
|
|
18
|
+
export declare function isPlainObject(value: unknown): value is Record<string, unknown>;
|
|
19
|
+
/** Metadata as JSON writes it, so a TOML date or a JavaScript Date reads as its string */
|
|
20
|
+
export declare function toMetadataJson(value: unknown): unknown;
|
|
21
|
+
/** A deadline type key, such as `review` or `notifyCustomers`, that is not a status word */
|
|
22
|
+
export declare function isDeadlineType(key: string): boolean;
|
|
23
|
+
/** Why a key cannot name a deadline type, as a sentence, or undefined when it can */
|
|
24
|
+
export declare function getDeadlineTypeError(key: string): string | undefined;
|
|
25
|
+
/** Whether a filter value is a status word, in any case, as Catalog's `deadline:` reads it */
|
|
26
|
+
export declare function isDeadlineStatusFilter(value: string): boolean;
|
|
27
|
+
/** A calendar date written as YYYY-MM-DD that exists. Deadlines need a time too, and lint says so */
|
|
28
|
+
export declare function isCalendarDate(value: unknown): value is string;
|
|
29
|
+
/**
|
|
30
|
+
* Milliseconds for an ISO 8601 timestamp with a timezone, such as 2027-03-01T09:00:00Z. Conditions
|
|
31
|
+
* read `before` and `after` with the same function, so both accept exactly the same timestamps.
|
|
32
|
+
*/
|
|
33
|
+
export declare function getDeadlineTimestamp(value: unknown): number | null;
|
|
34
|
+
/** A timestamp with a timezone, as `by`, `done` and `--now` accept */
|
|
35
|
+
export declare function isDeadlineTimestamp(value: unknown): value is string;
|
|
36
|
+
/**
|
|
37
|
+
* What a value that is not a timestamp needs, worded as conditions word it. A date alone is the
|
|
38
|
+
* likely slip, so it gets the timestamp it could become.
|
|
39
|
+
*/
|
|
40
|
+
export declare function getTimestampMessage(value: unknown, expected?: string): string;
|
|
41
|
+
/** Refuses a `--now` that is not a timestamp, for `list` and `lint` alike */
|
|
42
|
+
export declare function assertNowOption(value: unknown): void;
|
|
43
|
+
/**
|
|
44
|
+
* The moment statuses are worked out at, and its local date. `--now` fixes the moment, so a
|
|
45
|
+
* report reads the same on every run.
|
|
46
|
+
*/
|
|
47
|
+
export interface DeadlineClock {
|
|
48
|
+
now: number;
|
|
49
|
+
today: string;
|
|
50
|
+
}
|
|
51
|
+
/** The clock at a timestamp, such as `--now` gives, or at the current moment */
|
|
52
|
+
export declare function getDeadlineClock(at?: string, now?: number): DeadlineClock;
|
|
53
|
+
export declare function isDeadlineDone(deadline: {
|
|
54
|
+
done?: unknown;
|
|
55
|
+
}): boolean;
|
|
56
|
+
/** Days from today to the day a deadline is due: 0 today, negative once it has passed */
|
|
57
|
+
export declare function getDaysUntilDeadline(by: unknown, clock: DeadlineClock): number | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* A deadline is overdue from the moment in `by`. Before that it is due today on the same local
|
|
60
|
+
* day, upcoming within 30 days, and later after that.
|
|
61
|
+
*/
|
|
62
|
+
export declare function getDeadlineStatus(deadline: {
|
|
63
|
+
by?: unknown;
|
|
64
|
+
done?: unknown;
|
|
65
|
+
}, clock: DeadlineClock): DeadlineStatus | undefined;
|
|
66
|
+
/** Whether a status matches a filter word. `upcoming` includes today, `open` is anything not done. */
|
|
67
|
+
export declare function matchesDeadlineStatus(status: DeadlineStatus | undefined, filter: string): boolean;
|
|
68
|
+
/** "notifyCustomers" reads "Notify customers", and "remove_code" "Remove code" */
|
|
69
|
+
export declare function getDeadlineLabel(type: string): string;
|
|
70
|
+
export declare function getOwners(metadata: unknown): string[];
|
|
71
|
+
export interface DeadlineEntry {
|
|
72
|
+
type: string;
|
|
73
|
+
deadline: Deadline;
|
|
74
|
+
}
|
|
75
|
+
/** Each deadline with a `by`, in the order written */
|
|
76
|
+
export declare function getDeadlines(metadata: unknown): DeadlineEntry[];
|
|
77
|
+
/** Whether one deadline of a type, in a status, matches every value of a filter, in any case */
|
|
78
|
+
export declare function matchesDeadline(type: string, status: DeadlineStatus | undefined, values: string[]): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether one deadline matches every value, each a status word or a type. Several values
|
|
81
|
+
* describe one deadline, so `remove` and `upcoming` find removals that are coming up.
|
|
82
|
+
*/
|
|
83
|
+
export declare function matchesDeadlineFilters(metadata: Metadata | unknown, values: string[], clock: DeadlineClock): boolean;
|
|
84
|
+
/** Each deadline's type, date and status, as `list --deadline --json` adds them */
|
|
85
|
+
export declare function getDeadlineStatuses(metadata: unknown, clock: DeadlineClock): {
|
|
86
|
+
type: string;
|
|
87
|
+
by: string;
|
|
88
|
+
status: DeadlineStatus;
|
|
89
|
+
}[];
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.TIMESTAMP_EXAMPLE = exports.DEADLINE_FIELDS = exports.UPCOMING_DAYS = exports.DEADLINE_STATUS_FILTERS = exports.METADATA_KINDS = void 0;
|
|
4
|
+
exports.isPlainObject = isPlainObject;
|
|
5
|
+
exports.toMetadataJson = toMetadataJson;
|
|
6
|
+
exports.isDeadlineType = isDeadlineType;
|
|
7
|
+
exports.getDeadlineTypeError = getDeadlineTypeError;
|
|
8
|
+
exports.isDeadlineStatusFilter = isDeadlineStatusFilter;
|
|
9
|
+
exports.isCalendarDate = isCalendarDate;
|
|
10
|
+
exports.getDeadlineTimestamp = getDeadlineTimestamp;
|
|
11
|
+
exports.isDeadlineTimestamp = isDeadlineTimestamp;
|
|
12
|
+
exports.getTimestampMessage = getTimestampMessage;
|
|
13
|
+
exports.assertNowOption = assertNowOption;
|
|
14
|
+
exports.getDeadlineClock = getDeadlineClock;
|
|
15
|
+
exports.isDeadlineDone = isDeadlineDone;
|
|
16
|
+
exports.getDaysUntilDeadline = getDaysUntilDeadline;
|
|
17
|
+
exports.getDeadlineStatus = getDeadlineStatus;
|
|
18
|
+
exports.matchesDeadlineStatus = matchesDeadlineStatus;
|
|
19
|
+
exports.getDeadlineLabel = getDeadlineLabel;
|
|
20
|
+
exports.getOwners = getOwners;
|
|
21
|
+
exports.getDeadlines = getDeadlines;
|
|
22
|
+
exports.matchesDeadline = matchesDeadline;
|
|
23
|
+
exports.matchesDeadlineFilters = matchesDeadlineFilters;
|
|
24
|
+
exports.getDeadlineStatuses = getDeadlineStatuses;
|
|
25
|
+
const sdk_1 = require("@featurevisor/sdk");
|
|
26
|
+
const error_1 = require("../error");
|
|
27
|
+
/**
|
|
28
|
+
* Metadata is for people and never reaches a datafile. Featurevisor understands two of its keys,
|
|
29
|
+
* `owner` and `deadlines`, and this module reads them for lint and `list`. Catalog cannot import
|
|
30
|
+
* Core, so catalog/src/metadata.ts keeps its own copy of the reading, and a test in this folder
|
|
31
|
+
* checks that both agree.
|
|
32
|
+
*/
|
|
33
|
+
/** The kinds of definition that can carry metadata, in the order the docs list them */
|
|
34
|
+
exports.METADATA_KINDS = [
|
|
35
|
+
"features",
|
|
36
|
+
"variables",
|
|
37
|
+
"segments",
|
|
38
|
+
"attributes",
|
|
39
|
+
"targets",
|
|
40
|
+
"schemas",
|
|
41
|
+
];
|
|
42
|
+
/** Words a deadline filter reads as statuses, so none of them can name a deadline type */
|
|
43
|
+
exports.DEADLINE_STATUS_FILTERS = [
|
|
44
|
+
"overdue",
|
|
45
|
+
"today",
|
|
46
|
+
"upcoming",
|
|
47
|
+
"later",
|
|
48
|
+
"open",
|
|
49
|
+
"done",
|
|
50
|
+
];
|
|
51
|
+
/** How many days ahead a deadline is upcoming rather than later */
|
|
52
|
+
exports.UPCOMING_DAYS = 30;
|
|
53
|
+
/** Featurevisor's own fields of every deadline. A type's own fields come after them. */
|
|
54
|
+
exports.DEADLINE_FIELDS = ["by", "done", "description"];
|
|
55
|
+
const DEADLINE_TYPE_PATTERN = /^[A-Za-z][A-Za-z0-9_-]*$/;
|
|
56
|
+
const DAY = 24 * 60 * 60 * 1000;
|
|
57
|
+
exports.TIMESTAMP_EXAMPLE = "2027-01-15T09:00:00Z";
|
|
58
|
+
function isPlainObject(value) {
|
|
59
|
+
return (!!value &&
|
|
60
|
+
typeof value === "object" &&
|
|
61
|
+
!Array.isArray(value) &&
|
|
62
|
+
[Object.prototype, null].includes(Object.getPrototypeOf(value)));
|
|
63
|
+
}
|
|
64
|
+
/** Metadata as JSON writes it, so a TOML date or a JavaScript Date reads as its string */
|
|
65
|
+
function toMetadataJson(value) {
|
|
66
|
+
if (value === undefined)
|
|
67
|
+
return undefined;
|
|
68
|
+
try {
|
|
69
|
+
const json = JSON.stringify(value);
|
|
70
|
+
return json === undefined ? undefined : JSON.parse(json);
|
|
71
|
+
}
|
|
72
|
+
catch {
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
/** A deadline type key, such as `review` or `notifyCustomers`, that is not a status word */
|
|
77
|
+
function isDeadlineType(key) {
|
|
78
|
+
return (DEADLINE_TYPE_PATTERN.test(key) &&
|
|
79
|
+
!exports.DEADLINE_STATUS_FILTERS.includes(key.toLowerCase()));
|
|
80
|
+
}
|
|
81
|
+
/** Why a key cannot name a deadline type, as a sentence, or undefined when it can */
|
|
82
|
+
function getDeadlineTypeError(key) {
|
|
83
|
+
if (isDeadlineType(key))
|
|
84
|
+
return undefined;
|
|
85
|
+
return DEADLINE_TYPE_PATTERN.test(key)
|
|
86
|
+
? `${JSON.stringify(key)} is a deadline status, so it cannot name a deadline type.`
|
|
87
|
+
: "A deadline type starts with a letter, and has only letters, digits, _ and -.";
|
|
88
|
+
}
|
|
89
|
+
/** Whether a filter value is a status word, in any case, as Catalog's `deadline:` reads it */
|
|
90
|
+
function isDeadlineStatusFilter(value) {
|
|
91
|
+
return exports.DEADLINE_STATUS_FILTERS.includes(value.toLowerCase());
|
|
92
|
+
}
|
|
93
|
+
/** A calendar date written as YYYY-MM-DD that exists. Deadlines need a time too, and lint says so */
|
|
94
|
+
function isCalendarDate(value) {
|
|
95
|
+
return (typeof value === "string" &&
|
|
96
|
+
/^\d{4}-\d{2}-\d{2}$/.test(value) &&
|
|
97
|
+
(0, sdk_1.getPortableTimestamp)(`${value}T00:00:00Z`) !== null);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Milliseconds for an ISO 8601 timestamp with a timezone, such as 2027-03-01T09:00:00Z. Conditions
|
|
101
|
+
* read `before` and `after` with the same function, so both accept exactly the same timestamps.
|
|
102
|
+
*/
|
|
103
|
+
function getDeadlineTimestamp(value) {
|
|
104
|
+
return typeof value === "string" ? (0, sdk_1.getPortableTimestamp)(value) : null;
|
|
105
|
+
}
|
|
106
|
+
/** A timestamp with a timezone, as `by`, `done` and `--now` accept */
|
|
107
|
+
function isDeadlineTimestamp(value) {
|
|
108
|
+
return getDeadlineTimestamp(value) !== null;
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* What a value that is not a timestamp needs, worded as conditions word it. A date alone is the
|
|
112
|
+
* likely slip, so it gets the timestamp it could become.
|
|
113
|
+
*/
|
|
114
|
+
function getTimestampMessage(value, expected = "a timestamp with a timezone") {
|
|
115
|
+
return isCalendarDate(value)
|
|
116
|
+
? `Expected ${expected}, such as ${value}T09:00:00Z. A date alone has no time or timezone.`
|
|
117
|
+
: `Expected ${expected}, such as ${exports.TIMESTAMP_EXAMPLE}. Use YYYY-MM-DDTHH:mm:ss with Z or ±HH:mm.`;
|
|
118
|
+
}
|
|
119
|
+
/** Refuses a `--now` that is not a timestamp, for `list` and `lint` alike */
|
|
120
|
+
function assertNowOption(value) {
|
|
121
|
+
if (value === undefined || isDeadlineTimestamp(value))
|
|
122
|
+
return;
|
|
123
|
+
throw new error_1.FeaturevisorCLIError(`Invalid --now: ${JSON.stringify(value)}. ${getTimestampMessage(value)}`, { code: "invalid_cli_arguments", details: { option: "now" } });
|
|
124
|
+
}
|
|
125
|
+
function pad(value, length = 2) {
|
|
126
|
+
return String(value).padStart(length, "0");
|
|
127
|
+
}
|
|
128
|
+
/** The local calendar date of a moment, as YYYY-MM-DD */
|
|
129
|
+
function getLocalDate(time) {
|
|
130
|
+
const date = new Date(time);
|
|
131
|
+
return `${pad(date.getFullYear(), 4)}-${pad(date.getMonth() + 1)}-${pad(date.getDate())}`;
|
|
132
|
+
}
|
|
133
|
+
function dayNumber(date) {
|
|
134
|
+
const [year, month, day] = date.split("-").map(Number);
|
|
135
|
+
// setUTCFullYear keeps years before 100 as written, which Date.UTC would move to the 1900s
|
|
136
|
+
const utc = new Date(0);
|
|
137
|
+
utc.setUTCFullYear(year, month - 1, day);
|
|
138
|
+
return Math.round(utc.getTime() / DAY);
|
|
139
|
+
}
|
|
140
|
+
/** Calendar days from the clock's date to a moment's local date */
|
|
141
|
+
function daysUntil(timestamp, clock) {
|
|
142
|
+
return dayNumber(getLocalDate(timestamp)) - dayNumber(clock.today);
|
|
143
|
+
}
|
|
144
|
+
/** The clock at a timestamp, such as `--now` gives, or at the current moment */
|
|
145
|
+
function getDeadlineClock(at, now = Date.now()) {
|
|
146
|
+
const moment = at === undefined ? now : (getDeadlineTimestamp(at) ?? now);
|
|
147
|
+
return { now: moment, today: getLocalDate(moment) };
|
|
148
|
+
}
|
|
149
|
+
function isDeadlineDone(deadline) {
|
|
150
|
+
return deadline.done === true || (typeof deadline.done === "string" && deadline.done !== "");
|
|
151
|
+
}
|
|
152
|
+
/** Days from today to the day a deadline is due: 0 today, negative once it has passed */
|
|
153
|
+
function getDaysUntilDeadline(by, clock) {
|
|
154
|
+
const timestamp = getDeadlineTimestamp(by);
|
|
155
|
+
return timestamp === null ? undefined : daysUntil(timestamp, clock);
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* A deadline is overdue from the moment in `by`. Before that it is due today on the same local
|
|
159
|
+
* day, upcoming within 30 days, and later after that.
|
|
160
|
+
*/
|
|
161
|
+
function getDeadlineStatus(deadline, clock) {
|
|
162
|
+
if (isDeadlineDone(deadline))
|
|
163
|
+
return "done";
|
|
164
|
+
const timestamp = getDeadlineTimestamp(deadline.by);
|
|
165
|
+
if (timestamp === null)
|
|
166
|
+
return undefined;
|
|
167
|
+
if (clock.now >= timestamp)
|
|
168
|
+
return "overdue";
|
|
169
|
+
const days = daysUntil(timestamp, clock);
|
|
170
|
+
if (days <= 0)
|
|
171
|
+
return "today";
|
|
172
|
+
return days <= exports.UPCOMING_DAYS ? "upcoming" : "later";
|
|
173
|
+
}
|
|
174
|
+
/** Whether a status matches a filter word. `upcoming` includes today, `open` is anything not done. */
|
|
175
|
+
function matchesDeadlineStatus(status, filter) {
|
|
176
|
+
if (!status)
|
|
177
|
+
return false;
|
|
178
|
+
const word = filter.toLowerCase();
|
|
179
|
+
if (word === "open")
|
|
180
|
+
return status !== "done";
|
|
181
|
+
if (word === "upcoming")
|
|
182
|
+
return status === "today" || status === "upcoming";
|
|
183
|
+
return status === word;
|
|
184
|
+
}
|
|
185
|
+
/** "notifyCustomers" reads "Notify customers", and "remove_code" "Remove code" */
|
|
186
|
+
function getDeadlineLabel(type) {
|
|
187
|
+
const words = type
|
|
188
|
+
.replace(/([a-z0-9])([A-Z])/g, "$1 $2")
|
|
189
|
+
.replace(/([A-Z]+)([A-Z][a-z])/g, "$1 $2")
|
|
190
|
+
.split(/[\s_-]+/)
|
|
191
|
+
.filter(Boolean)
|
|
192
|
+
.map((word) => (word.length > 1 && word === word.toUpperCase() ? word : word.toLowerCase()))
|
|
193
|
+
.join(" ");
|
|
194
|
+
return words ? words.charAt(0).toUpperCase() + words.slice(1) : type;
|
|
195
|
+
}
|
|
196
|
+
function getOwners(metadata) {
|
|
197
|
+
if (!isPlainObject(metadata))
|
|
198
|
+
return [];
|
|
199
|
+
const owner = metadata.owner;
|
|
200
|
+
if (typeof owner === "string")
|
|
201
|
+
return owner ? [owner] : [];
|
|
202
|
+
return Array.isArray(owner)
|
|
203
|
+
? owner.filter((name) => typeof name === "string" && name !== "")
|
|
204
|
+
: [];
|
|
205
|
+
}
|
|
206
|
+
/** Each deadline with a `by`, in the order written */
|
|
207
|
+
function getDeadlines(metadata) {
|
|
208
|
+
if (!isPlainObject(metadata) || !isPlainObject(metadata.deadlines))
|
|
209
|
+
return [];
|
|
210
|
+
return Object.entries(metadata.deadlines)
|
|
211
|
+
.filter(([, deadline]) => isPlainObject(deadline) && typeof deadline.by === "string")
|
|
212
|
+
.map(([type, deadline]) => ({ type, deadline: deadline }));
|
|
213
|
+
}
|
|
214
|
+
/** Whether one deadline of a type, in a status, matches every value of a filter, in any case */
|
|
215
|
+
function matchesDeadline(type, status, values) {
|
|
216
|
+
return values.every((value) => isDeadlineStatusFilter(value)
|
|
217
|
+
? matchesDeadlineStatus(status, value)
|
|
218
|
+
: type.toLowerCase() === value.toLowerCase());
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* Whether one deadline matches every value, each a status word or a type. Several values
|
|
222
|
+
* describe one deadline, so `remove` and `upcoming` find removals that are coming up.
|
|
223
|
+
*/
|
|
224
|
+
function matchesDeadlineFilters(metadata, values, clock) {
|
|
225
|
+
if (values.length === 0)
|
|
226
|
+
return true;
|
|
227
|
+
return getDeadlineStatuses(metadata, clock).some(({ type, status }) => matchesDeadline(type, status, values));
|
|
228
|
+
}
|
|
229
|
+
/** Each deadline's type, date and status, as `list --deadline --json` adds them */
|
|
230
|
+
function getDeadlineStatuses(metadata, clock) {
|
|
231
|
+
return getDeadlines(metadata).map(({ type, deadline }) => ({
|
|
232
|
+
type,
|
|
233
|
+
by: deadline.by,
|
|
234
|
+
status: getDeadlineStatus(deadline, clock),
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
237
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/metadata/index.ts"],"names":[],"mappings":";;;AA4CA,sCAOC;AAGD,wCAQC;AAGD,wCAKC;AAGD,oDAKC;AAGD,wDAEC;AAGD,wCAMC;AAMD,oDAEC;AAGD,kDAEC;AAMD,kDAIC;AAGD,0CAMC;AAmCD,4CAGC;AAED,wCAEC;AAGD,oDAGC;AAMD,8CAWC;AAGD,sDAMC;AAGD,4CASC;AAED,8BAOC;AAQD,oCAKC;AAGD,0CAUC;AAMD,wDASC;AAGD,kDAMC;AA7QD,2CAAyD;AAGzD,oCAAgD;AAEhD;;;;;GAKG;AAEH,uFAAuF;AAC1E,QAAA,cAAc,GAA4B;IACrD,UAAU;IACV,WAAW;IACX,UAAU;IACV,YAAY;IACZ,SAAS;IACT,SAAS;CACV,CAAC;AAIF,0FAA0F;AAC7E,QAAA,uBAAuB,GAAG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,KAAK,CAAC,WAAW,EAAE,CAC/C,CAAC;AACJ,CAAC;AAED;;;GAGG;AACH,SAAgB,sBAAsB,CACpC,QAA4B,EAC5B,MAAgB,EAChB,KAAoB;IAEpB,IAAI,MAAM,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,IAAI,CAAC;IACrC,OAAO,mBAAmB,CAAC,QAAQ,EAAE,KAAK,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,CACpE,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,CAAC,CACtC,CAAC;AACJ,CAAC;AAED,mFAAmF;AACnF,SAAgB,mBAAmB,CAAC,QAAiB,EAAE,KAAoB;IACzE,OAAO,YAAY,CAAC,QAAQ,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;QACzD,IAAI;QACJ,EAAE,EAAE,QAAQ,CAAC,EAAE;QACf,MAAM,EAAE,iBAAiB,CAAC,QAAQ,EAAE,KAAK,CAAC;KAC3C,CAAC,CAAC,CAAC;AACN,CAAC"}
|
package/lib/tester/provenance.js
CHANGED
|
@@ -55,6 +55,15 @@ function createTestInputSnapshot(datasource) {
|
|
|
55
55
|
},
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
+
/** A definition as tests see it. Metadata can never change a result, so it never stales a report. */
|
|
59
|
+
function withoutMetadata(definition) {
|
|
60
|
+
if (!definition || typeof definition !== "object" || !("metadata" in definition)) {
|
|
61
|
+
return definition;
|
|
62
|
+
}
|
|
63
|
+
const rest = { ...definition };
|
|
64
|
+
delete rest.metadata;
|
|
65
|
+
return rest;
|
|
66
|
+
}
|
|
58
67
|
/**
|
|
59
68
|
* Hash effective authored inputs once per Set, not once per target or case.
|
|
60
69
|
* Paths, parsers and adapters are transport; their parsed results are hashed.
|
|
@@ -73,6 +82,9 @@ async function getTestInputFingerprint(projectConfig, datasource) {
|
|
|
73
82
|
"prettyDatafile",
|
|
74
83
|
"datafileNamePattern",
|
|
75
84
|
"revisionFileName",
|
|
85
|
+
// Metadata is for people, and can never change what a test evaluates
|
|
86
|
+
"metadataSchema",
|
|
87
|
+
"requireMetadataIn",
|
|
76
88
|
]);
|
|
77
89
|
add(Object.fromEntries(Object.entries(projectConfig)
|
|
78
90
|
.filter(([key]) => !key.endsWith("DirectoryPath") && !omitted.has(key))
|
|
@@ -82,7 +94,7 @@ async function getTestInputFingerprint(projectConfig, datasource) {
|
|
|
82
94
|
add([plural, [...keys].sort()]);
|
|
83
95
|
for (const key of [...keys].sort()) {
|
|
84
96
|
try {
|
|
85
|
-
add([key, await datasource[`read${singular}`](key)]);
|
|
97
|
+
add([key, withoutMetadata(await datasource[`read${singular}`](key))]);
|
|
86
98
|
}
|
|
87
99
|
catch (error) {
|
|
88
100
|
throw new Error(`Could not read ${singular.toLowerCase()} "${key}" for test report provenance: ${error instanceof Error ? error.message : String(error)}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../../src/tester/provenance.ts"],"names":[],"mappings":";;AAMA,wDAGC;AA8BD,0DA4BC;
|
|
1
|
+
{"version":3,"file":"provenance.js","sourceRoot":"","sources":["../../src/tester/provenance.ts"],"names":[],"mappings":";;AAMA,wDAGC;AA8BD,0DA4BC;AAkBD,0DA4CC;AAjID,6CAAyC;AAGzC,uEAA2E;AAE3E,mFAAmF;AACnF,SAAgB,sBAAsB,CAAC,aAA4B;IACjE,MAAM,YAAY,GAA0B,aAAa,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,CAAC;IAClF,OAAO,YAAY,CAAC,GAAG,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC,IAAA,4CAAwB,EAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAC;AACjG,CAAC;AAQD,MAAM,QAAQ,GAAG;IACf,CAAC,UAAU,EAAE,SAAS,CAAC;IACvB,CAAC,UAAU,EAAE,SA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AAC,CAAC,GAAG,EAAE,eAAe,CAAC,MAAO,UAAkB,CAAC,OAAO,QAAQ,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YACjF,CAAC;YAAC,OAAO,KAAK,EAAE,CAAC;gBACf,MAAM,IAAI,KAAK,CACb,kBAAkB,QAAQ,CAAC,WAAW,EAAE,KAAK,GAAG,iCAAiC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAC1I,CAAC;YACJ,CAAC;QACH,CAAC;IACH,CAAC;IACD,MAAM,YAAY,GAA0B,aAAa,CAAC,YAAY,IAAI,CAAC,KAAK,CAAC,CAAC;IAClF,KAAK,MAAM,WAAW,IAAI,YAAY,EAAE,CAAC;QACvC,GAAG,CAAC,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC,SAAS,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;IACvE,CAAC;IACD,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAC5B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@featurevisor/core",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "Project configuration, validation and datafile building for Featurevisor tooling",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -47,14 +47,14 @@
|
|
|
47
47
|
},
|
|
48
48
|
"license": "MIT",
|
|
49
49
|
"dependencies": {
|
|
50
|
-
"@featurevisor/catalog": "4.
|
|
51
|
-
"@featurevisor/expressions": "4.
|
|
50
|
+
"@featurevisor/catalog": "4.8.0",
|
|
51
|
+
"@featurevisor/expressions": "4.8.0",
|
|
52
52
|
"@featurevisor/parsers": "4.5.0",
|
|
53
|
-
"@featurevisor/sdk": "4.
|
|
54
|
-
"@featurevisor/types": "4.
|
|
53
|
+
"@featurevisor/sdk": "4.8.0",
|
|
54
|
+
"@featurevisor/types": "4.8.0",
|
|
55
55
|
"tar": "^7.5.22",
|
|
56
56
|
"yargs": "^18.0.0",
|
|
57
57
|
"zod": "^4.4.3"
|
|
58
58
|
},
|
|
59
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "76fc19e745d28f48800055ffaa1e5aa2e074ac23"
|
|
60
60
|
}
|