Commit Graph
5213 Commits
Author SHA1 Message Date
Paul O’Shannessy fd2c524686 Actually build react-dom file with the build 2015-09-08 22:18:44 -07:00
Paul O’Shannessy aeef2e5e3f Move headers to shared location, use grunt templates 2015-09-08 22:00:05 -07:00
Paul O’Shannessy 104d5bce84 Merge pull request #4798 from zpao/pull-out-version
Move version to standalone module in preparation for reuse
2015-09-08 16:30:05 -07:00
Paul O’Shannessy 983131e9d4 Move version to standalone module in preparation for reuse 2015-09-08 10:18:41 -07:00
Ben Alpert de9e5edd47 Merge pull request #4663 from spicyj/isreactclass
Require instantiable components to extend React.Component
2015-09-08 10:01:15 -07:00
Ben Alpert 9d11d3c2ba Require instantiable components to extend React.Component 2015-09-08 10:01:13 -07:00
Paul O’Shannessy a47aacd9d6 Merge pull request #4787 from Simek/patch-5
simplify valid attribute regex in DOMPropertyOperations
2015-09-04 17:42:32 -07:00
Ben Alpert f02c68c8f7 Merge pull request #4786 from jontewks/master
Resolve eslint error
2015-09-04 17:35:02 -07:00
Jon Tewksbury 47623a1bf7 Resolve eslint error 2015-09-04 17:31:12 -07:00
Ben Alpert aba17357b5 Merge pull request #4767 from spicyj/com
Add react-to-react-dom codemod
2015-09-04 13:55:04 -07:00
Jim 79e184808f Merge pull request #4788 from jontewks/html-attribute-docs
Update docs to match standard HTML attribute support
2015-09-04 03:04:58 -07:00
Jon Tewksbury c4a0d7ee41 Update docs to match standard HTML attribute support 2015-09-03 22:59:29 -07:00
Bartosz Kaszubowski 5c6fd90748 simplify valid attribute regex in DOMPropertyOperations 2015-09-04 07:41:19 +02:00
cpojer 43b277bd8c Do not codemod classes with invalid fields, fixes #4628 2015-09-03 17:04:19 -07:00
Ben Alpert 4f41f9d8bd Merge pull request #2065 from crm416/container-warnings
Warn when passing invalid containers to render and unmountComponentAtNode
2015-09-03 17:00:55 -07:00
Ben Alpert a3b56b5f9b Update wording and style for #2065 2015-09-03 17:00:16 -07:00
Charles MarshandBen Alpert 58118946a3 Warn when passing invalid containers to render and unmountComponentAtNode 2015-09-03 17:00:11 -07:00
Ben Alpert f6e7a3df94 Merge pull request #3942 from spicyj/el-plain-obj
Make ReactElement really a plain object and freeze it
2015-09-03 15:02:56 -07:00
Ben Alpert 078719cb68 Make ReactElement really a plain object
This should guarantee that the hidden class is the same after inlining.
2015-09-03 14:58:52 -07:00
Ben Alpert 528864573e Merge pull request #4781 from jontewks/master
Add console message to get devtools for firefox
2015-09-03 14:26:37 -07:00
Jon Tewksbury e28ac495b8 Update console messages regarding devtools 2015-09-03 14:16:26 -07:00
Paul O’Shannessy 22a88fb0e5 Add insert_final_newline to editorconfig 2015-09-03 13:43:42 -07:00
Paul O’Shannessy 6da521e57f Merge pull request #4780 from matchu/patch-1
avoid the phrase "key property"
2015-09-03 12:50:36 -07:00
matchu cd5875485d avoid the phrase "key property"
React components can be assigned a special property named `key`. Therefore, it's helpful to avoid the phrase "key property" unless you're talking about the `key` property :)

