Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
73 changes: 73 additions & 0 deletions .changeset/young-doors-compete.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
---
"@effect-aws/client-api-gateway-management-api": minor
"@effect-aws/client-cognito-identity-provider": minor
"@effect-aws/client-opensearch-serverless": minor
"@effect-aws/client-iot-jobs-data-plane": minor
"@effect-aws/client-timestream-influxdb": minor
"@effect-aws/client-cloudwatch-events": minor
"@effect-aws/client-timestream-query": minor
"@effect-aws/client-timestream-write": minor
"@effect-aws/client-bedrock-runtime": minor
"@effect-aws/client-cloudwatch-logs": minor
"@effect-aws/client-iot-events-data": minor
"@effect-aws/client-secrets-manager": minor
"@effect-aws/client-api-gateway-v2": minor
"@effect-aws/client-cloudformation": minor
"@effect-aws/client-iot-data-plane": minor
"@effect-aws/client-data-pipeline": minor
"@effect-aws/client-organizations": minor
"@effect-aws/client-auto-scaling": minor
"@effect-aws/client-iot-wireless": minor
"@effect-aws/client-kafkaconnect": minor
"@effect-aws/client-api-gateway": minor
"@effect-aws/client-cloudsearch": minor
"@effect-aws/client-elasticache": minor
"@effect-aws/client-eventbridge": minor
"@effect-aws/client-cloudtrail": minor
"@effect-aws/client-cloudwatch": minor
"@effect-aws/client-codedeploy": minor
"@effect-aws/client-iot-events": minor
"@effect-aws/client-opensearch": minor
"@effect-aws/powertools-logger": minor
"@effect-aws/powertools-tracer": minor
"@effect-aws/client-scheduler": minor
"@effect-aws/client-dynamodb": minor
"@effect-aws/client-firehose": minor
"@effect-aws/client-textract": minor
"@effect-aws/secrets-manager": minor
"@effect-aws/client-account": minor
"@effect-aws/client-bedrock": minor
"@effect-aws/client-kinesis": minor
"@effect-aws/client-athena": minor
"@effect-aws/client-lambda": minor
"@effect-aws/client-kafka": minor
"@effect-aws/http-handler": minor
"@effect-aws/client-dsql": minor
"@effect-aws/client-glue": minor
"@effect-aws/client-ec2": minor
"@effect-aws/client-ecr": minor
"@effect-aws/client-ecs": minor
"@effect-aws/client-iam": minor
"@effect-aws/client-iot": minor
"@effect-aws/client-ivs": minor
"@effect-aws/client-kms": minor
"@effect-aws/client-rds": minor
"@effect-aws/client-ses": minor
"@effect-aws/client-sfn": minor
"@effect-aws/client-sns": minor
"@effect-aws/client-sqs": minor
"@effect-aws/client-ssm": minor
"@effect-aws/client-sts": minor
"@effect-aws/client-mq": minor
"@effect-aws/client-s3": minor
"@effect-aws/dynamodb": minor
"@effect-aws/commons": minor
"@effect-aws/lambda": minor
"@effect-aws/dsql": minor
"@effect-aws/ssm": minor
"@effect-aws/s3": minor
---

upgrade to named imports in all packages for better tree shaking

closes [#196](https://github.com/floydspace/effect-aws/issues/196)
4 changes: 3 additions & 1 deletion packages/client-account/src/AccountClientInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @since 1.0.0
*/
import { AccountClient } from "@aws-sdk/client-account";
import { Context, Effect, Layer } from "effect";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as AccountServiceConfig from "./AccountServiceConfig.js";

/**
Expand Down
10 changes: 6 additions & 4 deletions packages/client-account/src/AccountService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ import {
type StartPrimaryEmailUpdateCommandInput,
type StartPrimaryEmailUpdateCommandOutput,
} from "@aws-sdk/client-account";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Service from "@effect-aws/commons/Service";
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
import type * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import type * as Stream from "effect/Stream";
import * as Instance from "./AccountClientInstance.js";
import * as AccountServiceConfig from "./AccountServiceConfig.js";
Expand Down
6 changes: 4 additions & 2 deletions packages/client-account/src/AccountServiceConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* @since 1.0.0
*/
import type { AccountClientConfig } from "@aws-sdk/client-account";
import { ServiceLogger } from "@effect-aws/commons";
import { Effect, FiberRef, Layer } from "effect";
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import * as Effect from "effect/Effect";
import * as FiberRef from "effect/FiberRef";
import { dual } from "effect/Function";
import { globalValue } from "effect/GlobalValue";
import * as Layer from "effect/Layer";
import type { AccountService } from "./AccountService.js";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client-account/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
TooManyRequestsException,
ValidationException,
} from "@aws-sdk/client-account";
import type { TaggedException } from "@effect-aws/commons";
import type { TaggedException } from "@effect-aws/commons/Errors";

