@nordicsemiconductor/pc-nrfconnect-shared 212.0.0 → 213.0.0

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
@@ -7,6 +7,12 @@ This project does _not_ adhere to
7
7
  [Semantic Versioning](https://semver.org/spec/v2.0.0.html) but contrary to it
8
8
  every new version is a new major version.
9
9
 
10
+ ## 213.0.0 - 2025-06-11
11
+
12
+ ### Fixed
13
+
14
+ - Typecheck error when using a recent version of the dependency logform.
15
+
10
16
  ## 212.0.0 - 2025-06-05
11
17
 
12
18
  ### Added
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nordicsemiconductor/pc-nrfconnect-shared",
3
- "version": "212.0.0",
3
+ "version": "213.0.0",
4
4
  "description": "Shared commodities for developing pc-nrfconnect-* packages",
5
5
  "repository": {
6
6
  "type": "git",
@@ -51,19 +51,12 @@ interface SharedLogger extends Logger {
51
51
  logError: (message: string, error: unknown) => void;
52
52
  }
53
53
 
54
- /* This function is only needed, because our version of TypeScript still seems
55
- unable to accept (unique) symbols as index types. As soon as we have
56
- upgraded to a version that is capable of that, the invocations of this
57
- function can be replaced by a simple `info[splat]` and this function can
58
- be removed. */
59
- const splat = (info: TransformableInfo) => info[SPLAT as unknown as string];
60
-
61
54
  const logger = createLogger({
62
55
  format: format.combine(
63
56
  format(info => ({
64
57
  ...info,
65
- message: splat(info)
66
- ? `${info.message} ${splat(info).join(' ')}`
58
+ message: Array.isArray(info[SPLAT])
59
+ ? `${info.message} ${info[SPLAT].join(' ')}`
67
60
  : info.message,
68
61
  }))(),
69
62
  format.timestamp(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/logging/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAwB,QAAQ,EAAE,MAAM,EAAc,MAAM,SAAS,CAAC;AAoC7E,UAAU,YAAa,SAAQ,MAAM;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,QAAQ,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;AASD,QAAA,MAAM,MAAM,cAeM,CAAC;AAoCnB,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/logging/index.ts"],"names":[],"mappings":"AASA,OAAO,EAAwB,QAAQ,EAAE,MAAM,EAAc,MAAM,SAAS,CAAC;AAoC7E,UAAU,YAAa,SAAQ,MAAM;IACjC,UAAU,EAAE,MAAM,IAAI,CAAC;IACvB,kBAAkB,EAAE,MAAM,QAAQ,EAAE,CAAC;IACrC,WAAW,EAAE,MAAM,IAAI,CAAC;IACxB,mBAAmB,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACvD;AAED,QAAA,MAAM,MAAM,cAeM,CAAC;AAoCnB,eAAe,MAAM,CAAC"}