@walkeros/core 4.8.1 → 4.8.2
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 +48 -0
- package/dist/dev.d.mts +808 -47
- package/dist/dev.d.ts +808 -47
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.d.mts +466 -136
- package/dist/index.d.ts +466 -136
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/node.d.mts +129 -14
- package/dist/node.d.ts +129 -14
- package/dist/node.js +1 -1
- package/dist/node.js.map +1 -1
- package/dist/node.mjs +1 -1
- package/dist/node.mjs.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,53 @@
|
|
|
1
1
|
# @walkeros/core
|
|
2
2
|
|
|
3
|
+
## 4.8.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 2374f54: `logger.throw` only throws and no longer writes a log line; the
|
|
8
|
+
collector writes the one failure line. A rule `condition` that throws fails
|
|
9
|
+
the event instead of falling through. A mapping value without an operator is
|
|
10
|
+
dropped and reported. The wildcard lookup tries exact, `entity *`, `* action`,
|
|
11
|
+
then `* *`, and falls through a tier whose conditions all fail.
|
|
12
|
+
- 7e5fc27: A JSON log line above 32 KiB now truncates its message as well as its
|
|
13
|
+
context and sets `messageTruncated: true`, so one oversized line can no longer
|
|
14
|
+
break a log pipeline. Mapping problems report under the step `mapping.<rule>`,
|
|
15
|
+
one line per rule.
|
|
16
|
+
- 2374f54: `logger.format: 'json'` prints one JSON object per line on server
|
|
17
|
+
flows, with `severity`, `message`, `time`, `scope` and `context`; errors and
|
|
18
|
+
warnings go to stderr. Web flows reject it. A log handler receives the cause
|
|
19
|
+
code, status, retryable flag and suppressed count as structured fields, so
|
|
20
|
+
lines can be forwarded without parsing.
|
|
21
|
+
- 964590a: Tag Mode's `moin` and the preview activator `browserSwapActivator`
|
|
22
|
+
(with `SwapActivatorConfig` and `SESSION_STORAGE_KEY`) moved to
|
|
23
|
+
`@walkeros/web-core`, and `isElementOrDocument` is removed.
|
|
24
|
+
`serializeStoreValue`, `deserializeStoreValue` and `StoreCodecError` moved to
|
|
25
|
+
`@walkeros/core/node`. `getFlowSettings` reads `$env` only from the `env` you
|
|
26
|
+
pass it, never from `process.env`. Errors keep `cause` in every browser.
|
|
27
|
+
- 4100ede: `getEvent` returns the same event on every run: a fixed timestamp and
|
|
28
|
+
an id derived from the event name. It accepts only standard event names, so a
|
|
29
|
+
typo no longer compiles; `createEvent` builds any other event and uses the
|
|
30
|
+
same fixed default timestamp. `order complete` carries the order amount as
|
|
31
|
+
`data.value` instead of `data.total`, and the package examples read
|
|
32
|
+
`data.value`.
|
|
33
|
+
- 2374f54: New `StepError` carries a code, an HTTP status and `retryable`;
|
|
34
|
+
`acknowledge(result)` tells a producer to ack, retry or reject a message, and
|
|
35
|
+
`reportCause` writes one failure line per cause. `SendResponse` is `{ data }`.
|
|
36
|
+
An `init` of a destination, transformer or store can no longer return `false`:
|
|
37
|
+
throw a `StepError`, and untyped `false` fails with `not-ready`.
|
|
38
|
+
- 2374f54: Flow validation now rejects unknown keys in step `config`,
|
|
39
|
+
destination and store entries, the `collector` block, inline `code` and
|
|
40
|
+
contract rules, mapping keys with no effect at their position, values without
|
|
41
|
+
an operator or with two producers, and malformed whole-value references.
|
|
42
|
+
Inline code may define `pushBatch`, `on` and `destroy`. Strict `$flow` treats
|
|
43
|
+
an empty value as unresolved.
|
|
44
|
+
- 15eb7b2: The error for an empty `$flow` reference names only the setting to
|
|
45
|
+
fill in; it no longer suggests a `walkeros deploy` command.
|
|
46
|
+
- 33a2779: `$flow` references now accept flow names with a hyphen, such as
|
|
47
|
+
`$flow.tracking-server.url`.
|
|
48
|
+
- 33a2779: Tag Mode's loader now hears the app's call on sites that block
|
|
49
|
+
messages from origins they do not know.
|
|
50
|
+
|
|
3
51
|
## 4.8.1
|
|
4
52
|
|
|
5
53
|
### Patch Changes
|