Commit Graph

274 Commits

Author SHA1 Message Date
Ian Sutherland
4410f5ec30 Publish
- create-react-app@3.1.1
 - eslint-config-react-app@5.0.1
 - react-dev-utils@9.0.3
 - react-error-overlay@6.0.1
 - react-scripts@3.1.1
2019-08-13 13:41:52 -06:00
Ian Sutherland
a78ff74309 Publish
- babel-plugin-named-asset-import@0.3.3
 - babel-preset-react-app@9.0.1
 - confusing-browser-globals@1.0.8
 - create-react-app@3.1.0
 - eslint-config-react-app@5.0.0
 - react-app-polyfill@1.0.2
 - react-dev-utils@9.0.2
 - react-error-overlay@6.0.0
 - react-scripts@3.1.0
2019-08-09 16:37:31 -06:00
ZHAO Jinxiang
a48a054409 Bump version of sass-loader (#7496) 2019-08-09 11:28:25 -06:00
Ian Schmitz
91c2673e59 Bump dependencies (#7473) 2019-08-08 14:12:34 -07:00
Andrew Luca
914c95e87f Resolve relative paths for preprocessor styles (#5829)
preprocessor will output sourceMap by default
then check if sourceMaps are needed on resolve-url-loader

Fixes #4653
2019-08-05 20:28:09 -07:00
Brody McKee
404af90d9a Add ESLint 6 support (#7415) 2019-07-28 15:05:54 +03:00
Alex Guerra
58fad404cd Update url-loader to 2.0.1
This closes #7359 by making IMAGE_INLINE_SIZE_LIMIT=0 actually disable image inlining.

We use url-loader's `limit` option to set the line at which images will be inlined, and we basically expose this option to our end users via the IMAGE_INLINE_SIZE_LIMIT environment variable. Most people using it want to disable inlining images all together (the major motivator for adding it at all was I think for strict CSP), and our documentation said setting the value to zero would do that. However, it did the opposite: url-loader treated zero as "no limit".

The update to 2.x fixes this; zero means nothing gets inlined. The other changes from the version bump shouldn't affect us:
- minimum node version is 8.9.x, we already require 8.10.x
- the limit was "greater than", is now "greater than or equal to"
2019-07-18 15:56:16 -05:00
Sudhir Mitharwal
dc50dd320e Allow title to be set when importing SVGs (#7118) 2019-07-15 17:54:19 +03:00
Ian Sutherland
a88a4c3af6 Upgrade webpack to 4.35.0 to fix dynamic import issue (#7257)
* Upgrade webpack to 4.35.0 to fix dynamic import issue

* Add a test maybe?
2019-06-24 12:25:15 -06:00
Ian Schmitz
45197e67fd Update @typescript-eslint package versions (#7222) 2019-06-14 11:14:01 -07:00
Sebastian Silbermann
820a521b3c Update fsevents dependency version (#7131) 2019-05-29 11:52:20 +03:00
Ian Sutherland
8e32ce57d0 Upgrade svgr to 4.2.0 (#6877) 2019-05-24 09:53:34 -06:00
Ian Sutherland
57ef103440 Publish
- babel-preset-react-app@9.0.0
 - create-react-app@3.0.1
 - eslint-config-react-app@4.0.1
 - react-app-polyfill@1.0.1
 - react-dev-utils@9.0.1
 - react-error-overlay@5.1.6
 - react-scripts@3.0.1
2019-05-08 09:36:40 -06:00
Ian Schmitz
4542185dea Unpin babel-jest (#7007) 2019-05-07 10:37:12 -07:00
Ian Schmitz
bf886bc49f Temporary fix for babel-jest preflight error (#7002)
* Temporary fix for babel-jest preflight error

* Update babel-jest in react-error-overlay
2019-05-07 06:51:47 -07:00
Maël Nison
b36d1ea1aa Adds the configuration for PnP/Typescript (#6856)
* Adds the configuration for PnP/Typescript

* Adds the header

* Bumps ts-pnp

* Bumps fork-ts-checker-webpack-plugin
2019-05-01 15:04:44 -06:00
Dallon Feldner
785dd47937 Generate SVG component name in Jest fileTransform (#6706) 2019-04-25 15:35:03 -06:00
Ian Sutherland
265c1592dc Publish
- babel-plugin-named-asset-import@0.3.2
 - babel-preset-react-app@8.0.0
 - confusing-browser-globals@1.0.7
 - create-react-app@3.0.0
 - eslint-config-react-app@4.0.0
 - react-app-polyfill@1.0.0
 - react-dev-utils@9.0.0
 - react-error-overlay@5.1.5
 - react-scripts@3.0.0
2019-04-22 12:50:29 -06:00
Romain François
e11ebfa0e8 Update fsevents dependency version (#6843)
Fixes #6852.

I update the dependency version of fsevents because old versions was vulnerable (CWE-59). Vulnerability found with snyk.io report
2019-04-20 18:14:46 -07:00
Ian Schmitz
f5b0aac411 Relax ESLint version range (#6840)
* Relax eslint version range

* Use semver package to compare versions during preflight check

* Cleanup package.json files whitespace
2019-04-17 19:46:47 -07:00
Philip Harrison
ced3fd49ca Add directory details to packages/* package.json (#6826)
Specifying the directory as part of the repository field in a
package.json allows third party tools to provide better support when
working with monorepos. For example, it allows them to correctly
construct a commit diff for a specific package.

This format was accepted by npm in [npm/rfcs#19](https://github.com/npm/rfcs/pull/19).
2019-04-16 07:58:03 -07:00
Ian Schmitz
91ddd618be Update dependency versions (#6767)
Includes only minor/patch version bumps.
2019-04-06 15:16:08 -07:00
Hrusikesh Panda
550274e307 Adds PostCSS Normalize (#5810)
* Add postcss-normalize plugin

* Configure PostCSS Normalize

* Add documentation

* Include the doc in sidebar

* Fix the id in sidebar.json

* Update adding-css-reset.md


Co-authored-by: Jack Zhao <jzhao@fb.com>
Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 10:23:59 -06:00
Pradeep Sekar
ffcd896add Update to workbox-webpack-plugin v4 (#6725)
* Update to workbox-webpack-plugin v4

* Update workbox-webpack-plugin to 4.2.0


Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-05 09:48:01 -06:00
Endilie Yacop Sucipto
3e336d91e0 fix: terser-webpack-plugin hanging on WSL (#6732)
* fix: terser-webpack-plugin hanging on WSL

* nits

* Merge branch 'master' into terser-parallel-bug-wsl

Co-authored-by: Jack Zhao <jzhao@fb.com>
2019-04-04 23:24:27 -06:00
Ian Schmitz
76fea02277 Cleanup Jest config (#6654)
General cleanup after the [Jest 24 PR](#6278). 

This also includes `jsdom@14` via https://www.npmjs.com/package/jest-environment-jsdom-fourteen. Since we have a node >= 8.10 requirement, we are able to use the latest version of `jsdom` which includes additional implementations of browser APIs such as `MutationObserver` (which we had an issue filed for over at #6617).

/cc @SimenB. Is there more you recommend we do to cleanup our [Jest config](b0cbf2caa1/packages/react-scripts/scripts/utils/createJestConfig.js) for TypeScript?

Co-authored-by: Ian Sutherland <ian@iansutherland.ca>
2019-04-04 11:00:00 -06:00
Jack Zhao
4734d4ef21 Merge branch 'master' into master 2019-03-18 17:50:52 -07:00
Ian Sutherland
6902736747 Unpin eslint-config-react-hooks dependency (#6653) 2019-03-15 13:46:12 -06:00
Lorenzo Rapetti
3be3576304 Update to Jest 24 (#6278)
* Update to jest 24

* Add notice about pnpResolver.js

* Formatting

* Fix linting

* Update to jest 24.1.0

* Update jest-pnp-resolver

* Swap create-react-app params in e2e scripts

* Add extraGlobals to supportedKeys

* Bump jest to 24.3.1

* Bump jest to 24.4.0

* Bumb jest to 24.5.0

* Update template dependencies jest to 24.5.0

* Debug failing test

* Remove jest-pnp-resolver

* Remove console.log

* Revert yarn.lock.cached
2019-03-15 12:02:59 -06:00
Ian Schmitz
eee8491d57 Add TypeScript linting support (#6513)
* Initial pass adding typescript-eslint

* Add warning to shared rule set

* Add documentation for setting up VSCode extension

* Provide tsconfig path to typescript-eslitn
2019-03-14 21:17:17 -06:00
Eivind Arvesen
7ae3146037 Support React Hooks (#5602) (#5997)
* Add Babel plug-in for Hooks; Add ESLint plug-in for Hooks (WIP)

* Fix transform destructuring loose config

* Add eslint-plugin-react-hooks to package.json

* Fix package.json's

* Fix eslint-plugin-react-hooks version

* Fix package.json

* Fix package.json

* Add eslint-plugin-react-hooks to script package.json

* Force array destructuring to work in loose mode only for known Hooks

* Update based on feedback from PR

* Add 'exhaustive-deps' lint rule

* Bump eslint-plugin-react-hooks to stable version

* Remove extraneous dependency from react-scripts
2019-03-14 20:36:30 -06:00
Ian Schmitz
f4f20a20d0 Support browserslist in @babel/preset-env (#6608)
* Add browserslist support to @babel/preset-env

* Support @babel/polyfill in entry point
2019-03-14 12:16:09 -07:00
Ian Schmitz
3c9c21a285 Upgrade dependencies (#6614)
* Upgrade dependencies

* Upgrade a couple missed deps

* Run Prettier over codebase
2019-03-11 20:45:14 -06:00
Aftab Khan
2591590194 Update html-webpack-plugin (#6361) 2019-03-10 13:22:19 -06:00
ThePrez
c54e36d810 Update webpack-dev-server to 3.2.1 (#6483)
* Upgrade webpack-dev-server to 3.2.1
2019-03-09 11:58:03 -08:00
Ian Sutherland
c17e25bf7f Publish
- create-react-app@2.1.8
 - react-dev-utils@8.0.0
 - react-scripts@2.1.8
2019-03-06 17:53:30 -07:00
Ian Sutherland
1548a0a92e Reapply "Speed up TypeScript v2 (#6406)" (#6586)
This reverts commit b2cf28b7f1 and reapplies #6406.
2019-03-06 17:46:38 -07:00
Ian Sutherland
e69ad37fcf Publish
- create-react-app@2.1.7
 - react-dev-utils@7.0.5
 - react-scripts@2.1.7
2019-03-06 17:40:34 -07:00
Ian Sutherland
b2cf28b7f1 Revert "Speed up TypeScript v2 (#6406)" (#6585)
This reverts commit 6a5b3cdaaa.
2019-03-06 17:33:17 -07:00
Ian Sutherland
b5887dcac7 Publish
- babel-preset-react-app@7.0.2
 - confusing-browser-globals@1.0.6
 - create-react-app@2.1.6
 - eslint-config-react-app@3.0.8
 - react-app-polyfill@0.2.2
 - react-dev-utils@7.0.4
 - react-error-overlay@5.1.4
 - react-scripts@2.1.6
2019-03-06 16:17:21 -07:00
Jack Zhao
e7a427ad16 remove webpack-bundle-analyzer 2019-02-20 23:21:35 -08:00
Ian Schmitz
6a5b3cdaaa Speed up TypeScript v2 (#6406)
* Revert "Revert "Speed up TypeScript projects (#5903)""

This reverts commit 544a5943ce.

* Move fork-ts-checker dep to react-dev-utils

* Convert WebpackDevServerUtils.createCompiler to take in options arg

* Update README.md for react-dev-utils
2019-02-18 16:31:44 -08:00
Ian Schmitz
1548e39bf7 Publish
- create-react-app@2.1.5
 - react-dev-utils@7.0.3
 - react-scripts@2.1.5
2019-02-11 08:36:54 -08:00
Ian Schmitz
544a5943ce Revert "Speed up TypeScript projects (#5903)"
This reverts commit 5ce09db2b3.
2019-02-11 08:10:33 -08:00
Ian Schmitz
72c49ac807 Revert "Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (#6395)"
This reverts commit c2b715847c.
2019-02-11 08:10:10 -08:00
X.L
c2b715847c Move fork-ts-checker-webpack-plugin dependency to react-dev-utils (#6395) 2019-02-11 07:41:55 -08:00
Ian Schmitz
b02f181d0d Publish
- babel-plugin-named-asset-import@0.3.1
 - babel-preset-react-app@7.0.1
 - create-react-app@2.1.4
 - eslint-config-react-app@3.0.7
 - react-app-polyfill@0.2.1
 - react-dev-utils@7.0.2
 - react-error-overlay@5.1.3
 - react-scripts@2.1.4
2019-02-10 13:48:33 -08:00
Ian Schmitz
b7e0158441 Upgrade dependencies (#6393) 2019-02-10 12:24:40 -08:00
Dan Abramov
782d71b957 Add Jest typeahead plugin (#5213)
* Add Jest typeahead plugin

* Update jest-watch-typeahead to 0.2.1
2019-02-10 08:13:27 -08:00
Tomáš Szabo
5ce09db2b3 Speed up TypeScript projects (#5903)
As a lot of [people](https://hackernoon.com/why-i-no-longer-use-typescript-with-react-and-why-you-shouldnt-either-e744d27452b4) is complaining about TypeScript performance in CRA, I decided to enable `async` mode in TypeScript checker.

These changes basically brings the JS compilation times to TS projects. So, recompilation took less than 1 second instead of 3 seconds in medium size project.

The problem with async mode is that type-errors are reported after Webpack ends up recompilation as TypeScript could be slower than Babel. PR allows to emit files compiled by Babel immediately and then wait for TS and show type errors in terminal later. Also, if there was no compilation errors and any type error occurs, we trigger a hot-reload with new errors to show error overlay in browser.

Also, I wanted to start a discussion about `skipLibCheck: false` option in default `tsconfig.json`. This makes recompilations really slow and we should consider to set it to `true` or at least give users a big warning to let them know that it could be really slow.

The following video is showing the updated workflow with a forced 2.5 second delay for type-check to give you an idea how it works.

![nov-26-2018 15-47-01](https://user-images.githubusercontent.com/5549148/49021284-9446fe80-f192-11e8-952b-8f83d77d5fbc.gif)


I'm pretty sure that PR needs some polishing and improvements but it should works as it is. Especially a "hack" with reloading the browser after type-check looks ugly to me.

cc @brunolemos as he is an initiator of an original TypeScript PR.

Should fix https://github.com/facebook/create-react-app/issues/5820
2019-02-07 19:34:52 -08:00