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

Update dependency @azure/functions to v4.6.0 #11

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Feb 1, 2024

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
@azure/functions 4.0.0-alpha.11 -> 4.6.0 age adoption passing confidence

Release Notes

Azure/azure-functions-nodejs-library (@​azure/functions)

v4.6.0

Compare Source

Fixed

Full Changelog: Azure/azure-functions-nodejs-library@v4.5.1...v4.6.0

v4.5.1

Compare Source

Fixed
  • Fixed undefined HTTP params when streaming is enabled #​285

v4.5.0

Compare Source

Added
  • Support for log hooks #​228. This feature requires Azure Functions Host v4.34+
  • Allow specifying worker capabilities during setup #​255
Fixed
  • Retry options were ignored #​250

v4.4.0

Compare Source

Added
Changed
  • The values of some system-generated request headers have changed when using the preview http streams feature. These values should now match the behavior when not using http streams.

v4.3.0

Compare Source

Added
  • Preview support for HTTP Streams. Learn more in our blog post 🎉
Fixed

v4.2.0

Compare Source

Added
  • clone() method to HttpRequest and HttpResponse #​207

v4.1.0

Compare Source

Added
  • Pre-invocation, post-invocation, app-start, and app-terminate hooks using app.hook. #​7
  • Warmup trigger #​176
  • connection property to EventGridOutputOptions #​177
Fixed
  • Bug where output isn't set if used in both extraOutput and return #​179

v4.0.1

Compare Source

Add link to blog post and discussion to README

v4.0.0

Compare Source

The new Node.js programming model is now Generally Available! 🎉 This changelog is meant as a detailed list of changes in the new version. See the official upgrade guide for a less detailed, more user-friendly list of the changes.

Added
  • Support registering functions directly in your code instead of in function.json files #​569 and #​480
  • Allow classes like InvocationContext and HttpRequest to be constructed in test environments outside the Azure Functions runtime
Changed
  • Update minimum version of Node.js to 18.x
  • Update minimum version of TypeScript to 4.x
  • Switch the order of arguments. For example, (context, request) is now (request, context) #​34
  • Simplify context object #​204
    • Rename Context to InvocationContext
    • Remove context.done(). We assume your function (async or sync) is done as soon as it returns
    • Remove context.executionContext. You can find functionName and retryContext on the root context object instead
    • Remove context.bindingDefinitions in favor of context.options
    • Remove context.log sub-methods (context.log.error/context.log.warn/etc.) in favor of methods on the root context object (context.error/context.warn/etc.). Also Remove the verbose option in favor of trace and debug to match Node.js's console methods
    • Remove context.req, context,res, and context.bindings. The primary input is always an argument to your function, the primary output is always the return value of your function, and everything else can be accessed on context.extraInputs or context.extraOutputs
    • Clean up context.bindingMetadata
      • Rename to context.triggerMetadata
      • Remove legacy sys property
      • Remove logic that was recursively attempting to convert objects from rpc values, causing #​607
      • Make camel-case logic consistent so that it applies to the whole object - specifically including arrays which were previously excluded
  • Remove http classes that were unique to Azure Functions in favor of new classes representing a subset of the fetch standard based on the undici npm package.
    • Rename Request to HttpRequest
      • Change query from type HttpRequestQuery to Node.js core type URLSearchParams
    • Remove HttpResponseSimple/HttpResponseFull/HttpResponse types in favor of HttpResponse class and HttpResponseInit interface
      • Remove statusCode in favor of status
      • Remove end, send, sendStatus, and json. These were callback methods based on context.done() which is no longer supported
      • Remove header-related methods (setHeader, header, set, getHeader, get, removeHeader, type) from base response object. You must use response.headers for any header-related methods
    • Change headers from type HttpRequestHeaders/HttpResponseHeaders to fetch standard type Headers
    • Remove body properties body, rawBody, bufferBody, and parseFormBody() in favor of fetch standard methods arrayBuffer(), blob(), formData(), json(), and text()
  • Handle all falsy values appropriately. Treat it as data to be passed along instead of occasionally converting it to null #​388
  • Remove setup() method. v4 of the programming model is automatically setup when you register any function from the app object

v4.0.0-alpha.13

Added
  • Support for SQL input and output bindings #​88
  • Support for table input and output bindings #​146

v4.0.0-alpha.12

Compare Source

Added
  • Support for several configurations when registering a function:
    • Retry policy #​73
    • Service bus trigger cardinality setting for batching messages #​129
    • Storage blog trigger source setting for EventGrid support #​131
Fixed
  • Cleaned up inaccurate Cosmos DB types #​127

Configuration

📅 Schedule: Branch creation - "after 7am and before 11am every weekday" in timezone Europe/London, Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate bot requested a review from a team as a code owner February 1, 2024 09:55
@renovate renovate bot added the dependencies label Feb 1, 2024
@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (sbox)

Plan: 0 to add, 6 to change, 0 to destroy.
  • Update
    • azurerm_resource_group.this
    • azurerm_service_plan.this
    • azurerm_storage_account.this
    • azurerm_user_assigned_identity.this
    • azurerm_windows_function_app.this
    • module.application_insights.azurerm_application_insights.this
Change Result (Click me)
  # azurerm_resource_group.this will be updated in-place
  ~ resource "azurerm_resource_group" "this" {
        id       = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox"
        name     = "alerts-slack-sbox"
      ~ tags     = {
          - "application"  = "core"
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          - "businessArea" = "CFT"
          - "criticality"  = "Low"
          - "environment"  = "sandbox"
          - "expiresAfter" = "2024-03-03"
          - "startupMode"  = "always"
        } -> (known after apply)
        # (1 unchanged attribute hidden)
    }

  # azurerm_service_plan.this will be updated in-place
  ~ resource "azurerm_service_plan" "this" {
        id                           = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox/providers/Microsoft.Web/serverFarms/alerts-slack-sbox"
        name                         = "alerts-slack-sbox"
      ~ tags                         = {
          - "application"  = "core"
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          - "businessArea" = "CFT"
          - "criticality"  = "Low"
          - "environment"  = "sandbox"
          - "expiresAfter" = "2024-03-03"
          - "startupMode"  = "always"
        } -> (known after apply)
        # (10 unchanged attributes hidden)
    }

  # azurerm_storage_account.this will be updated in-place
  ~ resource "azurerm_storage_account" "this" {
        id                                = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox/providers/Microsoft.Storage/storageAccounts/alertsslacksbox"
        name                              = "alertsslacksbox"
      ~ tags                              = {
          - "application"  = "core"
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          - "businessArea" = "CFT"
          - "criticality"  = "Low"
          - "environment"  = "sandbox"
          - "expiresAfter" = "2024-03-03"
          - "startupMode"  = "always"
        } -> (known after apply)
        # (37 unchanged attributes hidden)

        # (4 unchanged blocks hidden)
    }

  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-sbox"
        name                = "alerts-slack-sbox"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "sandbox" -> null
          - "expiresAfter" = "2024-03-03" -> null
        }
        # (5 unchanged attributes hidden)
    }

  # azurerm_windows_function_app.this will be updated in-place
  ~ resource "azurerm_windows_function_app" "this" {
        id                                             = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox/providers/Microsoft.Web/sites/alerts-slack-sbox"
        name                                           = "alerts-slack-sbox"
      ~ tags                                           = {
          - "application"  = "core"
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          - "businessArea" = "CFT"
          - "criticality"  = "Low"
          - "environment"  = "sandbox"
          - "expiresAfter" = "2024-03-03"
          - "startupMode"  = "always"
        } -> (known after apply)
        # (27 unchanged attributes hidden)

        # (2 unchanged blocks hidden)
    }

  # module.application_insights.azurerm_application_insights.this will be updated in-place
  ~ resource "azurerm_application_insights" "this" {
        id                                    = "/subscriptions/b72ab7b7-723f-4b18-b6f6-03b0f2c6a1bb/resourceGroups/alerts-slack-sbox/providers/Microsoft.Insights/components/alerts-sbox"
        name                                  = "alerts-sbox"
      ~ tags                                  = {
          - "application"  = "core"
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          - "businessArea" = "CFT"
          - "criticality"  = "Low"
          - "environment"  = "sandbox"
          - "expiresAfter" = "2024-03-03"
          - "startupMode"  = "always"
        } -> (known after apply)
        # (16 unchanged attributes hidden)
    }

