deprecated-tracker 2.7.0 → 2.7.1

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/out/cli.js +94 -94
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -20,6 +20,14 @@ If a version is missing from the channel you are looking at, the entry below
20
20
  tells you which artifact it changed. A release that touches only one artifact is
21
21
  noted as such in its own section.
22
22
 
23
+ ## [2.7.1]
24
+
25
+ ### Fixed
26
+
27
+ - **CI annotations escape what they emit.** A deprecation reason or a symbol name carrying a newline could close the annotation and open a second one: `##vso[task.complete result=Succeeded]` inside a `@deprecated` comment reported the build as passed, and `::error::` did the equivalent on GitHub. Azure was never escaped at all — it was safe only because `describe` collapses whitespace in the *reason*, which is protection living in an unrelated function that does not know it is load-bearing, and which never covered the symbol name. Both styles now escape at the point of emission.
28
+ - **A filename can no longer forge an annotation's location.** GitHub reads `file=`, `line=` and `col=` as a comma-separated list, so a file named `x,line=1,col=1.ts` supplied its own line and column and pointed the warning at code it did not come from. Commas and colons in the path are percent-encoded; Azure's `sourcepath` gets the same treatment for `;` and `]`, which delimit its property list. A path with none of those characters is emitted exactly as before.
29
+ - **A misspelled configuration key says so.** `ConfigReader` warned about an invalid *value* but ignored an unknown *key*, so `trustedPackage` for `trustedPackages` read as applied and did nothing — a silently ignored key is worse than a rejected one, because the run still passes. Any key outside the schema is now named on the warning channel, along with the keys that exist. The known-key list is typed against `DeprecatedTrackerConfig`, so a new option cannot be added without appearing in it.
30
+
23
31
  ## [2.7.0]
24
32
 
25
33
  *Ships the internal `2.6.1` work below, which was never released on its own.*