Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sqs-consumer v11.3.0 is incompatible with @aws-sdk/client-sqs v3.723.0 #555

Closed
devunt opened this issue Jan 8, 2025 · 3 comments · Fixed by #556
Closed

sqs-consumer v11.3.0 is incompatible with @aws-sdk/client-sqs v3.723.0 #555

devunt opened this issue Jan 8, 2025 · 3 comments · Fixed by #556

Comments

@devunt
Copy link

devunt commented Jan 8, 2025

Describe the bug

[email protected] is incompatible with @awsk-sdk/[email protected].

It appears that only the type definition is incompatible. Consuming events works well.

Your minimal, reproducible example

Steps to reproduce

Expected behavior

No type error is reported.

How often does this bug happen?

None

Screenshots or Videos

Type 'import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/SQSClient").SQSClient' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/SQSClient").SQSClient'.
  Types of property 'config' are incompatible.
    Type 'import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/SQSClient").SQSClientResolvedConfig' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/SQSClient").SQSClientResolvedConfig'.
      Type 'SQSClientResolvedConfigType' is not assignable to type 'Required<ClientDefaults>'.
        Types of property 'extensions' are incompatible.
          Type 'import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/runtimeExtensions").RuntimeExtension[]' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/runtimeExtensions").RuntimeExtension[]'.
            Type 'import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/runtimeExtensions").RuntimeExtension' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/runtimeExtensions").RuntimeExtension'.
              Types of property 'configure' are incompatible.
                Type '(extensionConfiguration: import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/extensionConfiguration").SQSExtensionConfiguration) => void' is not assignable to type '(extensionConfiguration: import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/extensionConfiguration").SQSExtensionConfiguration) => void'.
                  Types of parameters 'extensionConfiguration' and 'extensionConfiguration' are incompatible.
                    Type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/dist-types/extensionConfiguration").SQSExtensionConfiguration' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/@aws-sdk/client-sqs/dist-types/extensionConfiguration").SQSExtensionConfiguration'.
                      Types of property 'setHttpAuthSchemeProvider' are incompatible.
                        Types of parameters 'httpAuthSchemeProvider' and 'httpAuthSchemeProvider' are incompatible.
                          Type 'import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme").HttpAuthOption[]' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme").HttpAuthOption[]'.
                            Type 'import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme").HttpAuthOption' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme").HttpAuthOption'.
                              Types of property 'propertiesExtractor' are incompatible.
                                Type '(<TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => { identityProperties?: Record<string, unknown> | undefined; signingProperties?: Record<...> | undefined; }) | undefined' is not assignable to type '(<TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => { identityProperties?: Record<string, unknown> | undefined; signingProperties?: Record<...> | undefined; }) | undefined'. Two different types with this name exist, but they are unrelated.
                                  Type '<TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => { identityProperties?: Record<string, unknown> | undefined; signingProperties?: Record<...> | undefined; }' is not assignable to type '<TConfig extends object, TContext extends HandlerExecutionContext>(config: TConfig, context: TContext) => { identityProperties?: Record<string, unknown> | undefined; signingProperties?: Record<...> | undefined; }'. Two different types with this name exist, but they are unrelated.
                                    Types of parameters 'context' and 'context' are incompatible.
                                      Type 'TContext' is not assignable to type 'HandlerExecutionContext'.
                                        Type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/middleware").HandlerExecutionContext' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/middleware").HandlerExecutionContext'.
                                          Types of property '[SMITHY_CONTEXT_KEY]' are incompatible.
                                            Type '{ [key: string]: unknown; service?: string | undefined; operation?: string | undefined; commandInstance?: import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined; selectedHttpAuthSch...' is not assignable to type '{ [key: string]: unknown; service?: string | undefined; operation?: string | undefined; commandInstance?: import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined; selectedHttpAuthScheme?: import("/Users/finn/workspaces/airtake/node_modules/@...'.
                                              Type '{ [key: string]: unknown; service?: string | undefined; operation?: string | undefined; commandInstance?: import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined; selectedHttpAuthSch...' is not assignable to type '{ [key: string]: unknown; service?: string | undefined; operation?: string | undefined; commandInstance?: import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined; selectedHttpAuthScheme?: import("/Users/finn/workspaces/airtake/node_modules/@...'.
                                                Types of property 'commandInstance' are incompatible.
                                                  Type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any> | undefined'.
                                                    Type 'import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any>' is not assignable to type 'import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/command").Command<any, any, any, any, any>'.
                                                      The types of 'middlewareStack.add' are incompatible between these types.
                                                        Type '{ (middleware: import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules/@smithy/types/dist-types/middleware").InitializeMiddleware<any, any>, options?: (import("/Users/finn/workspaces/airtake/node_modules/sqs-consumer/node_modules/@aws-sdk/client-sqs/node_modules...' is not assignable to type '{ (middleware: import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/middleware").InitializeMiddleware<any, any>, options?: (import("/Users/finn/workspaces/airtake/node_modules/@smithy/types/dist-types/middleware").InitializeHandlerOptions & import("/Users/finn/workspaces/airtake/node_modules/...'.
                                                          Types of parameters 'options' and 'options' are incompatible.
                                                            Type 'SerializeHandlerOptions & AbsoluteLocation' is not assignable to type '(InitializeHandlerOptions & AbsoluteLocation) | undefined'.
                                                              Type 'SerializeHandlerOptions & AbsoluteLocation' is not assignable to type 'InitializeHandlerOptions & AbsoluteLocation'.
                                                                Type 'SerializeHandlerOptions & AbsoluteLocation' is not assignable to type 'InitializeHandlerOptions'.
                                                                  Types of property 'step' are incompatible.
                                                                    Type '"serialize"' is not assignable to type '"initialize"'.ts(2322)

Platform

Dose not matter

Package version

v11.3.0

AWS SDK version

v3.723.0

Additional context

No response

@nicholasgriffintn
Copy link
Member

nicholasgriffintn commented Jan 8, 2025

This is not a bug, that's a (what we would consider a major) version change to the library, we only support versions within a certain range, you can find the version in our package.json.

I would suggest matching that. I'll create a new version but to note, because AWS makes breaking changes in their minor versions, we cannot support all of their releases automatically without an update ourselves.

@nicholasgriffintn nicholasgriffintn changed the title [Bug]: sqs-consumer v11.3.0 is incompatible with @aws-sdk/client-sqs v3.723.0 sqs-consumer v11.3.0 is incompatible with @aws-sdk/client-sqs v3.723.0 Jan 8, 2025
Copy link

github-actions bot commented Jan 8, 2025

🎉 This issue has been resolved in version 11.4.0-canary.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented Jan 8, 2025

🎉 This issue has been resolved in version 11.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants