Skip to content

Commit 4c34768

Browse files
authored
Merge branch 'main' into add-signature-v4
2 parents 974c623 + 25e22e0 commit 4c34768

File tree

276 files changed

+8176
-219
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

276 files changed

+8176
-219
lines changed

.projen/deps.json

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ new Readme(project, { org });
3838

3939
new Eslint(project);
4040
new Vitest(project, { sharedSetupFiles: ["vitest.setup.ts"] });
41+
project.addDevDeps("vitest-mock-extended@^2.0.2");
4142

4243
const effectDeps = ["effect@3.10.16"];
4344

@@ -56,7 +57,7 @@ const commons = new TypeScriptLibProject({
5657
name: "commons",
5758
description: "Effectful AWS common library",
5859
deps: ["@smithy/types", "@smithy/smithy-client"],
59-
devDeps: effectDeps,
60+
devDeps: [...effectDeps, "@aws-sdk/middleware-logger"],
6061
peerDeps: commonPeerDeps,
6162
});
6263

README.md

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client-account/CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
11
# @effect-aws/client-account
22

3+
## 1.9.3
4+
5+
### Patch Changes
6+
7+
- [#117](https://github.com/floydspace/effect-aws/pull/117) [`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662) Thanks [@floydspace](https://github.com/floydspace)! - fix service logger, so it respect loglevel configuration within current scope
8+
9+
For example this snipped produced following output Before/After
10+
11+
```typescript
12+
import { S3 } from "@effect-aws/client-s3";
13+
import { Effect, Logger, LogLevel } from "effect";
14+
15+
S3.listBuckets({}).pipe(
16+
Logger.withMinimumLogLevel(LogLevel.Warning),
17+
Effect.tap(() => Effect.logInfo("Done")),
18+
Effect.provide(Logger.structured),
19+
Effect.provide(S3.layer({ logger: true })),
20+
Effect.runPromise,
21+
);
22+
```
23+
24+
Before
25+
26+
```log
27+
timestamp=2025-03-12T22:49:37.007Z level=INFO fiber=#5 message="{
28+
\"clientName\": \"S3Client\",
29+
\"commandName\": \"ListBucketsCommand\",
30+
\"input\": {},
31+
\"output\": {
32+
\"Buckets\": [],
33+
\"Owner\": {
34+
\"ID\": \"<REDACTED>\"
35+
}
36+
},
37+
\"metadata\": {
38+
\"httpStatusCode\": 200,
39+
\"requestId\": \"<REDACTED>\",
40+
\"extendedRequestId\": \"<REDACTED>\",
41+
\"attempts\": 1,
42+
\"totalRetryDelay\": 0
43+
}
44+
}"
45+
{
46+
message: 'Done',
47+
logLevel: 'INFO',
48+
timestamp: '2025-03-12T22:49:37.009Z',
49+
cause: undefined,
50+
annotations: {},
51+
spans: {},
52+
fiberId: '#0'
53+
}
54+
```
55+
56+
After
57+
58+
```log
59+
{
60+
message: 'Done',
61+
logLevel: 'INFO',
62+
timestamp: '2025-03-12T22:51:13.799Z',
63+
cause: undefined,
64+
annotations: {},
65+
spans: {},
66+
fiberId: '#0'
67+
}
68+
```
69+
70+
closes #92
71+
72+
- Updated dependencies [[`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662)]:
73+
- @effect-aws/commons@0.2.0
74+
375
## 1.9.0
476

577
### Minor Changes

packages/client-account/docgen.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client-account/package.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/client-account/src/AccountService.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,14 @@ interface AccountService$ {
226226
export const makeAccountService = Effect.gen(function*() {
227227
const client = yield* Instance.AccountClientInstance;
228228

229-
return Service.fromClientAndCommands<AccountService$>(client, commands, AllServiceErrors);
229+
return Service.fromClientAndCommands<AccountService$>(
230+
client,
231+
commands,
232+
{
233+
errorTags: AllServiceErrors,
234+
resolveClientConfig: AccountServiceConfig.toAccountClientConfig,
235+
},
236+
);
230237
});
231238

232239
/**

packages/client-api-gateway-management-api/CHANGELOG.md

Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,77 @@
11
# @effect-aws/client-api-gateway-management-api
22

3+
## 1.9.3
4+
5+
### Patch Changes
6+
7+
- [#117](https://github.com/floydspace/effect-aws/pull/117) [`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662) Thanks [@floydspace](https://github.com/floydspace)! - fix service logger, so it respect loglevel configuration within current scope
8+
9+
For example this snipped produced following output Before/After
10+
11+
```typescript
12+
import { S3 } from "@effect-aws/client-s3";
13+
import { Effect, Logger, LogLevel } from "effect";
14+
15+
S3.listBuckets({}).pipe(
16+
Logger.withMinimumLogLevel(LogLevel.Warning),
17+
Effect.tap(() => Effect.logInfo("Done")),
18+
Effect.provide(Logger.structured),
19+
Effect.provide(S3.layer({ logger: true })),
20+
Effect.runPromise,
21+
);
22+
```
23+
24+
Before
25+
26+
```log
27+
timestamp=2025-03-12T22:49:37.007Z level=INFO fiber=#5 message="{
28+
\"clientName\": \"S3Client\",
29+
\"commandName\": \"ListBucketsCommand\",
30+
\"input\": {},
31+
\"output\": {
32+
\"Buckets\": [],
33+
\"Owner\": {
34+
\"ID\": \"<REDACTED>\"
35+
}
36+
},
37+
\"metadata\": {
38+
\"httpStatusCode\": 200,
39+
\"requestId\": \"<REDACTED>\",
40+
\"extendedRequestId\": \"<REDACTED>\",
41+
\"attempts\": 1,
42+
\"totalRetryDelay\": 0
43+
}
44+
}"
45+
{
46+
message: 'Done',
47+
logLevel: 'INFO',
48+
timestamp: '2025-03-12T22:49:37.009Z',
49+
cause: undefined,
50+
annotations: {},
51+
spans: {},
52+
fiberId: '#0'
53+
}
54+
```
55+
56+
After
57+
58+
```log
59+
{
60+
message: 'Done',
61+
logLevel: 'INFO',
62+
timestamp: '2025-03-12T22:51:13.799Z',
63+
cause: undefined,
64+
annotations: {},
65+
spans: {},
66+
fiberId: '#0'
67+
}
68+
```
69+
70+
closes #92
71+
72+
- Updated dependencies [[`6989a08`](https://github.com/floydspace/effect-aws/commit/6989a08df041108ad3a2b08272647a20f1a5d662)]:
73+
- @effect-aws/commons@0.2.0
74+
375
## 1.9.0
476

577
### Minor Changes

packages/client-api-gateway-management-api/docgen.json

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)