Merge pull request #14902 from overleaf/jpa-node-18-18-0

[misc] upgrade Node.js to latest LTS 18.18.0

GitOrigin-RevId: 96c7171065ceb8797c28efa4ab331d86a84868d2
This commit is contained in:
Jakob Ackermann 2023-09-22 12:35:18 +02:00 committed by Copybot
parent 5e21812e17
commit a2cf7b459c
88 changed files with 98 additions and 123 deletions

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ access-token-encryptor
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ fetch-utils
--esmock-loader=False
--has-custom-nodemon=True
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ logger
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ metrics
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ o-error
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ object-persistor
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ overleaf-editor-core
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ ranges-tracker
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ redis-wrapper
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ settings
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -6,6 +6,6 @@ stream-utils
--esmock-loader=False
--has-custom-nodemon=False
--is-library=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/chat

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ chat
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/chat
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/chat
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/clsi
COPY services/clsi/install_deps.sh /overleaf/services/clsi/

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -7,6 +7,6 @@ clsi
--esmock-loader=False
--has-custom-cloudbuild=True
--has-custom-nodemon=False
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/contacts

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ contacts
--env-pass-through=
--esmock-loader=True
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/contacts
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/contacts
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/docstore

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ docstore
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/docstore
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/docstore
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/document-updater

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ document-updater
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/document-updater
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/document-updater
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/filestore
COPY services/filestore/install_deps.sh /overleaf/services/filestore/

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -6,6 +6,6 @@ filestore
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=False
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/history-v1

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ history-v1
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/history-v1
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/history-v1
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/notifications

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ notifications
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/notifications
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/notifications
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/project-history

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ project-history
--env-pass-through=
--esmock-loader=True
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/project-history
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/project-history
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/real-time

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ real-time
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=False
--node-version=18.17.1
--node-version=18.18.0
--public-repo=False
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/real-time
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1-buster
18.18.0-buster

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1-buster as base
FROM node:18.18.0-buster as base
WORKDIR /overleaf/services/spelling
COPY services/spelling/install_deps.sh /overleaf/services/spelling/

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1-buster npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0-buster npm run --silent
format:
$(RUN_LINTING) format

View file

@ -6,6 +6,6 @@ spelling
--env-pass-through=
--esmock-loader=True
--has-custom-nodemon=False
--node-version=18.17.1-buster
--node-version=18.18.0-buster
--public-repo=False
--script-version=4.3.0

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -2,7 +2,7 @@
# Instead run bin/update_build_scripts from
# https://github.com/overleaf/internal/
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/track-changes

View file

@ -30,7 +30,7 @@ HERE=$(shell pwd)
MONOREPO=$(shell cd ../../ && pwd)
# Run the linting commands in the scope of the monorepo.
# Eslint and prettier (plus some configs) are on the root.
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.17.1 npm run --silent
RUN_LINTING = docker run --rm -v $(MONOREPO):$(MONOREPO) -w $(HERE) node:18.18.0 npm run --silent
format:
$(RUN_LINTING) format

View file

@ -5,6 +5,6 @@ track-changes
--env-pass-through=
--esmock-loader=False
--has-custom-nodemon=True
--node-version=18.17.1
--node-version=18.18.0
--public-repo=True
--script-version=4.3.0

View file

@ -6,7 +6,7 @@ version: "2.3"
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/track-changes
- ../../node_modules:/overleaf/node_modules
@ -20,7 +20,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/track-changes
- ../../node_modules:/overleaf/node_modules

View file

@ -1 +1 @@
18.17.1
18.18.0

View file

@ -1,6 +1,6 @@
# the base image is suitable for running web with /overleaf/services/web bind
# mounted
FROM node:18.17.1 as base
FROM node:18.18.0 as base
WORKDIR /overleaf/services/web

View file

@ -1,4 +1,4 @@
FROM node:18.17.1
FROM node:18.18.0
# Install Google Chrome
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -

View file

