Commit Graph

1186 Commits

Author SHA1 Message Date
Paul O’Shannessy 09bdcefd4f Notify travis build results in IRC channel
If this gets noisy, we can change to only notify on change.
2013-12-04 21:19:24 -08:00
Paul O’Shannessy 2bbc42ce41 Update package devDependencies 2013-12-04 21:07:16 -08:00
Marshall Roch d17bd176a2 Remove support for putting mixins, propTypes, etc. in 'statics'
This leaves statics as a way to define static methods and properties
that will be accessible on the return value of `React.createClass`
without changing the current spec.
2013-12-04 20:27:44 -08:00
Sean Kinsey c2e48740fc [ReactTransitionGroup] Add onTransitionEnter and onTransitionLeave
It is valuable to know when the number of children in a TransitionGroup is going
to increase or decrease, since we might want to apply extra animations.
For instance, when used with overflow:auto, we might want to apply different css
based on it overflowing or not - to do this we need to calculate this after new
nodes has entered and after nodes has been removed.
2013-12-04 20:27:28 -08:00
John Watson bf24dc33f7 Separate replaceState invariant violations
It'd be nice if we knew which error we were hitting when this invariant hit.
2013-12-04 20:27:24 -08:00
Marshall Roch e3ad088ff3 Remove deprecation warning for React statics 2013-12-04 20:27:19 -08:00
Paul O'Shannessy 1b8bdbe177 Remove deprecated React.unmountAndReleaseReactRootNode 2013-12-04 20:27:15 -08:00
Marshall Roch 79b9d5af62 Introduce 'statics' for class specification
This moves the static properties off of the root object and into
a 'statics' property. Then they are made available on the constructor so
they can be used directly and in mixins.
2013-12-04 18:39:44 -08:00
Ben Newman 66f6cbad56 Merge pull request #535 from benjamn/commoner-cache-buster
Establish a convention for forcing jsx rebuilds.
2013-12-04 13:54:29 -08:00
Ben Newman 057c88ce52 s/jsxConfig/commonerConfig/g 2013-12-04 16:47:13 -05:00
Ben Newman 3527d9d91c Establish a convention for forcing jsx rebuilds.
Pull request #526 updated the behavior of vendor/constants.js without
changing any source files or the bin/jsx-internal script, so files that
should have been rebuilt (like utils/__tests__/ImmutableObject-test.js)
were not automatically rebuilt (unless you knew to do `grunt clean` or
`rm -rf .module-cache` manually).

This commit allows us to bump a version number when we know the transform
toolchain has been altered in a way that will not be visible to
commoner/jsx.

With this convention, if we reset to an older revision (e.g. during a git
bisect) and the appropriate cached module files are still in the
.module-cache/, they can be used without rebuilding. That's why I prefer
this approach to just deleting the .module-cache/.

