Commit Graph
9046 Commits
Author SHA1 Message Date
SamuelandDan Abramov 04799590fc Update Portals Documentation (#10840)
* Update Portals Documentation

Correct some grammar to be more explicit and clear. Update example CodePen to better match code found in documentation. Update code example styles to match other code examples (ie. 'State and Lifecycle', 'Handling Events').

* Clean up comment to be accurate to example

There was a small comment overlooked when reviewing the documentation. This fixes it to be accurate to the example as well as grammatically correct.

* Update portals.md

* More fixes
2017-09-26 19:45:48 +01:00
Kaylee KnowlesandDan Abramov ba1396fb03 React.createPortal is not a function (#10843) 2017-09-26 19:41:30 +01:00
Dan AbramovandGitHub 26cf268541 Fix note formatting 2017-09-26 19:01:38 +01:00
Samuel ReedandDan Abramov 5120bf897c Doc change for prevContext removal in CDU (#10836)
* Doc change for prevContext removal in CDU

Ref: https://github.com/facebook/react/issues/8631

* Minor rewording
2017-09-26 18:29:35 +01:00
Dan AbramovandGitHub 893919f6a7 Fix React links on the website (#10837)
* Fix React links on the website

* Fix code editor

* Fix code editor, attempt 2
2017-09-26 18:20:41 +01:00
Andrew ClarkandGitHub 5f6326f356 Doc updates for React 16 + blog post (#10824)
* Doc updates for React 16 + blog post

* Add link to Sophie's post
2017-09-26 09:04:14 -07:00
Andrew Clark 5c6ef40446 v16.0.0 v16.0.0 2017-09-26 08:50:33 -07:00
Andrew Clark b62d315950 Update CHANGELOG for React 16 2017-09-26 08:45:53 -07:00
Andrew Clark 7ccfbfc25d Update error codes 2017-09-26 08:44:21 -07:00
Andrew Clark 1fcdc020eb Flow should ignore node_modules/create-react-class 2017-09-26 08:41:07 -07:00
Andrew Clark ec75ad1488 Bump object-assign patch range to match main package.json 2017-09-26 08:33:29 -07:00
Dan AbramovandGitHub 4de45cfbec Add Nate to authors on master 2017-09-26 11:41:02 +01:00
Dan AbramovandGitHub 9f8387a15f Add 15.6.2 blog post to master 2017-09-26 11:40:07 +01:00
Dan AbramovandGitHub e858ed5b14 Add changelog for 15.6.2 2017-09-26 11:37:12 +01:00
Toru KobayashiandAndrew Clark b9d55695e1 Add ReactTestRenderer documentations (#10692)
* Add ReactTestRenderer documentations

* Add TestRenderer documentations

* TestRenderer is not experiment

* Add a link for jsdom

* Use ES Modules syntax

* Twaek

* Add a Link component

* Use Jest assertions

* Move a documentation for createNodeMock to Idea section

* Renamed

* Tweak

* Rename

* More explicit

* Add a usecase for createNodeMock
2017-09-26 00:30:56 -07:00
Sophie Alpert e932ad68be Version bumps to use MIT license 2017-09-25 18:17:44 -07:00
Sophie Alpert b765fb25eb Change license and remove references to PATENTS
Only remaining references:

```
docs/_posts/2014-10-28-react-v0.12.md
51:You can read the full text of the [LICENSE](https://github.com/facebook/react/blob/master/LICENSE) and [`PATENTS`](https://github.com/facebook/react/blob/master/PATENTS) files on GitHub.

docs/_posts/2015-04-17-react-native-v0.4.md
20:* **Patent Grant**: Many of you had concerns and questions around the PATENTS file. We pushed [a new version of the grant](https://code.facebook.com/posts/1639473982937255/updating-our-open-source-patent-grant/).

src/__mocks__/vendor/third_party/WebComponents.js
8: * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
```
2017-09-25 18:17:44 -07:00
Sophie Alpert d63249d034 Update license headers BSD+Patents -> MIT
Did find and replace in TextMate.

```
find: (?:( \*)( ))?Copyright (?:\(c\) )?(\d{4})\b.+Facebook[\s\S]+(?:this source tree|the same directory)\.$
replace: $1$2Copyright (c) $3-present, Facebook, Inc.\n$1\n$1$2This source code is licensed under the MIT license found in the\n$1$2LICENSE file in the root directory of this source tree.
```
2017-09-25 18:17:44 -07:00
Dan AbramovandGitHub b24d23d3e8 Update DOM warning wording and link (#10819)
* Update DOM warning wording and link

* Consistently use "Invalid" for known misspellings
2017-09-26 00:28:28 +01:00
Dan AbramovandGitHub 6e8c09c363 Include tag name into the table snapshot (#10818) 2017-09-25 21:03:44 +01:00
Joe CritchleyandDan Abramov f9bfd08a02 Markdown fixs on "DOM Attributes in React 16" post (#10816) 2017-09-25 18:57:42 +02:00
Toru KobayashiandDan Abramov 7b2101e352 Add a changelog for elements having the same key (#10811)
*  Add a changelog for elements having the same key

* Reword
2017-09-25 11:57:14 +02:00
Dan Abramov 4c45058355 Record sizes 2017-09-24 17:44:13 +02:00
Kenneth ChauandSophie Alpert a160f3ecfa Fixes #9667: Updated createTextInstance to create the text node on correct document (#10723) 2017-09-22 16:08:19 -07:00
Flarnie MarchanandGitHub cdfbe6bb04 Update changelog for unreleased 16.0 changes (#10730)
* First shot at updating changelog for 16.0

**what is the change?:**
Added an 'unreleased' section to the changelog with info from https://github.com/facebook/react/issues/10294

**why make this change?:**
To get things set for the 16.0 release.

**test plan:**
Visual inspection

**issue:**
https://github.com/facebook/react/issues/8854

* Fix typos and formatting errors in changelog

* Add requestAnimationFrame and remove "New helpful warnings"

**what is the change?:**
In response to helpful code review -
- Add mention of dependency on `requestAnimationFrame` and need to
  polyfill that as well as `Map` and `Set`
- Remove "New helpful warnings" section; it was incomplete, and there
  are so many new and updated warnings that it might not be reasonable
  to cover them in the changelog.

**why make this change?:**
Accuracy

**test plan:**
Visual inspection

**issue:**
issue #8854

* Improve wording

* Improve wording and fix missing links

* Add backticks to file names & code; wording tweak

* Break "Major Changes" into "New Feature" and "Breaking Changes"

* Add server side render changes to 16.0 changelog

* Change gist link from mine to gaearons

* Add note about returning fragments

* fix misc nits

* Misc. formatting/wording fixes to changelog

**what is the change?:**
Thanks to the kind code review comments of @gaearon and @nhunzaker we
have
- removed the non-deterministic bold styling on some bullet points
- improved wording of the bullet points for portals, attribute whitelist
  changes, and server rendering changes
- Add note about error boundaries including a breaking change to error
  handling behavior.
- punctuation and capitalization fixes

**why make this change?:**
Clarity and correctness

**test plan:**
Visual inspection

**issue:**
https://github.com/facebook/react/issues/8854

* fix broken link
2017-09-22 15:22:39 -07:00
Robert HaritonovandBrandon Dail dd00b47e1f Add React Amsterdam 2018 Conference (#10734) 2017-09-19 11:23:28 -07:00
Andrew ClarkandGitHub b5ac963fb7 Push host root context when bailing out on low priority (#10712)
Prevents a push/pop mismatch when bailing out on HostRoots. This is
currently unobservable, because HostRoots never bail out on low
priority, but this does happen with prerendering.

I found this when rebasing #10624 on top of master.
2017-09-14 15:23:55 -07:00
Brian VaughnandGitHub 836d1c5d0c ReactNativeBridgeEventPlugin supports lazily-registered event types (#10679)
* ReactNativeBridgeEventPlugin supports lazily-registered event types
This accompanies changes on the native side to now specify which event types each view manager supports as part of its view config. Ultimately the goal is to lazily initialize view managers on the native side as well.
* Bubbling and direct attributes are optional on view config
This should help ease transition for pre-existing JS-only components.
2017-09-14 14:55:32 -07:00
Anuja WareandBrandon Dail 3c98b2e0b0 Small typo fixed (#10701) 2017-09-14 14:39:17 -07:00
Clement HoangandDan Abramov 7caa035be5 Fix bug with toTree on rendered array #10616 (#10652)
* Fix bug with toTree on rendered array #10616

* Preserve previous behaviour of rendered being a node unless it's for rendering an array
2017-09-14 22:15:43 +01:00
Dan AbramovandGitHub c043c1e7d9 Remove View.propTypes RN deprecation workaround (#10683) 2017-09-14 19:46:24 +01:00
Dan Abramov 03443a2e23 Record sizes 2017-09-14 14:04:11 +01:00
Dan Abramov b741916d37 16.0.0-rc.3 2017-09-14 13:59:29 +01:00
Dan Abramov 07f129bec2 Update error codes 2017-09-14 13:37:26 +01:00
Dan Abramov d5d46df270 Update fbjs in lockfile 2017-09-14 13:32:23 +01:00
Dan Abramov bacaf60e15 Update sizes 2017-09-14 13:27:27 +01:00
Dan AbramovandGitHub af36a05d5a Fix FB isomorphic build (#10704)
* Freeze bundle configs before the build

This ensures we don't accidentally mutate it.

* Fix config mutation during the build uncovered by freeze

* Fix FB isomorphic build by marking object-assign as an external

* Bye bye redundant check
2017-09-14 01:24:31 +01:00
Dan AbramovandGitHub aebd7f5454 Report bad dead code elimination to React DevTools (#10702)
* Report bad dead code elimination to React DevTools

* Fix lint
2017-09-13 23:51:42 +01:00
Dan AbramovandGitHub c99bad9483 Warn against custom non-lowercase attributes (#10699)
* Warn against custom non-lowercase attributes

* Update attribute table

* Grammar tweaks
2017-09-13 18:13:13 +01:00
Dan AbramovandGitHub c55ffb37f1 Fix false positive hydration warning for SVG attributes (#10676)
* Fix false positive hydration warning for SVG attributes

* Undo the generic fix

* Pass namespace through and use it to determine sensitivity
2017-09-13 16:31:40 +01:00
Dan AbramovandGitHub 65b9ad94aa Fix context memory leak (#10680)
* Fix context memory leak

* Fix Flow
2017-09-12 21:47:09 +01:00
Dan AbramovandGitHub 43dae749aa Stop exposing shallow renderer from TestUtils (#10682)
* Stop exposing ShallowRenderer from TestUtils

* Record sizes

* Lint
2017-09-12 19:29:28 +01:00
Dan AbramovandGitHub 18d6cb5ebe Remove undocumented TestUtils methods (#10681) 2017-09-12 16:50:41 +01:00
Dan AbramovandGitHub 89508f20d4 Make ReactDOM.createPortal() official (#10675)
* Validate portal container early

* Add ReactDOM.createPortal but leave unstable_ alias usable
2017-09-11 22:23:54 +01:00
Dan AbramovandGitHub f74981beee Share Object.assign polyfill between UMD builds (#10671) 2017-09-11 19:22:59 +01:00
Dan AbramovandGitHub 61282d38d5 Remove toString-based minification check (#10673) 2017-09-11 19:22:41 +01:00
Dan Abramov 6552519a21 Update sizes 2017-09-11 16:51:58 +01:00
Thibaut RizziandSophie Alpert af312ce006 Remove react proptypes references (#9759) 2017-09-10 17:37:22 -07:00
Matthew ShottonandSophie Alpert b80e3ad1f5 Fix hint wording in tutorial.md (#9867)
The tutorial hints that a change can be made that allows you to go back
in time then click in the board to create a new entry, but the change is
already present in the example code.

This fix removes the hint and re-words the explanation of the change the
example code is making.
2017-09-10 17:28:32 -07:00
François ChalifourandSophie Alpert 83b63e5ff8 Fix test names in ReactDOMComponent-test (#10113)
* Fix test names in ReactDOMComponent-test

* Run record-tests script for Fiber
2017-09-10 14:52:09 -07:00