hazo_collect 0.2.5 → 0.2.7
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/CHANGE_LOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# hazo_collect — Change Log
|
|
2
2
|
|
|
3
|
+
## Unreleased — test tooling
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
Integration/adapter suites that use real `hazo_connect` were silently failing to **load** (not run)
|
|
8
|
+
on Node < 24.9: `hazo_connect` has no package.json `type` → jest transforms its src to CommonJS,
|
|
9
|
+
whose `require()` of ESM-only `hazo_core` (and transitively `hazo_secure/crypto`) throws "Must use
|
|
10
|
+
import to load ES Module" under the vm-modules loader. Six suites were affected; the prior
|
|
11
|
+
`__mocks__/hazo_core.ts` (ESM) mock did **not** fix it (a CJS `require()` still can't load an ESM
|
|
12
|
+
`.ts`). Replaced with plain-**CJS** mocks — `__mocks__/hazo_core.cjs` + `__mocks__/hazo_secure_crypto.cjs`
|
|
13
|
+
(passthrough field-crypto stub) — mapped via `moduleNameMapper`. `.cjs` isn't matched by the `tsx`
|
|
14
|
+
transform, so it loads raw as CommonJS and the real `hazo_connect` adapter resolves against it. All
|
|
15
|
+
**10 suites / 80 tests** now run and pass on the Node 22 the workspace pins for better-sqlite3.
|
|
16
|
+
No published surface change (mocks + jest config are not in the npm tarball).
|
|
17
|
+
|
|
3
18
|
## 0.2.5 — 2026-06-16
|
|
4
19
|
|
|
5
20
|
### Maintenance
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { HazoCoreLogger } from 'hazo_core';
|
|
2
|
-
import {
|
|
2
|
+
import { R as RunEnvelope, M as ManifestInput } from './run-envelope-BOV1BPah.js';
|
|
3
3
|
import { DbResult, HazoConnectAdapter } from 'hazo_connect/server';
|
|
4
4
|
|
|
5
5
|
interface LandingRow {
|
|
@@ -57,4 +57,4 @@ declare function defineSink(def: SinkDefinition): SinkDefinition;
|
|
|
57
57
|
declare function getSink(name: string): SinkDefinition | undefined;
|
|
58
58
|
declare function resetCollectorRegistry(): void;
|
|
59
59
|
|
|
60
|
-
export { type
|
|
60
|
+
export { type CollectorDefinition as C, type LandingRow as L, type SinkDefinition as S, type WriteAdapter as W, type CollectorOutcome as a, type CanonicalTarget as b, type WriteArgs as c, type WriteResult as d, createWriteAdapter as e, type CollectorContext as f, defineCollector as g, defineSink as h, getCollector as i, getSink as j, listCollectors as l, resetCollectorRegistry as r };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { M as ManifestInput } from './run-envelope-BOV1BPah.js';
|
|
2
|
+
export { a as Manifest, b as ManifestSchema, R as RunEnvelope, c as RunEnvelopeSchema, p as parseManifest, d as parseRunEnvelope } from './run-envelope-BOV1BPah.js';
|
|
3
3
|
export { R as RunError, a as RunResult, b as RunResultSchema, p as parseRunResult } from './run-result-yw8Iqipg.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
|
@@ -53,4 +53,4 @@ declare const RunEnvelopeSchema: z.ZodObject<{
|
|
|
53
53
|
type RunEnvelope = z.infer<typeof RunEnvelopeSchema>;
|
|
54
54
|
declare function parseRunEnvelope(input: unknown): RunEnvelope;
|
|
55
55
|
|
|
56
|
-
export { type
|
|
56
|
+
export { type ManifestInput as M, type RunEnvelope as R, type Manifest as a, ManifestSchema as b, RunEnvelopeSchema as c, parseRunEnvelope as d, parseManifest as p };
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import 'hazo_core';
|
|
2
|
-
import '../run-envelope-
|
|
3
|
-
export {
|
|
2
|
+
import '../run-envelope-BOV1BPah.js';
|
|
3
|
+
export { f as CollectorContext, C as CollectorDefinition, a as CollectorOutcome, S as SinkDefinition, g as defineCollector, h as defineSink, i as getCollector, j as getSink, l as listCollectors, r as resetCollectorRegistry } from '../index-MjgA8V2V.js';
|
|
4
4
|
import 'zod';
|
|
5
5
|
import 'hazo_connect/server';
|
package/dist/server/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
1
|
+
import { C as CollectorDefinition, a as CollectorOutcome } from '../index-MjgA8V2V.js';
|
|
2
|
+
export { b as CanonicalTarget, L as LandingRow, W as WriteAdapter, c as WriteArgs, d as WriteResult, e as createWriteAdapter } from '../index-MjgA8V2V.js';
|
|
3
3
|
import { HazoConnectAdapter, DbResult } from 'hazo_connect/server';
|
|
4
4
|
import { a as RunResult } from '../run-result-yw8Iqipg.js';
|
|
5
|
-
import {
|
|
5
|
+
import { M as ManifestInput, R as RunEnvelope } from '../run-envelope-BOV1BPah.js';
|
|
6
6
|
import 'hazo_core';
|
|
7
7
|
import 'zod';
|
|
8
8
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hazo_collect",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "Collector-manager engine for the Ocdata platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "./dist/index.js",
|
|
@@ -43,12 +43,12 @@
|
|
|
43
43
|
"ajv": "^8.17.1"
|
|
44
44
|
},
|
|
45
45
|
"peerDependencies": {
|
|
46
|
-
"hazo_core": "^
|
|
47
|
-
"hazo_connect": "^
|
|
48
|
-
"hazo_secure": "^1.
|
|
46
|
+
"hazo_core": "^2.0.0",
|
|
47
|
+
"hazo_connect": "^4.0.0",
|
|
48
|
+
"hazo_secure": "^1.7.1",
|
|
49
49
|
"react": "^18.0.0 || ^19.0.0",
|
|
50
50
|
"react-dom": "^18.0.0 || ^19.0.0",
|
|
51
|
-
"hazo_ui": "^
|
|
51
|
+
"hazo_ui": "^6.8.0"
|
|
52
52
|
},
|
|
53
53
|
"peerDependenciesMeta": {
|
|
54
54
|
"hazo_secure": {
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"@types/node": "^22.10.0",
|
|
75
75
|
"@types/react": "^19.0.0",
|
|
76
76
|
"@types/react-dom": "^19.0.0",
|
|
77
|
-
"hazo_core": "^
|
|
78
|
-
"hazo_connect": "^
|
|
79
|
-
"hazo_secure": "^1.
|
|
77
|
+
"hazo_core": "^2.0.0",
|
|
78
|
+
"hazo_connect": "^4.0.0",
|
|
79
|
+
"hazo_secure": "^1.7.1"
|
|
80
80
|
},
|
|
81
81
|
"keywords": [],
|
|
82
82
|
"author": "Pubs Abayasiri",
|