Skip to content

Releases: defer-run/defer.client

v0.3.0

13 Jan 14:18
dcf11fd
Compare
Choose a tag to compare

Minor Changes

  • #20 99ed4df Thanks @charlypoly! - Introduce defer.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

03 Jan 11:28
a112510
Compare
Choose a tag to compare

Patch Changes

v0.2.2

02 Jan 16:46
72cba15
Compare
Choose a tag to compare

Patch Changes

v0.2.1

22 Dec 13:20
32cf355
Compare
Choose a tag to compare

Patch Changes

v0.2.0

21 Dec 12:25
a7e9d2f
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v0.1.0

20 Dec 16:39
3948820
Compare
Choose a tag to compare

Minor Changes

Patch Changes

v0.0.16

09 Dec 15:47
7075214
Compare
Choose a tag to compare

Patch Changes