Skip to content

Commit

Permalink
feat: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
loyep committed Oct 16, 2024
1 parent 6d51b39 commit 7ea8026
Show file tree
Hide file tree
Showing 16 changed files with 633 additions and 617 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v20.11.0
20.18.0
29 changes: 13 additions & 16 deletions apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,42 +30,40 @@
"@fastify/multipart": "^8.3.0",
"@fastify/static": "^7.0.4",
"@langchain/anthropic": "^0.3.3",
"@langchain/community": "^0.3.4",
"@langchain/core": "^0.3.9",
"@langchain/openai": "^0.3.6",
"@langchain/community": "^0.3.5",
"@langchain/core": "^0.3.11",
"@langchain/openai": "^0.3.7",
"@nest-lab/throttler-storage-redis": "^1.0.0",
"@nestjs/axios": "^3.0.3",
"@nestjs/bullmq": "^10.2.1",
"@nestjs/common": "^10.4.4",
"@nestjs/common": "^10.4.5",
"@nestjs/config": "^3.2.3",
"@nestjs/core": "^10.4.4",
"@nestjs/core": "^10.4.5",
"@nestjs/event-emitter": "^2.0.4",
"@nestjs/jwt": "^10.2.0",
"@nestjs/microservices": "^10.4.4",
"@nestjs/microservices": "^10.4.5",
"@nestjs/passport": "^10.0.3",
"@nestjs/platform-fastify": "^10.4.4",
"@nestjs/platform-fastify": "^10.4.5",
"@nestjs/schedule": "^4.1.1",
"@nestjs/swagger": "^7.4.2",
"@nestjs/terminus": "^10.2.3",
"@nestjs/throttler": "^6.2.1",
"@niceai/cache": "workspace:*",
"axios": "^1.7.7",
"bullmq": "^5.18.0",
"cheerio": "^1.0.0",
"bullmq": "^5.20.0",
"class-transformer": "^0.5.1",
"class-validator": "^0.14.1",
"drizzle-orm": "^0.34.1",
"drizzle-orm": "^0.35.1",
"drizzle-zod": "^0.5.1",
"fastify": "^4.28.1",
"fs-extra": "^11.2.0",
"helmet": "^7.2.0",
"ioredis": "^5.4.1",
"langchain": "^0.3.2",
"lodash": "^4.17.21",
"nanoid": "^5.0.7",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"pino": "^9.4.0",
"pino": "^9.5.0",
"pino-http": "^10.3.0",
"postgres": "^3.4.4",
"reflect-metadata": "^0.2.2",
Expand All @@ -75,15 +73,14 @@
},
"devDependencies": {
"@nestjs/cli": "^10.4.5",
"@nestjs/schematics": "^10.1.4",
"@nestjs/schematics": "^10.2.0",
"@niceai/cli": "workspace:*",
"@swc/cli": "^0.4.1-nightly.20240914",
"@swc/core": "^1.7.35",
"@types/fs-extra": "^11.0.4",
"@swc/core": "^1.7.36",
"@types/lodash": "^4.17.10",
"@types/request-ip": "^0.0.41",
"cross-env": "^7.0.3",
"drizzle-kit": "^0.25.0",
"drizzle-kit": "^0.26.2",
"typescript": "^5.6.3"
}
}
65 changes: 16 additions & 49 deletions apps/api/src/database/migrations/meta/0000_snapshot.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,23 +122,16 @@
"name": "account_userId_user_id_fk",
"tableFrom": "account",
"tableTo": "user",
"columnsFrom": [
"userId"
],
"columnsTo": [
"id"
],
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"account_provider_providerAccountId_pk": {
"name": "account_provider_providerAccountId_pk",
"columns": [
"provider",
"providerAccountId"
]
"columns": ["provider", "providerAccountId"]
}
},
"uniqueConstraints": {}
Expand Down Expand Up @@ -250,12 +243,8 @@
"name": "session_userId_user_id_fk",
"tableFrom": "session",
"tableTo": "user",
"columnsFrom": [
"userId"
],
"columnsTo": [
"id"
],
"columnsFrom": ["userId"],
"columnsTo": ["id"],
"onDelete": "cascade",
"onUpdate": "no action"
}
Expand Down Expand Up @@ -376,36 +365,25 @@
"name": "role_permission_role_id_role_id_fk",
"tableFrom": "role_permission",
"tableTo": "role",
"columnsFrom": [
"role_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["role_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"role_permission_permission_id_permission_id_fk": {
"name": "role_permission_permission_id_permission_id_fk",
"tableFrom": "role_permission",
"tableTo": "permission",
"columnsFrom": [
"permission_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["permission_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"role_permission_role_id_permission_id_pk": {
"name": "role_permission_role_id_permission_id_pk",
"columns": [
"role_id",
"permission_id"
]
"columns": ["role_id", "permission_id"]
}
},
"uniqueConstraints": {}
Expand Down Expand Up @@ -446,36 +424,25 @@
"name": "user_role_user_id_user_id_fk",
"tableFrom": "user_role",
"tableTo": "user",
"columnsFrom": [
"user_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["user_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
},
"user_role_role_id_role_id_fk": {
"name": "user_role_role_id_role_id_fk",
"tableFrom": "user_role",
"tableTo": "role",
"columnsFrom": [
"role_id"
],
"columnsTo": [
"id"
],
"columnsFrom": ["role_id"],
"columnsTo": ["id"],
"onDelete": "no action",
"onUpdate": "no action"
}
},
"compositePrimaryKeys": {
"user_role_user_id_role_id_pk": {
"name": "user_role_user_id_role_id_pk",
"columns": [
"user_id",
"role_id"
]
"columns": ["user_id", "role_id"]
}
},
"uniqueConstraints": {}
Expand All @@ -489,4 +456,4 @@
"schemas": {},
"tables": {}
}
}
}
2 changes: 1 addition & 1 deletion apps/api/src/database/migrations/meta/_journal.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@
"breakpoints": true
}
]
}
}
9 changes: 3 additions & 6 deletions apps/web/app/entry.server.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@ export default async function handleRequest(

const i18nInstance = createInstance();
const lng = await i18neServer.getLocale(request);
// const ns = i18neServer.getRouteNamespaces(remixContext);
console.log('locale', lng);

await i18nInstance
.use(initReactI18next) // Tell our instance to use react-i18next
Expand Down Expand Up @@ -60,11 +58,10 @@ export default async function handleRequest(
shellRendered = true;
const body = new PassThrough({
transform(c, _, callback) {
let chunk = c.toString();
let chunk = String(c);
if (!isStyleExtracted) {
const str: string = chunk.toString();
if (str.includes(antdStyle)) {
chunk = str.replace(
if (chunk.includes(antdStyle)) {
chunk = chunk.replace(
antdStyle,
isBot ? '' : extractStyle(cache),
);
Expand Down
29 changes: 14 additions & 15 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,50 +19,49 @@
"@ant-design/cssinjs": "^1.21.1",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-slot": "^1.1.0",
"@remix-run/node": "^2.12.1",
"@remix-run/react": "^2.12.1",
"@remix-run/router": "^1.19.2",
"@remix-run/server-runtime": "^2.12.1",
"@remix-run/node": "^2.13.1",
"@remix-run/react": "^2.13.1",
"@remix-run/router": "^1.20.0",
"@remix-run/server-runtime": "^2.13.1",
"@vercel/analytics": "^1.3.1",
"@vercel/remix": "^2.12.0",
"ahooks": "^3.8.1",
"antd": "^5.21.3",
"antd": "^5.21.4",
"browser-or-node": "^3.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"cookie": "^1.0.0",
"i18next": "^23.15.2",
"cookie": "^1.0.1",
"i18next": "^23.16.0",
"i18next-browser-languagedetector": "^8.0.0",
"i18next-fs-backend": "^2.3.2",
"i18next-http-backend": "^2.6.2",
"i18next-resources-to-backend": "^1.2.1",
"isbot": "^5.1.17",
"js-cookie": "^3.0.5",
"lodash": "^4.17.21",
"lucide-react": "^0.451.0",
"lucide-react": "^0.453.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-i18next": "^15.0.2",
"react-i18next": "^15.0.3",
"remix-i18next": "^6.4.1",
"tailwind-merge": "^2.5.3"
"tailwind-merge": "^2.5.4"
},
"devDependencies": {
"@remix-run/dev": "^2.12.1",
"@remix-run/dev": "^2.13.1",
"@types/cookie": "^0.6.0",
"@types/js-cookie": "^3.0.6",
"@types/lodash": "^4.17.10",
"@types/node": "^20.16.11",
"@types/react": "^18.3.11",
"@types/react-dom": "^18.3.0",
"@types/react-dom": "^18.3.1",
"autoprefixer": "^10.4.20",
"cross-env": "^7.0.3",
"postcss": "^8.4.47",
"remix-development-tools": "^4.7.3",
"remix-flat-routes": "^0.6.5",
"tailwindcss": "^3.4.13",
"tailwindcss": "^3.4.14",
"tailwindcss-animate": "^1.0.7",
"typescript": "^5.6.3",
"vite": "^5.4.8",
"vite": "^5.4.9",
"vite-plugin-i18n-ally": "^5.1.0",
"vite-plugin-remix-flat-routes": "^3.5.6",
"vite-tsconfig-paths": "^5.0.1"
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"setup": "niceai-scripts setup",
"clean": "niceai-scripts clean",
"build:docker": "turbo build:docker",
"turbo:clean": "rimraf apps/**/.turbo packages/**/.turbo",
"start:docker": "turbo start:docker",
"db:studio": "turbo db:studio",
"start": "turbo run start --filter=\"./apps/*\"",
Expand All @@ -30,7 +29,7 @@
"@changesets/cli": "^2.27.9",
"@esbuild-plugins/node-resolve": "^0.2.2",
"@types/node": "^20.16.11",
"@vitest/coverage-v8": "^2.1.2",
"@vitest/coverage-v8": "^2.1.3",
"dotenv": "^16.4.5",
"dotenv-cli": "^7.4.2",
"niceai-scripts": "workspace:*",
Expand All @@ -39,7 +38,7 @@
"tsx": "^4.19.1",
"turbo": "^2.1.3",
"typescript": "^5.6.3",
"vitest": "^2.1.2"
"vitest": "^2.1.3"
},
"engines": {
"node": "^18.19.0 || >=20.0.0",
Expand Down
9 changes: 2 additions & 7 deletions packages/ai/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,9 @@
"registry": "https://registry.npmjs.org"
},
"dependencies": {
"@niceai/cache": "workspace:*"
"langchain": "^0.3.2"
},
"devDependencies": {
"@types/lodash": "^4.17.10",
"ioredis": "^5.4.1",
"superjson": "^2.2.1"
},
"peerDependices": {
"ioredis": "^5.4.1"
"typescript": "^5.6.3"
}
}
2 changes: 1 addition & 1 deletion packages/ai/src/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export * from '@niceai/cache';
export const ai = {};
4 changes: 3 additions & 1 deletion packages/cache/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
"require": "./dist/index.cjs"
}
},
"files": ["dist"],
"files": [
"dist"
],
"repository": {
"url": "https://github.com/niceaidev/niceai",
"type": "git",
Expand Down
9 changes: 5 additions & 4 deletions packages/cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
"niceai": "./bin/niceai.js",
"na": "./bin/niceai.js"
},
"files": ["bin", "dist"],
"files": [
"bin",
"dist"
],
"scripts": {
"dev": "tsup --watch",
"build": "tsup"
Expand All @@ -31,8 +34,6 @@
"fs-extra": "^11.2.0"
},
"devDependencies": {
"@types/fs-extra": "^11.0.4",
"tsup": "^8.3.0",
"typescript": "^5.6.3"
"@types/fs-extra": "^11.0.4"
}
}
2 changes: 1 addition & 1 deletion packages/cli/src/node/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import path from 'node:path';
// @ts-ignore
import ncc from '@vercel/ncc';

type VercelRuntime = 'node' | 'edge';
export type VercelRuntime = 'node' | 'edge';

export interface BuildOptions {
output: string;
Expand Down
Loading

0 comments on commit 7ea8026

Please sign in to comment.