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

[pull] canary from vercel:canary #568

Open
wants to merge 5,721 commits into
base: canary
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
5721 commits
Select commit Hold shift + click to select a range
c9c94c5
codemod: add async transform for generate viewport (#70917)
huozhi Oct 7, 2024
37ea26b
Add `require-in-the-middle` to default externals (#70922)
mischnic Oct 7, 2024
809cce8
Use random port for cargo test (#70926)
ijjk Oct 7, 2024
cbf3215
fix(turbo-tasks): Implement `TaskInput for `ResolvedVc` (#70814)
bgw Oct 7, 2024
4c3d192
Use perf_hooks for fetch metrics timers (#70924)
gnoff Oct 7, 2024
189f2da
Update Rust toolchain to nightly-2024-10-04 (#70803)
wbinnssmith Oct 7, 2024
f70006e
refactor(turbopack/next-core): Remove uses of generic vc collections …
bgw Oct 7, 2024
d9f7cca
Use perf_hooks for current time in incremental cache (#70925)
gnoff Oct 7, 2024
d23e978
fix(next-upgrade): prompts has no `default` option, is `initial` (#70…
devjiwonchoi Oct 7, 2024
e5d0e38
refactor(turbopack/next-{api,core}): Remove remaining uses of vc gene…
bgw Oct 7, 2024
4ae6d03
[dynamicio] Instrument Date to be dynamic when accessing current time…
gnoff Oct 8, 2024
64c414f
[dynamicIO] Instrument crypto ranadom APIs to be dynamic (#70939)
gnoff Oct 8, 2024
58438e9
refactor(next-upgrade): remove monorepo detect, add to error message …
devjiwonchoi Oct 8, 2024
a805a77
codemod: skip transform when its properly used (#70936)
huozhi Oct 8, 2024
99e24f5
refactor(next-upgrade): ensures prompts are cancelled when user exits…
devjiwonchoi Oct 8, 2024
710b0ae
`cache: "default"` shouldn't get cached in route handlers (#70937)
ztanner Oct 8, 2024
5b2a170
refactor(next-upgrade): tailor turbopack suggestion message (#70931)
devjiwonchoi Oct 8, 2024
979ac40
Run after() callbacks in the same context as the outer function (#70810)
sebmarkbage Oct 8, 2024
47030ae
codemod: fix missing route transform (#70959)
huozhi Oct 8, 2024
78b73f0
replace all 'athName' with 'athname' for consistency (#70690)
mjulstein Oct 8, 2024
ed10d58
refactor: improve transformer selection prompt (#70932)
devjiwonchoi Oct 8, 2024
1095650
chore(turbo-tasks): Delete vc generics support (#70817)
bgw Oct 8, 2024
939f541
[Turbopack] add persisting to the new backend (#69668)
sokra Oct 8, 2024
556d34e
chore(turbo-tasks): Remove unused primitive helper types (#70890)
bgw Oct 8, 2024
3f01d2f
[Turbopack] add persistentCaching config option (#70904)
sokra Oct 8, 2024
f6906fc
codemod: skip promise.all on params (#70972)
huozhi Oct 8, 2024
3f39303
codemod: unify comments prefix for dynamic api (#70970)
huozhi Oct 8, 2024
f9d4066
feat(next-codemod): add `app-dir-runtime-config-experimental-edge` (#…
devjiwonchoi Oct 8, 2024
e5a7452
chore(turbo-tasks-backend): Disable flaky performance test by default…
bgw Oct 8, 2024
8ac04d8
Port #70933 "fix: remove unnecessary line break in prompt" (#70978)
devjiwonchoi Oct 8, 2024
a2d8421
next-upgrade: Ensure path-like revisions are rejected (#70980)
eps1lon Oct 8, 2024
30e6794
Refactor prerender workUnitStores (#70986)
gnoff Oct 8, 2024
541167b
v15.0.0-canary.180
vercel-release-bot Oct 8, 2024
c17e225
ensure export workers that are killed bubble up to parent process (#7…
ztanner Oct 9, 2024
337e5f9
Fix i686 next-swc build due to int overflow (#70995)
ijjk Oct 9, 2024
9b54460
v15.0.0-canary.181
vercel-release-bot Oct 9, 2024
1ee8309
fix(next-codemod): get package manager is inconsistent in monorepo (#…
devjiwonchoi Oct 9, 2024
41c86ff
chore(next-codemod): replace chalk with picocolors (#70984)
devjiwonchoi Oct 9, 2024
91a147e
chore(next-codemod): add `@types/prompts` (#70985)
devjiwonchoi Oct 9, 2024
3093851
Turbopack: more sourcemappings for imports (#70469)
mischnic Oct 9, 2024
abc1bb2
next-upgrade: Ensure correct React and types version are resolved whe…
eps1lon Oct 9, 2024
355b3f5
docs: fix URL for error message (#71003)
devjiwonchoi Oct 9, 2024
2a89504
Turbopack: `find client references` layout segment optimization (#70792)
mischnic Oct 9, 2024
6ae92cc
codemod: leave comment on spread props (#70979)
huozhi Oct 9, 2024
9eb0237
docs: add `app-dir-runtime-config-experimental-edge` codemod (#71008)
devjiwonchoi Oct 9, 2024
7031f2a
docs: add `next-dynamic-access-named-export` codemod (#71012)
devjiwonchoi Oct 9, 2024
7976243
chore(next-upgrade): use process exit instead of throwing (#71018)
devjiwonchoi Oct 9, 2024
b9617db
chore(next-upgrade): improve revision usage messages (#71019)
devjiwonchoi Oct 9, 2024
6d80da6
Skip deployments for Dynamic IO error tests (#71024)
unstubbable Oct 9, 2024
b772ab4
Revert "chore(next-upgrade): use process exit instead of throwing (#7…
devjiwonchoi Oct 9, 2024
9497f17
Skip `Math.random` test with route handler and `'use cache'` (#71025)
unstubbable Oct 9, 2024
ab4d80e
Disable server action transform in pages router (#71028)
huozhi Oct 9, 2024
d938b07
chore(next-codemod): view current Next.js version, skip if already on…
devjiwonchoi Oct 9, 2024
81147ee
codemod: comment on reexport (#71017)
huozhi Oct 9, 2024
dc92b51
Remove windows i686 next-swc build target (#71041)
ijjk Oct 9, 2024
5362db4
fix(docs): correct MDN URL for decoding attribute of next/image compo…
DeepakBalaraman Oct 9, 2024
87db56b
Add ts-node dependency for jest.config.ts parsing (#70971)
karlhorky Oct 9, 2024
b6be4ad
move workUnitAsyncStorage back into "client/components" (#71046)
lubieowoce Oct 9, 2024
a7cd0c0
codemod: type cast async api calls in non entry file exports (#71040)
huozhi Oct 9, 2024
b082e09
chore: replace the all `path-name` with `pathname` for consistency (#…
Marukome0743 Oct 9, 2024
01c42a8
codemod upgrade: show link of migration guide after upgrade (#71036)
huozhi Oct 9, 2024
f93250c
Defensively install patches (#71043)
gnoff Oct 9, 2024
c21a74c
fix(next/turbopack): Always preserve import attributes with esm modul…
bgw Oct 9, 2024
2c05914
codemod: fix type only react import (#71053)
huozhi Oct 9, 2024
5f7c780
types-plugin: enahnce type checking on interface params (#71059)
huozhi Oct 9, 2024
f35159e
v15.0.0-canary.182
vercel-release-bot Oct 9, 2024
a0687a9
Move tracking of revalidate and tags from WorkStore to WorkUnitStore …
sebmarkbage Oct 9, 2024
69b95ab
codemod: if params is awaited then skip (#71060)
huozhi Oct 9, 2024
d8db9c1
Update RC migration guide (#71044)
ztanner Oct 9, 2024
cf58a10
Revert "move workUnitAsyncStorage into "client/components"" (#71058)
lubieowoce Oct 10, 2024
7838ba3
Move WorkStore and ActionStore to /server/app-render (#70934)
sebmarkbage Oct 10, 2024
46e8bc0
polish async codemod docs (#71048)
ztanner Oct 10, 2024
af80d80
polish sync-dynamic-apis error page (#71049)
ztanner Oct 10, 2024
89c6e20
chore(examples):updated the example of with-stitches to utlize the Ap…
Manoj-M-S Oct 10, 2024
13f8fcb
[Turbopack] Implement support for webpack’s `stats.json` (#70996)
wbinnssmith Oct 10, 2024
a52dcd5
chore(next-codemod): add verbose option to transform (#71079)
devjiwonchoi Oct 10, 2024
ef2cda8
chore: polish warning for esmExternals (#71082)
huozhi Oct 10, 2024
967ecb9
go back to ignoring revalidates from render (#71088)
lubieowoce Oct 10, 2024
f5d6b26
[Turbopack] add support for collectibles to new backend (#70798)
sokra Oct 10, 2024
d9a9a5d
codemod: do not await on invalid prop (#71089)
huozhi Oct 10, 2024
61f5b95
docs: misc typo corrections in upgrade guide & codemod (#71098)
ztanner Oct 10, 2024
f15a3f4
chore(next-codemod): move app-dir-runtime-config-experimental-edge to…
devjiwonchoi Oct 10, 2024
90ecf79
Add cacheLife() / cacheTag() APIs (#71064)
sebmarkbage Oct 10, 2024
58ab93b
chore(turbo-tasks-backend): Clean up internal macros (#71061)
bgw Oct 10, 2024
b8db5e2
change default module id strategy back to dev (#71052)
sokra Oct 10, 2024
5bd4271
docs(javascript): fix wrong javascript code in `11-parallel-routes.md…
lumirlumir Oct 10, 2024
f6afb0e
Fix SWC cache transform on the client layer (#71095)
shuding Oct 10, 2024
e8742a4
Eagerly Pass Implicit Tags (#71105)
sebmarkbage Oct 10, 2024
df0b535
chore: add --no-babel flag to codemod (#71106)
huozhi Oct 10, 2024
e2fb733
chore(next-codemod): add prompts for (un)installing packages (#71038)
devjiwonchoi Oct 10, 2024
d974000
Fix handling of hot reloader middlewares (#71104)
unstubbable Oct 10, 2024
39833fd
[Turbopack] formatIssue is expensive, so avoid it if possible (#71117)
sokra Oct 10, 2024
96a7efa
[Turbopack] allow to disable tree shaking (#71114)
sokra Oct 10, 2024
86c423b
fix(turbopack): Do not create self-referencing fragments (#71102)
kdy1 Oct 10, 2024
60eac1d
add phase tracking to workUnitStore (#71030)
lubieowoce Oct 10, 2024
294a1c5
v15.0.0-canary.183
vercel-release-bot Oct 10, 2024
5ea9544
docs: add missing space (#70825)
Unsleeping Oct 11, 2024
91c2714
docs: fix missing `revalidate` export for JS code block (#70857)
Juneezee Oct 11, 2024
bf666b2
docs: update incorrect link address (#70836)
lonr Oct 11, 2024
bfecbd4
docs: update priority prop docs with loading prop side effect warning…
Aerilym Oct 11, 2024
ee26991
docs: Added JS code blocks that were missing in the Installation docu…
ytori Oct 11, 2024
1caa151
[Turbopack] make filesystem tasks session dependent instead of invali…
sokra Oct 11, 2024
cfcfaba
[Turbopack] add unstable prefix to persistent caching option and forc…
sokra Oct 11, 2024
489bdd4
fix complete state for event spans (#71083)
sokra Oct 11, 2024
3902b4b
build: Update `swc_core` to `v0.106.3` (#70687)
kdy1 Oct 11, 2024
f0c058d
[Turbopack] make persistent caching not printing so much (#71092)
sokra Oct 11, 2024
b524c36
codemod: make parser more comptible (#71122)
huozhi Oct 11, 2024
a48680d
Don't warn on well-known properties in `searchParams` (#71142)
eps1lon Oct 11, 2024
4907044
Add source map support for server components/actions in the browser (…
unstubbable Oct 11, 2024
72693e2
show webpack/turbopack compilation duration for next build (#71146)
sokra Oct 11, 2024
da894cf
tweak static indicator style & behavior (#71128)
ztanner Oct 11, 2024
24963b8
[Turbopack] add simple versioning for persistent caching (#71091)
sokra Oct 11, 2024
1b21c3a
feat(next-upgrade): suggest React codemod (#71016)
devjiwonchoi Oct 11, 2024
fd552c5
prevent revalidateTag/Path during render (#71093)
lubieowoce Oct 11, 2024
d6e7503
[Turbopack] new backend cleanup (#71132)
sokra Oct 11, 2024
a2bfe3f
fix(turbopack): Fix `NextEcmascriptClientReferenceTransition` (#70603)
kdy1 Oct 11, 2024
ca5eb39
docs: self-hosting video (#71127)
leerob Oct 11, 2024
29e0a26
turn withRequestStore into createRequestStore (#71107)
gnoff Oct 11, 2024
a108bbb
Initial implementation of per-segment prefetch request handling (#71113)
acdlite Oct 11, 2024
2f7a48f
Upgrade React from `2d16326d-20240930` to `70fb1363-20241010` (#71118)
vercel-release-bot Oct 11, 2024
d6c776e
v15.0.0-canary.184
vercel-release-bot Oct 11, 2024
441bbad
Revert "chore(next-codemod): move app-dir-runtime-config-experimental…
ztanner Oct 11, 2024
1b89b4b
feat: block compilation on codemod comments and ask to remove (#71103)
huozhi Oct 11, 2024
a40c1d6
Scope request store in render (#71109)
gnoff Oct 11, 2024
8decfbb
docs: fix typo github in cli related docs (#71152)
lumirlumir Oct 11, 2024
5c194b2
Increase retry duration from 3 to 5 seconds in RSC HMR cache tests (#…
unstubbable Oct 11, 2024
57a4e5c
codemod(turbopack): Rewrite a few instances of Vc as ResolvedVc (#70927)
bgw Oct 11, 2024
d0c2dee
Reject hanging promises (#70994)
gnoff Oct 11, 2024
2d068a9
chore(turbopack): Delete a bunch of dead/unused structs (#70987)
bgw Oct 11, 2024
d8c0539
fix: allow custom app routes for metadata conventions (#71153)
huozhi Oct 11, 2024
1bc31e7
chore(next-codemod): suggest pre-release codemods by their "stable" v…
devjiwonchoi Oct 11, 2024
ce98a9a
misc(next-codemod): inform user whether current version is higher or …
devjiwonchoi Oct 11, 2024
1235199
docs(typo): fix redundant double spaces (#71137)
lumirlumir Oct 11, 2024
eaf467e
Update loading cache handler (#71121)
ijjk Oct 11, 2024
ceebc67
prevent cookies from being set in the wrong phase (#71094)
lubieowoce Oct 11, 2024
46025af
avoid accessing performance APIs if fetch is untracked (#71164)
ztanner Oct 11, 2024
7f94b8e
v15.0.0-canary.185
vercel-release-bot Oct 11, 2024
84ee9e6
Unflake "streaming responses cancel inner stream after disconnect" te…
unstubbable Oct 11, 2024
604b87c
Increase retry duration for HMR fetch logging tests (#71170)
unstubbable Oct 12, 2024
5c1828b
Handle source map requests for Turbopack client chunks (#71168)
unstubbable Oct 12, 2024
f3227db
v15.0.0-canary.186
vercel-release-bot Oct 12, 2024
7852586
docs(javascript): fix wrong javascript code and a typo in `link.mdx` …
lumirlumir Oct 12, 2024
efee005
fix: `getStaticProps` appears instead of `generateStaticParams` durin…
lumirlumir Oct 12, 2024
f71f180
Rename swrDelta config to expireTime (#71159)
ijjk Oct 12, 2024
f9ff18e
tweak shadow on static indicator & update docs copy (#71171)
ztanner Oct 12, 2024
2f195e3
[dynamicIO] track Prerender environment name during dev (#71165)
gnoff Oct 12, 2024
3764381
chore: update migration comments (#71169)
huozhi Oct 12, 2024
92e84f4
feat(turbopack): Minify CSS files while building (#71130)
kdy1 Oct 12, 2024
07a32bc
docs(typo): fix typos in `turbo.mdx` (#71188)
lumirlumir Oct 12, 2024
a987e2b
docs(typo): fix typo javascript (#71175)
lumirlumir Oct 12, 2024
e8af5c9
fix: Next.js missed a file when renaming `swrDelta` to `expireTime` (…
lumirlumir Oct 12, 2024
9d376c6
Tweak expireTime document a bit more (#71199)
ijjk Oct 12, 2024
2e69667
docs(typo): fix typo in contribution guide(#71200) (#71201)
actopas Oct 12, 2024
9ea4d7f
Fix grammar (#71181)
n-ii-ma Oct 12, 2024
a89d066
docs(terminal): fix wrong terminal command and add missing hash symbo…
lumirlumir Oct 12, 2024
e00cf62
v15.0.0-canary.187
vercel-release-bot Oct 12, 2024
1b87129
Add support for `"use cache"` in route handlers (#70897)
unstubbable Oct 12, 2024
2112ceb
For route handlers, call `loadComponents` also during `next build` (#…
unstubbable Oct 13, 2024
a135e7f
Improve error digest test suite (#71209)
eps1lon Oct 13, 2024
94060f2
Handle thrown values that aren't `Error` instances in App router (#71…
eps1lon Oct 13, 2024
f1a01f0
v15.0.0-canary.188
vercel-release-bot Oct 13, 2024
ed64c80
docs Remove depracated auth library (lucia) (#71147)
adcichowski Oct 13, 2024
a219d01
Update @next/third-parties to support peerDependency for Next 15 and …
mobeigi Oct 13, 2024
465214b
docs(typo): fix typo in `cms-sanity` example `README.md` (#71211)
JohnGemstone Oct 13, 2024
9e0f98f
docs(typo): remove unnecessary spaces (#71213)
lumirlumir Oct 13, 2024
bc1d5b4
docs(typo): fix url to URL (#71214)
lumirlumir Oct 13, 2024
ba13a56
docs: fix typos in route handler documentation (#71208)
actopas Oct 13, 2024
5b34220
Fix typo fowards to forwards (#71212)
hiro0218 Oct 13, 2024
1172b38
docs(typo): add punctuations and fix cases (#71203)
lumirlumir Oct 13, 2024
2e40588
chore: remove `"` from GitHub issue template (#71055)
JamBalaya56562 Oct 13, 2024
c836b8c
fix: add newrelic to server-external-packages.json (#71066)
jjm2317 Oct 13, 2024
189329f
chore: delete redundant blank spaces in `packages` directory (#71189)
lumirlumir Oct 13, 2024
39dfa3a
Do not create client reference manifest for metadata route handlers (…
unstubbable Oct 13, 2024
69efa49
Upgrade React from `70fb1363-20241010` to `cd22717c-20241013` (#71223)
vercel-release-bot Oct 13, 2024
d88c60d
v15.0.0-canary.189
vercel-release-bot Oct 13, 2024
7e232c5
Cache in CacheScopeStore in use cache (#71221)
sebmarkbage Oct 13, 2024
7cdf228
Encode binary cache keys as ucs-2 strings (#71224)
sebmarkbage Oct 13, 2024
605ba61
v15.0.0-canary.190
vercel-release-bot Oct 13, 2024
e09d5b0
Track timestamp and expire time on CacheEntry (#71227)
sebmarkbage Oct 13, 2024
719de07
Support temporary references for server actions (#71230)
unstubbable Oct 14, 2024
d6b932d
docs: module resolution for `next.config.ts` is currently limited to …
devjiwonchoi Oct 14, 2024
2f6054f
Docs: RC Updates (#70031)
delbaoliveira Oct 14, 2024
f443bbc
Fix missing end quote in docs (#71245)
mischnic Oct 14, 2024
6c63f1f
fix(turbopack): Sort modules properly (#71234)
kdy1 Oct 14, 2024
9b9dbe4
feat(turbopack): Remove special exports (#71126)
kdy1 Oct 14, 2024
847dea2
perf(turbopack): Do not perform tree shaking for modules without expo…
kdy1 Oct 14, 2024
3fb755f
Hide stack for bad input by default (#71253)
eps1lon Oct 14, 2024
701b11c
[after] after is not dynamic anymore (#71231)
lubieowoce Oct 14, 2024
ccd166c
codemod: ensure install commands run in terminal (#71255)
huozhi Oct 14, 2024
3a3c596
codemod: install types into dev dependencies (#71257)
huozhi Oct 14, 2024
c71b4f7
perf(turbopack): Make `ModuleEvaluation` depend only on the last side…
kdy1 Oct 14, 2024
b30ae4e
codemod: polish end message (#71259)
huozhi Oct 14, 2024
b559c28
chore: Ensure Next.js is built with a specified version of TypeScript…
eps1lon Oct 14, 2024
157f51e
fix(turbopack): Use module fragment for async module analysis (#71246)
kdy1 Oct 14, 2024
18e1618
Turbopack: Refactor resolver to accept bool instead of severity (#71254)
mischnic Oct 14, 2024
402edf9
more detailed time display (#71248)
sokra Oct 14, 2024
e814d04
[Turbopack] use FxHasher for IndexMap/Set and DashMap (#71251)
sokra Oct 14, 2024
f853f10
Propagate expire/stale times the same way we do with revalidate (#71228)
sebmarkbage Oct 14, 2024
982392e
test: fix flaky tests for hydration error with 18.3 (#71260)
huozhi Oct 14, 2024
61c9988
Update global cache handler ref (#71263)
ijjk Oct 14, 2024
b6fa6be
Handle URL-encoded Turbopack client chunks when resolving source maps…
unstubbable Oct 14, 2024
863168d
Sync @next/third-parties with React peer versions (#71261)
mobeigi Oct 14, 2024
300bfe5
[BREAKING] Support ESLint v9 in plugin, config and `next lint` (#71218)
devjiwonchoi Oct 14, 2024
fc2a7d2
Make cacheLife profiles configurable (#71232)
sebmarkbage Oct 14, 2024
f847dae
[dynamicIO] warn in debug mode when prospective renders error (#71266)
gnoff Oct 14, 2024
365f1d1
codemod: prettier the version logging at the beginning (#71264)
huozhi Oct 14, 2024
8388d23
Fix missing key in `LoadingBoundary` (#71222)
eps1lon Oct 14, 2024
481dee6
codemod: install core deps based on package.json group (#71265)
huozhi Oct 14, 2024
1794f59
Set Next-Router-Stale-Time header from collected stale times (#71279)
sebmarkbage Oct 14, 2024
743d06b
Respect stale time header in client prefetch cache (#71280)
acdlite Oct 14, 2024
4b9ef1e
v15.0.0-canary.191
vercel-release-bot Oct 14, 2024
df4bb11
Mark revalidate: 0 on fetch or use cache as never resolving promise i…
sebmarkbage Oct 15, 2024
3cde42f
static indicator shouldn't show for force-dynamic (#71284)
ztanner Oct 15, 2024
7a62bbf
Implement cacheScope by caching a Promise<CacheEntry> (#71286)
sebmarkbage Oct 15, 2024
bff036b
improve code style of string operation in MiddlewareEndpoint (#70780)
sokra Oct 15, 2024
7ebe18b
codemod: update react-is if needed (#71276)
huozhi Oct 15, 2024
b14b0ff
chore: remove experimental warning for next-config-ts (#71297)
devjiwonchoi Oct 15, 2024
e68ce6e
fix(next): eslint v9 not picking up config (#71298)
devjiwonchoi Oct 15, 2024
2f16722
Add support for `'use cache'` in route handlers using the Edge runtim…
unstubbable Oct 15, 2024
5722885
Use integrated terminal as console in vscode launch configs (#71303)
unstubbable Oct 15, 2024
786fa61
Re-add canary gates for certain experimental features (#71307)
ztanner Oct 15, 2024
d8c0c1a
v15.0.0-canary.192
vercel-release-bot Oct 15, 2024
eef1392
Fix symbol for cache (#71270)
ijjk Oct 15, 2024
78c9cbe
misc: bump playwright (#71312)
feedthejim Oct 15, 2024
6dd7195
v15.0.0-canary.193
vercel-release-bot Oct 15, 2024
047baab
docs: update unstable_after docs (#71313)
lubieowoce Oct 15, 2024
b3d9b15
[after] fix waitUntil in edge runtime sandbox (pages/api) (#71309)
lubieowoce Oct 15, 2024
4e05544
docs: small updates for canary docs (#71317)
leerob Oct 15, 2024
ec129dc
codemod: override and install (#71318)
huozhi Oct 15, 2024
09ab728
v15.0.0-canary.194
vercel-release-bot Oct 15, 2024
bc30936
Docs: Tweak staticGeneration page (#71315)
delbaoliveira Oct 15, 2024
872cb61
fix: make "Release stats" use the correct artifact name (#71323)
lubieowoce Oct 15, 2024
01117b2
Add Turbopack support for `'use cache'` in route handlers (#71306)
unstubbable Oct 15, 2024
fc6958f
Add built-in set of cacheLife profiles (#71322)
sebmarkbage Oct 15, 2024
51e1a24
Skip failing stack frames test (#71325)
unstubbable Oct 15, 2024
acec63f
v15.0.0-canary.195
vercel-release-bot Oct 15, 2024
64e0fa9
next-upgrade: Update all Next.js packages (#71324)
eps1lon Oct 15, 2024
58b917a
Encode FormData for cache keys using custom algorithm (#71341)
sebmarkbage Oct 16, 2024
5973081
[dynamicIO] Implement a warmup prefetch render in dev (#71278)
gnoff Oct 16, 2024
1255f20
Improve Server Reference transform to support closure variables from …
shuding Oct 16, 2024
6158c1f
Fix default export and exported function expressions handling of cach…
shuding Oct 16, 2024
dbb16a1
Fix flaky app action test (#71360)
unstubbable Oct 16, 2024
565ebea
fix: stack frame format (#71366)
huozhi Oct 16, 2024
19a5f7d
[dynamicIO] implement dynamic check using AbortSignal (#71344)
gnoff Oct 16, 2024
3cfd255
fix(after): broken error handling for unstable_after(promise) (#71373)
lubieowoce Oct 16, 2024
ddd9de4
[ppr] Stabilize Partial Prerendering Fallbacks (#71320)
wyattjoh Oct 16, 2024
7e9169e
docs: add secured server action ids section (#71368)
huozhi Oct 16, 2024
7d4be68
remove NextCacheHandler from request context (#71381)
lubieowoce Oct 16, 2024
500a1b6
codemod: fix resolutions in bun (#71362)
huozhi Oct 16, 2024
1a88624
next-upgrade: Reduce formatting artifacts when overrides are added (#…
eps1lon Oct 16, 2024
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
Fix missing await of params in metadata route (vercel#70900)
  • Loading branch information
huozhi authored Oct 7, 2024
commit 79bc150e95d904579e6fd608aa2646bf4111ada8
2 changes: 1 addition & 1 deletion crates/next-core/src/next_app/metadata/image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ pub async fn dynamic_image_metadata_source(
const imageModule = {{ {exported_fields_excluding_default} }}

export default async function (props) {{
const {{ __metadata_id__: _, ...params }} = props.params
const {{ __metadata_id__: _, ...params }} = await props.params
const imageUrl = fillMetadataSegment({pathname_prefix}, params, {page_segment})

const {{ generateImageMetadata }} = imageModule
Expand Down
10 changes: 6 additions & 4 deletions crates/next-core/src/next_app/metadata/route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ async fn dynamic_site_map_route_source(
}}

export async function GET(_, ctx) {{
const {{ __metadata_id__: id, ...params }} = ctx.params || {{}}
const {{ __metadata_id__: id, ...params }} = await ctx.params || {{}}
const hasXmlExtension = id ? id.endsWith('.xml') : false
if (id && !hasXmlExtension) {{
return new NextResponse('Not Found', {{
Expand Down Expand Up @@ -371,12 +371,14 @@ async fn dynamic_image_route_source(path: Vc<FileSystemPath>) -> Result<Vc<Box<d
}}

export async function GET(_, ctx) {{
const {{ __metadata_id__, ...params }} = ctx.params || {{}}
const params = await ctx.params
const {{ __metadata_id__, ...rest }} = params || {{}}
const restParams = params ? rest : undefined
const targetId = __metadata_id__
let id = undefined

if (generateImageMetadata) {{
const imageMetadata = await generateImageMetadata({{ params }})
const imageMetadata = await generateImageMetadata({{ params: restParams }})
id = imageMetadata.find((item) => {{
if (process.env.NODE_ENV !== 'production') {{
if (item?.id == null) {{
Expand All @@ -393,7 +395,7 @@ async fn dynamic_image_route_source(path: Vc<FileSystemPath>) -> Result<Vc<Box<d
}}
}}

return handler({{ params: ctx.params ? params : undefined, id }})
return handler({{ params: restParams, id }})
}}
"#,
resource_path = StringifyJs(&format!("./{}.{}", stem, ext)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ ${errorOnBadHandler(resourcePath)}
${await createReExportsCode(resourcePath, loaderContext)}

export async function GET(_, ctx) {
const { __metadata_id__, ...params } = ctx.params || {}
const params = await ctx.params
const { __metadata_id__, ...rest } = params || {}
const restParams = params ? rest : undefined
const targetId = __metadata_id__
let id = undefined

if (generateImageMetadata) {
const imageMetadata = await generateImageMetadata({ params })
const imageMetadata = await generateImageMetadata({ params: restParams })
id = imageMetadata.find((item) => {
if (process.env.NODE_ENV !== 'production') {
if (item?.id == null) {
Expand All @@ -196,7 +198,7 @@ export async function GET(_, ctx) {
}
}

return handler({ params: ctx.params ? params : undefined, id })
return handler({ params: restParams, id })
}
`
}
Expand Down Expand Up @@ -243,7 +245,7 @@ ${errorOnBadHandler(resourcePath)}
${await createReExportsCode(resourcePath, loaderContext)}

export async function GET(_, ctx) {
const { __metadata_id__: id, ...params } = ctx.params || {}
const { __metadata_id__: id, ...params } = await ctx.params || {}
const hasXmlExtension = id ? id.endsWith('.xml') : false

if (id && !hasXmlExtension) {
Expand Down