Skip to content

Latest commit

 

History

History
683 lines (609 loc) · 33.8 KB

CHANGELOG.md

File metadata and controls

683 lines (609 loc) · 33.8 KB

OverReact Test Changelog

3.0.0

  • Add support for Dart null safety (#155)
    • SDK / Dependency Versioning:
      • Increase minimum Dart SDK version from 2.11.0 to 2.13.0.
      • Increase minimum react version from 6.0.1 to 7.0.0.

2.11.7

  • Raise max allowed versions of react and flux dependencies (#152)

2.11.6

  • Remove usages of deprecated APIs that will be removed in react-dart 7.0.0
  • Bump dependencies: meta: ^1.8.0, test: ^1.21.1

2.11.5

  • Unpin meta dependency

2.11.4

  • Internal updates (dev_dependencies, CI)

2.11.3

  • Internal updates (dev_dependencies, cleanup)

2.11.2

  • Set minimum Dart SDK to 2.11.0

2.11.1

2.11.0

  • Added support for searching within ShadowDOM roots to queryByTestId and queryAllByTestId.

2.10.2

  • Widen over_react and react version constraints in preparation for v4.0.0 and v6.0.0, respectively.

2.10.1

Re-tag of 2.10.0 release which was not released correctly

  • Only expect propTypes errors in DDC runtime.

2.9.6

  • Fix prop forwarding tests false positives

    Tests that had commonComponentTests.getUnconsumedPropKeys() returning a list of keys that included keys within mixins that were actually being consumed by the component were not failing as expected.

    e.g. this situation should have resulted in test failures, but it did not:

    Component's consumedProps:

    @override
    get consumedProps => propsMeta.forMixins({
      SomePropsMixin,
    });

    Component's commonComponentTests:

    group('common component tests', () {
      commonComponentTests(ComponentFactory, getUnconsumedProps: (propsMeta) => [
        ...propsMeta.forMixin(SomePropsMixin).keys,
      ]);
    });

2.9.5

  • Add Object.values shim for MSIE 11.

2.9.4

  • Normalize the behavior of the render() utility function between UiComponent and UiComponent2 components.
  • Un-deprecate the throwsPropError* matchers.

2.9.3

  • Fix typo in logsPropError matcher to ensure consumers can easily migrate from throwsPropError when appropriate.

2.9.2

  • Move isComponent2 call inside a test block to address consumer issues when the provided factory accesses values that are initialized within setUp.

2.9.1

  • Move getPropsMeta call inside a test block to address consumer issues when the provided factory has required props that come from setUp-initialized variables.

2.9.0

  • Add Component Version Auto Detection
  • Re-instate prop forwarding tests for new over_react component boilerplate

2.8.0

  • Update mount, render, and renderAttachedToDocument to automatically run component lifecycle in the same zone as the test.
    • This fixes some print statements from being swallowed and some failing expects from not failing tests properly

2.7.0

  • Add propTypes testing utilities

2.6.0

  • Drop support for React 15
  • Support Component2 in commonComponentTests

2.5.2

  • Add support for React 16 (raise upper bound of react to allow 5.x, over_react to allow 3.x)
  • Fix documentation link

2.5.1

  • Accommodate findAllInRenderedTree being passed text nodes in React 16

2.5.0

  • Update references to old JS interop helpers
  • Update contributing docs

2.4.1

  • Work around a bug in DDC where SvgElement className isn't String

2.3.0

  • Widen over_react range to allow 2.0.0

2.2.0

  • Update component boilerplate in preparation for over_react 2.0.0

2.1.0

  • Update component boilerplate in preparation for over_react 2.0.0

New Features

  • Dart 2 compatible!

Breaking Changes

  • The getComponentPropKeys() and testPropForwarding() functions have been removed, as they depended on dart:mirrors. Once there is a Dart-2-only release of over_react, this function will be re-added and will rely on information generated by the builder rather than using mirrors.

  • The commonComponentTests() function no longer calls testPropForwarding() since it has been removed. In other words, the shouldTestPropForwarding parameter is effectively a no-op until testPropForwarding() can be re-added.

1.1.1

Bugs Fixed

  • Sync common component test src with the lib it originated from.

1.1.0

New Features

  • #11: Add some test utilities that were left in over_react when the library was first created.

1.0.1

Misc

  • #8: Update prop error message to make it more DDC friendly

1.0.0

Initial public release of library.