@fluojs/slack 1.1.1 → 1.1.2

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/README.ko.md CHANGED
@@ -199,6 +199,7 @@ await slack.send({
199
199
 
200
200
  Behavioral contract 메모:
201
201
 
202
+ - `fetch`를 명시적으로 전달하는 방식이 portable path이며 모든 지원 런타임에서 권장됩니다. 하위 호환성을 위해 `fetch`를 생략하면 ambient runtime API인 `globalThis.fetch`가 있을 때 이를 폴백으로 사용합니다. `globalThis.fetch`가 없는 런타임에서는 `SlackConfigurationError`로 빠르게 실패합니다.
202
203
  - 내장 webhook transport는 `408`, `429`, `5xx` 같은 일시적 실패를 호출자에게 에러를 노출하기 전에 bounded exponential backoff로 재시도합니다.
203
204
  - Abort signal은 주입된 `fetch` 경계로 전달되며, retry backoff를 취소할 때 `AbortError`를 `SlackTransportError`로 감싸지 않습니다.
204
205
  - 호출자에게 보이는 `SlackTransportError` 메시지는 기본적으로 raw upstream response body를 포함하지 않습니다.
package/README.md CHANGED
@@ -199,6 +199,7 @@ For richer API integrations such as `chat.postMessage`, implement the exported `
199
199
 
200
200
  Behavioral contract notes:
201
201
 
202
+ - Passing `fetch` explicitly is the portable path and is recommended for all supported runtimes. For backward compatibility, omitting `fetch` falls back to `globalThis.fetch` when that ambient runtime API exists; runtimes without `globalThis.fetch` fail fast with `SlackConfigurationError`.
202
203
  - The built-in webhook transport retries transient `408`, `429`, and `5xx` failures with bounded exponential backoff before surfacing an error.
203
204
  - Abort signals are passed to the injected `fetch` boundary and cancel retry backoff without wrapping `AbortError` values as `SlackTransportError`.
204
205
  - Caller-visible `SlackTransportError` messages omit raw upstream response bodies by default.
package/dist/module.d.ts CHANGED
@@ -19,7 +19,10 @@ export declare class SlackModule {
19
19
  * @example
20
20
  * ```ts
21
21
  * SlackModule.forRoot({
22
- * transport: createSlackWebhookTransport({ webhookUrl: 'https://hooks.slack.com/services/...' }),
22
+ * transport: createSlackWebhookTransport({
23
+ * fetch: runtime.fetch,
24
+ * webhookUrl: 'https://hooks.slack.com/services/...',
25
+ * }),
23
26
  * });
24
27
  * ```
25
28
  */
@@ -1 +1 @@
1
- {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMhE,OAAO,KAAK,EAGV,uBAAuB,EACvB,kBAAkB,EAGnB,MAAM,YAAY,CAAC;AA0DpB;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,GAAG,QAAQ,EAAE,CAK5E;AAsCD,kFAAkF;AAClF,qBAAa,WAAW;IACtB;;;;;;;;;;;;OAYG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU;IAIvD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;CAGlE"}
1
+ {"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,EAAgB,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAMhE,OAAO,KAAK,EAGV,uBAAuB,EACvB,kBAAkB,EAGnB,MAAM,YAAY,CAAC;AA0DpB;;;;;GAKG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,kBAAkB,GAAG,QAAQ,EAAE,CAK5E;AAsCD,kFAAkF;AAClF,qBAAa,WAAW;IACtB;;;;;;;;;;;;;;;OAeG;IACH,MAAM,CAAC,OAAO,CAAC,OAAO,EAAE,kBAAkB,GAAG,UAAU;IAIvD;;;;;;;;;;;;;;;;;;;OAmBG;IACH,MAAM,CAAC,YAAY,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;CAGlE"}
package/dist/module.js CHANGED
@@ -99,7 +99,10 @@ export class SlackModule {
99
99
  * @example
100
100
  * ```ts
101
101
  * SlackModule.forRoot({
102
- * transport: createSlackWebhookTransport({ webhookUrl: 'https://hooks.slack.com/services/...' }),
102
+ * transport: createSlackWebhookTransport({
103
+ * fetch: runtime.fetch,
104
+ * webhookUrl: 'https://hooks.slack.com/services/...',
105
+ * }),
103
106
  * });
104
107
  * ```
105
108
  */
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "portable",
10
10
  "fetch"
11
11
  ],
12
- "version": "1.1.1",
12
+ "version": "1.1.2",
13
13
  "private": false,
14
14
  "license": "MIT",
15
15
  "repository": {
@@ -37,9 +37,9 @@
37
37
  ],
38
38
  "dependencies": {
39
39
  "@fluojs/core": "^1.0.3",
40
+ "@fluojs/di": "^1.0.3",
40
41
  "@fluojs/notifications": "^1.0.1",
41
- "@fluojs/runtime": "^1.1.1",
42
- "@fluojs/di": "^1.0.3"
42
+ "@fluojs/runtime": "^1.1.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "vitest": "^3.2.4"