Skip to content

Commit

Permalink
Upgrade mongoose 6.x => 8.x; minimum node 14.x => 16.x
Browse files Browse the repository at this point in the history
  • Loading branch information
yehudab committed Dec 9, 2023
1 parent 32025ae commit 28cf1e4
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 35 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
timeout-minutes: 2

steps:
- uses: styfle/cancel-workflow-action@0.5.0
- uses: styfle/cancel-workflow-action@0.12.0
with:
access_token: ${{ github.token }}

Expand All @@ -28,14 +28,14 @@ jobs:

strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, 20.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Start with first build stage

FROM node:14-alpine AS build
FROM node:20-alpine AS build

# Add and set non-root user. Disable the password and do not create a home folder.

Expand All @@ -22,7 +22,7 @@ COPY dist /srv/app/dist

# Start with second build stage

FROM node:14-alpine
FROM node:20-alpine
EXPOSE 3000
WORKDIR /srv/app/

Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"is-valid-domain": "^0.1.6",
"micro": "^9.3.4",
"microrouter": "^3.1.3",
"mongoose": "^6.3.1",
"mongoose": "^8.0.3",
"node-fetch": "^2.6.1",
"node-schedule": "^2.0.0",
"normalize-url": "^6.0.1",
Expand Down Expand Up @@ -105,6 +105,6 @@
]
},
"engines": {
"node": ">= 14"
"node": ">= 16"
}
}
63 changes: 36 additions & 27 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2023,6 +2023,13 @@
"@jridgewell/resolve-uri" "3.1.0"
"@jridgewell/sourcemap-codec" "1.4.14"

"@mongodb-js/saslprep@^1.1.0":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@mongodb-js/saslprep/-/saslprep-1.1.1.tgz#9a6c2516bc9188672c4d953ec99760ba49970da7"
integrity sha512-t7c5K033joZZMspnHg/gWPE4kandgc2OxE74aYOtGKfgB9VPuVJPix0H6fhmm2erj5PBJ21mqcx34lpIGtUCsQ==
dependencies:
sparse-bitfield "^3.0.3"

"@nodelib/[email protected]":
version "2.1.5"
resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5"
Expand Down Expand Up @@ -2889,6 +2896,11 @@ bson@^4.7.0:
dependencies:
buffer "^5.6.0"

bson@^6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/bson/-/bson-6.2.0.tgz#4b6acafc266ba18eeee111373c2699304a9ba0a3"
integrity sha512-ID1cI+7bazPDyL9wYy9GaQ8gEEohWvcUl/Yf0dIdutJxnmInEEyCsb4awy/OiBfall7zBA179Pahi3vCdFze3Q==

buffer-crc32@~0.2.3:
version "0.2.13"
resolved "https://registry.yarnpkg.com/buffer-crc32/-/buffer-crc32-0.2.13.tgz#0d333e3f00eac50aa1454abd30ef8c2a5d9a7242"
Expand Down Expand Up @@ -5186,10 +5198,10 @@ jsprim@^1.2.2:
array-includes "^3.1.5"
object.assign "^4.1.3"

[email protected].0:
version "2.5.0"
resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.5.0.tgz#9d2b2272609b0d5b981757fa5794d7ad0ac041b2"
integrity sha512-rVBUGGwvqg130iwYu8k7lutHuDBFj1yGRdnlE44wEhxAmFBad1zcL66PdWC1raw3tIObY6XWhtv3VL04xQb/cg==
[email protected].1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/kareem/-/kareem-2.5.1.tgz#7b8203e11819a8e77a34b3517d3ead206764d15d"
integrity sha512-7jFxRVm+jD+rkq3kY0iZDJfsO2/t4BBPeEb2qKn2lR/9KhuksYk5hxzfRYWMPV8P/x2d0kHD306YyWLzjjH+uA==

[email protected]:
version "1.6.0"
Expand Down Expand Up @@ -5517,7 +5529,7 @@ mocked-env@^1.3.5:
lazy-ass "1.6.0"
ramda "0.27.1"

