New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@langchain/redis

Package Overview
Dependencies
Maintainers
0
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@langchain/redis - npm Package Compare versions

Comparing version 0.0.5 to 0.1.0

dist/connections.cjs

4

dist/chat_histories.js

@@ -1,4 +0,4 @@

import { createClient, } from "redis";
import { BaseListChatMessageHistory } from "@langchain/core/chat_history";
import { mapChatMessagesToStoredMessages, mapStoredMessagesToChatMessages, } from "@langchain/core/messages";
import { pool } from "./connections.js";
/**

@@ -61,3 +61,3 @@ * Class for storing chat message history using Redis. Extends the

const { sessionId, sessionTTL, config, client } = fields;
this.client = (client ?? createClient(config ?? {}));
this.client = (client ?? pool.getClient(config));
this.sessionId = sessionId;

@@ -64,0 +64,0 @@ this.sessionTTL = sessionTTL;

{
"name": "@langchain/redis",
"version": "0.0.5",
"version": "0.1.0",
"description": "Sample integration for LangChain.js",

@@ -17,7 +17,4 @@ "type": "module",

"scripts": {
"build": "yarn clean && yarn build:esm && yarn build:cjs && yarn build:scripts",
"build:esm": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist/ && rm -rf dist/tests dist/**/tests",
"build:cjs": "NODE_OPTIONS=--max-old-space-size=4096 tsc --outDir dist-cjs/ -p tsconfig.cjs.json && yarn move-cjs-to-dist && rm -rf dist-cjs",
"build:watch": "yarn create-entrypoints && tsc --outDir dist/ --watch",
"build:scripts": "yarn create-entrypoints && yarn check-tree-shaking",
"build": "yarn turbo:command build:internal --filter=@langchain/redis",
"build:internal": "yarn lc_build --create-entrypoints --pre --tree-shaking",
"lint:eslint": "NODE_OPTIONS=--max-old-space-size=4096 eslint --cache --ext .ts,.js src/",

@@ -27,3 +24,3 @@ "lint:dpdm": "dpdm --exit-code circular:1 --no-warning --no-tree src/*.ts src/**/*.ts",

"lint:fix": "yarn lint:eslint --fix && yarn lint:dpdm",
"clean": "rm -rf dist/ && NODE_OPTIONS=--max-old-space-size=4096 yarn lc-build --config ./langchain.config.js --create-entrypoints --pre",
"clean": "rm -rf .turbo dist/",
"prepack": "yarn build",

@@ -35,6 +32,3 @@ "test": "NODE_OPTIONS=--experimental-vm-modules jest --testPathIgnorePatterns=\\.int\\.test.ts --testTimeout 30000 --maxWorkers=50%",

"format": "prettier --config .prettierrc --write \"src\"",
"format:check": "prettier --config .prettierrc --check \"src\"",
"move-cjs-to-dist": "yarn lc-build --config ./langchain.config.js --move-cjs-dist",
"create-entrypoints": "yarn lc-build --config ./langchain.config.js --create-entrypoints",
"check-tree-shaking": "yarn lc-build --config ./langchain.config.js --tree-shaking"
"format:check": "prettier --config .prettierrc --check \"src\""
},

@@ -44,9 +38,12 @@ "author": "LangChain",

"dependencies": {
"@langchain/core": ">0.1.0 <0.3.0",
"redis": "^4.6.13"
},
"peerDependencies": {
"@langchain/core": ">=0.2.21 <0.4.0"
},
"devDependencies": {
"@faker-js/faker": "^8.4.0",
"@jest/globals": "^29.5.0",
"@langchain/scripts": "~0.0",
"@langchain/core": "workspace:*",
"@langchain/scripts": ">=0.1.0 <0.2.0",
"@swc/core": "^1.3.90",

@@ -69,7 +66,7 @@ "@swc/jest": "^0.2.29",

"prettier": "^2.8.3",
"release-it": "^15.10.1",
"release-it": "^17.6.0",
"rollup": "^4.5.2",
"ts-jest": "^29.1.0",
"typescript": "<5.2.0",
"uuid": "^9.0.1"
"uuid": "^10.0.0"
},

@@ -76,0 +73,0 @@ "publishConfig": {

@@ -8,3 +8,3 @@ # @langchain/redis

```bash npm2yarn
npm install @langchain/redis
npm install @langchain/redis @langchain/core
```

@@ -11,0 +11,0 @@

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc