@malloydata/malloy-tests 0.0.423 → 0.0.424
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.
|
@@ -42,11 +42,11 @@ downstream:
|
|
|
42
42
|
|
|
43
43
|
- **bundle-check fails** → a runtime dep is not bundle-safe (a new native, or a
|
|
44
44
|
bare native require). Externalizing it in the consumer is only a band-aid; the
|
|
45
|
-
fix is upstream — see `
|
|
45
|
+
fix is upstream — see `docs/dependency-management/CONTEXT.md`.
|
|
46
46
|
- **consumer-canary:jest fails** with "Unexpected token 'export'" / "Cannot use import
|
|
47
47
|
statement outside a module" → a runtime dep went ESM-only. **Do not** add a
|
|
48
48
|
transform here to silence it — pin the dep to its last CJS-consumable major, the
|
|
49
|
-
way `uuid` and `@noble/hashes` are pinned (`
|
|
49
|
+
way `uuid` and `@noble/hashes` are pinned (`docs/dependency-management/CONTEXT.md`).
|
|
50
50
|
|
|
51
51
|
## Wiring
|
|
52
52
|
|
|
@@ -51,7 +51,7 @@ try {
|
|
|
51
51
|
console.error(
|
|
52
52
|
'or a bare require of an optional native. See test/consumer-canary/CONTEXT.md'
|
|
53
53
|
);
|
|
54
|
-
console.error('and
|
|
54
|
+
console.error('and docs/dependency-management/CONTEXT.md.\n');
|
|
55
55
|
for (const e of err.errors ?? []) {
|
|
56
56
|
console.error(
|
|
57
57
|
' ' +
|
|
@@ -16,7 +16,7 @@ import type {Config} from 'jest';
|
|
|
16
16
|
* repo's own jest.config.ts does that, which is precisely why malloy's tests stay
|
|
17
17
|
* green while consumers break. Adding it here would hide the leak this canary
|
|
18
18
|
* exists to catch. A red canary means a runtime dep went ESM-only — pin it (see
|
|
19
|
-
*
|
|
19
|
+
* docs/dependency-management/CONTEXT.md), don't transform it away.
|
|
20
20
|
*/
|
|
21
21
|
const config: Config = {
|
|
22
22
|
rootDir: '.',
|
package/package.json
CHANGED
|
@@ -20,27 +20,27 @@
|
|
|
20
20
|
"malloyc": "ts-node ../scripts/malloy-to-json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@
|
|
24
|
-
"@malloydata/db-
|
|
25
|
-
"@malloydata/db-
|
|
26
|
-
"@malloydata/db-
|
|
27
|
-
"@malloydata/db-
|
|
28
|
-
"@malloydata/
|
|
29
|
-
"@malloydata/malloy": "0.0.
|
|
30
|
-
"@malloydata/
|
|
31
|
-
"@malloydata/render": "0.0.
|
|
32
|
-
"@malloydata/render-validator": "0.0.423",
|
|
23
|
+
"@malloydata/db-bigquery": "0.0.424",
|
|
24
|
+
"@malloydata/db-duckdb": "0.0.424",
|
|
25
|
+
"@malloydata/db-postgres": "0.0.424",
|
|
26
|
+
"@malloydata/db-snowflake": "0.0.424",
|
|
27
|
+
"@malloydata/db-trino": "0.0.424",
|
|
28
|
+
"@malloydata/malloy": "0.0.424",
|
|
29
|
+
"@malloydata/malloy-tag": "0.0.424",
|
|
30
|
+
"@malloydata/render": "0.0.424",
|
|
31
|
+
"@malloydata/render-validator": "0.0.424",
|
|
33
32
|
"events": "^3.3.0",
|
|
34
33
|
"jsdom": "^22.1.0",
|
|
35
34
|
"luxon": "^3.7.2",
|
|
36
35
|
"madge": "^8.0.0"
|
|
37
36
|
},
|
|
38
37
|
"devDependencies": {
|
|
38
|
+
"@jest/globals": "^29.4.3",
|
|
39
39
|
"@types/jsdom": "^21.1.1",
|
|
40
40
|
"@types/luxon": "^3.7.2"
|
|
41
41
|
},
|
|
42
42
|
"overrides": {
|
|
43
43
|
"typescript": "^6.0.3"
|
|
44
44
|
},
|
|
45
|
-
"version": "0.0.
|
|
45
|
+
"version": "0.0.424"
|
|
46
46
|
}
|
package/src/test-select.ts
CHANGED
|
@@ -27,10 +27,7 @@ type PrimitiveValue = string | number | boolean | null;
|
|
|
27
27
|
|
|
28
28
|
// Test data value types
|
|
29
29
|
type TestValue =
|
|
30
|
-
|
|
|
31
|
-
| TestValue[]
|
|
32
|
-
| {[key: string]: TestValue}
|
|
33
|
-
| TypedValue;
|
|
30
|
+
PrimitiveValue | TestValue[] | {[key: string]: TestValue} | TypedValue;
|
|
34
31
|
|
|
35
32
|
const nullExpr: Expr = {node: 'null'};
|
|
36
33
|
|