mongodb-connection-string-url@^2.5.4:
mongodb-connection-string-url@^2.5.4, mongodb-connection-string-url@^2.6.0:
version "2.6.0"
resolved "https://registry.yarnpkg.com/mongodb-connection-string-url/-/mongodb-connection-string-url-2.6.0.tgz#57901bf352372abdde812c81be47b75c6b2ec5cf"
integrity sha512-WvTZlI9ab0QYtTYnuMLgobULWhokRjtC7db9LtcVfJ+Hsnyr5eo6ZtNAt3Ly24XZScGMelOcGtm7lSn0332tPQ==
Expand Down Expand Up @@ -5555,17 +5567,14 @@ mongodb-memory-server@^8.5.2:
mongodb-memory-server-core "8.10.2"
tslib "^2.4.1"

mongodb@4.12.1:
version "4.12.1"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-4.12.1.tgz#224eb39b8784af835b515aa687c6010cecaabb1a"
integrity sha512-koT87tecZmxPKtxRQD8hCKfn+ockEL2xBiUvx3isQGI6mFmagWt4f4AyCE9J4sKepnLhMacoCTQQA6SLAI2L6w==
mongodb@6.2.0:
version "6.2.0"
resolved "https://registry.yarnpkg.com/mongodb/-/mongodb-6.2.0.tgz#2c9dcb3eeaf528ed850e94b3df392de6c6b0d7ab"
integrity sha512-d7OSuGjGWDZ5usZPqfvb36laQ9CPhnWkAGHT61x5P95p/8nMVeH8asloMwW6GcYFeB0Vj4CB/1wOTDG2RA9BFA==
dependencies:
bson "^4.7.0"
mongodb-connection-string-url "^2.5.4"
socks "^2.7.1"
optionalDependencies:
"@aws-sdk/credential-providers" "^3.186.0"
saslprep "^1.0.3"
"@mongodb-js/saslprep" "^1.1.0"
bson "^6.2.0"
mongodb-connection-string-url "^2.6.0"

mongodb@~4.11.0:
version "4.11.0"
Expand All @@ -5580,16 +5589,16 @@ mongodb@~4.11.0:
"@aws-sdk/credential-providers" "^3.186.0"
saslprep "^1.0.3"

mongoose@^6.3.1:
version "6.8.0"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-6.8.0.tgz#24f32c751a6011d8fc7992af5792f706ca748eda"
integrity sha512-zlUfjcLya3pLfLTxwyH5S9bZUolJWGKF2M7PEV0118jv4VWHR/krjb6LIWu1RPQN2rwYmnmjjzJLVhbhmHqSmg==
mongoose@^8.0.3:
version "8.0.3"
resolved "https://registry.yarnpkg.com/mongoose/-/mongoose-8.0.3.tgz#f3708ba0f40b6dec8f5f1a5d40abd69a80207114"
integrity sha512-LJRT0yP4TW14HT4r2RkxqyvoTylMSzWpl5QOeVHTnRggCLQSpkoBdgbUtORFq/mSL2o9cLCPJz+6uzFj25qbHw==
dependencies:
bson "^4.7.0"
kareem "2.5.0"
mongodb "4.12.1"
bson "^6.2.0"
kareem "2.5.1"
mongodb "6.2.0"
mpath "0.9.0"
mquery "4.0.3"
mquery "5.0.0"
ms "2.1.3"
sift "16.0.1"

Expand All @@ -5598,10 +5607,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/mpath/-/mpath-0.9.0.tgz#0c122fe107846e31fc58c75b09c35514b3871904"
integrity sha512-ikJRQTk8hw5DEoFVxHG1Gn9T/xcjtdnOKIU1JTmGjZZlg9LST2mBLmcX3/ICIbgJydT2GOc15RnNy5mHmzfSew==

mquery@4.0.3:
version "4.0.3"
resolved "https://registry.yarnpkg.com/mquery/-/mquery-4.0.3.tgz#4d15f938e6247d773a942c912d9748bd1965f89d"
integrity sha512-J5heI+P08I6VJ2Ky3+33IpCdAvlYGTSUjwTPxkAr8i8EoduPMBX2OY/wa3IKZIQl7MU4SbFk8ndgSKyB/cl1zA==
mquery@5.0.0:
version "5.0.0"
resolved "https://registry.yarnpkg.com/mquery/-/mquery-5.0.0.tgz#a95be5dfc610b23862df34a47d3e5d60e110695d"
integrity sha512-iQMncpmEK8R8ncT8HJGsGc9Dsp8xcgYMVSbs5jgnm1lFHTZqMJTUWTDx1LBO8+mK3tPNZWFLBghQEIOULSTHZg==
dependencies:
debug "4.x"

Expand Down

0 comments on commit 28cf1e4

Please sign in to comment.