Skip to content

Commit

Permalink
chore: update to node 18 lts
Browse files Browse the repository at this point in the history
  • Loading branch information
raikasdev committed Aug 22, 2023
1 parent 981c7be commit 26c2931
Show file tree
Hide file tree
Showing 33 changed files with 34 additions and 39 deletions.
5 changes: 1 addition & 4 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 16, 14, 12, 16-bullseye, 14-bullseye, 12-bullseye, 16-buster, 14-buster, 12-buster
ARG VARIANT=16-bullseye
ARG VARIANT=18-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

# Install MongoDB command line tools if on buster and x86_64 (arm64 not supported)
Expand All @@ -23,6 +23,3 @@ RUN . /etc/os-release \

# [Optional] Uncomment if you want to install more global node modules
RUN su node -c "npm install -g [email protected]"



2 changes: 1 addition & 1 deletion .devcontainer/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ services:
# Update 'VARIANT' to pick an LTS version of Node.js: 16, 14, 12.
# Append -bullseye or -buster to pin to an OS version.
# Use -bullseye variants on local arm64/Apple Silicon.
VARIANT: 16-bullseye
VARIANT: 18-bullseye
volumes:
- ..:/workspace:cached

Expand Down
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ body:
attributes:
label: node version
description: In case of self-hosting or local installation mention the node version. If using our cloud-managed solution, mention NA.
placeholder: 16.0.0
placeholder: 18.0.0
- type: textarea
id: additional-context
validations:
Expand Down
2 changes: 1 addition & 1 deletion .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ runs:
- uses: actions/setup-node@v3
name: ⚙️ Setup Node Version
with:
node-version: '16.15.1'
node-version: '18.17.1'
cache: 'pnpm'

- name: 💵 Start Redis
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/community-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/issue-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/milestone-assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
- name: Install Octokit
run: npm --prefix .github/workflows/scripts install @octokit/action

Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/tag-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ jobs:
run: echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
- uses: actions/setup-node@v3
with:
node-version: '16.15.1'
node-version: '18.17.1'

- name: Login to docker
env:
Expand Down Expand Up @@ -125,4 +125,3 @@ jobs:
docker pull ghcr.io/$REGISTRY_OWNER/$DOCKER_NAME:prod
docker tag ghcr.io/$REGISTRY_OWNER/$DOCKER_NAME:prod ghcr.io/$REGISTRY_OWNER/$DOCKER_NAME:$DOCKER_VERSION
docker push ghcr.io/$REGISTRY_OWNER/$DOCKER_NAME:$DOCKER_VERSION
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.1
18.17.1
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ You can open a new issue with this [issue form](https://github.com/novuhq/novu/i

### Requirements

- Node.js version v14.19.3
- Node.js version v18.17.1 (LTS)
- MongoDB
- Redis. To install Redis on your O.S, please follow the below guides
- [To install Redis on Windows](https://redis.io/docs/getting-started/installation/install-redis-on-windows/)
Expand Down
2 changes: 1 addition & 1 deletion _templates/provider/new/package.ejs.t
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine as dev_base
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine as dev_base

ARG BULL_MQ_PRO_TOKEN
ENV BULL_MQ_PRO_NPM_TOKEN=$BULL_MQ_PRO_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion apps/inbound-mail/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine as dev_base
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine as dev_base

ARG BULL_MQ_PRO_TOKEN
ENV BULL_MQ_PRO_NPM_TOKEN=$BULL_MQ_PRO_TOKEN
Expand Down
4 changes: 2 additions & 2 deletions apps/web/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# start build stage
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine as builder
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine as builder
ENV NX_DAEMON=false

WORKDIR /usr/src/app
Expand Down Expand Up @@ -37,7 +37,7 @@ RUN NX_DAEMON=false pnpm build:web
# end build stage

# start production stage
FROM node:16-alpine
FROM node:18-alpine

WORKDIR /app

Expand Down
2 changes: 1 addition & 1 deletion apps/webhook/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine as dev_base
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine as dev_base
ENV NX_DAEMON=false

RUN npm i pm2 -g
Expand Down
2 changes: 1 addition & 1 deletion apps/widget/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine
ENV NX_DAEMON=false

WORKDIR /usr/src/app
Expand Down
2 changes: 1 addition & 1 deletion apps/worker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine as dev_base
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine as dev_base
RUN apk --update --no-cache add curl
ENV NX_DAEMON=false

Expand Down
2 changes: 1 addition & 1 deletion apps/ws/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:16-alpine3.16
FROM node:18-alpine3.16

ARG BULL_MQ_PRO_TOKEN
ENV BULL_MQ_PRO_NPM_TOKEN=$BULL_MQ_PRO_TOKEN
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/community/create-provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Providers allow us to handle message delivery over multiple channels. We have mu

## Requirements

- Node.js version v16.15.1
- Node.js version v18.17.1
- MongoDB
- Redis
- **(Optional)** pnpm - Needed if you want to install new packages
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/community/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Here we will outline some of the most common questions we get asked about the pr

Novu consists of multiple services written in Node.js and Typescript. The following are the dependencies required to run the project fully:

- Node.js version v16.15.1
- Node.js version v18.17.1
- MongoDB
- Redis
- File storage (S3/GCP/Azure) - Optional
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/community/run-locally.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import FAQItem from '@site/src/components/FAQItem';

## Requirements

- Node.js version v16.15.1
- Node.js version v18.17.1
- MongoDB
- Redis
- **(Optional)** pnpm - Needed if you want to install new packages
Expand Down
2 changes: 1 addition & 1 deletion libs/embed/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM nikolaik/python-nodejs:python3.10-nodejs16-alpine
FROM nikolaik/python-nodejs:python3.10-nodejs18-alpine

WORKDIR /usr/src/app

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@
}
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.33.4"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/africas-talking/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/forty-six-elks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/maqsam/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/mattermost/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/one-signal/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/plunk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/push-webhook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/sendchamp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion providers/sms-central/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"access": "public"
},
"engines": {
"node": ">=13.0.0 <17.0.0",
"node": ">=18.17.1 <19",
"pnpm": "^7.26.0"
},
"dependencies": {
Expand Down
3 changes: 1 addition & 2 deletions scripts/dev-environment-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ check_nvm () {
}

install_node () {
NODE_JS_VERSION="v16.15.1"
NODE_JS_VERSION="v18.17.1"

SKIP="$(check_nvm)"

Expand Down Expand Up @@ -512,4 +512,3 @@ install_os_dependencies () {
install_os_dependencies
clone_monorepo
refresh_shell

0 comments on commit 26c2931

Please sign in to comment.