Skip to content

v0.9.0

Compare
Choose a tag to compare
@Timer Timer released this 11 Feb 03:31

0.9.0 (February 11, 2017)

🚀 New Feature

  • react-scripts
    • #1489 Support setting "homepage" to "." to generate relative asset paths. (@tibdex)

      Applications that don’t use the HTML5 pushState API can now be built to be served from any relative URL. To enable this, specify "." as your homepage setting in package.json. It used to be possible before with a few known bugs, but they should be fixed now. See Serving the Same Build from Different Paths.

    • #937 Add PUBLIC_URL environment variable for advanced use. (@EnoahNetzach)

      If you use a CDN to serve the app, you can now specify PUBLIC_URL environment variable to override the base URL (including the hostname) for resources referenced from the built code. This new variable is mentioned in the new Advanced Configuration section.

    • #1440 Make all REACT_APP_* environment variables accessible in index.html. (@jihchi)

      This makes all environment variables previously available in JS, also available in the HTML file, for example %REACT_APP_MY_VARIABLE%. See Referencing Environment Variables in HTML.

  • react-dev-utils
    • #1148 Configure which browser to open with npm start. (@GAumala)

      You can now disable the automatic browser launching by setting the BROWSER environment variable to none. You can also specify a different browser (or an arbitrary script) to open by default, as supported by opn command that we use under the hood. See Advanced Configuration.

💥 Breaking Change

🐛 Bug Fix

  • react-scripts
    • #1441 Added babel-runtime dependency to deduplicate dependencies when using Yarn. (@jkimbo)

      This works around a bug in Yarn that caused newly created projects to be over 400MB. Now they are down to 126MB, just like with npm 3.

    • #1522 Upgrade dependencies. (@Timer)

    • #1458 Additionally remove react-scripts from dependencies on eject. (@creynders)

    • #1309 Bump babel-loader version (#1009). (@frontsideair)

    • #1267 Only gitignore directories in root, not deep. (@jayphelps)

  • react-dev-utils

💅 Enhancement

📝 Documentation

🏠 Internal

Committers: 35

Migrating from 0.8.5 to 0.9.0

Inside any created project that has not been ejected, run:

npm install --save-dev --save-exact react-scripts@0.9.0

Then, run your tests. If you are affected by breaking changes from Jest 18, consult blog post, changelog, and documentation. You might need to update any snapshots since their format might have changed.

If you relied on the browser not starting in non-interactive terminals, you now need to explicitly specify BROWSER=none as an environment variable to disable it.