aws-sdk-js-v3: v3.192.0: breaking change - client.config.endpoint() is no longer automatically set

Checkboxes for prior research

Describe the bug

The S3Client imported from @aws-sdk/client-s3 package has a breaking change in version 3.192.0. Following is the code to reproduce the issue

const { S3Client } = require('@aws-sdk/client-s3')

const client = new S3Client(config)

client.config.endpoint().catch(console.log)

The endpoint method exists in version 3.190.0, but has been removed from the runtime code in 3.192.0.

SDK version number

@aws-sdk/client-s3@3.192.0

Which JavaScript Runtime is this issue in?

Node.js

Details of the browser/Node.js/ReactNative version

v18.11.0

Reproduction Steps

Installed the mentioned version of the client-s3 and execute the following code.

const { S3Client } = require('@aws-sdk/client-s3')

const client = new S3Client(config)

client.config.endpoint().catch(console.log)

Observed Behavior

Exception is raised

TypeError: client.config.endpoint is not a function

Expected Behavior

Should work

Possible Solution

No response

Additional Information/Context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Reactions: 3
  • Comments: 23 (8 by maintainers)

Most upvoted comments

@kuhe So what you are telling me is?

  • You have pushed a breaking change in between a minor version.
  • And did not even mention it in any release notes
  • And the TypeScript typings tells that the endpoint method always exists.

These packages aren’t semantically versioned.

  • update typings and jsdoc to indicate that endpoint will not resolve unless supplied.