@ -303,15 +303,7 @@ if (Settings.csp && Settings.csp.enabled) {
}
logger.debug('creating HTTP server'.yellow)
const server = require('http').createServer(
process.env.NODE_ENV === 'test'
? {
// Workaround broken detection of idle connections in CI.
connectionsCheckingInterval: 30 * 60 * 1000,
}
: {},
app
)
const server = require('http').createServer(app)
// provide settings for separate web and api processes
if (Settings.enabledServices.includes('api')) {

View file

@ -41,5 +41,5 @@ SHARELATEX_SAML_UPDATE_USER_DETAILS_ON_LOGIN=true
SHARELATEX_SAML_CERT=MIIDXTCCAkWgAwIBAgIJAOvOeQ4xFTzsMA0GCSqGSIb3DQEBCwUAMEUxCzAJBgNVBAYTAkdCMRMwEQYDVQQIDApTb21lLVN0YXRlMSEwHwYDVQQKDBhJbnRlcm5ldCBXaWRnaXRzIFB0eSBMdGQwHhcNMTYxMTE1MTQxMjU5WhcNMjYxMTE1MTQxMjU5WjBFMQswCQYDVQQGEwJHQjETMBEGA1UECAwKU29tZS1TdGF0ZTEhMB8GA1UECgwYSW50ZXJuZXQgV2lkZ2l0cyBQdHkgTHRkMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCT6MBe5G9VoLU8MfztOEbUhnwLp17ak8eFUqxqeXkkqtWB0b/cmIBU3xoQoO3dIF8PBzfqehqfYVhrNt/TFgcmDfmJnPJRL1RJWMW3VmiP5odJ3LwlkKbZpkeT3wZ8HEJIR1+zbpxiBNkbd2GbdR1iumcsHzMYX1A2CBj+ZMV5VijC+K4P0e9c05VsDEUtLmfeAasJAiumQoVVgAe/BpiXjICGGewa6EPFI7mKkifIRKOGxdRESwZZjxP30bI31oDN0cgKqIgSJtJ9nfCn9jgBMBkQHu42WMuaWD4jrGd7+vYdX+oIfArs9aKgAH5kUGhGdew2R9SpBefrhbNxG8QIDAQABo1AwTjAdBgNVHQ4EFgQU+aSojSyyLChP/IpZcafvSdhj7KkwHwYDVR0jBBgwFoAU+aSojSyyLChP/IpZcafvSdhj7KkwDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsFAAOCAQEABl3+OOVLBWMKs6PjA8lPuloWDNzSr3v76oUcHqAb+cfbucjXrOVsS9RJ0X9yxvCQyfM9FfY43DbspnN3izYhdvbJD8kKLNf0LA5st+ZxLfy0ACyL2iyAwICaqndqxAjQYplFAHmpUiu1DiHckyBPekokDJd+ze95urHMOsaGS5RWPoKJVE0bkaAeZCmEu0NNpXRSBiuxXSTeSAJfv6kyE/rkdhzUKyUl/cGQFrsVYfAFQVA+W6CKOh74ErSEzSHQQYndl7nD33snD/YqdU1ROxV6aJzLKCg+sdj+wRXSP2u/UHnM4jW9TGJfhO42jzL6WVuEvr9q4l7zWzUQKKKhtQ==
# DEVICE_HISTORY_SECRET has been generated using:
# NOTE: crypto.generateKeySync was added in v15, v16 is the next LTS release.
# $ docker run --rm node:18.17.1 --print 'require("crypto").generateKeySync("aes", { length: 256 }).export().toString("hex")'
# $ docker run --rm node:18.18.0 --print 'require("crypto").generateKeySync("aes", { length: 256 }).export().toString("hex")'
DEVICE_HISTORY_SECRET=1b46e6cdf72db02845da06c9517c9cfbbfa0d87357479f4e1df3ce160bd54807

View file

@ -6,7 +6,7 @@ volumes:
services:
test_unit:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/web
- ../../node_modules:/overleaf/node_modules
@ -21,7 +21,7 @@ services:
user: node
test_acceptance:
image: node:18.17.1
image: node:18.18.0
volumes:
- .:/overleaf/services/web
- ../../node_modules:/overleaf/node_modules

View file

@ -1,4 +1,4 @@
FROM node:18.17.1
FROM node:18.18.0
WORKDIR /app/scripts/translations

View file

@ -9,7 +9,6 @@ const express = require('express')
const {
plainTextResponse,
} = require('../../../app/src/infrastructure/Response')
const http = require('http')
const LinkedUrlProxy = express()
LinkedUrlProxy.get('/', (req, res, next) => {
if (req.query.url === 'http://example.com/foo') {
@ -32,15 +31,7 @@ describe('LinkedFiles', function () {
let server
before(function (done) {
server = http
.createServer(
{
// Workaround broken detection of idle connections in CI.
connectionsCheckingInterval: 30 * 60 * 1000,
},
LinkedUrlProxy
)
.listen(6543, done)
server = LinkedUrlProxy.listen(6543, done)
})
after(function (done) {
server.close(done)

View file

@ -1,7 +1,6 @@
const OError = require('@overleaf/o-error')
const express = require('express')
const bodyParser = require('body-parser')
const http = require('http')
/**
* Abstract class for running a mock API via Express. Handles setting up of
@ -140,14 +139,7 @@ class AbstractMockApi {
// eslint-disable-next-line no-console
console.log('Starting mock on port', this.constructor.name, this.port)
}
this.server = http
.createServer(
{
// Workaround broken detection of idle connections in CI.
connectionsCheckingInterval: 30 * 60 * 1000,
},
this.app
)
this.server = this.app
.listen(this.port, err => {
if (err) {
return reject(err)