Skip to content

Commit

Permalink
Merge branch 'canary' into emmerich/fix-protocol-relative-image-optim…
Browse files Browse the repository at this point in the history
…ization
  • Loading branch information
emmerich authored May 15, 2024
2 parents f1a9672 + 6c3577d commit 7a3063b
Show file tree
Hide file tree
Showing 59 changed files with 680 additions and 308 deletions.
3 changes: 3 additions & 0 deletions .git-blame-ignore-revs
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,6 @@

# chore: update prettier to 3.2.5 (#65092)
64b718c6618b6c419872abbf22163ae543ac259e

# Replace createNextDescribe with nextTestSetup
c6320ed87ab41eee6f3ac54352ad02a239f329b2
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,5 +77,9 @@
"scheme": "file"
}
],
"typescript.tsdk": "node_modules/typescript/lib"
"typescript.tsdk": "node_modules/typescript/lib",
"gitlens.advanced.blame.customArguments": [
"--ignore-revs-file",
"${workspaceRoot}/.git-blame-ignore-revs"
]
}
4 changes: 4 additions & 0 deletions docs/02-app/02-api-reference/01-components/link.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,8 @@ function Home() {
export default Home
```

<PagesOnly>

### With URL Object

`Link` can also receive a URL object and it will automatically format it to create the URL string. Here's how to do it:
Expand Down Expand Up @@ -437,6 +439,8 @@ The above example has a link to:

You can use every property as defined in the [Node.js URL module documentation](https://nodejs.org/api/url.html#url_url_strings_and_url_objects).

</PagesOnly>

### Replace the URL instead of push

The default behavior of the `Link` component is to `push` a new URL into the `history` stack. You can use the `replace` prop to prevent adding a new entry, as in the following example:
Expand Down
4 changes: 2 additions & 2 deletions docs/02-app/02-api-reference/07-edge.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ The Next.js Edge Runtime is used for Middleware and supports the following APIs:

| API | Description |
| ----------------------------------------------------------------------------------- | ---------------------------------- |
| [`atob`](https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/atob) | Decodes a base-64 encoded string |
| [`btoa`](https://developer.mozilla.org/docs/Web/API/WindowOrWorkerGlobalScope/btoa) | Encodes a string in base-64 |
| [`atob`](https://developer.mozilla.org/en-US/docs/Web/API/atob) | Decodes a base-64 encoded string |
| [`btoa`](https://developer.mozilla.org/en-US/docs/Web/API/btoa) | Encodes a string in base-64 |
| [`TextDecoder`](https://developer.mozilla.org/docs/Web/API/TextDecoder) | Decodes a Uint8Array into a string |
| [`TextDecoderStream`](https://developer.mozilla.org/docs/Web/API/TextDecoderStream) | Chainable decoder for streams |
| [`TextEncoder`](https://developer.mozilla.org/docs/Web/API/TextEncoder) | Encodes a string into a Uint8Array |
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@
"registry": "https://registry.npmjs.org/"
}
},
"version": "14.3.0-canary.61"
"version": "14.3.0-canary.63"
}
2 changes: 1 addition & 1 deletion packages/create-next-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-next-app",
"version": "14.3.0-canary.61",
"version": "14.3.0-canary.63",
"keywords": [
"react",
"next",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eslint-config-next",
"version": "14.3.0-canary.61",
"version": "14.3.0-canary.63",
"description": "ESLint configuration used by Next.js.",
"main": "index.js",
"license": "MIT",
Expand All @@ -10,7 +10,7 @@
},
"homepage": "https://nextjs.org/docs/app/building-your-application/configuring/eslint#eslint-config",
"dependencies": {
"@next/eslint-plugin-next": "14.3.0-canary.61",
"@next/eslint-plugin-next": "14.3.0-canary.63",
"@rushstack/eslint-patch": "^1.3.3",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.0 || 7.0.0 - 7.2.0",
"eslint-import-resolver-node": "^0.3.6",
Expand Down
2 changes: 1 addition & 1 deletion packages/eslint-plugin-next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/eslint-plugin-next",
"version": "14.3.0-canary.61",
"version": "14.3.0-canary.63",
"description": "ESLint plugin for Next.js.",
"main": "dist/index.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/font/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/font",
"version": "14.3.0-canary.61",
"version": "14.3.0-canary.63",
"repository": {
"url": "vercel/next.js",
"directory": "packages/font"
Expand Down
106 changes: 98 additions & 8 deletions packages/font/src/google/font-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -2947,6 +2947,19 @@
],
"subsets": ["latin", "latin-ext", "vietnamese"]
},
"Danfo": {
"weights": ["400", "variable"],
"styles": ["normal"],
"axes": [
{
"tag": "ELSH",
"min": 0,
"max": 100,
"defaultValue": 0
}
],
"subsets": ["latin", "latin-ext", "vietnamese"]
},
"Dangrek": {
"weights": ["400"],
"styles": ["normal"],
Expand Down Expand Up @@ -5186,6 +5199,11 @@
"styles": ["normal"],
"subsets": ["latin", "latin-ext", "thai", "vietnamese"]
},
"Jacquard 12": {
"weights": ["400"],
"styles": ["normal"],
"subsets": ["latin", "latin-ext", "math", "symbols"]
},
"Jacquard 12 Charted": {
"weights": ["400"],
"styles": ["normal"],
Expand Down Expand Up @@ -9749,14 +9767,50 @@
"subsets": ["hebrew", "latin", "latin-ext"]
},
"Noto Serif JP": {
"weights": ["200", "300", "400", "500", "600", "700", "900"],
"weights": [
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"subsets": ["latin"]
"axes": [
{
"tag": "wght",
"min": 200,
"max": 900,
"defaultValue": 400
}
],
"subsets": ["cyrillic", "latin", "latin-ext", "vietnamese"]
},
"Noto Serif KR": {
"weights": ["200", "300", "400", "500", "600", "700", "900"],
"weights": [
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"subsets": ["latin"]
"axes": [
{
"tag": "wght",
"min": 200,
"max": 900,
"defaultValue": 400
}
],
"subsets": ["cyrillic", "latin", "latin-ext", "vietnamese"]
},
"Noto Serif Kannada": {
"weights": [
Expand Down Expand Up @@ -9931,9 +9985,27 @@
"subsets": ["latin", "latin-ext", "ottoman-siyaq-numbers"]
},
"Noto Serif SC": {
"weights": ["200", "300", "400", "500", "600", "700", "900"],
"weights": [
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"subsets": ["latin"]
"axes": [
{
"tag": "wght",
"min": 200,
"max": 900,
"defaultValue": 400
}
],
"subsets": ["cyrillic", "latin", "latin-ext", "vietnamese"]
},
"Noto Serif Sinhala": {
"weights": [
Expand Down Expand Up @@ -9966,9 +10038,27 @@
"subsets": ["latin", "latin-ext", "sinhala"]
},
"Noto Serif TC": {
"weights": ["200", "300", "400", "500", "600", "700", "900"],
"weights": [
"200",
"300",
"400",
"500",
"600",
"700",
"800",
"900",
"variable"
],
"styles": ["normal"],
"subsets": ["latin"]
"axes": [
{
"tag": "wght",
"min": 200,
"max": 900,
"defaultValue": 400
}
],
"subsets": ["cyrillic", "latin", "latin-ext", "vietnamese"]
},
"Noto Serif Tamil": {
"weights": [
Expand Down
65 changes: 49 additions & 16 deletions packages/font/src/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5157,6 +5157,19 @@ export declare function Dancing_Script<
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Danfo<
T extends CssVariable | undefined = undefined,
>(options?: {
weight?: '400' | 'variable' | Array<'400'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'vietnamese'>
axes?: 'ELSH'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Dangrek<
T extends CssVariable | undefined = undefined,
>(options: {
Expand Down Expand Up @@ -9219,6 +9232,18 @@ export declare function Itim<
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'thai' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Jacquard_12<
T extends CssVariable | undefined = undefined,
>(options: {
weight: '400' | Array<'400'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'math' | 'symbols'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Jacquard_12_Charted<
T extends CssVariable | undefined = undefined,
>(options: {
Expand Down Expand Up @@ -16704,43 +16729,47 @@ export declare function Noto_Serif_Hebrew<
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_JP<
T extends CssVariable | undefined = undefined,
>(options: {
weight:
>(options?: {
weight?:
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '900'>
| 'variable'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin'>
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_KR<
T extends CssVariable | undefined = undefined,
>(options: {
weight:
>(options?: {
weight?:
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '900'>
| 'variable'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin'>
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_Kannada<
T extends CssVariable | undefined = undefined,
Expand Down Expand Up @@ -16972,23 +17001,25 @@ export declare function Noto_Serif_Ottoman_Siyaq<
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_SC<
T extends CssVariable | undefined = undefined,
>(options: {
weight:
>(options?: {
weight?:
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '900'>
| 'variable'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin'>
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_Sinhala<
T extends CssVariable | undefined = undefined,
Expand Down Expand Up @@ -17018,23 +17049,25 @@ export declare function Noto_Serif_Sinhala<
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_TC<
T extends CssVariable | undefined = undefined,
>(options: {
weight:
>(options?: {
weight?:
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| '800'
| '900'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '900'>
| 'variable'
| Array<'200' | '300' | '400' | '500' | '600' | '700' | '800' | '900'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin'>
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext' | 'vietnamese'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Noto_Serif_Tamil<
T extends CssVariable | undefined = undefined,
Expand Down
Loading

0 comments on commit 7a3063b

Please sign in to comment.