diff --git a/CHANGELOG.md b/CHANGELOG.md index f218d2affe4..8793de5c507 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +## [8.12.0](https://github.com/netlify/cli/compare/v8.11.1...v8.12.0) (2022-01-21) + + +### Features + +* **dev:** document how to disable browser auto launch ([#4106](https://github.com/netlify/cli/issues/4106)) ([b15f228](https://github.com/netlify/cli/commit/b15f228d50afbf19dead2bf335198c055621fd8d)) + +### [8.11.1](https://github.com/netlify/cli/compare/v8.11.0...v8.11.1) (2022-01-21) + + +### Bug Fixes + +* **deps:** update dependency @netlify/functions to ^0.11.0 ([#4105](https://github.com/netlify/cli/issues/4105)) ([6ddf42a](https://github.com/netlify/cli/commit/6ddf42a3c5a0769f93ea0b1840a611a535f63c34)) +* **deps:** update dependency @netlify/plugins-list to ^6.3.1 ([#4104](https://github.com/netlify/cli/issues/4104)) ([eff74d0](https://github.com/netlify/cli/commit/eff74d0e449c8b7eaf91ec6fdb87a74093d821cc)) + ## [8.11.0](https://github.com/netlify/cli/compare/v8.10.2...v8.11.0) (2022-01-20) diff --git a/docs/commands/dev.md b/docs/commands/dev.md index e687651c812..cf912651434 100644 --- a/docs/commands/dev.md +++ b/docs/commands/dev.md @@ -42,6 +42,7 @@ netlify dev netlify dev netlify dev -d public netlify dev -c "hugo server -w" --targetPort 1313 +BROWSER=none netlify dev # disable browser auto opening ``` --- diff --git a/docs/netlify-dev.md b/docs/netlify-dev.md index 9d3a4173014..2d0448466c5 100644 --- a/docs/netlify-dev.md +++ b/docs/netlify-dev.md @@ -85,6 +85,12 @@ EXAMPLES $ netlify dev -c "hugo server -w" --targetPort 1313 ``` +The command will automatically open your preferred browser to serve the application. You can customize this behaviour by using the `BROWSER` environment variable: + +```bash +$ BROWSER=none netlify dev # this will disable the auto opening of the browser +``` + ## Live Share To share your ongoing dev session with a coworker, just run Netlify Dev with a `--live` flag: diff --git a/npm-shrinkwrap.json b/npm-shrinkwrap.json index 4aa9ad16bfc..fe732f95f81 100644 --- a/npm-shrinkwrap.json +++ b/npm-shrinkwrap.json @@ -1,12 +1,12 @@ { "name": "netlify-cli", - "version": "8.11.0", + "version": "8.12.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "netlify-cli", - "version": "8.11.0", + "version": "8.12.0", "hasInstallScript": true, "license": "MIT", "dependencies": { @@ -15,7 +15,7 @@ "@netlify/framework-info": "^9.0.0", "@netlify/local-functions-proxy": "^1.1.1", "@netlify/plugin-edge-handlers": "^3.0.4", - "@netlify/plugins-list": "^6.3.0", + "@netlify/plugins-list": "^6.3.1", "@netlify/routing-local-proxy": "^0.34.1", "@netlify/zip-it-and-ship-it": "^5.5.0", "@octokit/rest": "^18.0.0", @@ -122,7 +122,7 @@ }, "devDependencies": { "@babel/preset-react": "^7.12.13", - "@netlify/eslint-config-node": "^4.1.5", + "@netlify/eslint-config-node": "^4.1.6", "ava": "^3.15.0", "c8": "^7.11.0", "eslint-plugin-sort-destructure-keys": "^1.3.5", @@ -2587,9 +2587,9 @@ } }, "node_modules/@netlify/eslint-config-node": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.5.tgz", - "integrity": "sha512-mbac2/oOK2wVnabBL9yTz+B2NiA0lz9PqnBelBywT/Rb7dGCmMFWFfB7n37izEd/+fezCPmJvk8RPQ+mvX9Z1Q==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.6.tgz", + "integrity": "sha512-G/6bqpeR8jQj1cbEjFg8sdc23Wq4TUz/fD+XFup0EYEJbUnjriClsljgMUSnmnBNllyMy36T9YEXkam4HUKtJA==", "dev": true, "dependencies": { "@babel/core": "^7.13.8", @@ -2931,9 +2931,9 @@ } }, "node_modules/@netlify/plugins-list": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz", - "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg==", + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz", + "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A==", "engines": { "node": "^12.20.0 || ^14.14.0 || >=16.0.0" } @@ -23514,9 +23514,9 @@ "integrity": "sha512-tiKmDcHM2riSVN79c0mJY/67EBDafXQAMitHuLiCDAMdtz3kfv+NqdVG5krgf5lWR8Uf8AeZrUW5Q9RP25REvw==" }, "@netlify/eslint-config-node": { - "version": "4.1.5", - "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.5.tgz", - "integrity": "sha512-mbac2/oOK2wVnabBL9yTz+B2NiA0lz9PqnBelBywT/Rb7dGCmMFWFfB7n37izEd/+fezCPmJvk8RPQ+mvX9Z1Q==", + "version": "4.1.6", + "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-4.1.6.tgz", + "integrity": "sha512-G/6bqpeR8jQj1cbEjFg8sdc23Wq4TUz/fD+XFup0EYEJbUnjriClsljgMUSnmnBNllyMy36T9YEXkam4HUKtJA==", "dev": true, "requires": { "@babel/core": "^7.13.8", @@ -23725,9 +23725,9 @@ } }, "@netlify/plugins-list": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.0.tgz", - "integrity": "sha512-z6zoaQ/yNj4WMck8G2sWCKUaBkbsStWVpMwQjltWCw9ZhCjRVHF4101Meon9tptyA23gxi8HbzZqgP+WVHPdFg==" + "version": "6.3.1", + "resolved": "https://registry.npmjs.org/@netlify/plugins-list/-/plugins-list-6.3.1.tgz", + "integrity": "sha512-6yAYBSELlg3oROgrFt1OCa5QwhINfkoBM2rv2Bpo7T5guwsCsEw7vI/O6nMLNDs6wGUyN43cjv2HTxaJBM/i4A==" }, "@netlify/routing-local-proxy": { "version": "0.34.1", diff --git a/package.json b/package.json index 06e5519fed1..d11e3d8d544 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "netlify-cli", "description": "Netlify command line tool", - "version": "8.11.0", + "version": "8.12.0", "author": "Netlify Inc.", "contributors": [ "Mathias Biilmann (https://twitter.com/biilmann)", @@ -82,7 +82,7 @@ "@netlify/framework-info": "^9.0.0", "@netlify/local-functions-proxy": "^1.1.1", "@netlify/plugin-edge-handlers": "^3.0.4", - "@netlify/plugins-list": "^6.3.0", + "@netlify/plugins-list": "^6.3.1", "@netlify/routing-local-proxy": "^0.34.1", "@netlify/zip-it-and-ship-it": "^5.5.0", "@octokit/rest": "^18.0.0", @@ -185,7 +185,7 @@ }, "devDependencies": { "@babel/preset-react": "^7.12.13", - "@netlify/eslint-config-node": "^4.1.5", + "@netlify/eslint-config-node": "^4.1.6", "ava": "^3.15.0", "c8": "^7.11.0", "eslint-plugin-sort-destructure-keys": "^1.3.5", diff --git a/src/commands/dev/dev.js b/src/commands/dev/dev.js index a9dd99fba90..7903db3f452 100644 --- a/src/commands/dev/dev.js +++ b/src/commands/dev/dev.js @@ -360,7 +360,12 @@ const createDevCommand = (program) => { ).hideHelp(), ) .addOption(new Option('--graph', 'enable Netlify Graph support').hideHelp()) - .addExamples(['netlify dev', 'netlify dev -d public', 'netlify dev -c "hugo server -w" --targetPort 1313']) + .addExamples([ + 'netlify dev', + 'netlify dev -d public', + 'netlify dev -c "hugo server -w" --targetPort 1313', + 'BROWSER=none netlify dev # disable browser auto opening', + ]) .action(dev) } module.exports = { createDevCommand } diff --git a/src/functions-templates/typescript/hello-world/package-lock.json b/src/functions-templates/typescript/hello-world/package-lock.json index 682e331a91f..0ff0c35872c 100644 --- a/src/functions-templates/typescript/hello-world/package-lock.json +++ b/src/functions-templates/typescript/hello-world/package-lock.json @@ -9,15 +9,15 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "@netlify/functions": "^0.10.0", - "@types/node": "^14.18.5", + "@netlify/functions": "^0.11.0", + "@types/node": "^14.0.0", "typescript": "^4.0.0" } }, "node_modules/@netlify/functions": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz", - "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz", + "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==", "dependencies": { "is-promise": "^4.0.0" }, @@ -50,9 +50,9 @@ }, "dependencies": { "@netlify/functions": { - "version": "0.10.0", - "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.10.0.tgz", - "integrity": "sha512-NNFADTPnokuoMY1OUhaXlE/Jrzk5lHOl1uB4L/8pw1UJ/CaectZJACMExijbJnqaKIhOQG0WmbBQUh1lgnK/Qg==", + "version": "0.11.0", + "resolved": "https://registry.npmjs.org/@netlify/functions/-/functions-0.11.0.tgz", + "integrity": "sha512-+WWX081UCkLZYkfh1Ru+PH5HTujNXugeskATGhZLTyS1U3Cqh2gYLArdG1a/vU8WWopu/wjpxEOdWq8/T5Nw5Q==", "requires": { "is-promise": "^4.0.0" } diff --git a/src/functions-templates/typescript/hello-world/package.json b/src/functions-templates/typescript/hello-world/package.json index eec20bde892..6fee7a2715a 100644 --- a/src/functions-templates/typescript/hello-world/package.json +++ b/src/functions-templates/typescript/hello-world/package.json @@ -14,7 +14,7 @@ "author": "Netlify", "license": "MIT", "dependencies": { - "@netlify/functions": "^0.10.0", + "@netlify/functions": "^0.11.0", "@types/node": "^14.0.0", "typescript": "^4.0.0" }