diff --git a/CHANGELOG.md b/CHANGELOG.md index d487b1bb565..31274993ab5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,9 @@ -# [Latest](https://github.com/browserless/chrome/compare/v2.7.0...main) +# [Latest](https://github.com/browserless/chrome/compare/v2.7.1...main) +- Dependency updates. + +# [v2.7.1](https://github.com/browserless/chrome/compare/v2.7.0...v2.7.1) +**April 11, 2024** +- Fixes a boot-looping issue due to bad startup script. Adds tests for this as well. - Dependency updates. # [v2.7.0](https://github.com/browserless/chrome/compare/v2.6.1...v2.7.0) diff --git a/package-lock.json b/package-lock.json index ebe5e93f1be..6bbe1da02db 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,15 +1,14 @@ { "name": "@browserless.io/browserless", - "version": "2.7.0", + "version": "2.7.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@browserless.io/browserless", - "version": "2.7.0", + "version": "2.7.1", "license": "SSPL", "dependencies": { - "@types/node": "^20.12.7", "debug": "^4.3.2", "del": "^7.0.0", "enjoi": "^9.0.1", @@ -55,7 +54,7 @@ "prettier": "^3.2.5", "sinon": "^17.0.1", "ts-node": "^10.9.2", - "typescript": "^5.4.4", + "typescript": "^5.4.5", "typescript-json-schema": "^0.63.0" } }, @@ -5590,9 +5589,9 @@ } }, "node_modules/typescript": { - "version": "5.4.4", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.4.tgz", - "integrity": "sha512-dGE2Vv8cpVvw28v8HCPqyb08EzbBURxDpuhJvTrusShUfGnhHBafDsLdS1EhhxyL6BJQE+2cT3dDPAv+MQ6oLw==", + "version": "5.4.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.4.5.tgz", + "integrity": "sha512-vcI4UpRgg81oIRUFwR0WSIHKt11nJ7SAVlYNIu+QpqeyXP+gpQJy/Z4+F0aGxSE4MqwjyXvW/TzgkLAx2AGHwQ==", "optional": true, "bin": { "tsc": "bin/tsc", diff --git a/package.json b/package.json index 0fffc61f728..728390b42e4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@browserless.io/browserless", - "version": "2.7.0", + "version": "2.7.1", "license": "SSPL", "description": "The browserless platform", "author": "browserless.io", @@ -90,7 +90,7 @@ "prettier": "^3.2.5", "sinon": "^17.0.1", "ts-node": "^10.9.2", - "typescript": "^5.4.4", + "typescript": "^5.4.5", "typescript-json-schema": "^0.63.0" }, "eslintConfig": { diff --git a/scripts/start.sh b/scripts/start.sh index 98a9b5916d5..db58d9e4661 100755 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -13,7 +13,8 @@ _kill_procs() { # Relay quit commands to processes trap _kill_procs SIGTERM SIGINT -if [ -z "$DISPLAY" ] then +if [ -z "$DISPLAY" ] +then Xvfb :99 -screen 0 1024x768x16 -nolisten tcp -nolisten unix & xvfb=$! export DISPLAY=:99 diff --git a/scripts/test.sh b/scripts/test.sh index c5dbb9878cb..293f018e806 100755 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -4,14 +4,17 @@ set -e # Install all dependencies for tests npm i --production=false -# Setup env variables -export DISPLAY=:1 +# Setup Env Variables export DEBUG=-* export PUPPETEER_DISABLE_HEADLESS_WARNING=true export NODE_OPTIONS="--loader ts-node/esm" -Xvfb :1 -screen 0 1024x768x16 -nolisten tcp -nolisten unix & -xvfb=$! +if [ -z "$DISPLAY" ] +then + Xvfb :99 -screen 0 1024x768x16 -nolisten tcp -nolisten unix & + xvfb=$! + export DISPLAY=:99 +fi # Run the tests ./node_modules/.bin/_mocha --timeout 30000 --slow 10000 --exit $@ && kill -TERM $xvfb