Closed mildronize closed 8 months ago
Main branch for support v4 poc-func-v4
After I've made successfully proof of concept for #82, I've pretty clear to setup direction of interface style next release for Azure Function Node.js V4.
Next Actions:
@nammatham/core
is still remain and ready for publish NPM registry.For v2 release, will use functional approaches for provide type-safe APIs, you can see the full explanation in the #82, however, integrating with Dependency Injection Tools and container is quite usefully, for user migrating from v1, which is use inversify
as backbone IoC tools,
In order to make sure v2 will works with Dependency Injection Tools and container will be PoC and implemented as external packages (In my PoC) for anyone can use, not strict to Nammatham library.
So, v2 is pass the process of proof concept, it's in alpha release https://github.com/thaitype/nammatham/releases/tag/v2.0.0-alpha.6 (For the latest release now), it's unnecessary to continue with this issue, the alpha release has work with Azure functions v4 model,
In Azure Functions Node.js v4: https://aka.ms/AzFuncNodeV4, they estimates public preview for March 2023 and general availability for July 2023.
Ref
Catch up Breaking Changes
Discussion
function.json
and a lot changesapp.generic
helper function to register any supported triggers and bindings, as shown in example below:app.generic
function:generic
function will call Azure function runtime API directly viacoreApi.registerFunction
instead of usingfunction.json
provided in the root path, this allow us to create more fluent APIs around the v4 model.