-
003ecdb: Minor updates
- update from node18 to node20;
- bump all dev and prod dependencies to its latest versions;
- add
packageManager
to package.json; - add
.nvmrc
to enforce node version; - pin
pnpm
on Docker image;
- aa9b51c: update all dependencies, including Prisma 5 which brings huge performance improvement
- aa9b51c: add a build step and run the production with node itself instead
tsx
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- add new
getFoodByName
query:
query FoodByName {
getFoodByName(name: "carne") {
name
}
}
This is the major change after 5 years of this project creation.
I've decided to revamp completely the project using modern tech and implementing a few features some people asked a couple years ago.
The main change here is now the project is complete type-safe thanks to Prisma.
Also, instead Rest API, I've decide to switch completely to GraphQL. This will makes the documentation and the ability to fetch data easier.
- refactor everything to TypeScript;
- re-done the data processing to fix data mistakes such as keeping strings with numbers;
- remove APIDoc in favor of GraphQL api docs;
- update docs;
- switch from
npm
topnpm
; - use relational database (
SQLite
) instead localjson
files for storing data; - implement filter ability. Now for in a few endpoints you can pass
skip
andtake
(see more here); - migrate to Node18;
- use full ESM instead CJS;
- tag docker image with
v1
- create a tag version to prep v2 to get in place
- MIT License;
- Changelog file;
- CI with Travis;
- Unit/integration tests with Jest;
- Prettier/eslint to keep code quality;
- API Documentation with apidocJS
- Improve
package.json
information; - Rename all files/methods/code in general to ENGLISH;
- Refactor routes