RobinTail / express-zod-api

A Typescript library to help you get an API server up and running with I/O schema validation and custom middlewares in minutes.
https://ez.robintail.cz
MIT License
619 stars 30 forks source link

Feat: Simple profiler for `BuiltinLogger` #1945

Closed RobinTail closed 2 months ago

RobinTail commented 2 months ago

Maybe not so simple

coveralls-official[bot] commented 2 months ago

Coverage Status

coverage: 100.0%. remained the same when pulling 29cb3238f3355e363436b777df5a5ea60f591f74 on simple-profiler into b9ef3ed515cbb2170ecf1c916470689906194df9 on master.

RobinTail commented 2 months ago

Node 18 is missing Intl unit:

RangeError: Invalid unit argument for Intl.NumberFormat() 'microsecond'
RobinTail commented 2 months ago

What I found out during this work is that Ramda methods should rather be used once for making own functions only, not in loops.

RobinTail commented 2 months ago

I'm thinking that for the purposes of express-zod-api (for possible usage inside handlers that may happen to serve for multiple users async) it might be better to have not so simple profiler, but the one with references.