You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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
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
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
Platform
Dose not matter
Package version
v11.3.0
AWS SDK version
v3.723.0
Additional context
No response
The text was updated successfully, but these errors were encountered: