aws-sdk-js-v3: v3.192.0: breaking change - client.config.endpoint() is no longer automatically set
Checkboxes for prior research
- I’ve gone through Developer Guide and API reference
- I’ve checked AWS Forums and StackOverflow.
- I’ve searched for previous similar issues and didn’t find any solution.
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)
@kuhe So what you are telling me is?
endpointmethod always exists.These packages aren’t semantically versioned.
endpointwill not resolve unless supplied.