@maskera/core 0.8.2 → 0.8.4
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 +8 -0
- package/README.md +4 -9
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @maskera/core
|
|
2
2
|
|
|
3
|
+
## 0.8.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Pin `maskera-sv-ner` v20 (`bb35467e9310095a81bf4e3d5779586ea842507a`) with updated SHA-256 integrity digests and refreshed benchmark documentation.
|
|
8
|
+
|
|
9
|
+
`maskera-sv-ner` v20 is distilled from a 3-seed KB-BERT teacher ensemble over 108,400 attested synthetic training rows and 6,900 validation rows, improving curated span F1 to 99.5% (0/205 leaks), LinkedIn-style span F1 to 98.1% (0/53 leaks), synthetic ADR labeled F1 to 98.2% (35/35 exact addresses, 0/57 leaks), and structured domain regression to 943/952 (99.1%) with 38% fewer unannotated false-flag candidates.
|
|
10
|
+
|
|
3
11
|
## 0.8.2
|
|
4
12
|
|
|
5
13
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -73,14 +73,9 @@ and are enabled by the hybrid pipeline.
|
|
|
73
73
|
Note: the model-hybrid `redactWithNer` in the `maskera` package enables
|
|
74
74
|
`adress`, `lagenhetsnummer` and the context-labeled account/journal identifiers
|
|
75
75
|
by default (its callers have free text by definition); only the synchronous
|
|
76
|
-
`redact()` here keeps the structured default set.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
with 952 annotated PII strings, that complete Maskera v19 hybrid fully removed
|
|
80
|
-
933/952 (98.0%); LogosGuard 2.4.4 in Chrome, Free/`Balanced`, fully removed
|
|
81
|
-
606/952 (63.7%). Partial/clear-text leaks were 8/11 and 49/297 respectively.
|
|
82
|
-
The corpus is author-coupled and not exhaustively annotated for precision; see
|
|
83
|
-
the exact settings, outputs and caveats in
|
|
76
|
+
`redact()` here keeps the structured default set. On the 258-text Swedish domain
|
|
77
|
+
regression corpus (952 annotated PII strings), that complete Maskera v20 hybrid
|
|
78
|
+
reaches 943/952 (99.1%) full hits (3 partial leaks, 6 clear-text misses); see
|
|
84
79
|
[docs/BENCHMARKS.md](https://github.com/joelhagvall/maskera/blob/main/docs/BENCHMARKS.md).
|
|
85
80
|
|
|
86
81
|
## API
|
|
@@ -121,7 +116,7 @@ value to redact. `validate` can reject false positives (e.g. failing a checksum)
|
|
|
121
116
|
documents and book-length text. The constant factor is worst on digit-dense
|
|
122
117
|
input: a megabyte of pure digits (a log dump) blocks the thread for roughly a
|
|
123
118
|
second per call. For documents in the megabyte class and up, split the text on
|
|
124
|
-
line or paragraph boundaries and redact chunk by chunk
|
|
119
|
+
line or paragraph boundaries and redact chunk by chunk: detection is local to
|
|
125
120
|
each chunk, so only an identifier straddling a split point is affected.
|
|
126
121
|
|
|
127
122
|
## More
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maskera/core",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.4",
|
|
4
4
|
"description": "Swedish-first, zero-dependency PII detection & redaction. Runs in the browser, Node, and edge.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
|
-
"author": "Joel Hägvall",
|
|
7
|
+
"author": "Joel Hägvall (https://joelhagvall.com)",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"pii",
|
|
10
10
|
"redaction",
|
|
@@ -50,10 +50,10 @@
|
|
|
50
50
|
"CHANGELOG.md"
|
|
51
51
|
],
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"fast-check": "^4.
|
|
53
|
+
"fast-check": "^4.10.2",
|
|
54
54
|
"tsup": "^8.3.5",
|
|
55
55
|
"typescript": "^5.9.3",
|
|
56
|
-
"vitest": "^4.1.
|
|
56
|
+
"vitest": "^4.1.11"
|
|
57
57
|
},
|
|
58
58
|
"scripts": {
|
|
59
59
|
"prebuild": "node ../../scripts/check-benchmark-sync.mjs",
|