Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Version Packages #52

Merged
merged 1 commit into from
Dec 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions .changeset/cyan-doors-drop.md

This file was deleted.

43 changes: 0 additions & 43 deletions .changeset/eight-emus-kiss.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/gorgeous-steaks-allow.md

This file was deleted.

55 changes: 55 additions & 0 deletions apps/api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# taco-api

## 3.0.0

### Major Changes

- 65ccf6d: replace express with elysia.

Taco API now runs on top of bun and we have faster and better HTTP frameworks.

We don't do anything fancy that only express could do. To provide an HTTP client for a single endpoint, we can rely on something more modern.

- bc854f6: Switch from node to bun

In case you don't know bun, I strongly recommend you to take a look in [their docs](https://bun.sh/). In summary, it's a fast JavaScript runtime that provides tons of performance and great nodejs compat.

The advantage of using Bun instead Node is:

- We don't need `tsx` for handling TypeScript files (such as scripts) or running the dev locally;
- We don't need `esbuild` to build the final file;
- We don't need `pnpm` to install dependencies;
- everything is fast

Though, because we're using Prisma and it relies on NodeJS to do some generation, you may still have Node installed.

Some differences from the previous setup:

Install dependencies:

```diff
-pnpm install
+bun install
```

Run dev server:

```diff
-pnpm run dev
+bun run dev
```

Build the project:

```diff
-pnpm run build
+bun run build
```

etc..

Because we're changing the runner, it's a major bump. If you still want to use Node, I'd recommend you to be in the version 2.

- 5384de3: new docs website.

Now, instead using vuepress, I've switch to starlight and refactor the whole docs.
2 changes: 1 addition & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "taco-api",
"description": "Brazilian Table of Food Composition (TACO) - GraphQL API",
"version": "2.3.0",
"version": "3.0.0",
"type": "module",
"homepage": "https://github.com/raulfdm/taco-api",
"bugs": {
Expand Down