File tree 6 files changed +2
-62
lines changed
6 files changed +2
-62
lines changed Original file line number Diff line number Diff line change 1
1
- https://github.com/preactjs/preact/pull/4362
2
2
- https://github.com/preactjs/preact/pull/4358
3
3
- https://github.com/preactjs/preact/pull/4361
4
- - https://github.com/preactjs/preact/pull/4460
5
- - https://github.com/preactjs/preact/pull/4453
6
4
- Backing VNodes
5
+ - Enable removing classes from the bundle
7
6
- Remove deprecated lifecycle methods
8
7
- Try to get rid of DOM pointers
9
8
- Separate mount/update paths
Original file line number Diff line number Diff line change @@ -774,11 +774,6 @@ declare namespace React {
774
774
export function flushSync < R > ( fn : ( ) => R ) : R ;
775
775
export function flushSync < A , R > ( fn : ( a : A ) => R , a : A ) : R ;
776
776
777
- export function unstable_batchedUpdates (
778
- callback : ( arg ?: any ) => void ,
779
- arg ?: any
780
- ) : void ;
781
-
782
777
export type PropsWithChildren < P = unknown > = P & {
783
778
children ?: preact . ComponentChildren | undefined ;
784
779
} ;
Original file line number Diff line number Diff line change @@ -116,16 +116,6 @@ function findDOMNode(component) {
116
116
) ;
117
117
}
118
118
119
- /**
120
- * Deprecated way to control batched rendering inside the reconciler, but we
121
- * already schedule in batches inside our rendering code
122
- * @template Arg
123
- * @param {(arg: Arg) => void } callback function that triggers the updated
124
- * @param {Arg } [arg] Optional argument that can be passed to the callback
125
- */
126
- // eslint-disable-next-line camelcase
127
- const unstable_batchedUpdates = ( callback , arg ) => callback ( arg ) ;
128
-
129
119
/**
130
120
* In React, `flushSync` flushes the entire tree and forces a rerender. It's
131
121
* implmented here as a no-op.
@@ -237,8 +227,6 @@ export {
237
227
memo ,
238
228
forwardRef ,
239
229
flushSync ,
240
- // eslint-disable-next-line camelcase
241
- unstable_batchedUpdates ,
242
230
StrictMode ,
243
231
Suspense ,
244
232
lazy ,
@@ -285,7 +273,6 @@ export default {
285
273
memo,
286
274
forwardRef,
287
275
flushSync,
288
- unstable_batchedUpdates,
289
276
StrictMode,
290
277
Suspense,
291
278
lazy,
Original file line number Diff line number Diff line change @@ -36,13 +36,7 @@ const CAMEL_REPLACE = /[A-Z0-9]/g;
36
36
const IS_DOM = typeof document !== 'undefined' ;
37
37
38
38
// Input types for which onchange should not be converted to oninput.
39
- // type="file|checkbox|radio", plus "range" in IE11.
40
- // (IE11 doesn't support Symbol, which we use here to turn `rad` into `ra` which matches "range")
41
- const onChangeInputType = type =>
42
- ( typeof Symbol != 'undefined' && typeof Symbol ( ) == 'symbol'
43
- ? / f i l | c h e | r a d /
44
- : / f i l | c h e | r a /
45
- ) . test ( type ) ;
39
+ const onChangeInputType = type => / f i l | c h e | r a d / . test ( type ) ;
46
40
47
41
// Some libraries like `react-virtualized` explicitly check for this.
48
42
Component . prototype . isReactComponent = { } ;
Original file line number Diff line number Diff line change @@ -58,7 +58,6 @@ describe('compat exports', () => {
58
58
expect ( Compat . Children . toArray ) . to . exist . and . be . a ( 'function' ) ;
59
59
expect ( Compat . Children . only ) . to . exist . and . be . a ( 'function' ) ;
60
60
expect ( Compat . unmountComponentAtNode ) . to . exist . and . be . a ( 'function' ) ;
61
- expect ( Compat . unstable_batchedUpdates ) . to . exist . and . be . a ( 'function' ) ;
62
61
expect ( Compat . version ) . to . exist . and . be . a ( 'string' ) ;
63
62
expect ( Compat . startTransition ) . to . be . a ( 'function' ) ;
64
63
} ) ;
@@ -99,7 +98,6 @@ describe('compat exports', () => {
99
98
expect ( Named . Children . toArray ) . to . exist . and . be . a ( 'function' ) ;
100
99
expect ( Named . Children . only ) . to . exist . and . be . a ( 'function' ) ;
101
100
expect ( Named . unmountComponentAtNode ) . to . exist . and . be . a ( 'function' ) ;
102
- expect ( Named . unstable_batchedUpdates ) . to . exist . and . be . a ( 'function' ) ;
103
101
expect ( Named . version ) . to . exist . and . be . a ( 'string' ) ;
104
102
} ) ;
105
103
} ) ;
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments