diff --git a/.github/stale.yml b/.github/stale.yml
index e9387e49029..b2c3bb27cda 100644
--- a/.github/stale.yml
+++ b/.github/stale.yml
@@ -9,8 +9,14 @@ daysUntilClose: 5
# Issues or Pull Requests with these labels will never be considered stale. Set to `[]` to disable
exemptLabels:
- - "issue: proposal"
+ - "contributions: claimed"
+ - "contributions: up for grabs!"
+ - "good first issue"
- "issue: announcement"
+ - "issue: bug"
+ - "issue: proposal"
+ - "tag: bug fix"
+ - "tag: needs investigation"
# Set to true to ignore issues in a project (defaults to false)
exemptProjects: true
diff --git a/.travis.yml b/.travis.yml
index fe543211f32..fd0ba53313b 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -10,7 +10,7 @@ cache:
directories:
- .npm
before_install:
- - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --nightly
+ - curl -o- -L https://yarnpkg.com/install.sh | bash -s
- export PATH="$HOME/.yarn/bin:$PATH"
install: true
script:
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 7599943de0b..0449848a4fa 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,122 @@
+## 2.1.4 (February 10, 2019)
+
+v2.1.4 is a maintenance release that brings a number of awesome improvements. A few notable ones include:
+
+- :rocket: Reduced TypeScript rebuild times while running the development server. TypeScript is now blazing fast! Special thanks to [@deftomat](https://github.com/deftomat) and [@johnnyreilly](https://github.com/johnnyreilly) and the other contributors for their hard work on this. ([#5903](https://github.com/facebook/create-react-app/pull/5903))
+- Jest [type ahead support](https://github.com/jest-community/jest-watch-typeahead) which provides a much nicer experience when filtering your tests using the Jest CLI ([#5213](https://github.com/facebook/create-react-app/pull/5213))
+- And many more improvements!
+
+
+#### :bug: Bug Fix
+
+- `react-scripts`
+ - [#6364](https://github.com/facebook/create-react-app/pull/6364) Use semicolons in the ProcessEnv interface. ([@DominikPalo](https://github.com/DominikPalo))
+ - [#6276](https://github.com/facebook/create-react-app/pull/6276) Prevent cursor events on app-logo svg. ([@kostadriano](https://github.com/kostadriano))
+
+#### :nail_care: Enhancement
+
+- `react-scripts`
+ - [#5213](https://github.com/facebook/create-react-app/pull/5213) Add Jest typeahead plugin. ([@gaearon](https://github.com/gaearon))
+ - [#5713](https://github.com/facebook/create-react-app/pull/5713) Sass source map for dev. ([@zhuoli99](https://github.com/zhuoli99))
+ - [#6285](https://github.com/facebook/create-react-app/pull/6285) Allow react-scripts test --no-watch. ([@ricokahler](https://github.com/ricokahler))
+ - [#5060](https://github.com/facebook/create-react-app/pull/5060) Enable eval-source-map for firefox. ([@jasonLaster](https://github.com/jasonLaster))
+- `react-dev-utils`, `react-scripts`
+ - [#5903](https://github.com/facebook/create-react-app/pull/5903) Speed up TypeScript projects. ([@deftomat](https://github.com/deftomat))
+
+#### :memo: Documentation
+
+- Other
+ - [#6383](https://github.com/facebook/create-react-app/pull/6383) Update docs links to prefer HTTPS for supported domains. ([@ianschmitz](https://github.com/ianschmitz))
+ - [#6062](https://github.com/facebook/create-react-app/pull/6062) [docs] Warn/clarify that env vars are NOT "SECRET". ([@JBallin](https://github.com/JBallin))
+ - [#6359](https://github.com/facebook/create-react-app/pull/6359) Update ZEIT Now deployment instructions. ([@timothyis](https://github.com/timothyis))
+ - [#6346](https://github.com/facebook/create-react-app/pull/6346) Minor issue in README.md. ([@nathanlschneider](https://github.com/nathanlschneider))
+ - [#6331](https://github.com/facebook/create-react-app/pull/6331) Update docs to document `--no-watch`. ([@ricokahler](https://github.com/ricokahler))
+ - [#6229](https://github.com/facebook/create-react-app/pull/6229) Update `serve` port flag and add example. ([@lyzhovnik](https://github.com/lyzhovnik))
+ - [#6190](https://github.com/facebook/create-react-app/pull/6190) Updating updating-to-new-releases.md for users who installed CRA globally. ([@carpben](https://github.com/carpben))
+ - [#6095](https://github.com/facebook/create-react-app/pull/6095) Changes to steps for publishing GitHub User Page. ([@StevenTan](https://github.com/StevenTan))
+ - [#6157](https://github.com/facebook/create-react-app/pull/6157) Add note for global install of CLI. ([@ianschmitz](https://github.com/ianschmitz))
+ - [#6149](https://github.com/facebook/create-react-app/pull/6149) update link for difference between proposal stages. ([@loveky](https://github.com/loveky))
+ - [#6141](https://github.com/facebook/create-react-app/pull/6141) Remove extra table cell. ([@yangshun](https://github.com/yangshun))
+- `react-scripts`
+ - [#6355](https://github.com/facebook/create-react-app/pull/6355) Make manifest.json description more generic. ([@chrisself](https://github.com/chrisself))
+
+#### :house: Internal
+
+- Other
+ - [#6050](https://github.com/facebook/create-react-app/pull/6050) Fix e2e:docker failure with "access denied". ([@jamesknelson](https://github.com/jamesknelson))
+ - [#6179](https://github.com/facebook/create-react-app/pull/6179) Update local-test.sh to return test exit code. ([@dallonf](https://github.com/dallonf))
+ - [#6165](https://github.com/facebook/create-react-app/pull/6165) Fix CI builds. ([@ianschmitz](https://github.com/ianschmitz))
+- `react-scripts`
+ - [#5798](https://github.com/facebook/create-react-app/pull/5798) Added `module` to ignored node modules list. ([@dotansimha](https://github.com/dotansimha))
+ - [#6022](https://github.com/facebook/create-react-app/pull/6022) TypeScript detection filtering 'node_modules'.. ([@holloway](https://github.com/holloway))
+- `react-dev-utils`, `react-scripts`
+ - [#6150](https://github.com/facebook/create-react-app/pull/6150) dependencies: move chalk to react-dev-utils. ([@otaviopace](https://github.com/otaviopace))
+- `babel-plugin-named-asset-import`, `react-scripts`
+ - [#5816](https://github.com/facebook/create-react-app/pull/5816) Upgrade @svgr/webpack to 4.1.0. ([@alaycock](https://github.com/alaycock))
+- `react-dev-utils`
+ - [#6162](https://github.com/facebook/create-react-app/pull/6162) Update react-dev-util globby dependency to v8.0.2. ([@davidlukerice](https://github.com/davidlukerice))
+- `babel-preset-react-app`, `react-app-polyfill`, `react-dev-utils`, `react-error-overlay`, `react-scripts`
+ - [#6137](https://github.com/facebook/create-react-app/pull/6137) Fix CI and upgrade dependencies. ([@Timer](https://github.com/Timer))
+
+#### :hammer: Underlying Tools
+
+- `babel-preset-react-app`, `react-app-polyfill`, `react-dev-utils`, `react-scripts`
+ - [#6393](https://github.com/facebook/create-react-app/pull/6393) Upgrade dependencies. ([@ianschmitz](https://github.com/ianschmitz))
+- `babel-preset-react-app`
+ - [#6307](https://github.com/facebook/create-react-app/pull/6307) Update babel-plugin-macros 2.4.4 -> 2.4.5. ([@maniax89](https://github.com/maniax89))
+- `eslint-config-react-app`, `react-scripts`
+ - [#6132](https://github.com/facebook/create-react-app/pull/6132) Bump eslint-plugin-react version and update webpack config. ([@ianschmitz](https://github.com/ianschmitz))
+
+#### Committers: 29
+
+- Adam Laycock ([alaycock](https://github.com/alaycock))
+- Adriano Costa ([kostadriano](https://github.com/kostadriano))
+- Andrew Turgeon ([maniax89](https://github.com/maniax89))
+- Ben Carp ([carpben](https://github.com/carpben))
+- Charles Pritchard ([Downchuck](https://github.com/Downchuck))
+- Chris Self ([chrisself](https://github.com/chrisself))
+- Dallon Feldner ([dallonf](https://github.com/dallonf))
+- Dan Abramov ([gaearon](https://github.com/gaearon))
+- David Rice ([davidlukerice](https://github.com/davidlukerice))
+- Dominik Palo ([DominikPalo](https://github.com/DominikPalo))
+- Dotan Simha ([dotansimha](https://github.com/dotansimha))
+- Ian Schmitz ([ianschmitz](https://github.com/ianschmitz))
+- JBallin ([JBallin](https://github.com/JBallin))
+- James George ([jamesgeorge007](https://github.com/jamesgeorge007))
+- James K Nelson ([jamesknelson](https://github.com/jamesknelson))
+- Jason Laster ([jasonLaster](https://github.com/jasonLaster))
+- Joe Haddad ([Timer](https://github.com/Timer))
+- Matthew Holloway ([holloway](https://github.com/holloway))
+- Nathan Schneider ([nathanlschneider](https://github.com/nathanlschneider))
+- Nikita Lyzhov ([lyzhovnik](https://github.com/lyzhovnik))
+- Otávio Pace ([otaviopace](https://github.com/otaviopace))
+- Rico Kahler ([ricokahler](https://github.com/ricokahler))
+- Steven Tan ([StevenTan](https://github.com/StevenTan))
+- Timothy ([timothyis](https://github.com/timothyis))
+- Tomáš Szabo ([deftomat](https://github.com/deftomat))
+- Yangshun Tay ([yangshun](https://github.com/yangshun))
+- [gottfired](https://github.com/gottfired)
+- [zhuoli99](https://github.com/zhuoli99)
+- loveky ([loveky](https://github.com/loveky))
+
+### Migrating from 2.1.3 to 2.1.4
+
+Inside any created project that has not been ejected, run:
+
+```bash
+npm install --save --save-exact react-scripts@2.1.4
+```
+
+or
+
+```
+yarn add --exact react-scripts@2.1.4
+```
+
## 2.1.3 (January 4, 2019)
+v2.1.3 is a maintenance release to fix a [vulnerability in webpack-dev-server](https://www.npmjs.com/advisories/725).
+
#### :memo: Documentation
- Other
diff --git a/README.md b/README.md
index 881ba7f4ad5..75aed91b989 100644
--- a/README.md
+++ b/README.md
@@ -163,7 +163,7 @@ Create React App is a great fit for:
- **Starting new single-page React applications.**
- **Creating examples** with React for your libraries and components.
-Here are few common cases where you might want to try something else:
+Here are a few common cases where you might want to try something else:
- If you want to **try React** without hundreds of transitive build tool dependencies, consider [using a single HTML file or an online sandbox instead](https://reactjs.org/docs/try-react.html).
diff --git a/appveyor.yml b/appveyor.yml
index 5f5143167d6..ab266ab976e 100644
--- a/appveyor.yml
+++ b/appveyor.yml
@@ -37,7 +37,7 @@ platform:
install:
- ps: Install-Product node $env:nodejs_version $env:platform
- ps: |
- (New-Object Net.WebClient).DownloadFile("https://nightly.yarnpkg.com/latest.msi", "$env:temp\yarn.msi")
+ (New-Object Net.WebClient).DownloadFile("https://yarnpkg.com/latest.msi", "$env:temp\yarn.msi")
cmd /c start /wait msiexec.exe /i $env:temp\yarn.msi /quiet /qn /norestart
build: off
diff --git a/docusaurus/docs/adding-bootstrap.md b/docusaurus/docs/adding-bootstrap.md
index 19b3e752441..dc103f81a99 100644
--- a/docusaurus/docs/adding-bootstrap.md
+++ b/docusaurus/docs/adding-bootstrap.md
@@ -32,7 +32,7 @@ import 'bootstrap/dist/css/bootstrap.css';
Sometimes you might need to tweak the visual styles of Bootstrap (or equivalent package).
As of `react-scripts@2.0.0` you can import `.scss` files. This makes it possible to use a package's built-in Sass variables for global style preferences.
-To customize Bootstrap, create a file called `src/custom.scss` (or similar) and import the Bootstrap source stylesheet. Add any overrides _before_ the imported file(s). You can reference [Bootstrap's documentation](http://getbootstrap.com/docs/4.1/getting-started/theming/#css-variables) for the names of the available variables.
+To customize Bootstrap, create a file called `src/custom.scss` (or similar) and import the Bootstrap source stylesheet. Add any overrides _before_ the imported file(s). You can reference [Bootstrap's documentation](https://getbootstrap.com/docs/4.1/getting-started/theming/#css-variables) for the names of the available variables.
```scss
// Override default variables before the import
diff --git a/docusaurus/docs/adding-custom-environment-variables.md b/docusaurus/docs/adding-custom-environment-variables.md
index 15d5527106b..557542fa86d 100644
--- a/docusaurus/docs/adding-custom-environment-variables.md
+++ b/docusaurus/docs/adding-custom-environment-variables.md
@@ -6,24 +6,23 @@ sidebar_label: Environment Variables
> Note: this feature is available with `react-scripts@0.2.3` and higher.
-Your project can consume variables declared in your environment as if they were declared locally in your JS files. By
-default you will have `NODE_ENV` defined for you, and any other environment variables starting with
-`REACT_APP_`.
+Your project can consume variables declared in your environment as if they were declared locally in your JS files. By default you will have `NODE_ENV` defined for you, and any other environment variables starting with `REACT_APP_`.
+
+> WARNING: Do not store any secrets (such as private API keys) in your React app!
+>
+> Environment variables are embedded into the build, meaning anyone can view them by inspecting your app's files.
**The environment variables are embedded during the build time**. Since Create React App produces a static HTML/CSS/JS bundle, it can’t possibly read them at runtime. To read them at runtime, you would need to load HTML into memory on the server and replace placeholders in runtime, just like [described here](title-and-meta-tags.md#injecting-data-from-the-server-into-the-page). Alternatively you can rebuild the app on the server anytime you change them.
> Note: You must create custom environment variables beginning with `REACT_APP_`. Any other variables except `NODE_ENV` will be ignored to avoid accidentally [exposing a private key on the machine that could have the same name](https://github.com/facebook/create-react-app/issues/865#issuecomment-252199527). Changing any environment variables will require you to restart the development server if it is running.
-These environment variables will be defined for you on `process.env`. For example, having an environment
-variable named `REACT_APP_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_SECRET_CODE`.
+These environment variables will be defined for you on `process.env`. For example, having an environment variable named `REACT_APP_NOT_SECRET_CODE` will be exposed in your JS as `process.env.REACT_APP_NOT_SECRET_CODE`.
There is also a special built-in environment variable called `NODE_ENV`. You can read it from `process.env.NODE_ENV`. When you run `npm start`, it is always equal to `'development'`, when you run `npm test` it is always equal to `'test'`, and when you run `npm run build` to make a production bundle, it is always equal to `'production'`. **You cannot override `NODE_ENV` manually.** This prevents developers from accidentally deploying a slow development build to production.
-These environment variables can be useful for displaying information conditionally based on where the project is
-deployed or consuming sensitive data that lives outside of version control.
+These environment variables can be useful for displaying information conditionally based on where the project is deployed or consuming sensitive data that lives outside of version control.
-First, you need to have environment variables defined. For example, let’s say you wanted to consume a secret defined
-in the environment inside a `