Skip to content

Commit d380611

Browse files
authored
Merge pull request #81 from mongodb/cbullinger/dependency-updates-dev
Update dependencies across all backends and frontend
2 parents ca58a29 + abda9be commit d380611

6 files changed

Lines changed: 85 additions & 79 deletions

File tree

mflix/client/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212
"lint": "eslint"
1313
},
1414
"dependencies": {
15-
"react": "19.2.0",
16-
"react-dom": "19.2.0",
17-
"next": "16.1.5"
15+
"next": "^16.1.6",
16+
"react": "^19.2.4",
17+
"react-dom": "^19.2.4"
1818
},
1919
"devDependencies": {
20-
"typescript": "^5",
20+
"@eslint/eslintrc": "^3",
2121
"@types/node": "^20",
2222
"@types/react": "^19",
2323
"@types/react-dom": "^19",
2424
"eslint": "^9",
25-
"eslint-config-next": "16.1.5",
26-
"@eslint/eslintrc": "^3"
25+
"eslint-config-next": "^16.1.6",
26+
"typescript": "^5"
2727
}
2828
}

mflix/server/java-spring/pom.xml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@
2121
<properties>
2222
<java.version>21</java.version>
2323
<springdoc.version>2.8.13</springdoc.version>
24-
<dotenv.version>4.0.0</dotenv.version>
25-
<commons.lang3.version>3.19.0</commons.lang3.version>
26-
<impsort.plugin.version>1.12.0</impsort.plugin.version>
24+
<dotenv.version>5.1.0</dotenv.version>
25+
<commons.lang3.version>3.20.0</commons.lang3.version>
26+
<impsort.plugin.version>1.13.0</impsort.plugin.version>
2727
<byte-buddy.version>1.17.8</byte-buddy.version>
28-
<langchain4j.version>1.0.0-beta3</langchain4j.version>
28+
<langchain4j.version>1.11.0-beta19</langchain4j.version>
2929
</properties>
3030

3131
<dependencies>
@@ -50,7 +50,7 @@
5050
<!-- Spring Dotenv - Load .env files -->
5151
<dependency>
5252
<groupId>me.paulschwarz</groupId>
53-
<artifactId>spring-dotenv</artifactId>
53+
<artifactId>springboot3-dotenv</artifactId>
5454
<version>${dotenv.version}</version>
5555
</dependency>
5656

mflix/server/js-express/package.json

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,26 +19,26 @@
1919
"test:silent": "jest --silent"
2020
},
2121
"dependencies": {
22-
"cors": "^2.8.5",
23-
"dotenv": "^17.2.3",
24-
"express": "^5.1.0",
25-
"mongodb": "^7.0.0",
22+
"cors": "^2.8.6",
23+
"dotenv": "^17.2.4",
24+
"express": "^5.2.1",
25+
"mongodb": "^7.1.0",
2626
"swagger-jsdoc": "^6.2.8",
2727
"swagger-ui-express": "^5.0.1",
2828
"winston": "^3.19.0"
2929
},
3030
"devDependencies": {
31-
"@types/cors": "^2.8.17",
32-
"@types/express": "^4.17.21",
33-
"@types/jest": "^29.5.14",
34-
"@types/node": "^20.10.5",
31+
"@types/cors": "^2.8.19",
32+
"@types/express": "^5.0.6",
33+
"@types/jest": "^30.0.0",
34+
"@types/node": "^25.2.2",
3535
"@types/supertest": "^6.0.3",
3636
"@types/swagger-jsdoc": "^6.0.4",
3737
"@types/swagger-ui-express": "^4.1.8",
38-
"jest": "^29.7.0",
39-
"supertest": "^7.1.4",
40-
"ts-jest": "^29.1.1",
38+
"jest": "^30.2.0",
39+
"supertest": "^7.2.2",
40+
"ts-jest": "^29.4.6",
4141
"ts-node": "^10.9.2",
42-
"typescript": "^5.3.3"
42+
"typescript": "^5.9.3"
4343
}
4444
}

