Sebastian Markbage
f6fd4a8506
Use TypeScript Compiler API Directly
...
In 1.4.0 we can use the TypeScript API directly to preprocess our files.
This lets us get rid of a dependency.
https://github.com/Microsoft/TypeScript/wiki/Using-the-Compiler-API
We can also use this to provide our default libraries so that we don't
need to keep the references in the test file.
2015-02-01 22:41:00 -08:00
Toru Kobayashi
b7860b7da4
Fix consistency of component api document
2015-02-02 09:52:08 +09:00
Joel Auterson
344d07d7de
Add note linking to up-to-date doc on Flux website
2015-02-01 15:26:29 +00:00
Rafael
246fdebf82
remove extraneous comma in tutorial
2015-01-31 12:31:14 -10:00
syranide
aa9edc2a9c
Set HTML DOM property "open" to HAS_BOOLEAN_VALUE
2015-01-31 23:11:08 +01:00
Robert Sedovsek
ea94ec8c0e
Changed unit to pixels due to inconsitent font-size rendering of code elements.
2015-01-31 22:53:21 +01:00
Rick Beerendonk
f1bd869350
Add Conferences section to the Community Resources on the website
2015-01-31 22:46:03 +01:00
Rick Beerendonk
2de44cf668
Documents that JSX tool is transforming files with .js extension (and not .jsx) by default
2015-01-31 20:59:18 +01:00
Rick Beerendonk
3e0750a4ad
Update copyright headers for 2015
2015-01-31 20:18:25 +01:00
Andreas Svensson
905bfcec60
Merge pull request #1912 from syranide/safereuse
...
Warn if mounting into node with dirty rendered markup
2015-01-31 19:56:34 +01:00
Andreas Svensson
c460ad660b
Warn if mounting into node with dirty rendered markup
2015-01-31 19:36:12 +01:00
Andreas Svensson
a170629128
Merge pull request #1568 from syranide/dompurge
...
Only purgeID on ReactDOMComponent and ReactDOMTextComponent unmount
2015-01-31 18:21:22 +01:00
Lee Byron
508b625313
Merge pull request #2990 from jeffkole/patch-1
...
Documents that `classSet` concatenates its arguments
2015-01-30 21:45:54 -05:00
Jeff Kolesky
b7530e19eb
Documents that classSet concatenates its arguments
...
Just wanted it to be noted that `classSet` operates in two ways, both of which are valuable.
2015-01-30 16:47:44 -08:00
syranide
a7f0fb7c4f
Only purgeID on ReactDOMComponent and ReactDOMTextComponent unmount
2015-01-30 21:32:58 +01:00
Paul O’Shannessy
9f9d833065
Merge pull request #2987 from jsfb/fix-markdown-output-wrap
...
Fixed linewrap issue on markdown output css. Fixes #2986
2015-01-30 12:22:44 -08:00
Jim
2ea00ea772
Fixed linewrap issue on markdown output css. Fixes #2986
2015-01-30 12:19:18 -08:00
Jim
ddb1c7470e
Merge pull request #2960 from jsfb/add-detectable-prefix-to-reactelement-warning
...
Add detectable prefix to ReactElement proptype warning.
2015-01-30 12:14:33 -08:00
Paul O’Shannessy
bab59cd090
Pull in 0.13 beta blog post from 0.12-stable branch
2015-01-30 11:49:40 -08:00
Jim
b2f77e6de3
Add detectable prefix to ReactElement proptype warning.
2015-01-30 11:43:57 -08:00
G. Kay Lee
140627b1b2
Update thinking-in-react.md
...
Make style consistent with `tutorial.md`
2015-01-28 16:59:03 +08:00
Paul O’Shannessy
5bd078508a
v0.13.0-beta.1
2015-01-27 21:13:35 -08:00
Paul O’Shannessy
bd56b731de
Merge pull request #2967 from zpao/jest-match-internal
...
[jest] Use persistModuleRegistryBetweenSpecs
2015-01-27 20:54:19 -08:00
Paul O’Shannessy
657e30771a
Merge pull request #2966 from zpao/grunt-jest
...
Run jest with grunt, add to travis
2015-01-27 20:51:39 -08:00
Paul O’Shannessy
e2d3370aa9
Merge pull request #2964 from zertosh/no-derequire-when-minifying
...
Remove "derequire" from minified bundles
2015-01-27 20:51:08 -08:00
Preston Parry
5776dc7918
Update tutorial.md
2015-01-27 20:27:16 -08:00
Paul O’Shannessy
14d88d4e38
[jest] Use persistModuleRegistryBetweenSpecs
...
This more closely matches how we have jest configured at FB, so when we
pull in and run internally we will have fewer things to waste time on.
2015-01-27 19:17:31 -08:00
Paul O’Shannessy
49eb84efdd
Run jest with grunt, add to travis
...
This is to make sure we don't end up with differences in our different
testing methods. We may switch out the failure allowances later (maybe
just jest will be good enough and we can let phantom fail for a little
bit).
2015-01-27 18:04:58 -08:00
Scott Feeney
76f5453cc7
Mention shallow rendering's limitations
...
Also, move it to the bottom of the test utils documentation and mention that it's experimental.
2015-01-27 17:09:16 -08:00
Paul O’Shannessy
dbdeb078ce
[testing] dump the cache when depending on warning messages
...
It's possible to configure Jest to not dump the module cache between
specs. This makes it tricky when we silence warnings one a 2nd call.
In this case, the same message was getting logged so when we expected
the count of warning calls to increment, it didn't.
2015-01-27 16:02:00 -08:00
Jim
2ea1f51fe8
Merge pull request #2965 from ClimbsRocks/patch-4
...
Docs wording tweak: subject verb agreement
2015-01-27 14:45:15 -08:00
Preston Parry
e4352efc21
Update 04-multiple-components.md
2015-01-27 14:34:35 -08:00
Andres Suarez
5c5fc5e316
Remove "derequire" from minified bundles
2015-01-27 16:53:18 -05:00
Scott Feeney
f6804d2504
Add documentation for shallow testing
...
See #2393 for the original issue, and #2497 for the implementation.
2015-01-27 13:44:20 -08:00
Paul O’Shannessy
9801f2d8ab
Merge pull request #2940 from kevinold/2749-consistent-use-of-spys-or-mocks
...
update to use spyOn for console.warn #2749
2015-01-27 13:38:56 -08:00
Ben Alpert
513433b370
Merge pull request #2962 from ClimbsRocks/patch-3
...
Docs wording tweak for clarity
2015-01-27 11:59:00 -08:00
Ben Alpert
8174262135
Merge pull request #2961 from ClimbsRocks/patch-1
...
Rewording for clarity
2015-01-27 11:58:36 -08:00
Preston Parry
33ecec07cb
Update 02.1-jsx-in-depth.md
2015-01-27 11:22:21 -08:00
Preston Parry
cadbe1d27e
Rewording for clarity
2015-01-27 11:04:21 -08:00
Sebastian Markbåge
8bbaa95a49
Merge pull request #2948 from jergason/master
...
do not validate propTypes in production
2015-01-27 10:55:14 -08:00
Sebastian Markbåge
61c4497d58
Merge pull request #2959 from sebmarkbage/createmixin
...
We don't currently have a way to trace the origin of a mixin
2015-01-27 10:39:25 -08:00
Sebastian Markbåge
b3f96d97f9
Merge pull request #2957 from sebmarkbage/renamecomponent
...
Rename ReactComponentBase -> ReactComponent
2015-01-27 10:39:07 -08:00
Sebastian Markbage
295ef0063b
We don't currently have a way to trace the origin of a mixin
...
This makes it more difficult to find bugs in mixins both dynamically
and using a static type system.
We also don't have a way to find these to be upgraded to a new mixin
syntax if we needed to.
This hook is currently an optional noop but could be made required to
create a mixin class.
2015-01-27 09:36:14 -08:00
Sebastian Markbage
c3c98084b9
Rename ReactComponentBase -> ReactComponent
...
We freed up this internal name by removing the internal base class.
We're now free to use this name as it was intended.
ReactDOMComponent and ReactCompositeComponent are still confusing as
they're internal but we'll rename them later.
2015-01-27 09:22:07 -08:00
Jamison Dance
f61ca8d307
don't validate propTypes in production
...
Switch to warnings so code execution doesn't differ between prod and
dev.
2015-01-27 09:45:20 -07:00
Sebastian Markbåge
16a56afada
Merge pull request #2936 from sebmarkbage/refactorlifecycles
...
Use Singleton LifeCycle State
2015-01-27 01:26:30 -08:00
Sebastian Markbage
bebc568ceb
Use Singleton LifeCycle State
...
All entry points are for reconciliation are within batching strategies.
Since we don't have any batching strategies with synchronous updates,
there can't be more than one life-cycle method on the stack at any given
time.
Therefore, it's safe to move the composite life cycle flag to a singleton.
This saves us some memory management.
I think that we can get rid of these life cycle states completely in the
future.
2015-01-27 01:19:31 -08:00
Sebastian Markbåge
7e6251887f
Merge pull request #2935 from sebmarkbage/batchupdates
...
Batch updates in initial render
2015-01-27 01:06:56 -08:00
Sebastian Markbage
9811b10aaa
Batch updates in initial render
...
Currently, the first setState that happens during initial render will
start a new batch. Any subsequent updates will be batched. That means that
the first setState is synchronous but any subsequent setStates are
asynchronous.
This commit makes it so that the batching starts at the root. That way all
the setStates that happen within life-cycle methods are asynchronous.
2015-01-27 01:00:59 -08:00
Sebastian Markbåge
b3df7cabb7
Merge pull request #2930 from sebmarkbage/updatequeue
...
Extract setState, setProps etc into ReactUpdateQueue
2015-01-27 00:57:44 -08:00