@eventferry/kafka-iam 0.1.0 → 0.2.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.
Files changed (3) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/LICENSE +21 -0
  3. package/package.json +13 -10
package/CHANGELOG.md ADDED
@@ -0,0 +1,18 @@
1
+ # @eventferry/kafka-iam
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - c51fb73: New package: `@eventferry/kafka-iam` — AWS MSK IAM (SASL/OAUTHBEARER over SigV4) helper.
8
+
9
+ `createMskIamSasl({ region })` returns a ready-to-use `sasl` block for `KafkaPublisher` backed by the official `aws-msk-iam-sasl-signer-js` library (optional peer). Supports named profiles, assumed IAM roles, and custom signer DI for tests. Tokens are cached process-locally with a configurable refresh-ahead window (default 60 s on the 15-minute MSK token lifetime), and concurrent refresh attempts dedupe onto a single in-flight `generateAuthToken` call. Transient signer failures clear the in-flight slot so the next call retries cleanly.
10
+
11
+ Zero changes to `@eventferry/kafka` — the helper plugs into the existing `SaslOauthbearerConfig` surface.
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [3e0c5ee]
16
+ - Updated dependencies [ac7a964]
17
+ - Updated dependencies [4007a8e]
18
+ - @eventferry/kafka@3.4.0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026-present Samet GOKTEPE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eventferry/kafka-iam",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "AWS MSK IAM (SASL/OAUTHBEARER over SigV4) helper for @eventferry/kafka",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -17,11 +17,8 @@
17
17
  "dist",
18
18
  "CHANGELOG.md"
19
19
  ],
20
- "scripts": {
21
- "build": "tsup",
22
- "test": "vitest",
23
- "test:run": "vitest run",
24
- "typecheck": "tsc --noEmit"
20
+ "publishConfig": {
21
+ "access": "public"
25
22
  },
26
23
  "keywords": [
27
24
  "outbox",
@@ -48,7 +45,7 @@
48
45
  "node": ">=18"
49
46
  },
50
47
  "dependencies": {
51
- "@eventferry/kafka": "workspace:*"
48
+ "@eventferry/kafka": "3.4.0"
52
49
  },
53
50
  "peerDependencies": {
54
51
  "aws-msk-iam-sasl-signer-js": "^1.0.0"
@@ -59,9 +56,15 @@
59
56
  }
60
57
  },
61
58
  "devDependencies": {
62
- "@eventferry/kafka": "workspace:*",
63
59
  "tsup": "^8.3.5",
64
60
  "typescript": "^5.7.2",
65
- "vitest": "^2.1.8"
61
+ "vitest": "^2.1.8",
62
+ "@eventferry/kafka": "3.4.0"
63
+ },
64
+ "scripts": {
65
+ "build": "tsup",
66
+ "test": "vitest",
67
+ "test:run": "vitest run",
68
+ "typecheck": "tsc --noEmit"
66
69
  }
67
- }
70
+ }