tosijs-ui 1.9.4 → 1.9.5

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,43 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.9.5
4
+
5
+ **`localize()` no longer destroys literal `#`** (#55, reported by snowfox).
6
+
7
+ `#` separates a string from a context annotation (`Okay#confirm`) and every `#` was
8
+ stripped, so any literal one was lost: `'C# Tutorial'` became `'C'`, `'Issue #42'` became
9
+ `'Issue '`, and `'#hashtag'` became `''` — an empty string, which renders as a blank label
10
+ rather than an obvious error.
11
+
12
+ An annotation is a **suffix identifier**, so only a `#` that looks like one is treated as
13
+ one — immediately preceded by a non-space, followed by letters/digits/`_`/`-`, at the end
14
+ of the string:
15
+
16
+ | string | read as |
17
+ | --- | --- |
18
+ | `Okay#confirm` | annotation |
19
+ | `C# Tutorial` | literal — space after |
20
+ | `Issue #42` | literal — space before |
21
+ | `#hashtag` | literal — nothing before |
22
+ | `C#` | literal — no annotation after |
23
+
24
+ No author action and no data migration; every documented annotation form is unchanged.
25
+ Escape with `\#` for a literal that genuinely looks like an annotation (`tag\#42`).
26
+
27
+ **The worse half:** annotations were stripped from the *translated value* too, so a
28
+ translation containing `#` was truncated **even when the source string had none** —
29
+ `'Sharp'` → `'Dièse #1'` came back as `'Dièse '`. A translator writing an ordinary string
30
+ had it silently cut, with nothing in the source to hint why. Translations are no longer
31
+ scanned for annotations at all: an annotation belongs to the lookup key, not to the text
32
+ it resolves to.
33
+
34
+ ### Also
35
+
36
+ - **`brace-expansion` pinned to `>=5.0.9`** (GHSA-rgw5-rvv9-x895, HIGH, DoS-only). A
37
+ follow-up advisory against a package already pinned at `>=5.0.8` for the previous one —
38
+ the new advisory covers `<5.0.9`. The audit gate blocked the build on it, which is the
39
+ case a one-time fix misses and a gate does not.
40
+
3
41
  ## 1.9.4
4
42
 
5
43
  **The dev server now uses your own installed `haltija`** (#48, reported by tosijs-3d).