File tree 3 files changed +0
-28
lines changed
packages/next/src/shared/lib
test/integration/next-image-new
3 files changed +0
-28
lines changed Original file line number Diff line number Diff line change @@ -38,10 +38,6 @@ export type ImageProps = Omit<
38
38
placeholder ?: PlaceholderValue
39
39
blurDataURL ?: string
40
40
unoptimized ?: boolean
41
- /**
42
- * @deprecated Use `onLoad` instead.
43
- * @see https://nextjs.org/docs/app/api-reference/components/image#onload
44
- */
45
41
onLoadingComplete ?: OnLoadingComplete
46
42
/**
47
43
* @deprecated Use `fill` prop instead of `layout="fill"` or change import to `next/legacy/image`.
@@ -527,12 +523,6 @@ export function getImgProps(
527
523
}
528
524
}
529
525
530
- if ( onLoadingComplete ) {
531
- warnOnce (
532
- `Image with src "${ src } " is using deprecated "onLoadingComplete" property. Please use the "onLoad" property instead.`
533
- )
534
- }
535
-
536
526
for ( const [ legacyKey , legacyValue ] of Object . entries ( {
537
527
layout,
538
528
objectFit,
Original file line number Diff line number Diff line change @@ -357,15 +357,6 @@ function runTests(mode) {
357
357
( ) => browser . eval ( `document.getElementById("msg9").textContent` ) ,
358
358
'loaded 1 img9 with dimensions 400x400'
359
359
)
360
-
361
- if ( mode === 'dev' ) {
362
- const warnings = ( await browser . log ( 'browser' ) )
363
- . map ( ( log ) => log . message )
364
- . join ( '\n' )
365
- expect ( warnings ) . toMatch (
366
- / I m a g e w i t h s r c " ( .* ) " i s u s i n g d e p r e c a t e d " o n L o a d i n g C o m p l e t e " p r o p e r t y / gm
367
- )
368
- }
369
360
} )
370
361
371
362
it ( 'should callback native onLoad with sythetic event' , async ( ) => {
Original file line number Diff line number Diff line change @@ -358,15 +358,6 @@ function runTests(mode) {
358
358
( ) => browser . eval ( `document.getElementById("msg9").textContent` ) ,
359
359
'loaded 1 img9 with dimensions 400x400'
360
360
)
361
-
362
- if ( mode === 'dev' ) {
363
- const warnings = ( await browser . log ( 'browser' ) )
364
- . map ( ( log ) => log . message )
365
- . join ( '\n' )
366
- expect ( warnings ) . toMatch (
367
- / I m a g e w i t h s r c " ( .* ) " i s u s i n g d e p r e c a t e d " o n L o a d i n g C o m p l e t e " p r o p e r t y / gm
368
- )
369
- }
370
361
} )
371
362
372
363
it ( 'should callback native onLoad with sythetic event' , async ( ) => {
You can’t perform that action at this time.
0 commit comments