export const AllServiceErrors = [
"AccessDeniedException",
Expand Down
8 changes: 5 additions & 3 deletions packages/client-account/test/Account.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import {
} from "@aws-sdk/client-account";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-account/dist-cjs/runtimeConfig";
import { Account, AccountServiceConfig } from "@effect-aws/client-account";
import { SdkError } from "@effect-aws/commons";
import { AccountService as Account } from "@effect-aws/client-account/AccountService";
import * as AccountServiceConfig from "@effect-aws/client-account/AccountServiceConfig";
import { SdkError } from "@effect-aws/commons/Errors";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import { pipe } from "effect/Function";
import { afterEach, describe, expect, it, vi } from "vitest";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @since 1.0.0
*/
import { ApiGatewayManagementApiClient } from "@aws-sdk/client-apigatewaymanagementapi";
import { Context, Effect, Layer } from "effect";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ import {
type PostToConnectionCommandInput,
type PostToConnectionCommandOutput,
} from "@aws-sdk/client-apigatewaymanagementapi";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Service from "@effect-aws/commons/Service";
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
import type * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as Instance from "./ApiGatewayManagementApiClientInstance.js";
import * as ApiGatewayManagementApiServiceConfig from "./ApiGatewayManagementApiServiceConfig.js";
import type { ForbiddenError, GoneError, LimitExceededError, PayloadTooLargeError, SdkError } from "./Errors.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* @since 1.0.0
*/
import type { ApiGatewayManagementApiClientConfig } from "@aws-sdk/client-apigatewaymanagementapi";
import { ServiceLogger } from "@effect-aws/commons";
import { Effect, FiberRef, Layer } from "effect";
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import * as Effect from "effect/Effect";
import * as FiberRef from "effect/FiberRef";
import { dual } from "effect/Function";
import { globalValue } from "effect/GlobalValue";
import * as Layer from "effect/Layer";
import type { ApiGatewayManagementApiService } from "./ApiGatewayManagementApiService.js";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client-api-gateway-management-api/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import type {
LimitExceededException,
PayloadTooLargeException,
} from "@aws-sdk/client-apigatewaymanagementapi";
import type { TaggedException } from "@effect-aws/commons";
import type { TaggedException } from "@effect-aws/commons/Errors";

export const AllServiceErrors = [
"ForbiddenException",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,12 @@ import {
} from "@aws-sdk/client-apigatewaymanagementapi";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-apigatewaymanagementapi/dist-cjs/runtimeConfig";
import {
ApiGatewayManagementApi,
ApiGatewayManagementApiServiceConfig,
} from "@effect-aws/client-api-gateway-management-api";
import { SdkError } from "@effect-aws/commons";
import { ApiGatewayManagementApiService as ApiGatewayManagementApi } from "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiService";
import * as ApiGatewayManagementApiServiceConfig from "@effect-aws/client-api-gateway-management-api/ApiGatewayManagementApiServiceConfig";
import { SdkError } from "@effect-aws/commons/Errors";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import { pipe } from "effect/Function";
import { afterEach, describe, expect, it, vi } from "vitest";

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @since 1.0.0
*/
import { ApiGatewayV2Client } from "@aws-sdk/client-apigatewayv2";
import { Context, Effect, Layer } from "effect";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js";

/**
Expand Down
10 changes: 6 additions & 4 deletions packages/client-api-gateway-v2/src/ApiGatewayV2Service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -315,10 +315,12 @@ import {
type UpdateVpcLinkCommandInput,
type UpdateVpcLinkCommandOutput,
} from "@aws-sdk/client-apigatewayv2";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Service from "@effect-aws/commons/Service";
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
import type * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import type * as Stream from "effect/Stream";
import * as Instance from "./ApiGatewayV2ClientInstance.js";
import * as ApiGatewayV2ServiceConfig from "./ApiGatewayV2ServiceConfig.js";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* @since 1.0.0
*/
import type { ApiGatewayV2ClientConfig } from "@aws-sdk/client-apigatewayv2";
import { ServiceLogger } from "@effect-aws/commons";
import { Effect, FiberRef, Layer } from "effect";
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import * as Effect from "effect/Effect";
import * as FiberRef from "effect/FiberRef";
import { dual } from "effect/Function";
import { globalValue } from "effect/GlobalValue";
import * as Layer from "effect/Layer";
import type { ApiGatewayV2Service } from "./ApiGatewayV2Service.js";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client-api-gateway-v2/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import type {
NotFoundException,
TooManyRequestsException,
} from "@aws-sdk/client-apigatewayv2";
import type { TaggedException } from "@effect-aws/commons";
import type { TaggedException } from "@effect-aws/commons/Errors";

export const AllServiceErrors = [
"AccessDeniedException",
Expand Down
8 changes: 5 additions & 3 deletions packages/client-api-gateway-v2/test/ApiGatewayV2.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import {
} from "@aws-sdk/client-apigatewayv2";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-apigatewayv2/dist-cjs/runtimeConfig";
import { ApiGatewayV2, ApiGatewayV2ServiceConfig } from "@effect-aws/client-api-gateway-v2";
import { SdkError } from "@effect-aws/commons";
import { ApiGatewayV2Service as ApiGatewayV2 } from "@effect-aws/client-api-gateway-v2/ApiGatewayV2Service";
import * as ApiGatewayV2ServiceConfig from "@effect-aws/client-api-gateway-v2/ApiGatewayV2ServiceConfig";
import { SdkError } from "@effect-aws/commons/Errors";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import { pipe } from "effect/Function";
import { afterEach, describe, expect, it, vi } from "vitest";

Expand Down
4 changes: 3 additions & 1 deletion packages/client-api-gateway/src/APIGatewayClientInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @since 1.0.0
*/
import { APIGatewayClient } from "@aws-sdk/client-api-gateway";
import { Context, Effect, Layer } from "effect";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as APIGatewayServiceConfig from "./APIGatewayServiceConfig.js";

/**
Expand Down
10 changes: 6 additions & 4 deletions packages/client-api-gateway/src/APIGatewayService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -389,10 +389,12 @@ import {
type UpdateVpcLinkCommandInput,
type UpdateVpcLinkCommandOutput,
} from "@aws-sdk/client-api-gateway";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Service from "@effect-aws/commons/Service";
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
import type * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import type * as Stream from "effect/Stream";
import * as Instance from "./APIGatewayClientInstance.js";
import * as APIGatewayServiceConfig from "./APIGatewayServiceConfig.js";
Expand Down
6 changes: 4 additions & 2 deletions packages/client-api-gateway/src/APIGatewayServiceConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* @since 1.0.0
*/
import type { APIGatewayClientConfig } from "@aws-sdk/client-api-gateway";
import { ServiceLogger } from "@effect-aws/commons";
import { Effect, FiberRef, Layer } from "effect";
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import * as Effect from "effect/Effect";
import * as FiberRef from "effect/FiberRef";
import { dual } from "effect/Function";
import { globalValue } from "effect/GlobalValue";
import * as Layer from "effect/Layer";
import type { APIGatewayService } from "./APIGatewayService.js";

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/client-api-gateway/src/Errors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import type {
TooManyRequestsException,
UnauthorizedException,
} from "@aws-sdk/client-api-gateway";
import type { TaggedException } from "@effect-aws/commons";
import type { TaggedException } from "@effect-aws/commons/Errors";

export const AllServiceErrors = [
"BadRequestException",
Expand Down
8 changes: 5 additions & 3 deletions packages/client-api-gateway/test/APIGateway.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@ import {
} from "@aws-sdk/client-api-gateway";
// @ts-ignore
import * as runtimeConfig from "@aws-sdk/client-api-gateway/dist-cjs/runtimeConfig";
import { APIGateway, APIGatewayServiceConfig } from "@effect-aws/client-api-gateway";
import { SdkError } from "@effect-aws/commons";
import { APIGatewayService as APIGateway } from "@effect-aws/client-api-gateway/APIGatewayService";
import * as APIGatewayServiceConfig from "@effect-aws/client-api-gateway/APIGatewayServiceConfig";
import { SdkError } from "@effect-aws/commons/Errors";
import { mockClient } from "aws-sdk-client-mock";
import { Effect, Exit } from "effect";
import * as Effect from "effect/Effect";
import * as Exit from "effect/Exit";
import { pipe } from "effect/Function";
import { afterEach, describe, expect, it, vi } from "vitest";

Expand Down
4 changes: 3 additions & 1 deletion packages/client-athena/src/AthenaClientInstance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
* @since 1.0.0
*/
import { AthenaClient } from "@aws-sdk/client-athena";
import { Context, Effect, Layer } from "effect";
import * as Context from "effect/Context";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import * as AthenaServiceConfig from "./AthenaServiceConfig.js";

/**
Expand Down
10 changes: 6 additions & 4 deletions packages/client-athena/src/AthenaService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,10 +230,12 @@ import {
type UpdateWorkGroupCommandInput,
type UpdateWorkGroupCommandOutput,
} from "@aws-sdk/client-athena";
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
import { Service } from "@effect-aws/commons";
import type { Cause } from "effect";
import { Effect, Layer } from "effect";
import * as Service from "@effect-aws/commons/Service";
import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
import type * as Cause from "effect/Cause";
import * as Effect from "effect/Effect";
import * as Layer from "effect/Layer";
import type * as Stream from "effect/Stream";
import * as Instance from "./AthenaClientInstance.js";
import * as AthenaServiceConfig from "./AthenaServiceConfig.js";
Expand Down
6 changes: 4 additions & 2 deletions packages/client-athena/src/AthenaServiceConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
* @since 1.0.0
*/
import type { AthenaClientConfig } from "@aws-sdk/client-athena";
import { ServiceLogger } from "@effect-aws/commons";
import { Effect, FiberRef, Layer } from "effect";
import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
import * as Effect from "effect/Effect";
import * as FiberRef from "effect/FiberRef";
import { dual } from "effect/Function";
import { globalValue } from "effect/GlobalValue";
import * as Layer from "effect/Layer";
import type { AthenaService } from "./AthenaService.js";

/**
Expand Down
Loading
Loading