mflix/server/js-express/src/controllers/movieController.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -172,8 +172,8 @@ export async function getDistinctGenres(
172172
export async function getMovieById(req: Request, res: Response): Promise<void> {
173173
const { id } = req.params;
174174

175-
// Validate ObjectId format
176-
if (!ObjectId.isValid(id)) {
175+
// Validate id is a string and ObjectId format
176+
if (typeof id !== "string" || !ObjectId.isValid(id)) {
177177
res
178178
.status(400)
179179
.json(
@@ -305,8 +305,8 @@ export async function updateMovie(req: Request, res: Response): Promise<void> {
305305
const { id } = req.params;
306306
const updateData: UpdateMovieRequest = req.body;
307307

308-
// Validate ObjectId format
309-
if (!ObjectId.isValid(id)) {
308+
// Validate id is a string and ObjectId format
309+
if (typeof id !== "string" || !ObjectId.isValid(id)) {
310310
res
311311
.status(400)
312312
.json(
@@ -426,8 +426,8 @@ export async function updateMoviesBatch(
426426
export async function deleteMovie(req: Request, res: Response): Promise<void> {
427427
const { id } = req.params;
428428

429-
// Validate ObjectId format
430-
if (!ObjectId.isValid(id)) {
429+
// Validate id is a string and ObjectId format
430+
if (typeof id !== "string" || !ObjectId.isValid(id)) {
431431
res
432432
.status(400)
433433
.json(
@@ -521,8 +521,8 @@ export async function findAndDeleteMovie(
521521
): Promise<void> {
522522
const { id } = req.params;
523523

524-
// Validate ObjectId format
525-
if (!ObjectId.isValid(id)) {
524+
// Validate id is a string and ObjectId format
525+
if (typeof id !== "string" || !ObjectId.isValid(id)) {
526526
res
527527
.status(400)
528528
.json(

mflix/server/python-fastapi/requirements.in

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,21 @@
22
# 1. CORE WEB FRAMEWORK & ASGI SERVER
33
# FastAPI and its main components.
44
# ------------------------------------------------------------------------------
5-
fastapi~=0.120.1 # The main web framework
6-
starlette~=0.49.1 # FastAPI's underlying ASGI toolkit
5+
fastapi~=0.120.4 # The main web framework
6+
starlette~=0.49.3 # FastAPI's underlying ASGI toolkit
77
uvicorn~=0.38.0 # Production-ready ASGI server
8-
uvloop~=0.22.0 # Optional: High-performance event loop for uvicorn
9-
websockets~=15.0.0 # For WebSocket support
10-
watchfiles~=1.1.0 # For hot-reloading in development
8+
uvloop~=0.22.1 # Optional: High-performance event loop for uvicorn
9+
websockets~=15.0.1 # For WebSocket support
10+
watchfiles~=1.1.1 # For hot-reloading in development
1111

1212
# ==============================================================================
1313
# 2. DATA VALIDATION & CORE UTILITIES
1414
# Primary libraries for data models and environment config.
1515
# ------------------------------------------------------------------------------
16-
pydantic~=2.12.0 # Data validation and settings management
17-
python-dotenv~=1.1.0 # For loading configuration from .env files
16+
pydantic~=2.12.5 # Data validation and settings management
17+
python-dotenv~=1.1.1 # For loading configuration from .env files
1818
python-multipart>=0.0.22 # For parsing form data and file uploads
19-
PyYAML~=6.0.0 # For handling YAML configuration or data
19+
PyYAML~=6.0.3 # For handling YAML configuration or data
2020

2121
# ==============================================================================
2222
# 3. DATABASE & CONNECTIVITY
@@ -29,38 +29,38 @@ dnspython~=2.8.0 # Required for SRV record lookups by pymongo (e.g., Mong
2929
# 4. HTTP CLIENT & UTILITIES
3030
# Primary libraries for making external HTTP requests.
3131
# ------------------------------------------------------------------------------
32-
httpx~=0.28.0 # Asynchronous HTTP client for requests to external APIs
32+
httpx~=0.28.1 # Asynchronous HTTP client for requests to external APIs
3333
email-validator~=2.3.0 # Utility for validating email addresses
34-
voyageai~=0.3.5 # Vector embeddings API client
34+
voyageai~=0.3.7 # Vector embeddings API client
3535
urllib3>=2.6.3 # HTTP library
3636

3737
# ==============================================================================
3838
# 5. CLI & DEVELOPMENT TOOLS
3939
# Tools for building command-line interfaces for management tasks.
4040
# ------------------------------------------------------------------------------
41-
typer~=0.20.0 # Library for creating command-line applications
42-
fastapi-cli~=0.0.0 # Tools to run and manage FastAPI projects
43-
fastapi-cloud-cli~=0.3.0 # Tools for cloud deployment (specific to your pipeline)
41+
typer~=0.20.1 # Library for creating command-line applications
42+
fastapi-cli~=0.0.20 # Tools to run and manage FastAPI projects
43+
fastapi-cloud-cli~=0.3.1 # Tools for cloud deployment (specific to your pipeline)
4444

4545
# ==============================================================================
4646
# 6. TESTING & MONITORING
4747
# Frameworks for ensuring code quality and production health.
4848
# ------------------------------------------------------------------------------
49-
pytest~=8.4.0 # Primary testing framework
49+
pytest~=8.4.2 # Primary testing framework
5050
pytest-asyncio~=1.2.0 # Plugin to make asynchronous tests easy with pytest
51-
sentry-sdk~=2.42.0 # For error tracking and performance monitoring
51+
sentry-sdk~=2.42.1 # For error tracking and performance monitoring
5252

5353
# ==============================================================================
5454
# 7. LOGGING AND TERMINAL OUTPUT
5555
# Libraries for rich console output and debugging.
5656
# ------------------------------------------------------------------------------
5757
rich~=14.2.0 # For rich, formatted terminal output
58-
rich-toolkit~=0.15.0 # Extensions for the 'rich' library
58+
rich-toolkit~=0.15.1 # Extensions for the 'rich' library
5959

6060
# ==============================================================================
6161
# 8. TRANSITIVE DEPENDENCY CONSTRAINTS
6262
# Minimum versions for indirect dependencies.
6363
# ------------------------------------------------------------------------------
6464
filelock>=3.20.3 # Transitive dep via huggingface-hub
6565
aiohttp>=3.13.3 # Transitive dep via voyageai
66-
orjson>=3.11.5 # Transitive dep via langsmith (CVE fix)
66+
orjson>=3.11.7 # Transitive dep via langsmith (CVE fix)

0 commit comments

Comments
 (0)