Skip to content

Conversation

@swapnil-nagar
Copy link
Contributor

@swapnil-nagar swapnil-nagar commented Oct 14, 2025

This PR introduces support for SDK binding through modelBindingData and collectionModelBindingData parameters in the Azure Functions Node.js library, along with ServiceBus trigger enhancements.

Key Changes
Core RPC Data Conversion Enhancement
Added modelBindingData support: Enhanced fromRpcTypedData to handle individual model binding data objects with automatic client creation through ResourceFactoryResolver

Added collectionModelBindingData support: Added support for collections of model binding data objects, processing the first item in the collection as the source
Error handling: Comprehensive error handling with user-friendly messages when extensions library is not registered
Resource factory integration: Integration with @azure/functions-extensions-base for automatic SDK client creation

ServiceBus Trigger Enhancements
Type flexibility: Updated ServiceBusQueueHandler to accept unknown | any for broader message type compatibility
Auto-complete control: Added autoCompleteMessages option for controlling automatic message completion
SDK binding flag: Added sdkBinding boolean option for enabling SDK-based operations

* Adding ServiceBus Trigger Chnages

* Adding ServiceBus Trigger Chnages

* Fixing the unit tests and version update

* Staging the new veriosn
* Adding ServiceBus Trigger Chnages

* Adding ServiceBus Trigger Chnages

* Fixing the unit tests and version update

* Staging the new veriosn
@swapnil-nagar swapnil-nagar changed the title V4.x preview SDK Binding GA Changes Oct 14, 2025
@swapnil-nagar swapnil-nagar marked this pull request as ready for review October 14, 2025 05:56
@swapnil-nagar swapnil-nagar requested a review from a team as a code owner October 14, 2025 05:56
],
"engines": {
"node": ">=18.0"
"node": ">=20.0"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This means that only Node 20 apps will be able to download the latest library version, right? We could also look at bumping the undici major version now (or removing that dependency all together)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lets discuss this in Scrum today, should we bump the version?

"watch": "webpack --watch --mode development"
},
"dependencies": {
"@azure/functions-extensions-base": "0.2.0-preview",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should release a non-preview version of the base extension for GA

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good Catch. I will create a PR there.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants