Skip to content

Commit 18c9bae

Browse files
chore: version packages (#19)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 3239f66 commit 18c9bae

4 files changed

Lines changed: 26 additions & 28 deletions

File tree

.changeset/fingerprint-unit-numbers.md

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

.changeset/normalizer-order.md

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

CHANGELOG.md

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

3+
## 1.0.1
4+
5+
### Patch Changes
6+
7+
- [`942e36f`](https://github.com/IQAIcom/alert-logger/commit/942e36fc5351232fc91f87dc57003a73a2326514) Thanks [@Royal-lobster](https://github.com/Royal-lobster)! - fix(fingerprinter): normalize numbers adjacent to unit letters
8+
9+
The built-in `NUMBER_RE` used `\b\d+\b`, which failed to match digits
10+
immediately followed by word characters (e.g. `330s`, `120ms`). Messages
11+
like `"No block processed for 330s"` and `"... for 360s"` produced
12+
different fingerprints, so aggregation treated each tick as a fresh
13+
onset and no suppression occurred. Loosened to `\d+` so duration/size
14+
suffixes are collapsed too.
15+
16+
- [#20](https://github.com/IQAIcom/alert-logger/pull/20) [`3239f66`](https://github.com/IQAIcom/alert-logger/commit/3239f665ad30c04204adbefa12c06a76123464f9) Thanks [@Royal-lobster](https://github.com/Royal-lobster)! - fix(fingerprinter): run built-in normalizers before user-defined ones
17+
18+
User-defined normalizers previously ran before the built-in ones, so a
19+
broad rule like `{ pattern: /\d+/g, replacement: "<num>" }` would strip
20+
digits out of UUIDs and hex addresses before `UUID_RE` and `HEX_RE` had a
21+
chance to match. Every trade ID or transaction hash then produced a
22+
distinct fingerprint, which made the aggregator treat each occurrence as
23+
a fresh onset and suppression never kicked in.
24+
25+
Built-ins now collapse structural identifiers first, and user rules
26+
compose on top of the normalized output.
27+
328
## 1.0.0
429

530
### Major Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@iqai/alert-logger",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Smart alert aggregation for any destination — Discord, Sentry, Slack, console, or your own adapter",
55
"type": "module",
66
"license": "MIT",

0 commit comments

Comments
 (0)