react 5.0.0-alpha.0 copy "react: ^5.0.0-alpha.0" to clipboard
react: ^5.0.0-alpha.0 copied to clipboard

outdated

Bindings of the ReactJS library for building interactive interfaces.

5.0.0-alpha.0 #

ReactJS 16.x Support

  • The underlying .js files provided by this package are now ReactJS version 16.
  • Support for the new / updated lifecycle methods from ReactJS 16 will be released in version 5.1.0.

Full list of 5.0.0 Pull Requests

4.9.1 #

  • #205 Fix context setter typing to match getter and not fail implicit_casts: false

4.9.0 #

  • #202 Add bindings for transition / animation events
  • #198 Updates in preparation for 5.0.0 release

4.8.1 #

  • #197 Fix Dart component callback refs with typed arguments not working in Dart 2 dynamic ref argument (worked):
    Foo({'ref': (ref) => _fooRef = ref})
    
    non-dynamic ref argument (did not work):
    Foo({'ref': (FooComponent ref) => _fooRef = ref})
    

4.8.0 #

  • #181: Remove unnecessary zoning on event handlers that interferes with testing
    • Handlers triggered by real events will now always be called in the root zone.

      In most cases, handlers were already running in the root zone, so this should not affect behavior. See #179 for more details.

    • When testing, you previous had to bind event handlers or callbacks triggered by event handlers to zones when using expect or expectAsync.

      var renderedInstance = renderIntoDocument(
        Button({}, {
          'onButtonPress': Zone.current.bindUnaryCallback(expectAsync((e) {
            // ...
          }, reason: 'onButtonPress not called')),
          'onClick': Zone.current.bindUnaryCallback((e) {
            expect(e.defaultPrevented, isTrue);
          }),
        }),
      );
      
      // ...
      Simulate.click(buttonNode);
      

      Now, handlers will be called in the zone they're triggered from, which makes testing events easier and more predictable:

      var renderedInstance = renderIntoDocument(
        Button({}, {
          'onButtonPress': expectAsync((e) {
            // ...
          }, reason: 'onButtonPress not called'),
          'onClick': (e) {
            expect(e.defaultPrevented, isTrue);
          },
        }),
      );
      
      // ...
      Simulate.click(buttonNode);
      

4.7.1 #

  • #182: Deprecate emptyJsMap:
    • Use newObject() from dart:js_util instead

4.7.0 #

  • #162: Add jsifyAndAllowInterop, deprecate some obsolete JS utils:
    • Deprecate jsify, setProperty, and getProperty; use versions from dart:js_util instead
    • Deprecate EmptyObject; use newObject from dart:js_util instead
  • #170: Reformat with line length of 120 for better readability

4.6.2 #

  • #162: Important Deprecations

    These deprecations are being put in place to prepare consumers for the upcoming 5.0.0 release which will include support for React JS version 16.x

    • react_server.dart and Dart VM server-side rendering
      • Server-side rendering via react_dom_server.dart, though untested, is still in place
    • Legacy context APIs
    • isMounted
    • react_test_utils.SimulateNative
    • String Component.refs
    • Component.replaceStates
    • Component.bind
    • Component.transferComponentState
  • #155: Clean the lint trap.

4.6.1 #

4.6.0 #

  • #152: Format all files using dartfmt.
  • #153: New unconvertJsProps utility function.

4.5.0 #

  • Improvement: Dart 2 compatible!
65
likes
0
pub points
86%
popularity

Publisher

verified publisherworkiva.com

Bindings of the ReactJS library for building interactive interfaces.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

js, meta

More

Packages that depend on react