Closes #104.
Closes #496.
Closes #530.
2013-12-04 16:36:59 -05:00
Ben Newman affe7f98b5 Merge pull request #367 from benjamn/findComponentRoot-memory-usage-improvements
Space optimizations for ReactMount.findComponentRoot.
2013-12-04 13:20:29 -08:00
Paul O’Shannessy bcd7b5d194 Merge pull request #630 from spicyj/remove-updatePropertiesByID
Remove unused updatePropertiesByID
2013-12-04 10:34:35 -08:00
Ben Alpert 9d443542f9 Remove unused updatePropertiesByID 2013-12-03 19:22:36 -08:00
Ben Newman 87db648f3e Address pull request feedback. 2013-12-03 16:43:37 -05:00
Ben Newman 6b9fc81b64 Space optimizations for ReactMount.findComponentRoot. 2013-12-03 16:43:37 -05:00
Vjeux e4909d0f2e Add video at the bottom of the front page 2013-12-03 12:11:12 -08:00
Paul O’Shannessy 9d18956b09 Merge pull request #624 from spicyj/remove-registrationNamesKeys
Remove unused event plugin registrationNamesKeys
2013-12-02 16:03:36 -08:00
Paul O’Shannessy cd3bfe64d4 Fix blog pagination
I missed this in the Jekyll upgrade.
2013-12-02 15:46:20 -08:00
Paul O’Shannessy 241f4d29b2 [docs] Fix download links to addons builds 2013-12-02 15:13:49 -08:00
Pete Hunt 3851462b80 Fix lint warnings 2013-12-02 13:32:09 -08:00
Paul O’Shannessy 76e3294c8f Merge pull request #609 from subtleGradient/subtlegradient/fixes-ios-crasher
fixes iOS crasher
2013-12-02 13:25:40 -08:00
Paul O’Shannessy d64256fb65 Merge pull request #626 from spicyj/getUnboundedScrollPosition-license
Add missing license header
2013-12-02 09:07:07 -08:00
petehunt 00adabc20d Fix frontpage example to retain selection 2013-12-02 04:04:45 -08:00
Ben Alpert 1cb402c410 Add missing license header 2013-12-02 01:12:20 -08:00
Pete Hunt e923e22c16 Merge pull request #625 from spicyj/patch-3
Tweaks to README
2013-12-01 23:06:51 -08:00
Ben Alpert 55cd8bee35 Tweaks to README
Most significant change is updating the leading copy to match #440.
2013-12-01 22:49:46 -08:00
Ben Alpert 4323ab095f Remove unused event plugin registrationNamesKeys 2013-12-01 22:28:19 -08:00
Pete Hunt 22dc8fa765 Merge pull request #602 from chenglou/tips-bind
docs tips pass arguments to callbacks
2013-12-01 19:07:14 -08:00
Cheng Lou e98244adb5 docs tips parent-child communication 2013-12-01 21:39:22 -05:00
Pete Hunt 92b62bf1fe Merge pull request #576 from spicyj/immutable-props
Don't mutate passed-in props
2013-12-01 18:26:41 -08:00
Pete Hunt 2a84b6c6b2 Merge pull request #537 from hojberg/dont_animate_undefined_children
ReactTransitions: Don't animate undefined children
2013-12-01 14:21:11 -08:00
Pete Hunt 285e3a8929 Merge pull request #440 from petehunt/new-taglines
New marketing copy
2013-12-01 14:00:13 -08:00
Pete Hunt ab36b114fc Merge pull request #581 from chenglou/docs-select-value
docs `select` `value` to control chosen option
2013-12-01 13:53:12 -08:00
Paul O’Shannessy d8a1dbb19c Merge pull request #618 from chenglou/didmout-didUpdate-new
docs remove rootNode for componentDidMount/Update
2013-11-27 18:50:10 -08:00
Cheng Lou cffb115480 docs remove rootNode for componentDidMount/Update 2013-11-27 21:46:02 -05:00
Paul O’Shannessy 98b9e2faeb Merge pull request #599 from chenglou/dl-addons
docs add download links for react-with-addons
2013-11-27 14:48:42 -08:00
Cheng Lou 11638b7824 docs add download links for react-with-addons 2013-11-27 17:31:27 -05:00
Paul O’Shannessy 8fbdb50a9d Merge pull request #597 from spicyj/gh-527
Don't use .returnValue if .defaultPrevented exists
2013-11-27 14:28:26 -08:00
Paul O’Shannessy 5fbd8109f8 Merge pull request #598 from spicyj/gh-516
Be resilient to fn.name not existing in IE
2013-11-27 14:28:02 -08:00
Paul O’Shannessy 126ef094fc Merge pull request #593 from spicyj/run-lint
Run lint on Travis in a matrix
2013-11-27 14:14:33 -08:00
Thomas Aylott 916ee6b394 jsx & JSDOM support 2013-11-27 17:04:40 -05:00
Ben Alpert 2104327ba1 Run lint automatically on Travis (in a matrix) 2013-11-27 16:53:57 -05:00
Paul O’Shannessy 42eef0e9d6 Merge pull request #610 from chenglou/jsx-js
make docs jsx compiler highlight transpiled js code
2013-11-27 12:22:51 -08:00
Paul O’Shannessy e31fdfd0b3 Merge pull request #616 from davidhellsing/patch-1
Backbone example: changed key from Math.random() to todo.cid
2013-11-27 12:14:40 -08:00
Marshall Roch 697a9113c0 ReactPropTypes: add oneOfType to support union types
Summary:
e.g.

  propTypes: {
    foo: React.PropTypes.oneOfType([
      React.PropTypes.string,
      React.PropTypes.number
    ]);
  }

to do this, I exposed a `.weak` chainable validator that returns instead of throws, e.g.

  React.PropTypes.string.isRequired.weak
  React.PropTypes.string.weak

which returns true or false. Technically, `React.PropTypes.string.weak.isRequired` also exists, but `oneOfType` will never call it. Might be useful to people creating custom validators though.
2013-11-27 12:10:50 -08:00
Marshall Roch 351dcfed01 Validate propTypes, contextTypes, childContextTypes
who watches the watchmen?
2013-11-27 12:10:50 -08:00
Pete Hunt fcfe516a2e Less verbose ReactPropTypeLocations logging
Since we use keyMirror() and invariant() messages are only shown in __DEV__, we don't have to do manual constant->string translation. Also fixes a few
undefined keys that just happened to work before.
2013-11-27 12:10:50 -08:00
Paul O’Shannessy 9886e40395 Merge pull request #594 from spicyj/skip-spec
Allow running one spec/suite in the web interface
2013-11-27 11:54:31 -08:00
Paul O’Shannessy a7811fb75b Merge pull request #595 from spicyj/old-logger
Remove reference to old browser logger
2013-11-27 11:46:15 -08:00