Renamed schedule UMD forwarding methods to stay in-sync with SECRET_INTERNALS change (#13549)
Brian Vaughn committed
Sep 3, 2018 at 18:48 UTC
877f8bc6b27da7e99f603ddac822c5adae93a4a9
5 files changed
+26
-27
fixtures/tracking/script.js
+2
-3
@@ -76,8 +76,7 @@ function checkSchedulerTrackingAPI() {
76
}
77
78
const ForwardedSchedulerTracking =
79
- React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
80
- .SchedulerTracking;
79
+ React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking;
80
81
if (
82
ScheduleTracking.unstable_getThreadID() ===
@@ -137,7 +136,7 @@ function checkSchedulerTrackingSubscriptionsAPI() {
136
137
const ForwardedSchedulerTracking =
138
React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED
140
- .SchedulerTracking;
139
+ .ScheduleTracking;
140
141
try {
142
ForwardedSchedulerTracking.unstable_subscribe(subscriber);
packages/schedule/npm/umd/schedule-tracking.development.js
+9
-9
@@ -17,35 +17,35 @@
17
: (global.ScheduleTracking = factory(global));
18
})(this, function(global) {
19
function __getInteractionsRef() {
20
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.__getInteractionsRef.apply(
20
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getInteractionsRef.apply(
21
this,
22
arguments
23
);
24
}
25
26
function __getSubscriberRef() {
27
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.__getSubscriberRef.apply(
27
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getSubscriberRef.apply(
28
this,
29
arguments
30
);
31
}
32
33
function unstable_clear() {
34
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_clear.apply(
34
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_clear.apply(
35
this,
36
arguments
37
);
38
}
39
40
function unstable_getCurrent() {
41
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_getCurrent.apply(
41
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getCurrent.apply(
42
this,
43
arguments
44
);
45
}
46
47
function unstable_getThreadID() {
48
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_getThreadID.apply(
48
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getThreadID.apply(
49
this,
50
arguments
51
);
@@ -53,14 +53,14 @@
53
54
function unstable_subscribe() {
55
// eslint-disable-next-line max-len
56
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_subscribe.apply(
56
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_subscribe.apply(
57
this,
58
arguments
59
);
60
}
61
62
function unstable_track() {
63
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_track.apply(
63
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_track.apply(
64
this,
65
arguments
66
);
@@ -68,14 +68,14 @@
68
69
function unstable_unsubscribe() {
70
// eslint-disable-next-line max-len
71
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_unsubscribe.apply(
71
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_unsubscribe.apply(
72
this,
73
arguments
74
);
75
}
76
77
function unstable_wrap() {
78
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_wrap.apply(
78
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_wrap.apply(
79
this,
80
arguments
81
);
packages/schedule/npm/umd/schedule-tracking.production.min.js
+9
-9
@@ -17,35 +17,35 @@
17
: (global.ScheduleTracking = factory(global));
18
})(this, function(global) {
19
function __getInteractionsRef() {
20
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.__getInteractionsRef.apply(
20
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getInteractionsRef.apply(
21
this,
22
arguments
23
);
24
}
25
26
function __getSubscriberRef() {
27
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.__getSubscriberRef.apply(
27
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.__getSubscriberRef.apply(
28
this,
29
arguments
30
);
31
}
32
33
function unstable_clear() {
34
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_clear.apply(
34
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_clear.apply(
35
this,
36
arguments
37
);
38
}
39
40
function unstable_getCurrent() {
41
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_getCurrent.apply(
41
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getCurrent.apply(
42
this,
43
arguments
44
);
45
}
46
47
function unstable_getThreadID() {
48
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_getThreadID.apply(
48
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_getThreadID.apply(
49
this,
50
arguments
51
);
@@ -53,14 +53,14 @@
53
54
function unstable_subscribe() {
55
// eslint-disable-next-line max-len
56
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_subscribe.apply(
56
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_subscribe.apply(
57
this,
58
arguments
59
);
60
}
61
62
function unstable_track() {
63
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_track.apply(
63
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_track.apply(
64
this,
65
arguments
66
);
@@ -68,14 +68,14 @@
68
69
function unstable_unsubscribe() {
70
// eslint-disable-next-line max-len
71
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_unsubscribe.apply(
71
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_unsubscribe.apply(
72
this,
73
arguments
74
);
75
}
76
77
function unstable_wrap() {
78
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.SchedulerTracking.unstable_wrap.apply(
78
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ScheduleTracking.unstable_wrap.apply(
79
this,
80
arguments
81
);
packages/schedule/npm/umd/schedule.development.js
+3
-3
@@ -17,21 +17,21 @@
17
: (global.Schedule = factory(global));
18
})(this, function(global) {
19
function unstable_now() {
20
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
20
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_now.apply(
21
this,
22
arguments
23
);
24
}
25
26
function unstable_scheduleWork() {
27
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleWork.apply(
27
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_scheduleWork.apply(
28
this,
29
arguments
30
);
31
}
32
33
function unstable_cancelScheduledWork() {
34
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelScheduledWork.apply(
34
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_cancelScheduledWork.apply(
35
this,
36
arguments
37
);
packages/schedule/npm/umd/schedule.production.min.js
+3
-3
@@ -17,21 +17,21 @@
17
: (global.Schedule = factory(global));
18
})(this, function(global) {
19
function unstable_now() {
20
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_now.apply(
20
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_now.apply(
21
this,
22
arguments
23
);
24
}
25
26
function unstable_scheduleWork() {
27
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_scheduleWork.apply(
27
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_scheduleWork.apply(
28
this,
29
arguments
30
);
31
}
32
33
function unstable_cancelScheduledWork() {
34
- return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Scheduler.unstable_cancelScheduledWork.apply(
34
+ return global.React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.Schedule.unstable_cancelScheduledWork.apply(
35
this,
36
arguments
37
);