Skip to content

Commit 1cebe7f

Browse files
Merge pull request #289 from cleandart/update-dependency-comments
Bump all deprecations to 7.0.0
2 parents f706a31 + bdfd6d1 commit 1cebe7f

7 files changed

+116
-116
lines changed

lib/react.dart

Lines changed: 85 additions & 85 deletions
Large diffs are not rendered by default.

lib/react_client.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,6 @@ export 'package:react/src/typedefs.dart' show JsFunctionComponent;
4444
/// > __DEPRECATED.__
4545
/// >
4646
/// > Environment configuration is now done by default and should not be altered. This can now be removed.
47-
/// > This will be removed in 6.0.0, along with other configuration setting functions.
48-
@Deprecated('It is not longer required and can be removed. Will be removed from this library in the 6.0.0 release.')
47+
/// > This will be removed in 7.0.0, along with other configuration setting functions.
48+
@Deprecated('It is not longer required and can be removed. Will be removed from this library in the 7.0.0 release.')
4949
void setClientConfiguration() {}

lib/react_client/component_factory.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ mixin JsBackedMapComponentFactoryMixin on ReactComponentFactoryProxy {
8888

8989
/// Use [ReactDartComponentFactoryProxy2] instead by calling [registerComponent2].
9090
///
91-
/// Will be removed when [Component] is removed in the `6.0.0` release.
92-
@Deprecated('6.0.0')
91+
/// Will be removed when [Component] is removed in the `7.0.0` release.
92+
@Deprecated('7.0.0')
9393
class ReactDartComponentFactoryProxy<TComponent extends Component> extends ReactComponentFactoryProxy {
9494
/// The ReactJS class used as the type for all [ReactElement]s built by
9595
/// this factory.

lib/react_client/react_interop.dart

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ abstract class React {
4141
dynamic defaultValue,
4242
int Function(dynamic currentValue, dynamic nextValue) calculateChangedBits,
4343
]);
44-
@Deprecated('6.0.0')
44+
@Deprecated('7.0.0')
4545
external static ReactClass createClass(ReactClassConfig reactClassConfig);
46-
@Deprecated('6.0.0')
46+
@Deprecated('7.0.0')
4747
external static ReactJsComponentFactory createFactory(type);
4848
external static ReactElement createElement(dynamic type, props, [dynamic children]);
4949
external static JsRef createRef();
@@ -397,9 +397,9 @@ class ReactClass {
397397
///
398398
/// For use in [ReactDartComponentFactoryProxy] when creating new [ReactElement]s,
399399
/// or for external use involving inspection of Dart prop defaults.
400-
@Deprecated('6.0.0')
400+
@Deprecated('7.0.0`')
401401
external Map get dartDefaultProps;
402-
@Deprecated('6.0.0')
402+
@Deprecated('7.0.0`')
403403
external set dartDefaultProps(Map value);
404404

405405
/// A string to distinguish between different Dart component implementations / base classes.
@@ -451,8 +451,8 @@ abstract class ReactDartComponentVersion {
451451
///
452452
/// > __DEPRECATED.__
453453
/// >
454-
/// > Will be removed alongside [React.createClass] in the `6.0.0` release.
455-
@Deprecated('6.0.0')
454+
/// > Will be removed alongside [React.createClass] in the `7.0.0` release.
455+
@Deprecated('7.0.0')
456456
@JS()
457457
@anonymous
458458
class ReactClassConfig {
@@ -559,7 +559,7 @@ class ReactPortal {
559559
@JS()
560560
@anonymous
561561
class ReactComponent {
562-
// TODO: Cast as Component2 in 6.0.0
562+
// TODO: Cast as Component2 in 7.0.0
563563
external Component get dartComponent;
564564
// TODO how to make this JsMap without breaking stuff?
565565
external InteropProps get props;
@@ -587,8 +587,8 @@ class ReactComponent {
587587
/// > This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API
588588
/// > in ReactJS 16 that is exposed via the [Component2] class.
589589
/// >
590-
/// > This will be completely removed when the JS side of it is slated for removal (ReactJS 17 / react.dart 6.0.0)
591-
@Deprecated('6.0.0')
590+
/// > This will be completely removed when the JS side of it is slated for removal (ReactJS 18 / react.dart 7.0.0)
591+
@Deprecated('7.0.0')
592592
@JS()
593593
@anonymous
594594
class InteropContextValue {
@@ -623,8 +623,8 @@ class InteropProps implements JsMap {
623623
/// replacement - `Component2` utilizes JS Maps for props,
624624
/// making `internal` obsolete.
625625
///
626-
/// Will be removed alongside `Component` in the `6.0.0` release.
627-
@Deprecated('6.0.0')
626+
/// Will be removed alongside `Component` in the `7.0.0` release.
627+
@Deprecated('7.0.0')
628628
external ReactDartComponentInternal get internal;
629629
external dynamic get key;
630630
external dynamic get ref;
@@ -638,8 +638,8 @@ class InteropProps implements JsMap {
638638
/// replacement - `Component2` utilizes JS Maps for props,
639639
/// making `InteropProps` obsolete.
640640
///
641-
/// Will be removed alongside `Component` in the `6.0.0` release.
642-
@Deprecated('6.0.0')
641+
/// Will be removed alongside `Component` in the `7.0.0` release.
642+
@Deprecated('7.0.0')
643643
external factory InteropProps({
644644
ReactDartComponentInternal internal,
645645
String key,
@@ -653,13 +653,13 @@ class InteropProps implements JsMap {
653653
/// replacement - `Component2` utilizes JS Maps for props,
654654
/// making `InteropProps` obsolete.
655655
///
656-
/// Will be removed alongside `Component` in the `6.0.0` release.
656+
/// Will be removed alongside `Component` in the `7.0.0` release.
657657
///
658658
/// > Internal react-dart information used to proxy React JS lifecycle to Dart
659659
/// > [Component] instances.
660660
/// >
661661
/// > __For internal/advanced use only.__
662-
@Deprecated('6.0.0')
662+
@Deprecated('7.0.0')
663663
class ReactDartComponentInternal {
664664
/// For a `ReactElement`, this is the initial props with defaults merged.
665665
///
@@ -678,8 +678,8 @@ class ReactDartComponentInternal {
678678
/// > This API was never stable in any version of ReactJS, and was replaced with a new, incompatible context API
679679
/// > in ReactJS 16 that is exposed via the [Component2] class.
680680
/// >
681-
/// > This will be completely removed when the JS side of it is slated for removal (ReactJS 17 / react.dart 6.0.0)
682-
@Deprecated('6.0.0')
681+
/// > This will be completely removed when the JS side of it is slated for removal (ReactJS 18 / react.dart 7.0.0)
682+
@Deprecated('7.0.0')
683683
class ReactDartContextInternal {
684684
final dynamic value;
685685

@@ -733,9 +733,9 @@ void markChildrenValidated(List<dynamic> children) {
733733
///
734734
/// > __DEPRECATED.__
735735
/// >
736-
/// > Will be removed in `6.0.0` alongside [Component].
736+
/// > Will be removed in `7.0.0` alongside [Component].
737737
@JS('_createReactDartComponentClass')
738-
@Deprecated('6.0.0')
738+
@Deprecated('7.0.0')
739739
external ReactClass createReactDartComponentClass(
740740
ReactDartInteropStatics dartInteropStatics, ComponentStatics componentStatics,
741741
[JsComponentConfig jsConfig]);
@@ -768,10 +768,10 @@ bool get inReactDevMode => _inReactDevMode;
768768
///
769769
/// __Deprecated.__
770770
///
771-
/// Will be removed when [Component] is removed in the `6.0.0` release.
771+
/// Will be removed when [Component] is removed in the `7.0.0` release.
772772
@JS()
773773
@anonymous
774-
@Deprecated('6.0.0')
774+
@Deprecated('7.0.0')
775775
class ReactDartInteropStatics {
776776
external factory ReactDartInteropStatics({
777777
Component Function(
@@ -837,8 +837,8 @@ class ComponentStatics2 {
837837
/// > via the [Component2] class and is supported by [JsComponentConfig2].
838838
/// >
839839
/// > This will be completely removed when the JS side of `context` it is slated for
840-
/// > removal (ReactJS 17 / react.dart 6.0.0)
841-
@Deprecated('6.0.0')
840+
/// > removal (ReactJS 18 / react.dart 7.0.0)
841+
@Deprecated('7.0.0')
842842
@JS()
843843
@anonymous
844844
class JsComponentConfig {

lib/src/react_client/component_registration.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ List<String> _filterSkipMethods(Iterable<String> methods) {
4747

4848
/// Creates and returns a new [ReactDartComponentFactoryProxy] from the provided [componentFactory]
4949
/// which produces a new JS [`ReactClass` component class](https://facebook.github.io/react/docs/top-level-api.html#react.createclass).
50-
@Deprecated('6.0.0')
50+
@Deprecated('7.0.0')
5151
ReactDartComponentFactoryProxy registerComponent(
5252
ComponentFactory componentFactory, [
5353
Iterable<String> skipMethods = const ['getDerivedStateFromError', 'componentDidCatch'],

lib/src/react_client/dart_interop_statics.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import 'package:react/src/react_client/private_utils.dart';
1717
import 'package:react/src/typedefs.dart';
1818

1919
/// The static methods that proxy JS component lifecycle methods to Dart components.
20-
@Deprecated('6.0.0')
20+
@Deprecated('7.0.0')
2121
final ReactDartInteropStatics dartInteropStatics = (() {
2222
var zone = Zone.current;
2323

lib/src/react_client/private_utils.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import 'package:react/src/js_interop_util.dart';
1212
/// This is used when setting environment variables to ensure they can be set properly.
1313
bool _isJsApiValid = false;
1414

15-
@Deprecated('6.0.0')
15+
@Deprecated('7.0.0')
1616
InteropContextValue jsifyContext(Map<String, dynamic> context) {
1717
var interopContext = new InteropContextValue();
1818
context.forEach((key, value) {
@@ -29,7 +29,7 @@ T validateJsApiThenReturn<T>(T Function() computeReturn) {
2929
return computeReturn();
3030
}
3131

32-
@Deprecated('6.0.0')
32+
@Deprecated('7.0.0')
3333
Map<String, dynamic> unjsifyContext(InteropContextValue interopContext) {
3434
// TODO consider using `contextKeys` for this if perf of objectKeys is bad.
3535
return new Map.fromIterable(objectKeys(interopContext), value: (key) {

0 commit comments

Comments
 (0)