Browse Source

chore: updates dependencies

e22m4u 4 months ago
parent
commit
8021b929e8
3 changed files with 9 additions and 8 deletions
  1. 4 4
      package.json
  2. 4 4
      setup.sh
  3. 1 0
      test.env

+ 4 - 4
package.json

@@ -38,7 +38,7 @@
     "prepare": "husky"
   },
   "dependencies": {
-    "mongodb": "6.17.0"
+    "mongodb": "6.18.0"
   },
   "peerDependencies": {
     "@e22m4u/js-format": "~0.1.0",
@@ -47,13 +47,13 @@
   "devDependencies": {
     "@commitlint/cli": "~19.8.1",
     "@commitlint/config-conventional": "~19.8.1",
-    "@eslint/js": "~9.31.0",
+    "@eslint/js": "~9.32.0",
     "c8": "~10.1.3",
     "chai": "~5.2.1",
     "chai-as-promised": "~8.0.1",
-    "dotenv": "~17.2.0",
+    "dotenv": "~17.2.1",
     "esbuild": "~0.25.8",
-    "eslint": "~9.31.0",
+    "eslint": "~9.32.0",
     "eslint-config-prettier": "~10.1.8",
     "eslint-plugin-chai-expect": "~3.1.0",
     "eslint-plugin-mocha": "~11.1.0",

+ 4 - 4
setup.sh

@@ -20,9 +20,9 @@ if [ "$DOCKER_EXISTS" -ne 0 ]; then
     exit 1
 fi
 
-# Pulling latest mongodb image
-printf "\nPulling latest mongodb image..."
-docker pull mongo:latest > /dev/null 2>&1
+# Pulling mongodb image
+printf "\nPulling mongodb $MONGODB_VERSION image..."
+docker pull mongo:"$MONGODB_VERSION" > /dev/null 2>&1
 
 # Starting the mongodb container
 printf "\nStarting the mongodb container..."
@@ -30,7 +30,7 @@ CONTAINER_EXISTS=$(docker ps -a -q -f name="$MONGODB_CONTAINER")
 if [ "$CONTAINER_EXISTS" ]; then
     docker rm -f "$MONGODB_CONTAINER" > /dev/null
 fi
-docker run --name "$MONGODB_CONTAINER" -p "$MONGODB_PORT":27017 -d mongo:latest > /dev/null
+docker run --name "$MONGODB_CONTAINER" -p "$MONGODB_PORT":27017 -d mongo:"$MONGODB_VERSION" > /dev/null
 
 # Mongodb container has started
 printf "\n\nStatus: Mongodb container has started."

+ 1 - 0
test.env

@@ -1,3 +1,4 @@
+MONGODB_VERSION=4.4.29
 MONGODB_CONTAINER=mongodb_c
 MONGODB_HOST=localhost
 MONGODB_PORT=27017