Skip to content

Commit 2224138

Browse files
chore: version packages (#97)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent b80bada commit 2224138

9 files changed

Lines changed: 57 additions & 56 deletions

File tree

.changeset/v03-assertions.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/v03-cli-commands.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

.changeset/v03-detection-rules.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/v03-scenarios-assertions.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

.changeset/v03-trace-diffing.md

Lines changed: 0 additions & 9 deletions
This file was deleted.

apps/web/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# web
22

3+
## 0.1.3
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [6775642]
8+
- Updated dependencies [1b8cb39]
9+
- Updated dependencies [c580737]
10+
- Updated dependencies [8db857e]
11+
- Updated dependencies [8f765f9]
12+
- @ocpp-debugkit/toolkit@0.3.0
13+
314
## 0.1.2
415

516
### Patch Changes

apps/web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "web",
3-
"version": "0.1.2",
3+
"version": "0.1.3",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

packages/toolkit/CHANGELOG.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# @ocpp-debugkit/toolkit
2+
3+
## 0.3.0
4+
5+
### Minor Changes
6+
7+
- 6775642: Add rich scenario assertions — 8 declarative assertion types for scenario evaluation:
8+
- `event_order`, `event_count`, `payload_field`, `timing`, `session_state`,
9+
`failure_severity`, `no_failures`, `failure_count`
10+
11+
New API: `runAssertions()`, `evaluateScenario()`. Backward compatible —
12+
existing scenarios with only `expectedFailures` work unchanged.
13+
14+
- 1b8cb39: Add three new CLI commands:
15+
- `ocpp-debugkit ci [dir]` — run all scenarios, exit 0/1 for CI integration, supports `--format json`
16+
- `ocpp-debugkit anonymize <file>` — strip sensitive fields from trace files
17+
- `ocpp-debugkit diff <a> <b>` — compare two trace files, supports `--format json`
18+
19+
Also fixes evaluateScenario to deduplicate failure codes before comparison.
20+
21+
- c580737: Add 5 new failure detection rules for v0.3.0:
22+
23+
- `SUSPICIOUS_SESSION_DURATION` — sessions shorter than 60s or longer than 24h
24+
- `SLOW_RESPONSE` — Call→CallResult/CallError gap exceeding 10s
25+
- `HEARTBEAT_INTERVAL_VIOLATION` — heartbeat intervals deviating >50% from expected
26+
- `METER_VALUE_ANOMALY` — non-monotonic or negative meter readings
27+
- `UNRESPONSIVE_CSMS` — Call messages with no matching CallResult or CallError
28+
29+
Total detection rules: 15 (10 from v0.1/v0.2 + 5 new).
30+
31+
- 8db857e: Add 5 new scenarios using rich assertions (15 total):
32+
- `slow-csms-response` — SLOW_RESPONSE + timing assertion
33+
- `meter-anomaly` — METER_VALUE_ANOMALY + payload_field/event_count assertions
34+
- `short-session` — SUSPICIOUS_SESSION_DURATION + session_state/event_count assertions
35+
- `heartbeat-irregular` — HEARTBEAT_INTERVAL_VIOLATION + event_count assertion
36+
- `unresponsive-csms` — UNRESPONSIVE_CSMS + failure_severity/failure_count assertions
37+
38+
Add `compareScenarioReports()` — compare two scenario evaluation results for regression testing.
39+
40+
- 8f765f9: Add `diffTraces()` — compare two parsed traces and surface event-level differences:
41+
- Events only in A or B (by messageId)
42+
- Field-level modifications (timestamp, direction, action, payload, errorCode)
43+
- Failure differences (detected in A but not B, and vice versa)
44+
- Summary differences (event count, failure count, duration, status)

packages/toolkit/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@ocpp-debugkit/toolkit",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Open-source DevTools for debugging OCPP charging sessions — parser, normalizer, timeline, failure detection, scenarios, replay, reports, CLI, and React components.",
55
"license": "Apache-2.0",
66
"type": "module",

0 commit comments

Comments
 (0)