@reykjavik/webtools 0.3.13 → 0.3.14

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
@@ -4,20 +4,22 @@
4
4
 
5
5
  - ... <!-- Add new lines here. -->
6
6
 
7
- ## 0.3.13
7
+ ## 0.3.14
8
8
 
9
9
  _2026-03-17_
10
10
 
11
11
  - `@reykjavik/webtools/alertsStore`:
12
- - feat: Add "message-only" shorthand signature to alerter dispatcher methods
12
+ - fix: Regression in `InferAlerterPayload` type
13
13
 
14
- ## 0.3.12
14
+ ## 0.3.12 – 0.3.13
15
15
 
16
16
  _2026-03-17_
17
17
 
18
18
  - `@reykjavik/webtools/alertsStore`:
19
- - feat: Make alert `type` property disabled by default, enabled via config
20
19
  - feat: Add `AlerterConfig.title?:boolean` to enable optional alert `title`s
20
+ - feat: Add "message-only" shorthand signature to alerter dispatcher methods
21
+ - feat: Make alert `type` property disabled by default, enabled via config
22
+ (never used in the wild, yet)
21
23
 
22
24
  ## 0.3.7 – 0.3.11
23
25
 
@@ -206,7 +206,9 @@ export declare const createAlerterStore: <Level extends string = (typeof default
206
206
  *
207
207
  * @see https://github.com/reykjavikcity/webtools/blob/v0.3/README.md#createalerterstore
208
208
  */
209
- export type InferAlerterPayload<F extends Record<string, (...args: Array<any>) => void>> = F extends Record<string, (payload: infer P) => void> ? P : never;
209
+ export type InferAlerterPayload<F extends Record<string, (...args: Array<any>) => void>> = F extends Record<string, (payload: infer P) => void> ? Extract<P, {
210
+ message: unknown;
211
+ }> : never;
210
212
  /**
211
213
  * Utility type for inferring the alert info object shape received by the
212
214
  * callbacks of a specific alerter `subscribe` function.
@@ -206,7 +206,9 @@ export declare const createAlerterStore: <Level extends string = (typeof default
206
206
  *
207
207
  * @see https://github.com/reykjavikcity/webtools/blob/v0.3/README.md#createalerterstore
208
208
  */
209
- export type InferAlerterPayload<F extends Record<string, (...args: Array<any>) => void>> = F extends Record<string, (payload: infer P) => void> ? P : never;
209
+ export type InferAlerterPayload<F extends Record<string, (...args: Array<any>) => void>> = F extends Record<string, (payload: infer P) => void> ? Extract<P, {
210
+ message: unknown;
211
+ }> : never;
210
212
  /**
211
213
  * Utility type for inferring the alert info object shape received by the
212
214
  * callbacks of a specific alerter `subscribe` function.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@reykjavik/webtools",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "Misc. JS/TS helpers used by Reykjavík City's web dev teams.",
5
5
  "main": "index.js",
6
6
  "repository": "ssh://git@github.com:reykjavikcity/webtools.git",