Skip to content

Commit

Permalink
Merge branch 'canary' into server-actions-regex-allowed-domains
Browse files Browse the repository at this point in the history
  • Loading branch information
gnoff authored Dec 11, 2023
2 parents eb3ff9d + 7dd7f51 commit 3b2bc3c
Show file tree
Hide file tree
Showing 61 changed files with 760 additions and 606 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build_reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ jobs:
with:
name: test-reports
path: |
test/traces
test/test-junit-report
test/turbopack-test-junit-report
if-no-files-found: ignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ Route Handlers allow you to create custom request handlers for a given route usi
Route Handlers are defined in a [`route.js|ts` file](/docs/app/api-reference/file-conventions/route) inside the `app` directory:

```ts filename="app/api/route.ts" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto
export async function GET(request: Request) {}
```

```js filename="app/api/route.js" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto
export async function GET(request) {}
```

Expand Down Expand Up @@ -575,7 +575,7 @@ Since `formData` data are all strings, you may want to use [`zod-form-data`](htt
You can set CORS headers on a `Response` using the standard Web API methods:

```ts filename="app/api/route.ts" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto

export async function GET(request: Request) {
return new Response('Hello, Next.js!', {
Expand All @@ -590,7 +590,7 @@ export async function GET(request: Request) {
```

```js filename="app/api/route.js" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto

export async function GET(request) {
return new Response('Hello, Next.js!', {
Expand Down Expand Up @@ -619,7 +619,7 @@ export const runtime = 'edge' // 'nodejs' is the default
You can use Route Handlers to return non-UI content. Note that [`sitemap.xml`](/docs/app/api-reference/file-conventions/metadata/sitemap#generate-a-sitemap), [`robots.txt`](/docs/app/api-reference/file-conventions/metadata/robots#generate-a-robots-file), [`app icons`](/docs/app/api-reference/file-conventions/metadata/app-icons#generate-icons-using-code-js-ts-tsx), and [open graph images](/docs/app/api-reference/file-conventions/metadata/opengraph-image) all have built-in support.

```ts filename="app/rss.xml/route.ts" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto

export async function GET() {
return new Response(`<?xml version="1.0" encoding="UTF-8" ?>
Expand All @@ -636,7 +636,7 @@ export async function GET() {
```

```js filename="app/rss.xml/route.js" switcher
export const dynamic = 'force-dynamic' // defaults to force-static
export const dynamic = 'force-dynamic' // defaults to auto

export async function GET() {
return new Response(`<?xml version="1.0" encoding="UTF-8" ?>
Expand Down
2 changes: 0 additions & 2 deletions docs/02-app/02-api-reference/05-next-config-js/webpack.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ Before continuing to add custom webpack configuration to your application make s
- [CSS modules](/docs/app/building-your-application/styling/css-modules)
- [Sass/SCSS imports](/docs/app/building-your-application/styling/sass)
- [Sass/SCSS modules](/docs/app/building-your-application/styling/sass)
- [preact](https://github.com/vercel/next.js/tree/canary/examples/using-preact)

</AppOnly>

Expand All @@ -26,7 +25,6 @@ Before continuing to add custom webpack configuration to your application make s
- [CSS modules](/docs/pages/building-your-application/styling/css-modules)
- [Sass/SCSS imports](/docs/pages/building-your-application/styling/sass)
- [Sass/SCSS modules](/docs/pages/building-your-application/styling/sass)
- [preact](https://github.com/vercel/next.js/tree/canary/examples/using-preact)
- [Customizing babel configuration](/docs/pages/building-your-application/configuring/babel)

</PagesOnly>
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.0.5-canary.4"
"version": "14.0.5-canary.6"
}
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.0.5-canary.4",
"version": "14.0.5-canary.6",
"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.0.5-canary.4",
"version": "14.0.5-canary.6",
"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.0.5-canary.4",
"@next/eslint-plugin-next": "14.0.5-canary.6",
"@rushstack/eslint-patch": "^1.3.3",
"@typescript-eslint/parser": "^5.4.2 || ^6.0.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.0.5-canary.4",
"version": "14.0.5-canary.6",
"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.0.5-canary.4",
"version": "14.0.5-canary.6",
"repository": {
"url": "vercel/next.js",
"directory": "packages/font"
Expand Down
52 changes: 52 additions & 0 deletions packages/font/src/google/font-data.json
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,26 @@
],
"subsets": ["cyrillic", "cyrillic-ext", "greek", "latin", "latin-ext"]
},
"Afacad": {
"weights": ["400", "500", "600", "700", "variable"],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wght",
"min": 400,
"max": 700,
"defaultValue": 400
}
],
"subsets": [
"cyrillic-ext",
"latin",
"latin-ext",
"math",
"symbols",
"vietnamese"
]
},
"Agbalumo": {
"weights": ["400"],
"styles": ["normal"],
Expand Down Expand Up @@ -5328,6 +5348,25 @@
"styles": ["normal"],
"subsets": ["devanagari", "latin", "latin-ext"]
},
"Kalnia": {
"weights": ["100", "200", "300", "400", "500", "600", "700", "variable"],
"styles": ["normal"],
"axes": [
{
"tag": "wdth",
"min": 100,
"max": 125,
"defaultValue": 100
},
{
"tag": "wght",
"min": 100,
"max": 700,
"defaultValue": 400
}
],
"subsets": ["latin", "latin-ext", "math"]
},
"Kameron": {
"weights": ["400", "500", "600", "700", "variable"],
"styles": ["normal"],
Expand Down Expand Up @@ -11225,6 +11264,19 @@
"styles": ["normal"],
"subsets": ["cyrillic", "latin", "latin-ext"]
},
"Rethink Sans": {
"weights": ["400", "500", "600", "700", "800", "variable"],
"styles": ["normal", "italic"],
"axes": [
{
"tag": "wght",
"min": 400,
"max": 800,
"defaultValue": 400
}
],
"subsets": ["latin", "latin-ext"]
},
"Revalia": {
"weights": ["400"],
"styles": ["normal"],
Expand Down
61 changes: 61 additions & 0 deletions packages/font/src/google/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,26 @@ export declare function Advent_Pro<
subsets?: Array<'cyrillic' | 'cyrillic-ext' | 'greek' | 'latin' | 'latin-ext'>
axes?: 'wdth'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Afacad<
T extends CssVariable | undefined = undefined
>(options?: {
weight?:
| '400'
| '500'
| '600'
| '700'
| 'variable'
| Array<'400' | '500' | '600' | '700'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<
'cyrillic-ext' | 'latin' | 'latin-ext' | 'math' | 'symbols' | 'vietnamese'
>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Agbalumo<
T extends CssVariable | undefined = undefined
>(options: {
Expand Down Expand Up @@ -9539,6 +9559,28 @@ export declare function Kalam<
adjustFontFallback?: boolean
subsets?: Array<'devanagari' | 'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Kalnia<
T extends CssVariable | undefined = undefined
>(options?: {
weight?:
| '100'
| '200'
| '300'
| '400'
| '500'
| '600'
| '700'
| 'variable'
| Array<'100' | '200' | '300' | '400' | '500' | '600' | '700'>
style?: 'normal' | Array<'normal'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext' | 'math'>
axes?: 'wdth'[]
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Kameron<
T extends CssVariable | undefined = undefined
>(options?: {
Expand Down Expand Up @@ -19158,6 +19200,25 @@ export declare function Reggae_One<
adjustFontFallback?: boolean
subsets?: Array<'cyrillic' | 'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Rethink_Sans<
T extends CssVariable | undefined = undefined
>(options?: {
weight?:
| '400'
| '500'
| '600'
| '700'
| '800'
| 'variable'
| Array<'400' | '500' | '600' | '700' | '800'>
style?: 'normal' | 'italic' | Array<'normal' | 'italic'>
display?: Display
variable?: T
preload?: boolean
fallback?: string[]
adjustFontFallback?: boolean
subsets?: Array<'latin' | 'latin-ext'>
}): T extends undefined ? NextFont : NextFontWithVariable
export declare function Revalia<
T extends CssVariable | undefined = undefined
>(options: {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-bundle-analyzer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/bundle-analyzer",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-codemod/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/codemod",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"license": "MIT",
"repository": {
"type": "git",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-env/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/env",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"keywords": [
"react",
"next",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-mdx/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/mdx",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"main": "index.js",
"license": "MIT",
"repository": {
Expand Down
2 changes: 1 addition & 1 deletion packages/next-plugin-storybook/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/plugin-storybook",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"repository": {
"url": "vercel/next.js",
"directory": "packages/next-plugin-storybook"
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-module/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-module",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"description": "A standard library polyfill for ES Modules supporting browsers (Edge 16+, Firefox 60+, Chrome 61+, Safari 10.1+)",
"main": "dist/polyfill-module.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-polyfill-nomodule/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/polyfill-nomodule",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"description": "A polyfill for non-dead, nomodule browsers.",
"main": "dist/polyfill-nomodule.js",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/next-swc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@next/swc",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"private": true,
"scripts": {
"clean": "node ../../scripts/rm.mjs native",
Expand Down
14 changes: 7 additions & 7 deletions packages/next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next",
"version": "14.0.5-canary.4",
"version": "14.0.5-canary.6",
"description": "The React Framework",
"main": "./dist/server/next.js",
"license": "MIT",
Expand Down Expand Up @@ -92,7 +92,7 @@
]
},
"dependencies": {
"@next/env": "14.0.5-canary.4",
"@next/env": "14.0.5-canary.6",
"@swc/helpers": "0.5.2",
"busboy": "1.6.0",
"caniuse-lite": "^1.0.30001406",
Expand Down Expand Up @@ -147,11 +147,11 @@
"@mswjs/interceptors": "0.23.0",
"@napi-rs/cli": "2.16.2",
"@napi-rs/triples": "1.1.0",
"@next/polyfill-module": "14.0.5-canary.4",
"@next/polyfill-nomodule": "14.0.5-canary.4",
"@next/react-dev-overlay": "14.0.5-canary.4",
"@next/react-refresh-utils": "14.0.5-canary.4",
"@next/swc": "14.0.5-canary.4",
"@next/polyfill-module": "14.0.5-canary.6",
"@next/polyfill-nomodule": "14.0.5-canary.6",
"@next/react-dev-overlay": "14.0.5-canary.6",
"@next/react-refresh-utils": "14.0.5-canary.6",
"@next/swc": "14.0.5-canary.6",
"@opentelemetry/api": "1.6.0",
"@playwright/test": "^1.35.1",
"@taskr/clear": "1.1.0",
Expand Down
Loading

0 comments on commit 3b2bc3c

Please sign in to comment.