Actionhero is a realtime multi-transport nodejs API Server with integrated cluster capabilities and delayed tasks
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.8...v28.1.9
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.7...v28.1.8
ParamsFrom
type inference by @pedroslopez in https://github.com/actionhero/actionhero/pull/2108
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.6...v28.1.7
formatter
/validator
by @pedroslopez in https://github.com/actionhero/actionhero/pull/2099
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.5...v28.1.6
node-resque
and ioredis-mock
, fix winston
types by @evantahler in https://github.com/actionhero/actionhero/pull/2106
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.4...v28.1.5
rebuildConfig
method by @evantahler in https://github.com/actionhero/actionhero/pull/2083
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.3...v28.1.4
winston
v3.3.4 which contains a locked version of the colors
package. More information can be found at https://github.com/winstonjs/winston/pull/2008
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.2...v28.1.3
formatter
and validator
by @evantahler in https://github.com/actionhero/actionhero/pull/2062
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.1...v28.1.2
TS_JEST
is present by @evantahler in https://github.com/actionhero/actionhero/pull/2060
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.1.0...v28.1.1
ParamsFrom
utility to determine types of params from Action Inputs by @evantahler in https://github.com/actionhero/actionhero/pull/2059
The new ParamsFrom
TS utility can finally help dynamically determine the param types of an Action's run method! This only works on Action classes that statically define the inputs, e.g. NOT in a constructor. Here's a screenshot of things working:
Note that params.value
is properly a string, and we get an error that params.foo
is undefined.
Here's the magic:
export type ParamsFrom<A extends Action | Task> = {
[Input in keyof A["inputs"]]: A["inputs"][Input]["formatter"] extends (
...ags: any[]
) => any
? ReturnType<A["inputs"][Input]["formatter"]>
: string;
};
What's nice about this approach is that we don't need to change any of Actionhero's internals, but we should start writing all of our Actions and Tasks with static definitions.
Full Changelog: https://github.com/actionhero/actionhero/compare/v28.0.4...v28.1.0