Movatterモバイル変換


[0]ホーム

URL:


Skip to content
DEV Community
Log in Create account

DEV Community

Cover image for Quirrel hits v1 🥳
Quirrel profile imageSimon Knott
Simon Knott forQuirrel

Posted on

     

Quirrel hits v1 🥳

A happy new year everyone! 🎉

I'm proud to announce: Quirrel goes tov1.
The release comes with improvements all over the board.
Let's go through it!

TL;DR: There's improved cron jobs, clients for 5 new frameworks and the Quirrel UI now also can be used for monitoring deployments.Migrating to v1

Improved Cron Jobs

Cron Jobs have been a huge PITA:

I don't understand how and where I can register "good old cron jobs"?
~ every Quirrel user, ever

Withv1, theyfinally get a well-deserved make-over:

// pages/api/myCronJobRoute.tsimport{CronJob}from"quirrel/next";exportdefaultCronJob("api/myCronJobRoute","5 4 * * *",// every day at 04:05async()=>{// do something});
Enter fullscreen modeExit fullscreen mode

That's it, that's everything you need to do.
Your local Quirrel instance will automatically pick it up:

Registered a Cron Job

This is implemented using filesystem watchers,
similarly to howtsc --watch works.

For Deployments, runningquirrel ci once during build will register all detected Cron Jobs with your production Quirrel instance.
It will also remove obsolete ones.

Support for new Frameworks

After seeing tremendous interest in Quirrel among Next.js and Blitz.js users,
I'm adding support for 5 new frameworks:

If you have another framework in mind that you'd like a Quirrel client for, let me know! :)

Pre-v1, you had to install bothquirrel and@quirrel/next.
To ease maintenance, they were consolidated, so@quirrel/next becomesquirrel/next (notice the missing@).

Until now, Next.js users could omit the leadingapi/ in their Queue's routes.
Going forward, that won't be possible anymore, to match behaviour with the other framework client.

Quirrel UI for Production

You've asked for it, so here it is: TheQuirrel UI now supports connecting to non-local environments.
The connection dialog can be opened using a new dropdown in the top left:

Connection Dialog

It enables you to monitor & administrate any Quirrel deployment,
which has been a heavily requested feature.

I'm thinking about adding a "Open in UI" button to the Quirrel Dashboard.
Let me know if that'd be helpful for you.

Whythis release was chosen for v1

The previous state of Cron Jobs really nagged on me.
Although they played an integral part to my initial vision for Quirrel,
I struggled to find an easy-to-use design for a long time.1
Over the course of mutliple brainstorming sessions with some of you (thank you ❤️), we managed to find a good solution.
With those improved Cron Jobs shipping inv1, I'mfinally content with Quirrel's feature set.

Moving tov1 also means "going stable".
This is a big step, because we have to maintain that API for the foreseeable future.
Judging by the feedback I received, the current API is well-designed and fit for its task,
giving me the confidence to commit to it.

Thank you.

Since Quirrel's inception in Q3 last year, I've received amazing support from all of you. Thank you ❤️
If you've put in the time to brainstorm with me: Thank you x2 ❤️ Your input has been incredibly valuable for Quirrel.

As you know, I want to create the best developer experience possible.
If there's anything that detracts from it, please let me know! :D

To migrate your application tov1, follow this Guide:Migrating to v1

I'm looking forward to your feedback!

All the best for 2021,
Simon


  1. CronJobs come with their special set of problems, primarily caused by serverless environments running forever. HMU if you want to read/hear more about that :D 

Top comments(0)

Subscribe
pic
Create template

Templates let you quickly answer FAQs or store snippets for re-use.

Dismiss

Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment'spermalink.

For further actions, you may consider blocking this person and/orreporting abuse

The Task Queueing Solution for Serverless

Need a task queue for your Serverless / JAMStack application? Quirrel may be worth a look!

More fromQuirrel

DEV Community

We're a place where coders share, stay up-to-date and grow their careers.

Log in Create account

[8]ページ先頭

©2009-2025 Movatter.jp