Skip to content

1.3.0

Latest
Compare
Choose a tag to compare
@mildronize mildronize released this 27 Feb 03:08
· 245 commits to main since this release

What's Changed

1. Add Blob Trigger and Bindings helper function and their types #67

2. Add Service Bus Trigger and Bindings helper function and their types #69

2.1 Add Context.bindingData for trigger type

interface TypedContext {
  bindingData: TypedContextBindingData<T>;
}
If binding type is serviceBusTrigger, bindingData will be below:
export interface ServiceBusTriggerContextBindingData {
  /**
   * Enqueue Time UTC
   */
  enqueuedTimeUtc: any;

  /**
   * Delivery Count
   */
  deliveryCount: any;

  /**
   * Message ID
   */
  messageId: any;
}
If binding type is httpTrigger, bindingData will be below:
export interface HttpTriggerContextBindingData {
  query: {
    [name: string]: any;
  };
  headers: {
    [name: string]: any;
  };
  sys: {
    methodName: string;
    utcNow: string;
    randGuid: string;
  };
}

4. Improve binding helper inline doc of each property #65

Before

CleanShot 2566-02-26 at 10 33 40

After

CleanShot 2566-02-26 at 10 32 55

Affected Binding Helpers

  • binding.http()
  • binding.http_withReturn()
  • binding.timerTrigger()
  • binding.cosmosDBTrigger_v2()
  • binding.cosmosDBTrigger_v4()
  • binding.cosmosDBTrigger()
  • binding.cosmosDB_output_v2()
  • binding.cosmosDB_output_v4()
  • binding.cosmosDB_output()
  • binding.cosmosDB_input_v2()
  • binding.cosmosDB_input_v4()
  • binding.cosmosDB_input()
  • binding.blobTrigger()
  • binding.blob_input()
  • binding.blob_output()
  • binding.serviceBusTrigger()
  • binding.serviceBus_output()

Pull Requests

  • Improve binding helper inline doc of each property by @mildronize in #65
  • Add Blob Trigger and Bindings helper function and their types by @mildronize in #67
  • Add Service Bus Trigger and Bindings helper function and their types by @mildronize in #69

Full Changelog: 1.2.0...1.3.0