From 0294cfc881513d9763857e52fce328e905cc8a08 Mon Sep 17 00:00:00 2001 From: Danny Avila Date: Sat, 15 Jun 2024 12:17:10 -0400 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20v0.7.3=20(#3067)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * refactor: revert BaseClient to use node-fetch instead of undici * chore: bump version * chore: update npm dependencies to latest versions * chore: fix custom footer --- Dockerfile | 2 +- Dockerfile.multi | 2 +- api/app/clients/BaseClient.js | 5 ++--- api/package.json | 2 +- client/package.json | 2 +- client/src/components/Chat/Footer.tsx | 4 ++-- e2e/jestSetup.js | 2 +- index.html | 2 +- package-lock.json | 28 +++++++++++++-------------- package.json | 2 +- packages/data-provider/src/config.ts | 2 +- prettier.config.js | 2 +- 12 files changed, 27 insertions(+), 28 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6c70a6d7f24..1ace3200d51 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -# v0.7.2 +# v0.7.3 # Base node image FROM node:20-alpine AS node diff --git a/Dockerfile.multi b/Dockerfile.multi index 41e8825b810..aba396bd46f 100644 --- a/Dockerfile.multi +++ b/Dockerfile.multi @@ -1,4 +1,4 @@ -# v0.7.2 +# v0.7.3 # Build API, Client and Data Provider FROM node:20-alpine AS base diff --git a/api/app/clients/BaseClient.js b/api/app/clients/BaseClient.js index 0f2cd034688..949c9bb68cf 100644 --- a/api/app/clients/BaseClient.js +++ b/api/app/clients/BaseClient.js @@ -1,6 +1,5 @@ const crypto = require('crypto'); -const { fetch } = require('undici'); -const nodeFetch = require('node-fetch'); +const fetch = require('node-fetch'); const { supportsBalanceCheck, Constants } = require('librechat-data-provider'); const { getConvo, getMessages, saveMessage, updateMessage, saveConvo } = require('~/models'); const { addSpaceIfNeeded, isEnabled } = require('~/server/utils'); @@ -71,7 +70,7 @@ class BaseClient { } logger.debug(`Making request to ${url}`); if (typeof Bun !== 'undefined') { - return await nodeFetch(url, init); + return await fetch(url, init); } return await fetch(url, init); } diff --git a/api/package.json b/api/package.json index 31b08312738..f06384e5942 100644 --- a/api/package.json +++ b/api/package.json @@ -1,6 +1,6 @@ { "name": "@librechat/backend", - "version": "0.7.2", + "version": "0.7.3", "description": "", "scripts": { "start": "echo 'please run this from the root directory'", diff --git a/client/package.json b/client/package.json index 4d2ac6e2950..3571d94bf8e 100644 --- a/client/package.json +++ b/client/package.json @@ -1,6 +1,6 @@ { "name": "@librechat/frontend", - "version": "0.7.2", + "version": "0.7.3", "description": "", "type": "module", "scripts": { diff --git a/client/src/components/Chat/Footer.tsx b/client/src/components/Chat/Footer.tsx index d0ac332ee69..5f07bef375d 100644 --- a/client/src/components/Chat/Footer.tsx +++ b/client/src/components/Chat/Footer.tsx @@ -44,9 +44,9 @@ export default function Footer({ className }: { className?: string }) { const mainContentParts = ( typeof config?.customFooter === 'string' ? config.customFooter - : '[](https://librechat.ai) - ' + + '](https://librechat.ai) - ' + localize('com_ui_pay_per_call') ).split('|'); diff --git a/e2e/jestSetup.js b/e2e/jestSetup.js index 0f880f8a033..c5c27fadaa9 100644 --- a/e2e/jestSetup.js +++ b/e2e/jestSetup.js @@ -1,3 +1,3 @@ -// v0.7.2 +// v0.7.3 // See .env.test.example for an example of the '.env.test' file. require('dotenv').config({ path: './e2e/.env.test' }); diff --git a/index.html b/index.html index 4eb9a3ccdfd..361b544af59 100644 --- a/index.html +++ b/index.html @@ -1,4 +1,4 @@ - + diff --git a/package-lock.json b/package-lock.json index ffde1a98e89..388ac0e92c4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "LibreChat", - "version": "0.7.2", + "version": "0.7.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "LibreChat", - "version": "0.7.2", + "version": "0.7.3", "license": "ISC", "workspaces": [ "api", @@ -38,7 +38,7 @@ }, "api": { "name": "@librechat/backend", - "version": "0.7.2", + "version": "0.7.3", "license": "ISC", "dependencies": { "@anthropic-ai/sdk": "^0.16.1", @@ -1110,7 +1110,7 @@ }, "client": { "name": "@librechat/frontend", - "version": "0.7.2", + "version": "0.7.3", "license": "ISC", "dependencies": { "@ariakit/react": "^0.4.5", @@ -6006,9 +6006,9 @@ } }, "node_modules/@grpc/grpc-js": { - "version": "1.9.14", - "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.14.tgz", - "integrity": "sha512-nOpuzZ2G3IuMFN+UPPpKrC6NsLmWsTqSsm66IRfnBt1D4pwTqE27lmbpcPM+l2Ua4gE7PfjRHI6uedAy7hoXUw==", + "version": "1.9.15", + "resolved": "https://registry.npmjs.org/@grpc/grpc-js/-/grpc-js-1.9.15.tgz", + "integrity": "sha512-nqE7Hc0AzI+euzUwDAy0aY5hCp10r734gMGRdU+qOPX0XSceI2ULrcXB5U2xSc5VkWwalCj4M7GzCAygZl2KoQ==", "dependencies": { "@grpc/proto-loader": "^0.7.8", "@types/node": ">=12.12.47" @@ -11703,11 +11703,11 @@ } }, "node_modules/braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "version": "3.0.3", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz", + "integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==", "dependencies": { - "fill-range": "^7.0.1" + "fill-range": "^7.1.1" }, "engines": { "node": ">=8" @@ -15035,9 +15035,9 @@ } }, "node_modules/fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", + "version": "7.1.1", + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz", + "integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==", "dependencies": { "to-regex-range": "^5.0.1" }, diff --git a/package.json b/package.json index fb7ad3b5704..d72ef1b22ec 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "LibreChat", - "version": "0.7.2", + "version": "0.7.3", "description": "", "workspaces": [ "api", diff --git a/packages/data-provider/src/config.ts b/packages/data-provider/src/config.ts index cd90a838268..8808db3b14a 100644 --- a/packages/data-provider/src/config.ts +++ b/packages/data-provider/src/config.ts @@ -786,7 +786,7 @@ export enum SettingsTabValues { /** Enum for app-wide constants */ export enum Constants { /** Key for the app's version. */ - VERSION = 'v0.7.2', + VERSION = 'v0.7.3', /** Key for the Custom Config's version (librechat.yaml). */ CONFIG_VERSION = '1.1.4', /** Standard value for the first message's `parentMessageId` value, to indicate no parent exists. */ diff --git a/prettier.config.js b/prettier.config.js index 57769b3a65c..1fea794bcb0 100644 --- a/prettier.config.js +++ b/prettier.config.js @@ -1,4 +1,4 @@ -// v0.7.2 +// v0.7.3 module.exports = { tailwindConfig: './client/tailwind.config.cjs', printWidth: 100,