Skip to content

Releases: benjamint08/probun

0.1.24

22 May 19:00
Compare
Choose a tag to compare

0.1.24 is here! What's new?

  • I fixed the new json function not decoding keys and values correctly.

That's all for now. Enjoy!

0.1.23

22 May 18:52
Compare
Choose a tag to compare

0.1.23 is here! What's new?

  • We added a json function exported from probun. Usage like this:
import { SendJSON, json, Failure } from "probun";

export async function POST(req: Request): Promise<Response> {
    try {
        const body = await json(req);
        return SendJSON({
            body
        }, 200);
    } catch (error) {
        return Failure("Invalid JSON.")
    }
}

That's all for now. Enjoy!

0.1.22

22 May 17:02
Compare
Choose a tag to compare

0.1.22 is here! What's new?

  • Added OPTIONS request that just adds headers and pre-middleware headers on all routes.

0.1.21

21 May 17:02
Compare
Choose a tag to compare

0.1.21 is here! What's new?

It's been a while - I've been working on my exams. However here is a new ProBun version.

  • MongoDB and PostgreSQL now tell you when they're connecting. Why? Because if your connection is wrong it wouldn't print anything.

This issue made me believe that ProBun just stopped working - however it was actually that Mongo was not even running!

0.1.20

07 May 08:32
c42494c
Compare
Choose a tag to compare

0.1.20

We changed the type in SendJSON to an object instead of any

0.1.19

12 Apr 19:16
Compare
Choose a tag to compare

0.1.19 is here! What's new?

  • Fixed routes not working when in multi folders. Thanks @lassejlv

That's all for now. Enjoy!

0.1.18

12 Apr 18:51
Compare
Choose a tag to compare

0.1.18 is here! What's new?

  • Following the previous release, param routes did not work. This has now been fixed.

That's all for now. Enjoy!

0.1.17

12 Apr 18:06
Compare
Choose a tag to compare

0.1.17 is here! What's new?

  • Fixed SendFile not working on Windows. (We hate Windows.)

That's all for now. Enjoy!

0.1.16

12 Apr 17:49
Compare
Choose a tag to compare

0.1.16 is here! What's new?

  • Fixed routing being completely unusable, introduced local tests to ensure this doesn't happen again.

That's all for now. Sorry for the huge inconvenience, enjoy!

0.1.15

12 Apr 17:15
Compare
Choose a tag to compare

0.1.15 is here! What's new?

  • You can now use SendFile exported from probun. Usage found here

That's all for now. Enjoy!