@walkeros/core 4.6.1 → 4.7.0-next-1790245733116

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/CHANGELOG.md CHANGED
@@ -1,5 +1,72 @@
1
1
  # @walkeros/core
2
2
 
3
+ ## 4.7.0-next-1790245733116
4
+
5
+ ### Minor Changes
6
+
7
+ - 57788bc: `anonymizeIP` now handles IPv6, keeping the first 48 bits, and treats
8
+ an IPv4-mapped address (`::ffff:1.2.3.4`) as IPv4; both returned an empty
9
+ string before. `getHashServer` takes an optional `key` for a keyed HMAC hash;
10
+ without it the output is unchanged.
11
+ - 06b498a: `walkeros bundle --manifest <url|path>` builds every artifact a build
12
+ manifest lists and uploads each one with a result. Declare build values in
13
+ `config.bundle.env`; they must be literal strings and supply `$env` in web
14
+ bundles. Step packages, overrides and their dependencies must now come from
15
+ the npm registry: git, file and URL specs are rejected.
16
+ - f5a1cfd: New `collector.next`: a transformer chain that runs once per event,
17
+ before the event is handed to the destinations. Everything it produces reaches
18
+ every destination, and a `stop` in it drops the event for all of them;
19
+ per-destination filtering stays on `destination.before`. The explorer flow map
20
+ draws this chain, and the MCP guidance describes it.
21
+ - 06b498a: New `@walkeros/core/node` entry point with the Node-only helpers the
22
+ CLI and the runner both share: `scrubSecrets`, `redactLine`,
23
+ `createCLILogger`, `createCLILoggerConfig`, `getTmpPath`, `createTmpResolver`
24
+ and `getDefaultTmpRoot`. The main entry gains `createTimer` and
25
+ `getErrorMessage`.
26
+ - 2aebc53: A mapping value now runs exactly one producer, in the order `loop`,
27
+ `map`, `set`, `key`, `fn`; the rest never run, so a `fn` next to a `key` is
28
+ ignored. To transform a field, use `fn` alone. A `loop` over something that is
29
+ not a list now yields the `value` fallback instead of the whole event.
30
+ - f5a1cfd: Inside an array, a transformer's own `next` now runs right after it,
31
+ then the array continues. `many` works in every chain field: each match
32
+ becomes its own copy with a derived `event.id` that finishes the rest of the
33
+ path. Unknown transformer ids log a warning and the chain continues.
34
+ `@walkeros/collector` no longer exports `walkChain` or
35
+ `extractTransformerNextMap`.
36
+ - f5a1cfd: Routes can drop an event with `{ stop: true }`, optionally gated by
37
+ `match`, in every chain field. A route `match` now reads `{ ingest, event }`
38
+ and resolves only when the event reaches it, so it sees values earlier steps
39
+ loaded. `getNextSteps(spec, root)` now requires that root and returns
40
+ `NextSteps`; the new `getRouteGraph` lists every branch.
41
+ - 2aebc53: `state` paths now resolve against `{ event, ingest }` and need an
42
+ `event.` or `ingest.` prefix, so a store can be keyed by request context. A
43
+ `get` can write into `ingest`, keeping the value off the event. An
44
+ unresolvable key logs a warning instead of failing silently.
45
+ `buildCacheContext` is renamed `createMappingRoot`.
46
+ - 8f8aea6: Every step field now survives bundling. A transformer with only
47
+ `state` or `mapping`, and inline code steps with `cache` or `state`, were
48
+ silently dropped from the bundle before and did nothing at runtime. `mapping`
49
+ is now a typed transformer field, and bundles no longer carry `variables`.
50
+ - 2aebc53: `walkeros validate` now reports paths that can never resolve: an
51
+ `ingest.` path in mapping `data` or `policy`, which resolve against the event,
52
+ and a cache key or route match without an `event.` or `ingest.` prefix. Flow
53
+ steps now declare `state`, so its paths are validated too.
54
+ - 2aebc53: A mapping or `policy` entry that resolves to nothing now removes the
55
+ field instead of leaving an `undefined` placeholder, so a denied consent gate
56
+ redacts it. The validate transformer never throws: an engine failure becomes
57
+ an issue, and `pass` mode no longer drops events that carry such fields.
58
+
59
+ ### Patch Changes
60
+
61
+ - ef02916: The JSON Schema for a mapping loop now sets `minItems` and `maxItems`
62
+ to 2, so a settings schema that embeds a mapping value no longer makes
63
+ `walkeros validate --path` print an Ajv strict-mode warning. The published
64
+ Flow JSON Schema (`schema/flow/v4.json`) was refreshed to match: it now
65
+ includes `config.observe` and no longer lists the step-level `validate` field.
66
+ - ef02916: The destination `queue` option's description now says what it does:
67
+ whether a destination added later receives the run's earlier events (default
68
+ true). Consent-denied events are queued regardless.
69
+
3
70
  ## 4.6.1
4
71
 
5
72
  ## 4.6.0