I'm not sold on the replacement phrase, though... I think it's solid, but two fancy words like "fundamental" and "invariant" next to each other just seem a bit unwelcoming xP then again, we're talking about some heavy technical stuff; if there aren't any lighter words that are equally precise, then these should probably stand.
2015-09-03 12:03:15 -07:00
Ben Alpert 5814f566a7 Merge pull request #4773 from spicyj/new-dt-blog
New devtools blog post
2015-09-02 15:15:27 -07:00
Ben Alpert 76a8fb08f3 New devtools blog post 2015-09-02 12:34:10 -07:00
Ben Alpert 121d9cba08 Add react-to-react-dom codemod
I ran it over Facebook so it probably works.
2015-09-01 17:44:27 -07:00
Ben Alpert a93be9c941 Merge pull request #4759 from spicyj/devprod
Fix diverging behavior of ReactFragment in `__DEV__`
2015-09-01 17:35:14 -07:00
Ben Alpert c6a5b29cdb Merge pull request #4702 from spicyj/react-mod-depr
Add deprecation warnings to React module
2015-09-01 14:40:48 -07:00
Ben Alpert 2ce8a15e08 Merge pull request #4764 from spicyj/pre-commit
Remove leftover env variable logic in pre-commit hook
2015-09-01 14:39:53 -07:00
Ben Alpert a887b13cb9 Add warnings to React module 2015-09-01 14:36:41 -07:00
Ben Alpert fc139710ec Remove leftover env variable logic in pre-commit hook 2015-09-01 14:35:47 -07:00
Ben Alpert 26a2fe4e2f React -> ReactDOM in test files 2015-09-01 14:34:37 -07:00
Ben Alpert 1dd452ce3c Merge pull request #4763 from spicyj/pre-commit
Add linting pre-commit hook
2015-09-01 14:33:49 -07:00
Ben Alpert 2b7b3db61e Merge pull request #4762 from spicyj/ts
Make TypeScript test work with ReactDOM
2015-09-01 14:30:56 -07:00
Ben Alpert 512d54b1f2 Add linting pre-commit hook
Anyone who wants it will have to do

```
ln -s scripts/git/pre-commit .git/hooks/pre-commit
```

or similar.
2015-09-01 14:29:52 -07:00
Ben Alpert 2c2cf90bca Make TypeScript test work with ReactDOM 2015-09-01 14:28:12 -07:00
Ben Alpert e636aa4bec Fix diverging behavior of ReactFragment in __DEV__
We could also remove the return statements but this is not a hot path and this seems safer.
2015-09-01 13:27:17 -07:00
Paul O’Shannessy af237ab3fe Merge pull request #4746 from zpao/use-fbjs-lint
Use eslintrc from fbjs
2015-08-31 23:21:29 -07:00
Paul O’Shannessy 8604677562 Use eslintrc from fbjs 2015-08-31 23:05:04 -07:00
Ben Alpert 5d43f481bc Merge pull request #4755 from MichelleTodd/react-warnings-0.14
Update warning messages to use ReactDOM and ReactDOMServer as appropriate
2015-08-31 23:03:10 -07:00
Michelle Todd 5c215fb2bd Update warning messages to use ReactDOM and ReactDOMServer as appropriate
Fixes #4710.

- `React.findDOMNode` => `ReactDOM.findDOMNode`
- `React.render` => `ReactDOM.render` or "top-level render" (depends on whether we're in DOM-specific usage or generic cases)
- `React.renderToString` => `ReactDOMServer.renderToString`
- `React.renderToStaticMarkup` => `ReactDOMServer.renderToStaticMarkup`
2015-08-31 22:55:27 -07:00
Paul O’Shannessy 2c24cf2550 Merge pull request #4750 from zpao/fbjs-0.2
Upgrade to fbjs, fbjs-scripts @ 0.2
2015-08-31 22:47:02 -07:00
Ben Alpert 19faa3d867 Merge pull request #4731 from spicyj/map-one-pass
Make React.Children.map do one pass only
2015-08-31 18:52:51 -07:00
Ben Alpert 0e17561d42 Make React.Children.map do one pass only
Changed: createFragment no longer includes nulls in its output (since toArray doesn't and they share code).

Changed: React.Children.map no longer warns for clashing keys; traverseAllChildren will later when rendering.

Also change the generated key format around to accomodate. My keys are probably not bulletproof but should definitely be safe against accidental collisions.
2015-08-31 18:47:09 -07:00
Paul O’Shannessy 739e183ec4 Upgrade to fbjs, fbjs-scripts @ 0.2 2015-08-31 17:19:42 -07:00
Ben Alpert 7d5d193880 Merge pull request #4735 from spicyj/shallow-error
Better error for invalid element when shallow rendering
2015-08-31 13:30:56 -07:00
Ben Alpert 63579eda88 Merge pull request #4744 from spicyj/gh-4635-f
Fix code style/grammar on synthetic event warning
2015-08-31 13:06:46 -07:00
Paul O’Shannessy 671e8e408e Merge pull request #4739 from henrik/patch-1
docs: "also lets pass" -> "also lets you pass"
2015-08-31 11:44:29 -07:00
Ben Alpert 43d4081b22 Fix code style/grammar on synthetic event warning 2015-08-31 11:32:12 -07:00