You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The **AWS SDK for JavaScript v3 beta** is a rewrite of V2 with some great new features. As with version 2, it enables you to easily work with [Amazon Web Services](https://aws.amazon.com/), but has been written in TypeScript and adds several frequently requested features, like modularized packages.
8
+
The **AWS SDK for JavaScript v3 gamma** is a rewrite of V2 with some great new features. As with version 2, it enables you to easily work with [Amazon Web Services](https://aws.amazon.com/), but has been written in TypeScript and adds several frequently requested features, like modularized packages.
9
9
10
-
Many aspects of the SDK have been refactored and cleaned up, in addition to generating service client packages instead of hydrating services at SDK runtime. The v3 beta is your chance to influence the direction of the new AWS SDK for JavaScript. Tell us what you like, tell us what you don’t like by [opening an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). Your feedback matters to us.
10
+
Many aspects of the SDK have been refactored and cleaned up, in addition to generating service client packages instead of hydrating services at SDK runtime. The v3 gamma is your chance to influence the direction of the new AWS SDK for JavaScript. Tell us what you like, tell us what you don’t like by [opening an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). Your feedback matters to us.
11
11
12
12
## Production Readiness
13
13
14
-
This project is in beta. We want feedback from you, and may make breaking changes in future releases while the SDK is still in beta.
14
+
This project is in gamma. We want feedback from you, and may make breaking changes in future releases while the SDK is still in gamma.
15
15
16
16
The new AWS SDK for JavaScript will also be able to run alongside the version 2.x SDK in the same package to allow partial migration to the new product. As we get close to general availability for version 3, we’ll share a more detailed plan on how we’ll support the 2.x line.
17
17
@@ -20,7 +20,7 @@ The new AWS SDK for JavaScript will also be able to run alongside the version 2.
20
20
Let’s walk through setting up a project that depends on DynamoDB from the SDK and makes a simple service call. The following steps use yarn as an example. These steps assume you have Node.js and yarn already installed.
21
21
22
22
1. Create a new Node.js project.
23
-
2. Inside of the project, run: `yarn add @aws-sdk/client-dynamodb@beta`
23
+
2. Inside of the project, run: `yarn add @aws-sdk/client-dynamodb@gamma`
24
24
3. Create a new file called index.js, create a DynamoDB service client and send a request.
If you use tree shaking to reduce bundle size, using non-modular interface will increase the bundle size as compared to using modular interface.
61
61
62
-
<!-- Uncomment when numbers are available for beta clients
62
+
<!-- Uncomment when numbers are available for gamma clients
63
63
In our workshop code, a lambda with DynamoDBClient and a command takes ~18kB while DynamoDB takes ~26 kB ([details](https://github.com/aws-samples/aws-sdk-js-v3-workshop/blob/dc3ad778b04dfe3f8f277dca67162da79c937eca/Exercise1/backend/README.md#reduce-bundle-size-by-just-importing-dynamodb)) -->
64
64
65
65
## New features
@@ -68,21 +68,21 @@ In our workshop code, a lambda with DynamoDBClient and a command takes ~18kB whi
68
68
69
69
The SDK is now split up across multiple packages. The 2.x version of the SDK contained support for every service. This made it very easy to use multiple services in a project. Due to the limitations around reducing the size of the SDK when only using a handful of services or operations, many customers requested having separate packages for each service client. We have also split up the core parts of the SDK so that service clients only pull in what they need. For example, a service sends responses in JSON will no longer need to also have an XML parser as a dependency.
70
70
71
-
For those that were already importing services as sub-modules from the version 2.x SDK, the import statement doesn’t look too different. Here’s an example of importing the AWS Lambda service in version 2.0 of the SDK, and the beta:
71
+
For those that were already importing services as sub-modules from the version 2.x SDK, the import statement doesn’t look too different. Here’s an example of importing the AWS Lambda service in version 2.0 of the SDK, and the gamma:
72
72
73
73
```javascript
74
74
// import the Lambda client constructor in version 2.0 of the SDK
75
75
constLambda=require("aws-sdk/clients/lambda");
76
76
77
-
// import the Lambda client constructor in version 3.0 beta
77
+
// import the Lambda client constructor in version 3.0 gamma
It is also possible to import both versions of the Lambda client by changing the variable name the Lambda constructor is stored in.
82
82
83
83
### API changes
84
84
85
-
We’ve made several public API changes to improve consistency, make the SDK easier to use, and remove deprecated or confusing APIs. The following are some of the big changes included in the new AWS SDK for JavaScript v3 beta.
85
+
We’ve made several public API changes to improve consistency, make the SDK easier to use, and remove deprecated or confusing APIs. The following are some of the big changes included in the new AWS SDK for JavaScript v3 gamma.
86
86
87
87
#### Configuration
88
88
@@ -92,7 +92,7 @@ However, these configurations would first be merged automatically into a copy of
92
92
Also, calling `AWS.config.update({/* params *})` only updated configuration for service clients instantiated after the update call was made, not any existing clients.
93
93
94
94
This behavior was a frequent source of confusion, and made it difficult to add configuration to the global object that only affects a subset of service clients in a forward-compatible way.
95
-
In v3 beta, there is no longer a global configuration managed by the SDK.
95
+
In v3 gamma, there is no longer a global configuration managed by the SDK.
96
96
Configuration must be passed to each service client that is instantiated.
97
97
It is still possible to share the same configuration across multiple clients but that configuration will not be automatically merged with a global state.
98
98
@@ -154,26 +154,26 @@ All clients have been published to NPM and can be installed as described above.
154
154
yarn pack .
155
155
```
156
156
157
-
`yarn pack` will create an archive file in the client package folder, e.g. `aws-sdk-client-dynamodb-v1.0.0-beta.1.tgz`.
157
+
`yarn pack` will create an archive file in the client package folder, e.g. `aws-sdk-client-dynamodb-v1.0.0-gamma.1.tgz`.
158
158
159
159
1. Change directory to the project you are working on and move the archive to the location to store the vendor packages:
0 commit comments