Releases: defer-run/defer.client
Releases · defer-run/defer.client
v0.3.0
Minor Changes
-
#20
99ed4df
Thanks @charlypoly! - Introducedefer.schedule(fn, frequencyStr)
Defer now support scheduled functions (CRON), as follows:
import { defer } from "@defer.run/client"; async function myDeferWorkflow() { const users = await prisma.user.find({ where: { // ... } }); // do something... } export default defer.schedule(myDeferWorkflow, "every day at 10am");
Notes
- a scheduled function should not take arguments
- a scheduled function is scheduled on UTC time
- a scheduled function should not be invoked (will result in errors)
v0.2.3
Patch Changes
- #18
27fe426
Thanks @charlypoly! - Typings fixes
v0.2.2
Patch Changes
- #16
e282ee3
Thanks @charlypoly! - Handle error without result on polling
v0.2.1
Patch Changes
- #14
2007397
Thanks @charlypoly! -DeferFunction.await()
should be noop whenDEFER_TOKEN
is not set
v0.2.0
Minor Changes
- #11
9c7895c
Thanks @charlypoly! - Support for delayed functions
Patch Changes
- #12
5cde47b
Thanks @charlypoly! - Forward the received error fordeferred.await()
v0.1.0
Minor Changes
- #4
08f0945
Thanks @charlypoly! -defer.await()
Patch Changes
-
#8
991697d
Thanks @charlypoly! - expose client version (internal) -
#9
87ea1d4
Thanks @charlypoly! - Execution polling jitter algorithm