Commit Graph

647 Commits

Author SHA1 Message Date
Josh Branchaud
a0c515c8ad Update link to Jest Expect docs (#3303)
The existing link lands on a 'this page has moved' placeholder that
doesn't redirect to the correct location. This PR replaces it with the
currently working URL.
2017-10-19 13:59:10 -04:00
Joe Haddad
1a3017b717 Update README.md 2017-10-17 14:37:28 -04:00
Alex
2d0ef6a436 Fix dead link to Jest "expect" docs (#3289)
Closes #3291
2017-10-17 11:19:44 -04:00
Joe Haddad
991b092c89 Use production React version for bundled overlay (#3267)
* Use production React version

* We cannot strip our own checks if production

* Keep the sourcemap during minify

* Prevent devtools pollution

* Add some comments

* sigh
2017-10-11 18:16:38 -04:00
Joe Haddad
9ce144ed90 Add warning when using react-error-overlay in production (#3264)
* Add a warning when running minified

* Add more robust check

* Update index.js
2017-10-11 14:20:23 -04:00
André Ericson
86b4b6ab85 Add external links to deployment services (#3265) 2017-10-11 10:27:40 -04:00
Joe Haddad
360fa27cf2 react-error-overlay has no dependencies now (#3263)
* `react-error-overlay` has no dependencies now (it's bundled)

* Use babel 6 for now
2017-10-11 10:07:56 -04:00
Tharaka Wijebandara
00ed100b26 Add click-to-open support for build errors (#3100)
* Implement click-to-open for babel syntax errors in build error overlay

* Add click-to-open support for lint errors and refactor parser

* Reactor code to reuse open-in-editor functionality in both build and runtime error overlays

* Fix some eslint warnings

* Add a comment about keeping middleware and dev client in sync

* Remove es6 features from webpack dev client

* Make open-in-editor functionality to work with new iframe script

* Rename `openInEditor` to `editorHandler`
 -  Remove indirection of openInEditorListener
 -  Check editorHandler for null before styling error clickable

* Fix flow errors
2017-10-05 20:21:17 -04:00
Jonny Buchanan
a0030fcf2d Update style-loader and disable inclusion of its HMR code in builds (#3236) 2017-10-05 20:02:32 -04:00
Joshua Wiens
62f0a83c5e Update url-loader to 0.6.2 for mime ReDoS vuln (#3246)
- Changelog: https://github.com/webpack-contrib/url-loader/blob/master/CHANGELOG.md
 - Reference issue:  https://nodesecurity.io/advisories/535

Fixes #3244
2017-10-05 19:49:07 -04:00
Tharaka Wijebandara
cd3d04b71e Make error overlay to run in the context of the iframe (#3142)
* Make error overlay to run in the context of the iframe

* Configure webpack to build the entire package

* Remove inline raw-loader config

* Configure watch mode for error-overlay webpack build

* Add polyfills to the error-overlay iframe script

* Add header comment

* Configure to fail CI on error or warning

* Suppress flow-type error on importing iframe-bundle

* Change webpack to a dev dependency and pin some versions

* Disable webpack cache

* Update license headers to MIT
2017-10-03 21:45:15 +05:30
Joe Haddad
01a0d737c7 Fix Windows compatibility (#3232)
* Windows compatibility

* Use regex for mutli-replace
2017-10-02 23:45:20 -04:00
Joe Lim
1e98d0f428 Watch for changes in src/**/node_modules (#3230)
* Allow the dev server to watch for changes in src/node_modules

* fix eslint error

* fix broken regex

* handle trailing slash edge case for file paths

Closes #2760
Fixes #3223
2017-10-02 22:57:02 -04:00
Petr Huřťák
c00358376b More spec compliant HTML template (#2914)
Changed

`<!doctype html>`

to

`<!DOCTYPE html>`

According to the spec it should be uppercase (but parsing is case insensitive)
2017-09-28 23:03:27 -04:00
David Beitey
8c8bbca7ca Minor change to highlight dev proxy behaviour (#3075) 2017-09-28 23:02:22 -04:00
Robert Panzer
a34701b718 Correct manual proxy documentation (#3185)
Correct manual proxy documentation
2017-09-28 22:59:51 -04:00
Joe Haddad
b2c0b3f74b Publish
- babel-preset-react-app@3.0.3
 - create-react-app@1.4.1
 - eslint-config-react-app@2.0.1
 - react-dev-utils@4.1.0
 - react-error-overlay@2.0.2
 - react-scripts@1.0.14
2017-09-26 20:19:49 -04:00
Sophie Alpert
2e82ebb337 BSD+Patents -> MIT (#3189)
* File headers BSD+Patents -> MIT

* BSD+Patents -> MIT
2017-09-26 10:30:05 +01:00
Nik Nyby
376fd432ce Update webpack-dev-server to 2.8.2 (#3157)
It doesn't look like there is any backwards incompatibility:

https://github.com/webpack/webpack-dev-server/releases
2017-09-21 22:48:41 -04:00
Rick Beerendonk
700c8cd4d4 Part of class fields to stage 3 (#2908)
* Class fields to stage 3

Per 2017.07.27 TC39
0bbbb08c3c

* Be explicit that only the public part of the unified field proposal is available.
2017-09-20 09:01:06 -04:00
Kristie Howard
b67ef01ade Update unclear wording in webpack config docs (#3160) 2017-09-19 22:00:44 -04:00
Rasmus Eneman
2cff8db00b Display pid in already running message (#3131)
Fixes #3106
2017-09-16 18:22:06 -04:00
David Leger
206f9e84e6 Resolved issue #2971 (#2989)
* Resolved issue #2971

- changed h2 to h1 in template to adhere to accessibility guidelines.
- Added h1 styles to maintain same font size.

* Added header tag to template

Corrected templete to use semantically correct header tag for header instead of div

* Added className for App-title

- Added className="App-title" to h1 tag
- Changed CSS selector to target class instead of element
2017-09-12 22:32:57 -04:00
Luca
eed708a822 Updated react-error-overlay to latest Flow (0.54.0) (#3065)
* Updated react-error-overlay to latest Flow (0.54.0)

* Revert "Updated react-error-overlay to latest Flow (0.54.0)"

This reverts commit 6deaffbdb0b2e7c72a7f4053a299f28db174383b.

* Fixed unit tests.

* Updated code as per code review.

* Fixed code as per code review.

* Updated the code as per review.
2017-09-11 17:20:50 +01:00
gulderov
1faee66a77 Auto-detect running editor on Linux for error overlay (#3077)
* Auto-detect running editor on Linux for error overlay

Basic support of auto detecting running editor for #2636.
Tested on Ubuntu 16.04.
It detects few editors. JetBrains products should start by
wrapper like /usr/local/bin/webstorm. Otherwise it takes a
lot of time to open editor.

* Comments fixed.

* List all processes owned by you

* Comment rewording
2017-09-11 08:31:28 -04:00
Joe Haddad
12f1a8eed8 Clean target directory before compiling overlay (#3102)
* Clean target directory before compiling overlay

* Use rimraf
2017-09-11 07:37:36 -04:00
Ade Viankakrisna Fadlil
44cfbccfda Rerun prettier and pin version (#3058)
* rerun prettier for all files

* pin prettier to 1.6.1
2017-09-10 01:12:38 -04:00
Joe Haddad
5e300cebb3 Reload the page when an error has occurred (#3098)
* Reload the page when an error has occurred
Fixes #3096

* Use a global boolean instead
2017-09-08 22:52:18 -04:00
Joe Haddad
634dadb440 Unmapper Windows compatibility (#3079)
* Switch to unix path separators before normalizing path for Windows compatibility

* Add comment for posterity

* Revert "Add comment for posterity"

This reverts commit 742baceef97e767527498a2ad8b2ab66ad748333.

* Strictly add comment
2017-09-06 14:42:40 -04:00
Jon Crenshaw
b17fa4123e Update eslint-config npm install command (#3072)
The `npm install` script for outside usage instructions is outdated. Updated to match the package's current peer dependencies.
2017-09-05 22:29:17 -04:00
Dan Abramov
c22dc70926 Publish
- react-dev-utils@4.0.1
 - react-error-overlay@2.0.1
 - react-scripts@1.0.13
2017-09-02 13:58:21 -07:00
Dan Abramov
f65a1a90a7 Add missing slash 2017-09-02 13:54:33 -07:00
Jared Palmer
8a72a314bc Make error overlay filename configurable (#3028)
* Make error overlay file configurable

* Add fallback filename
2017-09-02 13:42:04 -07:00
Anthony
6644054fc3 provide empty mock for child_process so importing libraries with it works (#3033) 2017-09-02 13:41:40 -07:00
Tharaka Wijebandara
51d0df4902 Rename Overlay to ErrorOvelay (#3051) 2017-09-01 17:59:37 -07:00
Erik J. Sturcke
270b1dc5cd Strip hash from chunk file name (#3049) 2017-09-01 12:56:17 -07:00
Tharaka Wijebandara
1df16109c9 Fix error overlay 'Object.assign' issue in IE by including polyfills before webpack client (#3046) 2017-09-01 12:54:58 -07:00
Dan Abramov
a51be9582a Publish
- react-dev-utils@4.0.0
 - react-error-overlay@2.0.0
 - react-scripts@1.0.12
2017-08-27 19:26:52 -07:00
Dan Abramov
cc2e270d0e Relax React dep requirements 2017-08-27 19:20:54 -07:00
Sylvain Baronnet
2cbb76018a Default Favicon lossless optimisation (#2917) 2017-08-27 20:17:21 -06:00
Christophe Hurpeau
fbbc64fce2 update babel-runtime dependency in react-error-overlay and react-scripts (#2991)
* update babel-runtime dependency in react-error-overlay and react-scripts

`babel-runtime@6.23.0` have a dependency on `regenerator-runtime@0.10.5`
`babel-runtime@6.26.0` on `regenerator-runtime@0.11.0`

> npm ls regenerator-runtime

```
└─┬ react-scripts@1.0.11
  ├─┬ babel-core@6.25.0
  │ └─┬ babel-runtime@6.26.0
  │   └── regenerator-runtime@0.11.0
  ├─┬ babel-eslint@7.2.3
  │ └─┬ babel-traverse@6.26.0
  │   └─┬ babel-runtime@6.26.0
  │     └── regenerator-runtime@0.11.0
  ├─┬ babel-runtime@6.23.0
  │ └── regenerator-runtime@0.10.5
  └─┬ react-error-overlay@1.0.10
    └─┬ babel-runtime@6.23.0
      └── regenerator-runtime@0.10.5
```

* fix requested changes
2017-08-27 20:12:11 -06:00
Tharaka Wijebandara
ecd1f0544b Convert react-error-overlay to React (#2515)
* Convert react-error-overlay to React

* Update compile-time error overlay to use react-error-overlay components

 * Refactor react-error-overlay components to container and presentational components.

 * Make the compile-time error overlay a part of react-error-overlay package.

 * Use react-error-overlay as dependency in react-dev-utils to show compile-time errors.

* Run Prettier

* Move the function name fix into StackFrame itself

* Fix clicking on source code snippet to open the code in editor

* Use exact objects + minor style tweak

* Don't linkify frames that don't exist on the disk

* Fix lint

* Consolidate iframe rendering logic

* Remove circular dependency between react-dev-utils and react-error-overlay

* Fix lint

* Fix decoupling of react-dev-utils and react-error-overlay by moving middleware

* Deduplicate identical errors
2017-08-27 19:45:55 -06:00
Joe Haddad
3b9174821e Bump react-dev-utils 2017-08-27 17:17:29 -04:00
Dan Abramov
5c010e0335 Fix module function name in error overlay (#3012) 2017-08-26 17:35:25 -06:00
Ekaterina Prigara
5ea6de91c2 Docs: debugging in WebStorm (#2986)
* Debugging in WebStorm

* Fixed formatting for shortcuts

* Added note about default URL
2017-08-21 11:40:52 -04:00
Yann Pringault
e8a3e4b299 Fix docs for printFileSizesAfterBuild (#2942)
* Fix docs for `printFileSizesAfterBuild`

* Add optionals parameters for `printFileSizesAfterBuild`
2017-08-15 20:17:37 -04:00
Pier-Luc Gendreau
6efab2e12d Remove Modulus from user guide (#2948)
The service was rebranded to xervo.io and was completely shut down in April 2017
2017-08-14 11:51:38 +02:00
Joe Haddad
93029f8368 Remove superfluous lodash usage (#2938) 2017-08-10 16:18:13 -07:00
Thomas Bassetto
10c1f577da Update README.md (#2927)
Fixing a small typo.
2017-08-09 08:57:37 -04:00
Joe Haddad
bfaee410c5 Publish
- babel-preset-react-app@3.0.2
 - create-react-app@1.4.0
 - eslint-config-react-app@2.0.0
 - react-dev-utils@3.1.0
 - react-error-overlay@1.0.10
 - react-scripts@1.0.11
2017-08-08 23:39:58 -04:00