@bitcobblers/wod-wiki-wql 0.35.2117 → 0.35.2120
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.cjs +15 -11
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +9 -7
- package/dist/index.d.ts +9 -7
- package/dist/index.mjs +15 -11
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -654,10 +654,10 @@ function validateSourceFilter(filters) {
|
|
|
654
654
|
if (val === "collection" || val === "collections") {
|
|
655
655
|
return `source:${val} is retired \u2014 collections were renamed to feeds; use source:feeds or :feed{}.`;
|
|
656
656
|
}
|
|
657
|
-
if (WQL_SOURCE_VALUES.includes(val) || val === "feed" || val.startsWith("collection:")) {
|
|
657
|
+
if (WQL_SOURCE_VALUES.includes(val) || val === "feed" || val.startsWith("collection:") || val.startsWith("feed:")) {
|
|
658
658
|
continue;
|
|
659
659
|
}
|
|
660
|
-
return `Unknown source "${val}". Try: ${WQL_SOURCE_VALUES.join(", ")} (or collection:<id>)`;
|
|
660
|
+
return `Unknown source "${val}". Try: ${WQL_SOURCE_VALUES.join(", ")} (or collection:<id>, feed:<id>)`;
|
|
661
661
|
}
|
|
662
662
|
}
|
|
663
663
|
return void 0;
|
|
@@ -1144,9 +1144,7 @@ function findTargetAdvisories(query) {
|
|
|
1144
1144
|
if (query.groupBy?.length) {
|
|
1145
1145
|
const dimensions = wqlGroupingDimensions(target, "find");
|
|
1146
1146
|
const unsupported = query.groupBy.filter((dim) => !dimensions.some((d) => d.toLowerCase() === dim.toLowerCase()));
|
|
1147
|
-
if (target === "note" || target === "block") {
|
|
1148
|
-
if (unsupported.length) advisories.push(`:${target} cannot group by ${unsupported.join(", ")}; grouped by tag instead. Valid alternatives: ${dimensions.join(", ")}.`);
|
|
1149
|
-
} else if (target === "segment" || target === "event") {
|
|
1147
|
+
if (target === "note" || target === "block") ; else if (target === "segment" || target === "event") {
|
|
1150
1148
|
const selected = query.pipes?.select?.map((column) => column.col);
|
|
1151
1149
|
const unavailable = query.groupBy.filter((dim) => selected ? !selected.includes(dim) : !dimensions.includes(dim));
|
|
1152
1150
|
if (unavailable.length) advisories.push(`:${target} groups only emitted table columns; ${unavailable.join(", ")} may be unassigned. Select each grouping column explicitly.`);
|
|
@@ -2934,6 +2932,12 @@ function sourceMatches(item, kind) {
|
|
|
2934
2932
|
if (kind === "playground") {
|
|
2935
2933
|
return sourceId === "playground" || item.type === "playground";
|
|
2936
2934
|
}
|
|
2935
|
+
if (kind.startsWith("feed:")) {
|
|
2936
|
+
const rest = kind.slice("feed:".length).replace(/^feeds\//, "");
|
|
2937
|
+
if (!rest || !sourceId?.startsWith("feed:")) return false;
|
|
2938
|
+
const idRest = sourceId.slice("feed:".length).replace(/^feeds\//, "");
|
|
2939
|
+
return idRest === rest || idRest.startsWith(`${rest}/`);
|
|
2940
|
+
}
|
|
2937
2941
|
return sourceId === kind;
|
|
2938
2942
|
}
|
|
2939
2943
|
function applySourceFilter(items, filters) {
|
|
@@ -5217,13 +5221,13 @@ ${query}
|
|
|
5217
5221
|
}
|
|
5218
5222
|
|
|
5219
5223
|
// src/version.ts
|
|
5220
|
-
var VERSION = "0.35.
|
|
5221
|
-
var GIT_SHA = "
|
|
5222
|
-
var BUILD_TIME = "2026-10-
|
|
5224
|
+
var VERSION = "0.35.2120";
|
|
5225
|
+
var GIT_SHA = "62def0d";
|
|
5226
|
+
var BUILD_TIME = "2026-10-13T06:46:25.596Z";
|
|
5223
5227
|
var SEMVER = {
|
|
5224
|
-
version: "0.35.
|
|
5225
|
-
gitSha: "
|
|
5226
|
-
buildTime: "2026-10-
|
|
5228
|
+
version: "0.35.2120",
|
|
5229
|
+
gitSha: "62def0d",
|
|
5230
|
+
buildTime: "2026-10-13T06:46:25.596Z"
|
|
5227
5231
|
};
|
|
5228
5232
|
|
|
5229
5233
|
Object.defineProperty(exports, "SYSTEM_DEFAULT_OUTPUT_UNIT", {
|