From 46f688ac12a99b8fb145b0745dd4cc6babff1e1e Mon Sep 17 00:00:00 2001 From: Ritesh Ghosh <101876769+ghoshRitesh12@users.noreply.github.com> Date: Sun, 6 Oct 2024 01:13:23 +0530 Subject: Aniwatch API Version 2 (#66) BREAKING CHANGE: * chore: remove files that are not necessary for api v2 * test: update existing tests to use pkg * feat: organized aniwatch api envs and add more info about them * feat: update tsconfig to include strict noUnsed params * feat(api homepage): revamp api home page * feat: update wani kuni image * feat: add dot img * feat: use hono cors * feat: use hono rate limiter * build: remove unnecessary deps, add ones needed and update description * feat: add hianime routes and their handlers * feat: update vercel deployment file * docs: update logo and scraper docs, add envs section * feat: update main server file * feat: update peronal deployments caution section --- package.json | 27 +++++++++------------------ 1 file changed, 9 insertions(+), 18 deletions(-) (limited to 'package.json') diff --git a/package.json b/package.json index 354b305..bbb970e 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "aniwatch-api", "version": "1.40.0", - "description": "Node.js API for obtaining anime information from hianime.to (formerly aniwatch.to)", + "description": "Node.js API for obtaining anime information from hianime.to", "main": "src/server.ts", "type": "module", "scripts": { @@ -31,26 +31,17 @@ "author": "https://github.com/ghoshRitesh12", "license": "MIT", "dependencies": { - "axios": "^1.7.7", - "cheerio": "1.0.0", - "cors": "^2.8.5", - "crypto-js": "^4.2.0", + "@hono/node-server": "^1.13.1", + "aniwatch": "^2.4.1", "dotenv": "^16.4.5", - "express": "^4.19.2", - "express-rate-limit": "^7.4.0", - "http-errors": "^2.0.0", - "morgan": "^1.10.0" + "hono": "^4.6.3", + "hono-rate-limiter": "^0.4.0" }, "devDependencies": { - "@types/cors": "^2.8.17", - "@types/crypto-js": "^4.2.2", - "@types/express": "^4.17.21", - "@types/http-errors": "^2.0.4", - "@types/morgan": "^1.9.9", - "@types/node": "^22.5.4", + "@types/node": "^22.7.4", "husky": "^8.0.3", - "tsx": "^4.19.0", - "typescript": "^5.5.4", - "vitest": "^2.0.5" + "tsx": "^4.19.1", + "typescript": "^5.6.2", + "vitest": "^2.1.2" } } \ No newline at end of file -- cgit v1.2.3