aws-sdk 2.1692.0 → 2.1693.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.
package/README.md CHANGED
@@ -1,209 +1,30 @@
1
- # AWS SDK for JavaScript
1
+ # AWS SDK for JavaScript (v2)
2
2
 
3
3
  [![NPM version](https://img.shields.io/npm/v/aws-sdk.svg)](https://www.npmjs.com/package/aws-sdk)
4
4
 
5
- ## In Maintenance Mode as of September 8, 2024
5
+ ## 🚫 End-of-support as of **September 8, 2025**
6
6
 
7
- The AWS SDK for JavaScript v2 [has entered][v2-maintenance-mode] maintenance mode on **September 8, 2024** and will be reaching end-of-support on **September 8, 2025**. During maintenance mode, AWS will limit SDK releases to address critical bug fixes and security issues only. The SDK will not receive API updates for new or existing services, or be updated to support new regions.
7
+ The AWS SDK for JavaScript v2 has reached [end-of-support][v2-end-of-support] on **September 8, 2025**.
8
+ It will no longer receive updates or releases. Previously published versions are available on npm at
9
+ [aws-sdk][], and source code remains on GitHub at [aws/aws-sdk-js][].
8
10
 
9
- We recommend that you migrate to [AWS SDK for JavaScript v3][aws-sdk-js-v3].
10
- For dates, additional details, and information on how to migrate, please refer to the linked announcement.
11
-
12
- The **AWS SDK for JavaScript v3** is the latest and recommended version,
13
- which has been GA since December 2020. Here is [why and how you should use
14
- **AWS SDK for JavaScript v3**][v3-recommended-blog]. You can try our migration scripts in [aws-sdk-js-codemod][aws-sdk-js-codemod] to migrate
15
- your application from v2 to v3.
11
+ We recommend that you migrate to [AWS SDK for JavaScript v3][v3-developer-guide], which has been GA
12
+ since December 2020. Here is [why and how you should use it][v3-recommended-blog]. You can try
13
+ migration scripts in [aws-sdk-js-codemod][] to migrate your application from v2 to v3.
16
14
 
17
15
  To get help with your migration, please follow our general guidelines to
18
- [open an issue][v3-new-issue] and choose [guidance][open-issue-v3-guidance].
16
+ [open an issue][v3-new-issue-migration].
19
17
  To give feedback on and report issues in the v3 repo, please refer to
20
18
  [Giving feedback and contributing][v3-contributing].
21
19
 
22
- Watch this README and the [AWS Developer Tools Blog][aws-devtools-blog]
23
- for updates and announcements regarding the maintenance plans and timelines.
24
-
25
- A maintenance mode message may be emitted by this package on startup.
26
- To suppress this message, use an environment variable:
27
-
28
- ```sh
29
- AWS_SDK_JS_SUPPRESS_MAINTENANCE_MODE_MESSAGE=1 node my_program.js
30
- ```
31
-
32
- or a JavaScript setting as follows:
33
- ```js
34
- var SDK = require('aws-sdk');
35
- require('aws-sdk/lib/maintenance_mode_message').suppress = true;
36
- ```
37
-
38
- [v3-new-issue]: https://github.com/aws/aws-sdk-js-v3/issues/new?assignees=&labels=needs-triage%2Cv2-v3-inconsistency&projects=&template=v2-to-v3-migration.yml&title=MIGRATION+ISSUE%3A+%5BYour+Title+Here%5D
39
- [v2-maintenance-mode]: https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-javascript-v2
40
- [v3-recommended-blog]: https://aws.amazon.com/blogs/developer/why-and-how-you-should-use-aws-sdk-for-javascript-v3-on-node-js-18/
41
- [v3-contributing]: https://github.com/aws/aws-sdk-js-v3#giving-feedback-and-contributing
42
- [aws-sdk-js-v3]: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html
43
- [aws-devtools-blog]: https://aws.amazon.com/blogs/developer/
44
- [open-issue-v3-guidance]: https://github.com/aws/aws-sdk-js-v3/issues/new?assignees=&labels=guidance%2C+needs-triage&template=---questions---help.md&title=
45
20
  [aws-sdk-js-codemod]: https://www.npmjs.com/package/aws-sdk-js-codemod
46
-
47
- ## Table of Contents:
48
- * [Getting Started](#getting-Started)
49
- * [Getting Help](#getting-help)
50
- * [Contributing](#contributing)
51
-
52
- ## Getting Started
53
-
54
- ## How To Install
55
-
56
- ### In the Browser
57
-
58
- To use the SDK in the browser, simply add the following script tag to your
59
- HTML pages:
60
-
61
- <script src="https://sdk.amazonaws.com/js/aws-sdk-2.1692.0.min.js"></script>
62
-
63
- You can also build a custom browser SDK with your specified set of AWS services.
64
- This can allow you to reduce the SDK's size, specify different API versions of
65
- services, or use AWS services that don't currently support CORS if you are
66
- working in an environment that does not enforce CORS. To get started:
67
-
68
- http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/building-sdk-for-browsers.html
69
-
70
- The AWS SDK is also compatible with [browserify](http://browserify.org).
71
-
72
- For browser-based web, mobile and hybrid apps, you can use [AWS Amplify Library](https://aws.github.io/aws-amplify/?utm_source=aws-js-sdk&utm_campaign=browser) which extends the AWS SDK and provides an easier and declarative interface.
73
-
74
- ### In Node.js
75
-
76
- The preferred way to install the AWS SDK for Node.js is to use the
77
- [npm](http://npmjs.org) package manager for Node.js. Simply type the following
78
- into a terminal window:
79
-
80
- ```sh
81
- npm install aws-sdk
82
- ```
83
-
84
- ### In React Native
85
- To use the SDK in a react native project, first install the SDK using npm:
86
-
87
- ```sh
88
- npm install aws-sdk
89
- ```
90
-
91
- Then within your application, you can reference the react native compatible version of the SDK with the following:
92
-
93
- ```javascript
94
- var AWS = require('aws-sdk/dist/aws-sdk-react-native');
95
- ```
96
-
97
- Alternatively, you can use [AWS Amplify Library](https://aws.github.io/aws-amplify/media/react_native_guide?utm_source=aws-js-sdk&utm_campaign=react-native) which extends AWS SDK and provides React Native UI components and CLI support to work with AWS services.
98
-
99
- ### Using Bower
100
-
101
- You can also use [Bower](http://bower.io) to install the SDK by typing the
102
- following into a terminal window:
103
-
104
- ```sh
105
- bower install aws-sdk-js
106
- ```
107
-
108
- ## Usage with TypeScript
109
- The AWS SDK for JavaScript bundles TypeScript definition files for use in TypeScript projects and to support tools that can read `.d.ts` files.
110
- Our goal is to keep these TypeScript definition files updated with each release for any public api.
111
-
112
- ### Pre-requisites
113
- Before you can begin using these TypeScript definitions with your project, you need to make sure your project meets a few of these requirements:
114
-
115
- * Use latest version of TypeScript. We recommend 4.x+
116
- * Includes the TypeScript definitions for node. You can use npm to install this by typing the following into a terminal window:
117
-
118
- ```sh
119
- npm install --save-dev @types/node
120
- ```
121
-
122
- * If you are targeting at es5 or older ECMA standards, your `tsconfig.json` has to include `'es5'` and `'es2015.promise'` under `compilerOptions.lib`.
123
- See [tsconfig.json](https://github.com/aws/aws-sdk-js/blob/master/ts/tsconfig.json) for an example.
124
-
125
- ### In the Browser
126
- To use the TypeScript definition files with the global `AWS` object in a front-end project, add the following line to the top of your JavaScript file:
127
-
128
- ```javascript
129
- /// <reference types="aws-sdk" />
130
- ```
131
-
132
- This will provide support for the global `AWS` object.
133
-
134
- ### In Node.js
135
- To use the TypeScript definition files within a Node.js project, simply import `aws-sdk` as you normally would.
136
-
137
- In a TypeScript file:
138
-
139
- ```javascript
140
- // import entire SDK
141
- import AWS from 'aws-sdk';
142
- // import AWS object without services
143
- import AWS from 'aws-sdk/global';
144
- // import individual service
145
- import S3 from 'aws-sdk/clients/s3';
146
- ```
147
-
148
- **NOTE:** You need to add `"esModuleInterop": true` to compilerOptions of your `tsconfig.json`. If not possible, use like `import * as AWS from 'aws-sdk'`.
149
-
150
- In a JavaScript file:
151
-
152
- ```javascript
153
- // import entire SDK
154
- var AWS = require('aws-sdk');
155
- // import AWS object without services
156
- var AWS = require('aws-sdk/global');
157
- // import individual service
158
- var S3 = require('aws-sdk/clients/s3');
159
- ```
160
-
161
- ### With React
162
-
163
- To create React applications with AWS SDK, you can use [AWS Amplify Library](https://aws.github.io/aws-amplify/media/react_guide?utm_source=aws-js-sdk&utm_campaign=react) which provides React components and CLI support to work with AWS services.
164
-
165
- ### With Angular
166
- Due to the SDK's reliance on node.js typings, you may encounter compilation
167
- [issues](https://github.com/aws/aws-sdk-js/issues/1271) when using the
168
- typings provided by the SDK in an Angular project created using the Angular CLI.
169
-
170
- To resolve these issues, either add `"types": ["node"]` to the project's `tsconfig.app.json`
171
- file, or remove the `"types"` field entirely.
172
-
173
- [AWS Amplify Library](https://aws.github.io/aws-amplify/media/angular_guide?utm_source=aws-js-sdk&utm_campaign=angular) provides Angular components and CLI support to work with AWS services.
174
-
175
- ### Known Limitations
176
- There are a few known limitations with the bundled TypeScript definitions at this time:
177
-
178
- * Service client typings reflect the latest `apiVersion`, regardless of which `apiVersion` is specified when creating a client.
179
- * Service-bound parameters use the `any` type.
180
-
181
- # Getting Help
182
-
183
- The best way to interact with our team is through GitHub.
184
- You can [open an issue](https://github.com/aws/aws-sdk-js/issues/new/choose) and choose from one of our templates for
185
- [bug reports](https://github.com/aws/aws-sdk-js/issues/new?assignees=&labels=bug%2C+needs-triage&template=---bug-report.md&title=),
186
- [feature requests](https://github.com/aws/aws-sdk-js/issues/new?assignees=&labels=feature-request&template=---feature-request.md&title=)
187
- or [guidance](https://github.com/aws/aws-sdk-js/issues/new?assignees=&labels=guidance%2C+needs-triage&template=---questions---help.md&title=).
188
- You may also find help on community resources such as [StackOverFlow](https://stackoverflow.com/questions/tagged/aws-sdk-js) with the tag #aws-sdk-js.
189
- If you have a support plan with [AWS Support](https://aws.amazon.com/premiumsupport/), you can also create a new support case.
190
-
191
- Please make sure to check out our resources too before opening an issue:
192
- * Our [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/welcome.html) and [API reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/latest/)
193
- * Our [Changelog](https://github.com/aws/aws-sdk-js/blob/master/CHANGELOG.md) for recent changes.
194
- * Our [code examples](https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/sdk-code-samples.html).
195
-
196
- Please see [SERVICES.md](https://github.com/aws/aws-sdk-js/blob/master/SERVICES.md) for a list of supported services.
197
-
198
- # Maintenance and support for SDK major versions
199
- For information about maintenance and support for SDK major versions and their underlying dependencies, see the following in the [AWS SDKs and Tools Shared Configuration and Credentials Reference Guide](https://docs.aws.amazon.com/credref/latest/refdocs/overview.html):
200
- * [AWS SDKs and Tools Maintenance Policy](https://docs.aws.amazon.com/credref/latest/refdocs/maint-policy.html)
201
- * [AWS SDKs and Tools Version Support Matrix](https://docs.aws.amazon.com/credref/latest/refdocs/version-support-matrix.html)
202
-
203
-
204
-
205
- # Contributing
206
- We welcome community contributions and pull requests. See [CONTRIBUTING.md](https://github.com/aws/aws-sdk-js/blob/master/CONTRIBUTING.md) for information on how to set up a development environment and submit code.
21
+ [aws-sdk]: https://www.npmjs.com/package/aws-sdk
22
+ [aws/aws-sdk-js]: https://github.com/aws/aws-sdk-js
23
+ [v2-end-of-support]: https://aws.amazon.com/blogs/developer/announcing-end-of-support-for-aws-sdk-for-javascript-v2
24
+ [v3-contributing]: https://github.com/aws/aws-sdk-js-v3#giving-feedback-and-contributing
25
+ [v3-developer-guide]: https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html
26
+ [v3-new-issue-migration]: https://github.com/aws/aws-sdk-js-v3/issues/new?assignees=&labels=needs-triage%2Cv2-v3-inconsistency&projects=&template=v2-to-v3-migration.yml&title=MIGRATION+ISSUE%3A+%5BYour+Title+Here%5D
27
+ [v3-recommended-blog]: https://aws.amazon.com/blogs/developer/why-and-how-you-should-use-aws-sdk-for-javascript-v3-on-node-js-18/
207
28
 
208
29
  ## License
209
30