Skip to content

Commit

Permalink
Use TypeScript 5 (langchain-ai#828)
Browse files Browse the repository at this point in the history
* Use TypeScript 5

* Update other related deps
  • Loading branch information
nfcampos authored May 5, 2023
1 parent b58552f commit bc002b9
Show file tree
Hide file tree
Showing 10 changed files with 240 additions and 140 deletions.
2 changes: 1 addition & 1 deletion examples/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@
"eslint-plugin-prettier": "^4.2.1",
"prettier": "^2.8.3",
"tsx": "^3.12.3",
"typescript": "^4.9.5"
"typescript": "^5.0.0"
}
}
1 change: 0 additions & 1 deletion examples/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"allowSyntheticDefaultImports": true,
"baseUrl": "./src",
"declaration": true,
"experimentalDecorators": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedParameters": true,
Expand Down
8 changes: 4 additions & 4 deletions langchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -330,8 +330,8 @@
"@types/object-hash": "^3.0.2",
"@types/pdf-parse": "^1.1.1",
"@types/uuid": "^9",
"@typescript-eslint/eslint-plugin": "^5.51.0",
"@typescript-eslint/parser": "^5.51.0",
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.58.0",
"axios": "^0.26.0",
"cheerio": "^1.0.0-rc.12",
"chromadb": "^1.4.0",
Expand Down Expand Up @@ -362,9 +362,9 @@
"rollup": "^3.19.1",
"sqlite3": "^5.1.4",
"srt-parser-2": "^1.2.2",
"ts-jest": "^29.0.5",
"ts-jest": "^29.1.0",
"typeorm": "^0.3.12",
"typescript": "^4.9.5",
"typescript": "^5.0.0",
"weaviate-ts-client": "^1.0.0"
},
"peerDependencies": {
Expand Down
1 change: 0 additions & 1 deletion langchain/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"esModuleInterop": true,
"baseUrl": "./src",
"declaration": true,
"experimentalDecorators": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"noUnusedLocals": true,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"husky": "^8.0.3",
"lint-staged": "^13.1.1",
"prettier": "^2.8.3",
"typescript": "^4.9.5"
"typescript": "^5.0.0"
},
"dependencies": {
"turbo": "latest"
Expand Down
2 changes: 1 addition & 1 deletion test-exports-cjs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"prettier": "^2.8.3",
"typescript": "^4.9.5"
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion test-exports-esm/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@
"@tsconfig/recommended": "^1.0.2",
"@types/node": "^18.15.11",
"prettier": "^2.8.3",
"typescript": "^4.9.5"
"typescript": "^5.0.0"
}
}
6 changes: 3 additions & 3 deletions test-exports-vercel/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
"@types/react": "18.0.33",
"@types/react-dom": "18.0.11",
"eslint": "8.37.0",
"eslint-config-next": "13.2.4",
"eslint-config-next": "13.3.0",
"langchain": "workspace:*",
"next": "13.2.4",
"next": "13.3.0",
"react": "18.2.0",
"react-dom": "18.2.0",
"typescript": "5.0.3"
"typescript": "^5.0.0"
}
}
2 changes: 1 addition & 1 deletion test-exports-vite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"langchain": "workspace:*"
},
"devDependencies": {
"typescript": "^4.9.3",
"typescript": "^5.0.0",
"vite": "^4.2.0",
"vite-plugin-top-level-await": "^1.3.0",
"vite-plugin-wasm": "^3.2.2"
Expand Down
Loading

0 comments on commit bc002b9

Please sign in to comment.