BrewMyMac
BrewMyMac copied to clipboard
Bump @azure/functions from 3.5.1 to 4.2.0 in /backend
Bumps @azure/functions from 3.5.1 to 4.2.0.
Release notes
Sourced from @azure/functions
's releases.
v4.2.0
Added
clone()
method toHttpRequest
andHttpResponse
#207v4.1.0
Added
- Pre-invocation, post-invocation, app-start, and app-terminate hooks using
app.hook.
#7- Warmup trigger #176
connection
property to EventGridOutputOptions #177Fixed
- Bug where output isn't set if used in both
extraOutput
andreturn
#179v4.0.1
Add link to blog post and discussion to README
v4.0.0
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
andHttpRequest
to be constructed in test environments outside the Azure Functions runtimeChanged
- 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
toInvocationContext
- Remove
context.done()
. We assume your function (async or sync) is done as soon as it returns- Remove
context.executionContext
. You can findfunctionName
andretryContext
on the rootcontext
object instead- Remove
context.bindingDefinitions
in favor ofcontext.options
- Remove
context.log
sub-methods (context.log.error
/context.log.warn
/etc.) in favor of methods on the rootcontext
object (context.error
/context.warn
/etc.). Also Remove theverbose
option in favor oftrace
anddebug
to match Node.js'sconsole
methods- Remove
context.req
,context,res
, andcontext.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 oncontext.extraInputs
orcontext.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
toHttpRequest
- Change
query
from typeHttpRequestQuery
to Node.js core typeURLSearchParams
- Remove
HttpResponseSimple
/HttpResponseFull
/HttpResponse
types in favor ofHttpResponse
class andHttpResponseInit
interface
- Remove
statusCode
in favor ofstatus
- Remove
end
,send
,sendStatus
, andjson
. These were callback methods based oncontext.done()
which is no longer supported
... (truncated)
Commits
b4f1389
Bump version (#214)a94e78c
Make error message even better for missing binding (#213)6e68b78
Turn on noUncheckedIndexedAccess (#211)aa9068d
Add support for request & response clone (#209)069646b
Enable noImplicitAny option (#200)d2935cb
Add Resource Management Policy (#198)ca91f6a
Fix WarmupContext type name (#195)91c9cbc
Bump version for release (#194)6e78a78
Fix bug when using shared output object (#193)8edd622
Auto fix new import lint rules- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase
.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebase
will rebase this PR -
@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it -
@dependabot merge
will merge this PR after your CI passes on it -
@dependabot squash and merge
will squash and merge this PR after your CI passes on it -
@dependabot cancel merge
will cancel a previously requested merge and block automerging -
@dependabot reopen
will reopen this PR if it is closed -
@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency -
@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)