Plan: 0 to add, 6 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (ithc)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/62864d44-5da9-4ae9-89e7-0cf33942fa09/resourceGroups/alerts-slack-ithc/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-ithc"
        name                = "alerts-slack-ithc"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "ithc" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (stg)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/96c274ce-846d-4e48-89a7-d528432298a7/resourceGroups/alerts-slack-aat/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-aat"
        name                = "alerts-slack-aat"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "staging" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (test)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/8a07fdcd-6abd-48b3-ad88-ff737a4b9e3c/resourceGroups/alerts-slack-test/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-test"
        name                = "alerts-slack-test"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "testing" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (demo)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/d025fece-ce99-4df2-b7a9-b649d3ff2060/resourceGroups/alerts-slack-demo/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-demo"
        name                = "alerts-slack-demo"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "demo" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 1, 2024

Plan Result (prod)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/8cbc6f36-7c56-4963-9d36-739db5d00b27/resourceGroups/alerts-slack-prod/providers/Microsoft.ManagedIdentity/userAssignedIdentities/alerts-slack-prod"
        name                = "alerts-slack-prod"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations

Plan Result (sds_dev)

Plan: 2 to add, 1 to change, 0 to destroy.
  • Create
    • module.application_insights.azurerm_monitor_action_group.action_group
    • module.application_insights.azurerm_monitor_activity_log_alert.main
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/867a878b-cb68-4de5-9741-361ac9e178b6/resourceGroups/sds-alerts-slack-dev/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sds-alerts-slack-dev"
        name                = "sds-alerts-slack-dev"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "Cross-Cutting" -> null
          - "environment"  = "development" -> null
        }
        # (5 unchanged attributes hidden)
    }

  # module.application_insights.azurerm_monitor_action_group.action_group will be created
  + resource "azurerm_monitor_action_group" "action_group" {
      + enabled             = true
      + id                  = (known after apply)
      + location            = "global"
      + name                = "Sds-Alerts-Dev-Warning-Alerts"
      + resource_group_name = "sds-alerts-slack-dev"
      + short_name          = "sds-dev"
      + tags                = {
          + "application"  = "core"
          + "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          + "businessArea" = "Cross-Cutting"
          + "criticality"  = "Low"
          + "environment"  = "development"
          + "startupMode"  = "always"
        }

      + azure_function_receiver {
          + function_app_resource_id = "/subscriptions/867a878b-cb68-4de5-9741-361ac9e178b6/resourceGroups/sds-alerts-slack-dev/providers/Microsoft.Web/sites/sds-alerts-slack-dev"
          + function_name            = "httpTrigger"
          + http_trigger_url         = (sensitive value)
          + name                     = "slack-alerts"
          + use_common_alert_schema  = true
        }
    }

  # module.application_insights.azurerm_monitor_activity_log_alert.main will be created
  + resource "azurerm_monitor_activity_log_alert" "main" {
      + description         = "Monitors for application insight reaching it's daily cap."
      + enabled             = true
      + id                  = (known after apply)
      + name                = "Application Insights daily cap reached"
      + resource_group_name = "sds-alerts-slack-dev"
      + scopes              = [
          + "/subscriptions/867a878b-cb68-4de5-9741-361ac9e178b6/resourceGroups/sds-alerts-slack-dev/providers/Microsoft.Insights/components/sds-alerts-dev",
        ]
      + tags                = {
          + "application"  = "core"
          + "builtFrom"    = "hmcts/azure-alert-to-slack-function"
          + "businessArea" = "Cross-Cutting"
          + "criticality"  = "Low"
          + "environment"  = "development"
          + "startupMode"  = "always"
        }

      + action {
          + action_group_id    = (known after apply)
          + webhook_properties = {
              + "from"           = "terraform"
              + "slackChannelId" = ""
            }
        }

      + criteria {
          + category       = "Administrative"
          + level          = "Warning"
          + operation_name = "Microsoft.Insights/Components/DailyCapReached/Action"
          + resource_id    = "/subscriptions/867a878b-cb68-4de5-9741-361ac9e178b6/resourceGroups/sds-alerts-slack-dev/providers/Microsoft.Insights/components/sds-alerts-dev"
        }
    }

Plan: 2 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 19, 2024

Plan Result (sds_ptl)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/6c4d2513-a873-41b4-afdd-b05a33206631/resourceGroups/sds-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/sds-alerts-slack-ptl"
        name                = "sds-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "Cross-Cutting" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@hmcts-platform-operations
Copy link

hmcts-platform-operations commented Feb 19, 2024

Plan Result (cft_ptl)

Plan: 0 to add, 1 to change, 0 to destroy.
  • Update
    • azurerm_user_assigned_identity.this
Change Result (Click me)
  # azurerm_user_assigned_identity.this will be updated in-place
  ~ resource "azurerm_user_assigned_identity" "this" {
        id                  = "/subscriptions/1baf5470-1c3e-40d3-a6f7-74bfbce4b348/resourceGroups/cft-alerts-slack-ptl/providers/Microsoft.ManagedIdentity/userAssignedIdentities/cft-alerts-slack-ptl"
        name                = "cft-alerts-slack-ptl"
      ~ tags                = {
          - "application"  = "core" -> null
          - "builtFrom"    = "hmcts/azure-alert-to-slack-function" -> null
          - "businessArea" = "CFT" -> null
          - "environment"  = "production" -> null
        }
        # (5 unchanged attributes hidden)
    }

Plan: 0 to add, 1 to change, 0 to destroy.

@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from 8d01091 to ee66fa7 Compare February 28, 2024 01:13
@renovate renovate bot changed the title Update dependency @azure/functions to v4.2.0 Update dependency @azure/functions to v4.3.0 Feb 28, 2024
@renovate renovate bot changed the title Update dependency @azure/functions to v4.3.0 Update dependency @azure/functions to v4.4.0 Apr 1, 2024
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch 2 times, most recently from 58418a2 to 1b6eab7 Compare April 2, 2024 07:30
@renovate renovate bot changed the title Update dependency @azure/functions to v4.4.0 Update dependency @azure/functions to v4.5.0 May 16, 2024
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from 1b6eab7 to cbd99c5 Compare May 16, 2024 22:44
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from cbd99c5 to 41ab8e1 Compare June 10, 2024 08:50
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch 2 times, most recently from 04ca210 to f3f2be1 Compare June 17, 2024 15:42
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from f3f2be1 to 19b92a9 Compare June 24, 2024 16:23
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from 19b92a9 to 69b39e0 Compare August 28, 2024 22:05
@renovate renovate bot changed the title Update dependency @azure/functions to v4.5.0 Update dependency @azure/functions to v4.5.1 Aug 28, 2024
@renovate renovate bot changed the title Update dependency @azure/functions to v4.5.1 Update dependency @azure/functions to v4.6.0 Oct 29, 2024
@renovate renovate bot force-pushed the renovate/azure-functions-4.x-lockfile branch from 69b39e0 to a891deb Compare October 29, 2024 20:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant