Socket
Socket
Sign inDemoInstall

@aws-sdk/core

Package Overview
Dependencies
32
Maintainers
5
Versions
40
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @aws-sdk/core

Core functions & classes shared by multiple AWS SDK clients


Version published
Weekly downloads
13M
decreased by-1.06%
Maintainers
5
Install size
1.64 MB
Created
Weekly downloads
 

Changelog

Source

3.582.0 (2024-05-22)

Bug Fixes

  • client-ec2: ec2 query no longer serialize empty lists (#6119) (d4b286c)
  • lib-storage: call AbortMultipartUpload when failing to CompleteMultipartUpload (#6112) (b5288e6)

Features

  • client-chatbot: This change adds support for tagging Chatbot configurations. (23a0082)
  • client-cloudformation: Added DeletionMode FORCE_DELETE_STACK for deleting a stack that is stuck in DELETE_FAILED state due to resource deletion failure. (6f0caf6)
  • client-kms: This release includes feature to import customer's asymmetric (RSA, ECC and SM2) and HMAC keys into KMS in China. (1489723)
  • client-opensearch: This release adds support for enabling or disabling a data source configured as part of Zero-ETL integration with Amazon S3, by setting its status. (4f00d79)
  • client-wafv2: You can now use Security Lake to collect web ACL traffic data. (0292fb4)
  • clients: update client endpoints as of 2024-05-22 (634eea7)

Readme

Source

@aws-sdk/core

This package provides common or core functionality to the AWS SDK for JavaScript (v3).

You do not need to explicitly install this package, since it will be transitively installed by AWS SDK clients.

@aws-sdk/core submodules

Core submodules are organized for distribution via the package.json exports field.

exports is supported by default by the latest Node.js, webpack, and esbuild. For react-native, it can be enabled via instructions found at reactnative.dev/blog.

Think of @aws-sdk/core as a mono-package within the monorepo. It preserves the benefits of modularization, for example to optimize Node.js initialization speed, while making it easier to have a consistent version of core dependencies, reducing package sprawl when installing an SDK client.

Guide for submodules

  • Each index.ts file corresponding to the pattern ./src/submodules/<MODULE_NAME>/index.ts will be published as a separate dist-cjs bundled submodule index using the Inliner.js build script.
  • create a folder as ./src/submodules/<SUBMODULE> including an index.ts file and a README.md file.
    • The linter will throw an error on missing submodule metadata in package.json and the various tsconfig.json files, but it will automatically fix them if possible.
  • a submodule is equivalent to a standalone @aws-sdk/<pkg> package in that importing it in Node.js will resolve a separate bundle.
  • submodules may not relatively import files from other submodules. Instead, directly use the @scope/pkg/submodule name as the import.
    • The linter will check for this and throw an error.
  • To the extent possible, correctly declaring submodule metadata is validated by the linter in @aws-sdk/core. The linter runs during yarn build and also as yarn lint.

When should I create an @aws-sdk/core/submodule vs. @aws-sdk/new-package?

Keep in mind that the core package is installed by all AWS SDK clients.

If the component functionality is upstream of multiple clients, it is a good candidate for a core submodule. For example, XML serialization.

If the component's functionality is downstream of a client, for example S3 pre-signing, it should be a standalone package with potentially a peer or runtime dependency on an AWS SDK client.

FAQs

Last updated on 22 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc