Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace depricated apple-mobile-web-app-capable with `mobile-web-ap… #70363

Open
wants to merge 2 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -809,7 +809,7 @@ export const metadata = {
name="apple-itunes-app"
content="app-id=myAppStoreID, app-argument=myAppArgument"
/>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-title" content="Apple Web App" />
<link
href="/assets/startup/apple-touch-startup-image-768x1004.png"
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/lib/metadata/generate/basic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ export function AppleWebAppMeta({

return MetaFilter([
capable
? Meta({ name: 'apple-mobile-web-app-capable', content: 'yes' })
? Meta({ name: 'mobile-web-app-capable', content: 'yes' })
: null,
Meta({ name: 'apple-mobile-web-app-title', content: title }),
startupImage
Expand Down
2 changes: 1 addition & 1 deletion packages/next/src/lib/metadata/types/metadata-interface.ts
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ interface Metadata extends DeprecatedMetadataFields {
* @example
* ```tsx
* { capable: true, title: "My Website", statusBarStyle: "black-translucent" }
* <meta name="apple-mobile-web-app-capable" content="yes" />
* <meta name="mobile-web-app-capable" content="yes" />
* <meta name="apple-mobile-web-app-title" content="My Website" />
* <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
* ```
Expand Down
4 changes: 2 additions & 2 deletions packages/next/src/lib/metadata/types/metadata-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
export interface DeprecatedMetadataFields {
/**
* Deprecated options that have a preferred method
* @deprecated Use appWebApp to configure apple-mobile-web-app-capable which provides
* @see https://www.appsloveworld.com/coding/iphone/11/difference-between-apple-mobile-web-app-capable-and-apple-touch-fullscreen-ipho
* @deprecated Use appWebApp to configure mobile-web-app-capable which provides
* @see https://www.appsloveworld.com/coding/iphone/11/difference-between-mobile-web-app-capable-and-apple-touch-fullscreen-ipho
*/
'apple-touch-fullscreen'?: never

Expand Down
2 changes: 1 addition & 1 deletion test/e2e/app-dir/metadata/metadata.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ describe('app dir - metadata', () => {

await matchMultiDom('meta', 'name', 'content', {
'apple-itunes-app': 'app-id=myAppStoreID, app-argument=myAppArgument',
'apple-mobile-web-app-capable': 'yes',
'mobile-web-app-capable': 'yes',
'apple-mobile-web-app-title': 'Apple Web App',
'apple-mobile-web-app-status-bar-style': 'black-translucent',
})
Expand Down
Loading