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 #549

Merged
merged 424 commits into from
Dec 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
424 commits
Select commit Hold shift + click to select a range
447cba0
Remove the timestamp query for CSS resources (#43185)
shuding Nov 21, 2022
a3e37e3
Updated typo in the documentation (#43160)
aziyatali Nov 21, 2022
3e8c6f4
Add missing quote in `next/script` example (#43196)
NiedziolkaMichal Nov 21, 2022
c1370c9
Update experimental skipTrailingSlashRedirect handling (#43201)
ijjk Nov 21, 2022
2763f60
Avoid bundling appDir rendering into pages edge SSR bundle (#43184)
huozhi Nov 21, 2022
8690395
Alias esm next document to avoid mismatch react context (#43192)
huozhi Nov 21, 2022
5d39daa
Update tests config (#43204)
ijjk Nov 21, 2022
ee969ea
Fix middleware not executed when pages directory is empty (#43205)
huozhi Nov 21, 2022
d8d9b2c
Remove app routes from _devPagesManifest (#43188)
Nov 21, 2022
ed2aa9f
Fix HMR error: "Cannot read properties of null (reading 'length')" (#…
colinking Nov 22, 2022
9f93d34
fix: create-next-app copies files it shouldn't (#43131)
juliusmarminge Nov 22, 2022
7ae1cb8
v13.0.5-canary.4
ijjk Nov 22, 2022
f400adf
chore(examples): with-msw update msw (#43224)
andykenward Nov 22, 2022
3a2af8f
Fix With Passport example (#43232)
Yutsuten Nov 22, 2022
7596132
fix(ts): re-export `PageComponent` and `LayoutComponent` types (#43226)
balazsorban44 Nov 22, 2022
807c59a
chore(examples): update Next.js in `with-redux-reducer` (#43237)
FomichRoman Nov 22, 2022
08ee7b2
Updates supertokens example app SSR behaviour (#43218)
rishabhpoddar Nov 22, 2022
ef7a6e1
docs: add missing AppProps import (#43136)
arturbien Nov 22, 2022
3a770fd
Fix app routes are not correctly matched when src directory is used (…
shuding Nov 22, 2022
4196822
Add a note about the auto-created empty directory (#43219)
ADTC Nov 22, 2022
a2df178
Add links to PR template (#43239)
jankaifer Nov 22, 2022
20e9148
Update some flakey test cases (#43247)
ijjk Nov 22, 2022
2743413
chore: add `firebase-admin` to default `serverComponentsExternalPacka…
balazsorban44 Nov 22, 2022
fa5dcbd
Fix React.cache() in layout/page file (#43187)
timneutkens Nov 22, 2022
4239a66
Update flakey app HMR tests (#43253)
ijjk Nov 22, 2022
28454c6
v13.0.5-canary.5
timneutkens Nov 22, 2022
0d6e689
build(cargo): bump up turbopack (#43273)
kwonoj Nov 23, 2022
b8c193b
docs: Add default browserslist configuration as a starting point (#43…
joliss Nov 23, 2022
55232c2
fix(next-swc): aarch64 build (#43275)
kwonoj Nov 23, 2022
0caf800
Add fallback aliases for React (#43203)
shuding Nov 23, 2022
3f30e26
fix: apply default export interop to `next/error` (#43238)
balazsorban44 Nov 23, 2022
8eb82b3
Convert more jsx/styled-components examples to TypeScript (#43117)
maxproske Nov 23, 2022
9fe5317
v13.0.5-canary.6
ijjk Nov 23, 2022
ee97481
Add support for next.js development in docker (#43138)
jankaifer Nov 23, 2022
093354c
Convert `with-videojs`, `with-yoga`, `with-zones` examples to TypeScr…
maxproske Nov 23, 2022
33d4694
Remove unused `use-sync-external-store` dependency (#43281)
Andarist Nov 23, 2022
369d6b7
Imageloader: collect images serverside to include images from staticp…
Laityned Nov 23, 2022
e901fef
Update precompiled react (#43288)
huozhi Nov 23, 2022
e581dc8
Resolve next api for layouts to esm for edge runtime (#43302)
huozhi Nov 23, 2022
2089af4
Refactor code (#43291)
shuding Nov 23, 2022
685c87c
Show error for invalid page props in the TS plugin (#43300)
shuding Nov 23, 2022
aa51c26
docs: add error link when missing `appDir: true` (#43293)
balazsorban44 Nov 23, 2022
e079fbb
v13.0.5-canary.7
ijjk Nov 23, 2022
f3a728b
v13.0.5
ijjk Nov 23, 2022
5d7e142
test(integration): allow to run `--turbo` dev server tests dynamicall…
kwonoj Nov 23, 2022
538c110
Ensure loaderFile is included in webpack cache key (#43315)
ijjk Nov 23, 2022
ec7609e
Avoid turbo cache miss on root package change (#43309)
ijjk Nov 23, 2022
5788f60
Improve @next/font error handling (#43298)
Nov 24, 2022
60d5c96
Improve RSC plugin to provide better errors (#42435)
shuding Nov 24, 2022
2eaa3ae
fix appDir returning 404 in production with `"output": "standalone"` …
DuCanhGH Nov 24, 2022
f4610c3
Fix outputting un-necessary trace files for edge functions (#43304)
DuCanhGH Nov 24, 2022
29a9134
v13.0.6-canary.0
ijjk Nov 24, 2022
a746597
chore(examples): Deprecate `cms-strapi` (#43325)
chibicode Nov 24, 2022
bcb0e28
fix: apply default export interop to pages/_app (#43335)
artechventure Nov 24, 2022
e650047
Fix package resolution issue in app dir (#43349)
shuding Nov 25, 2022
e8fd18a
Get correct chunks in flight-manifest on Windows (#43334)
Nov 25, 2022
9519431
Add .pnpm-store to .gitignore (#43366)
jankaifer Nov 25, 2022
1dd3462
Add example commands for creating reproductions (#43375)
jankaifer Nov 25, 2022
d40ecb7
Resolve RSC / HTML rendering errors in error overlay (#43332)
timneutkens Nov 25, 2022
c16d4be
v13.0.6-canary.1
timneutkens Nov 25, 2022
0f195f0
App directory next/link dynamic href dev error (#43074)
hanneslund Nov 25, 2022
c4b6bb8
Add `ref` forwarding for `next/image` (#43193)
jankaifer Nov 25, 2022
eaaa193
Always transform styled-jsx for rsc and error with client-only condit…
huozhi Nov 26, 2022
93613d5
dynamic = 'error' should only throw if page didn't get exported (#43377)
hanneslund Nov 26, 2022
758990d
fix `output: "standalone"` returning 500 error on certain pages when …
DuCanhGH Nov 26, 2022
2085dac
Update @next/font/google fonts (#43385)
hanneslund Nov 26, 2022
013844c
Fix "apply() is only allowed in ready status (state: idle)" HMR error…
colinking Nov 27, 2022
08e6ceb
updates with-supertokens example (#43379)
rishabhpoddar Nov 28, 2022
d5c922b
Fix `with-docker-compose` example (#43419)
maxproske Nov 28, 2022
59466f8
Add gSP and gSSP checks for both server and client layers in the SWC …
shuding Nov 28, 2022
b418a88
Make sure the TS plugin works for src/app (#43412)
shuding Nov 28, 2022
cd8a1a4
Remove stack trace from full reload warning (#43453)
hanneslund Nov 28, 2022
9e098da
Upgrade compiled undici (#43481)
wyattjoh Nov 28, 2022
ae626c5
v13.0.6-canary.2
ijjk Nov 29, 2022
9159a6e
Add link back to font video in Font docs. (#43440)
leerob Nov 29, 2022
fdff88b
Catch errors when calculating avg font width (#43503)
hanneslund Nov 29, 2022
e816e45
Fix missing cleanup process in flight plugin globals (#43297)
shuding Nov 29, 2022
524f992
docs: update known Safari bug (#43513)
alantoa Nov 29, 2022
f15b5d0
chore(examples): fix CLI commands for MobX examples (#43534)
Haschikeks Nov 29, 2022
f062566
chore: update issue verifier (#43339)
balazsorban44 Nov 29, 2022
79f0819
Add yarn berry dependency upgrade example for Next 12 to 13 upgrade d…
matthew-heath Nov 29, 2022
0d2f92a
chore: fix issue validator
balazsorban44 Nov 29, 2022
fa26819
chore: move comments of issue validator
balazsorban44 Nov 29, 2022
cd02e5c
chore: hardcode path for issue validator
balazsorban44 Nov 29, 2022
ef20244
chore: add area dropdown to bug report template (#43228)
balazsorban44 Nov 29, 2022
b304a18
Fix matchers in middleware manifest (#43549)
shuding Nov 29, 2022
00836ad
rsc: bundle legacy head as client component (#43425)
huozhi Nov 30, 2022
5003de7
chore: fix issue verifier issues
balazsorban44 Nov 30, 2022
396f9cc
Merge branch 'canary' of https://github.com/vercel/next.js into canary
balazsorban44 Nov 30, 2022
faaba0f
Simplify and convert `with-vercel-fetch` example to TypeScript (#43403)
maxproske Nov 30, 2022
81aebe9
chore: fix issue verifier
balazsorban44 Nov 30, 2022
55e35c5
chore(examples): reference `main` prop in README.md in Firebase examp…
AaronJY Nov 30, 2022
8603901
Clarify that publicRuntimeConfig and serverRuntimeConfig do not work …
dtinth Nov 30, 2022
7bd1703
chore: don't comment twice
balazsorban44 Nov 30, 2022
b0aa73b
chore: disable auto-labeling
balazsorban44 Nov 30, 2022
7a7e7d4
Remove `useState` from `next/image` (#43587)
styfle Dec 1, 2022
77738ed
Group redirect status imports (#43480)
leoortizz Dec 1, 2022
f6106d2
Fix `Failed to copy traced files` for Edge functions and handle its f…
DuCanhGH Dec 1, 2022
1bb0596
Fix "infer pnpm with example" test outside test suite (#43487)
maxproske Dec 1, 2022
30c9627
Update next/link default legacyBehavior (#42623)
ValentinH Dec 1, 2022
1c89da6
fix: Dynamic Usage Error when using previewData with generateStaticPa…
brvnonascimento Dec 1, 2022
b2dd167
Minimized runtime errors in app dir (#43511)
hanneslund Dec 1, 2022
fbc98ab
v13.0.6-canary.3
ijjk Dec 1, 2022
4ee933d
chore: add issue labeler (#43599)
balazsorban44 Dec 1, 2022
b2df2cf
chore(examples): Update active-class-name example (#43581)
joshuaslate Dec 1, 2022
2906b51
chore: fix issue labeler (#43606)
balazsorban44 Dec 1, 2022
07d52ce
Changed output mode on app directory test application (#43607)
wyattjoh Dec 1, 2022
a45bf8c
Fix deploy button in with-xata example (#43608)
SferaDev Dec 1, 2022
4ca12bd
adding note that edge api routes are not supported with ISR (#43572)
timeyoutakeit Dec 1, 2022
70d89bc
Improve docs for URL Imports (#43615)
styfle Dec 2, 2022
0590988
Fix output: standalone test for app directory (#43618)
ijjk Dec 2, 2022
5f420f7
v13.0.6-canary.4
ijjk Dec 2, 2022
5003add
v13.0.6
ijjk Dec 2, 2022
57dc720
Add with-cloudinary example (#43250)
Nutlope Dec 2, 2022
48290c6
Update react next tag (#43617)
huozhi Dec 2, 2022
5fb243d
examples(with-turbopack): Fix styling page default active stylingNav …
m7yue Dec 2, 2022
2063ff3
fix(jest): pattern when detecting packages to transpile in next/jest …
Dec 2, 2022
6b863fe
Apply publish step optimizations (#43620)
ijjk Dec 2, 2022
166e5fb
v13.0.7-canary.0
ijjk Dec 2, 2022
482fccb
Adding head element checking for root layout (#43597)
Andarist Dec 2, 2022
c6ec490
Fixed broken Cloudinary example (#43646)
Nutlope Dec 2, 2022
d41afd7
Revert: 'Minimized runtime errors in app dir' (#43648)
hanneslund Dec 2, 2022
d464ef8
Update create-next-app template (#43482)
iteratetograceness Dec 3, 2022
bb770ca
fix: properly handle `trailingSlash: true` and `rewrites` (#43641)
balazsorban44 Dec 3, 2022
3a7c35a
@next/font fallback fonts order fix (#43633)
hanneslund Dec 3, 2022
0c756be
Update cache handling for app (#43659)
ijjk Dec 3, 2022
9329743
v13.0.7-canary.1
ijjk Dec 3, 2022
2fcc1e2
Remove resolved `app` directory todos (#43672)
timneutkens Dec 3, 2022
90f022a
Update test config (#43661)
ijjk Dec 4, 2022
992c46e
Update flakey app logbox test (#43682)
ijjk Dec 4, 2022
c51af7c
Update flakey GSSP preview test (#43702)
ijjk Dec 4, 2022
e085fd6
Fix typo in comment (#43685)
mmaaaaz Dec 4, 2022
324de6b
Fix typos in 1.bug_report.yml (#43697)
Alfred-Mountfield Dec 4, 2022
0bd3422
docs: Add notes about NEXT_MANUAL_SIG_HANDLE (#43686)
soonoo Dec 4, 2022
b653942
Disable jest autorun in this repo (#43727)
jankaifer Dec 5, 2022
fa42c34
perf: disable prefetching for links in viewport in development for ap…
feedthejim Dec 5, 2022
cbf87e1
Build test binary in Docker image (#43745)
Brooooooklyn Dec 6, 2022
5cff316
Remove additional `<div>` at each segment level in `app` (#43717)
timneutkens Dec 6, 2022
ea21c66
v13.0.7-canary.2
timneutkens Dec 6, 2022
efe1742
Update bug report template to make it clear we require repro (#43735)
jankaifer Dec 6, 2022
a19f04c
Revert "Adding head element checking for root layout" (#43760)
huozhi Dec 6, 2022
fe0315a
fix ci pnpm lock error (#43767)
huozhi Dec 6, 2022
18d41a9
Add tests for server component HMR (#43779)
shuding Dec 6, 2022
bd9148d
Changes `vercel/examples` links from linking to GitHub repo to templa…
manovotny Dec 7, 2022
ba19ce3
Force reflow when setting scrollBehavior (#43673)
jankaifer Dec 7, 2022
738de01
Remove `__webpack_exports__` from error overlay (#43715)
hanneslund Dec 7, 2022
08d270c
Add tests for rendering null and undefined in RSC (#43768)
jankaifer Dec 7, 2022
b168c37
Fix chunk hash logic in hot-reloader for server components (#43778)
shuding Dec 7, 2022
783a3ce
Remove `swcMinify` from Next config in CNA template (#43782)
iteratetograceness Dec 7, 2022
f56e5c9
Convert `with-why-did-you-render` example to TypeScript (#43736)
maxproske Dec 7, 2022
8006dbc
chore(examples): Remove deprecated function from chakra (#43784)
AnujSsStw Dec 7, 2022
dbc8334
chore(examples): Update convex example (#43741)
thomasballinger Dec 7, 2022
2a23039
Assign layer to app client entries (#43197)
shuding Dec 7, 2022
16cf9a8
Remove `serverComponents` from next.conf.js because it's unused (#43805)
jankaifer Dec 7, 2022
aa7cdf3
Remove notifications emitted during pnpm dev (#43801)
jankaifer Dec 7, 2022
2022fa6
Add test for providing correct params to layouts (#43775)
jankaifer Dec 7, 2022
56ea306
Display error digest if presented (#43742)
huozhi Dec 7, 2022
476bb09
Fix HMR issue after patching the client module (#43819)
shuding Dec 7, 2022
d798df8
Fix test binary generation and update test config (#43790)
ijjk Dec 7, 2022
a704b71
Lock pnpm version during publish (#43820)
ijjk Dec 7, 2022
cd0ebd8
Implement loadable with lazy and suspense for next dynamic (#42589)
huozhi Dec 7, 2022
2332272
Do not attach CSS checksum for production build (#43827)
shuding Dec 7, 2022
a752f4d
ci(actions): pin prod-test action image (#43748)
kwonoj Dec 7, 2022
a97e6ff
Upgrade playwright to 1.28.1 (#43818)
huozhi Dec 7, 2022
57515a7
v13.0.7-canary.3
huozhi Dec 7, 2022
1930a95
Provide error hints for invalid layout props via the TS plugin (#43835)
shuding Dec 8, 2022
579979d
modify rd email (#43837)
aaronbrown-vercel Dec 8, 2022
8da43b1
Refactor code (#43828)
shuding Dec 8, 2022
c341c76
Test imports of all file types (#43751)
jankaifer Dec 8, 2022
98cb254
Unhandled errors and rejections opens as minimized in app dir error o…
hanneslund Dec 8, 2022
a6714d3
docs: add readme with development instructions for next/swc (#43834)
huozhi Dec 8, 2022
f5ec62d
test: client component under server component with ssr:false (#43853)
huozhi Dec 8, 2022
d4a8edf
docs(migrating): fix broken react-router link (#43843)
saseungmin Dec 8, 2022
013a58d
Use proxy to ensure Flight is referencing to the latest module during…
shuding Dec 8, 2022
8a17198
Delete duplicate SECURITY.md (#43856)
styfle Dec 8, 2022
589f090
memory: fix 2 memory leaks in `next-dev` (#43859)
feedthejim Dec 8, 2022
df8dde7
Refactoring in @next/font (#43848)
hanneslund Dec 8, 2022
aa4b4bf
Update dependencies for Convex demo (#43855)
thomasballinger Dec 8, 2022
f144c39
build(cargo): bump up swc_core, turbopack (#43652)
kwonoj Dec 8, 2022
ea58d94
Move prefetch bailout to start of the prefetch function for `pages` (…
timneutkens Dec 8, 2022
367a5df
Clarify e2e dependency on yarn in contributin docs (#43287)
jankaifer Dec 9, 2022
5f27b9d
test: use react latest (#43884)
huozhi Dec 9, 2022
a7f2910
Alias next/head to noop for rsc and add upgration warning (#43885)
huozhi Dec 9, 2022
dbbbbd1
Update freebsd build (#43866)
ijjk Dec 9, 2022
9d97a1e
v13.0.7-canary.4
ijjk Dec 9, 2022
5415a0d
Fix error message for invalid `runtime` option in app dir (#43900)
shuding Dec 9, 2022
d8545e6
fix: forwarding props to no ssr dynamic (#43901)
huozhi Dec 9, 2022
582070e
Improve type checking error message for invalid props (#43903)
shuding Dec 9, 2022
833a9af
Improve type checking error message for invalid props (#43903)
shuding Dec 9, 2022
8ded797
Support for named slots in type checking (#43906)
shuding Dec 9, 2022
6c1dd22
Update compiler.md (#43872)
aziyatali Dec 10, 2022
3833aed
Fix next/dynamic types for resolving named export module (#43923)
huozhi Dec 10, 2022
1fb4cad
Add auto completion for prop names and types to the TS plugin (#43909)
shuding Dec 10, 2022
6cfebfb
Skip creating VSCode config and `.gitignore` if running in CI (#43935)
shuding Dec 11, 2022
ce0bcd3
Convert `with-gsap`, `with-mqtt-js`, `with-mux-video` examples to Typ…
maxproske Dec 12, 2022
bfd96ac
Fix `with-webassembly` example and convert to Typescript (#43677)
maxproske Dec 12, 2022
af0ac94
corrected /examples/github-pages readme (#43766)
Dec 12, 2022
50caf8b
Add helpful error for createContext used in Server Components (#43747)
hanneslund Dec 12, 2022
5cf7408
Update @next/font data (#43883)
hanneslund Dec 12, 2022
6ba53d8
Update flakey dev context tests (#43951)
ijjk Dec 12, 2022
f6f1f50
Increase stack trace limit on the server (#43800)
hanneslund Dec 12, 2022
d2c23bb
Refactor image optimization util (#43868)
styfle Dec 12, 2022
b3dfa03
useSearchParams - bailout to client rendering during static generatio…
hanneslund Dec 12, 2022
45eea0a
Open server component errors fullscreen (#43887)
hanneslund Dec 12, 2022
dcad00d
Add VSCode settings and recommended extensions for Next.js repository…
timneutkens Dec 12, 2022
662344c
next-dev: restart dev server exceeds the memory limits (#43958)
feedthejim Dec 12, 2022
4df6804
Add Web Tooling team to codeowners (#43981)
padmaia Dec 12, 2022
3cb7adb
Fix: status log when NEXT_TELEMETRY_DISABLED env is set (#43948)
mattpr Dec 12, 2022
318bdf9
Update docs change files list (#43984)
ijjk Dec 12, 2022
5e3bb45
chore: add repro links in "verify canary" comment (#43979)
balazsorban44 Dec 12, 2022
8e04398
Erase dynamic ssr:false imports on server (#43974)
huozhi Dec 12, 2022
f012eab
use a function expression to access arguments binding (#43987)
gnoff Dec 12, 2022
cba7070
Added support for query params on not found pages (#43836)
wyattjoh Dec 13, 2022
5e50fce
v13.0.7-canary.5
ijjk Dec 13, 2022
f0dac71
Fix e2e deploy test setup (#43990)
ijjk Dec 13, 2022
297459d
Update `no-img-element` lint rule (#43982)
styfle Dec 13, 2022
ee266b9
Move Google Analytics script to the <Head/> (#43838)
aarnadlr Dec 13, 2022
482d78e
Fix: fix pages in Route Groups returning 500 with `output: "standalon…
DuCanhGH Dec 13, 2022
be90c0b
Add default head for app dir (#43963)
huozhi Dec 13, 2022
a34b20e
Fix browser navigation buttons not working with shallow routing and m…
kleintorres Dec 13, 2022
04c2509
Fast refresh should recover from event handler errors in app dir (#43…
hanneslund Dec 13, 2022
60dd6df
Fix module error for findDOMNode on edge (#43998)
huozhi Dec 13, 2022
0269f1c
v13.0.7-canary.6
ijjk Dec 13, 2022
7b84d63
Add docs for missing support on custom routes (#44007)
ijjk Dec 13, 2022
6d3be75
Adding data attr to inlined font definition (#44008)
janicklas-ralph Dec 13, 2022
2416357
docs: fix wording (#44020)
theevilhead Dec 14, 2022
16a1116
Replace taskr.watch for core compilation (#44027)
timneutkens Dec 14, 2022
7c1ac89
not ie 11 is dead (#44029)
Nfinished Dec 14, 2022
d5fd2d7
Fix `.images.remotePatterns[0].port` warning (#44032)
styfle Dec 14, 2022
6aae39c
Fix app client entry key for windows (#44011)
huozhi Dec 14, 2022
35f1a35
feat: enables 'edge' as a possible runtime for API routes (#44045)
feugy Dec 15, 2022
6a00737
v13.0.7-canary.7
timneutkens Dec 15, 2022
892eb61
v13.0.7
timneutkens Dec 15, 2022
df527e7
Run packing in tests in parallel
jankaifer Dec 15, 2022
bf4e6fb
Revert "Run packing in tests in parallel"
jankaifer Dec 15, 2022
327634e
Fix windows slashes for app client entry (#44052)
huozhi Dec 15, 2022
64d3ba5
Hash both pitch and main loader for server CSS imports (#44063)
shuding Dec 15, 2022
0715af8
v13.0.8-canary.0
huozhi Dec 15, 2022
e57edff
docs: Add explanation about font-display (#44001)
hanneslund Dec 16, 2022
064bd14
Updates with-supertokens example (#44042)
rishabhpoddar Dec 16, 2022
daa14ab
Remove extra turbo test (#44073)
ijjk Dec 16, 2022
ab328c6
Add tracing for testing tools (#44046)
jankaifer Dec 16, 2022
e239a41
Run packing in tests in parallel (#44048)
jankaifer Dec 16, 2022
246c0cd
Test that adding query can be detected by useSearchParams (#43969)
jankaifer Dec 16, 2022
20997f8
Add static test for useSelectedLayoutSegments (#43955)
jankaifer Dec 16, 2022
595ecdb
feat: app dir error-global component (#44066)
huozhi Dec 16, 2022
137a63b
Fix ignoring dev warning for preload component (#44065)
huozhi Dec 16, 2022
1e0acc2
Implement new core test API (#44086)
timneutkens Dec 16, 2022
b45c815
refactor(next-swc): introduce next-binding to consolidate dependencie…
kwonoj Dec 16, 2022
04e325d
Add lodash to server components external packages (#44022)
timneutkens Dec 17, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
25 changes: 25 additions & 0 deletions .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18, 16, 14, 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=16-bullseye
FROM mcr.microsoft.com/vscode/devcontainers/javascript-node:0-${VARIANT}

# [Optional] Uncomment this section to install additional OS packages.
# These are required to run playwright properly
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install --no-install-recommends \
gconf-service libxext6 libxfixes3 libxi6 libxrandr2 \
libxrender1 libcairo2 libcups2 libdbus-1-3 libexpat1 \
libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 \
libglib2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 \
libstdc++6 libx11-6 libx11-xcb1 libxcb1 libxcomposite1 libxcursor1 \
libxdamage1 libxss1 libxtst6 libappindicator1 libnss3 libasound2 \
libatk1.0-0 libc6 libdrm-dev libgbm-dev ca-certificates fonts-liberation lsb-release xdg-utils wget

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>"

# Enable pnpm
RUN corepack enable pnpm
55 changes: 55 additions & 0 deletions .devcontainer/base.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# [Choice] Node.js version (use -bullseye variants on local arm64/Apple Silicon): 18-bullseye, 16-bullseye, 14-bullseye, 18-buster, 16-buster, 14-buster
ARG VARIANT=16-bullseye
FROM node:${VARIANT}

# [Option] Install zsh
ARG INSTALL_ZSH="true"
# [Option] Upgrade OS packages to their latest versions
ARG UPGRADE_PACKAGES="true"

# Install needed packages, yarn, nvm and setup non-root user. Use a separate RUN statement to add your own dependencies.
ARG USERNAME=node
ARG USER_UID=1000
ARG USER_GID=$USER_UID
ARG NPM_GLOBAL=/usr/local/share/npm-global
ENV NVM_DIR=/usr/local/share/nvm
ENV NVM_SYMLINK_CURRENT=true \
PATH=${NPM_GLOBAL}/bin:${NVM_DIR}/current/bin:${PATH}
COPY library-scripts/*.sh library-scripts/*.env /tmp/library-scripts/
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# Remove imagemagick due to https://security-tracker.debian.org/tracker/CVE-2019-10131
&& apt-get purge -y imagemagick imagemagick-6-common \
# Install common packages, non-root user, update yarn and install nvm
&& bash /tmp/library-scripts/common-debian.sh "${INSTALL_ZSH}" "${USERNAME}" "${USER_UID}" "${USER_GID}" "${UPGRADE_PACKAGES}" "true" "true" \
# Install yarn, nvm
&& rm -rf /opt/yarn-* /usr/local/bin/yarn /usr/local/bin/yarnpkg \
&& bash /tmp/library-scripts/node-debian.sh "${NVM_DIR}" "none" "${USERNAME}" \
# Configure global npm install location, use group to adapt to UID/GID changes
&& if ! cat /etc/group | grep -e "^npm:" > /dev/null 2>&1; then groupadd -r npm; fi \
&& usermod -a -G npm ${USERNAME} \
&& umask 0002 \
&& mkdir -p ${NPM_GLOBAL} \
&& touch /usr/local/etc/npmrc \
&& chown ${USERNAME}:npm ${NPM_GLOBAL} /usr/local/etc/npmrc \
&& chmod g+s ${NPM_GLOBAL} \
&& npm config -g set prefix ${NPM_GLOBAL} \
&& sudo -u ${USERNAME} npm config -g set prefix ${NPM_GLOBAL} \
# Install eslint
&& su ${USERNAME} -c "umask 0002 && npm install -g eslint" \
&& npm cache clean --force > /dev/null 2>&1 \
# Install python-is-python3 on bullseye to prevent node-gyp regressions
&& . /etc/os-release \
&& if [ "${VERSION_CODENAME}" = "bullseye" ]; then apt-get -y install --no-install-recommends python-is-python3; fi \
# Clean up
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/lists/* /root/.gnupg /tmp/library-scripts

# [Optional] Uncomment this section to install additional OS packages.
# RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
# && apt-get -y install --no-install-recommends <your-package-list-here>

# [Optional] Uncomment if you want to install an additional version of node using nvm
# ARG EXTRA_NODE_VERSION=10
# RUN su node -c "source /usr/local/share/nvm/nvm.sh && nvm install ${EXTRA_NODE_VERSION}"

# [Optional] Uncomment if you want to install more global node modules
# RUN su node -c "npm install -g <your-package-list-here>""
40 changes: 40 additions & 0 deletions .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at:
// https://github.com/microsoft/vscode-dev-containers/tree/v0.245.0/containers/javascript-node
{
"name": "Next.js Dev Container",
"build": {
"dockerfile": "Dockerfile",
// Update 'VARIANT' to pick a Node version: 18, 16, 14.
// Append -bullseye or -buster to pin to an OS version.
// Use -bullseye variants on local arm64/Apple Silicon.
"args": {
"VARIANT": "16-bullseye"
}
},
// Configure tool-specific properties.
"customizations": {
// Configure properties specific to VS Code.
"vscode": {
// Add the IDs of extensions you want installed when the container is created.
"extensions": ["dbaeumer.vscode-eslint"]
}
},
// Use 'forwardPorts' to make a list of ports inside the container available locally.
// "forwardPorts": [],
// Use 'postCreateCommand' to run commands after the container is created.
// "postCreateCommand": "yarn install",
// Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
"remoteUser": "node",
"features": {
// For some reason "git" or "rust" doesn't work
"ghcr.io/devcontainers/features/git:1": "os-provided",
"ghcr.io/devcontainers/features/rust:1": "latest"
// Github latest can't be installed due to GPG issues: https://github.com/cli/cli/discussions/6222
// "github-cli": "latest",
},
// This is needed for forwarding X11: https://github.com/microsoft/vscode-remote-release/issues/3841
"runArgs": ["--net=host"],
"remoteEnv": {
"DISPLAY": ":0"
}
}
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test/integration/eslint/**
test/integration/script-loader/**/*
test/development/basic/legacy-decorators/**/*
test/production/emit-decorator-metadata/**/*.js
test/e2e/app-dir/rsc-errors/app/swc/use-client/page.js
test-timings.json
packages/next-swc/crates/**
bench/nested-deps/pages/**
Expand Down
3 changes: 2 additions & 1 deletion .github/CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@

/packages/next/build/ @timneutkens @ijjk @shuding @padmaia @huozhi
/packages/next/telemetry/ @timneutkens @ijjk @shuding @padmaia
/packages/next-swc/ @timneutkens @ijjk @shuding @padmaia
/packages/next-swc/ @timneutkens @ijjk @shuding @vercel/web-tooling
/packages/next/build/swc/ @timneutkens @ijjk @shuding @vercel/web-tooling

# Image Component (@styfle)

Expand Down
57 changes: 41 additions & 16 deletions .github/ISSUE_TEMPLATE/1.bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,36 +21,53 @@ body:
description: Please run `next info` in the root directory of your project and paste the results. You might need to use `npx --no-install next info` if next is not in the current PATH.
validations:
required: true
- type: input
- type: dropdown
attributes:
label: What browser are you using? (if relevant)
description: 'Please specify the exact version. For example: Chrome 100.0.4878.0'
label: Which area(s) of Next.js are affected? (leave empty if unsure)
multiple: true
options:
- 'App directory (appDir: true)'
- 'CLI (create-next-app)'
- 'Data fetching (gS(S)P, getInitialProps)'
- 'Dynamic imports (next/dynamic)'
- 'ESLint (eslint-config-next)'
- 'Font optimization (@next/font)'
- 'Head component/file (next/head / head.js)'
- 'Internationalization (i18n)'
- 'Image optimization (next/image, next/legacy/image)'
- 'Jest (next/jest)'
- 'Middleware / Edge (API routes, runtime)'
- 'Package manager (npm, pnpm, Yarn)'
- 'Routing (next/router, next/navigation, next/link)'
- 'Script optimization (next/script)'
- 'Standalone mode (output: "standalone")'
- 'Static HTML Export (next export)'
- 'SWC minifier (swcMinify: true)'
- 'SWC transpilation'
- 'Turbopack (--turbo)'
- 'TypeScript'
- type: input
attributes:
label: How are you deploying your application? (if relevant)
description: 'For example: next start, next export, Vercel, Other platform'
- type: textarea
attributes:
label: Describe the Bug
description: A clear and concise description of what the bug is.
label: Link to the code that reproduces this issue
description: A link to a GitHub repository, a [StackBlitz](https://stackblitz.com/fork/github/vercel/next.js/tree/canary/examples/reproduction-template), or a [CodeSandbox](https://codesandbox.io/s/github/vercel/next.js/tree/canary/examples/reproduction-template) minimal reproduction. Minimal reproductions should be created from our [bug report template with `npx create-next-app -e reproduction-template`](https://github.com/vercel/next.js/tree/canary/examples/reproduction-template) and should include only changes that contribute to the issue.
validations:
required: true
- type: textarea
attributes:
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear description of how to reproduce the issue, based on the linked minimal reproduction. Screenshots can be provided in the issue body below. If using code blocks, make sure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken.
validations:
required: true
- type: input
- type: textarea
attributes:
label: Link to reproduction
description: A link to a GitHub repository, a [StackBlitz](https://stackblitz.com/fork/github/vercel/next.js/tree/canary/examples/reproduction-template), or a [CodeSandbox](https://codesandbox.io/s/github/vercel/next.js/tree/canary/examples/reproduction-template) minimal reproduction. Minimal reproductions should be created from our [bug report template with `npx create-next-app -e reproduction-template`](https://github.com/vercel/next.js/tree/canary/examples/reproduction-template) and should include only changes that contribute to the issue.
label: Describe the Bug
description: A clear and concise description of what the bug is.
validations:
required: true
- type: textarea
attributes:
label: To Reproduce
description: Steps to reproduce the behavior, please provide a clear description of how to reproduce the issue, based on the linked minimal reproduction. Screenshots can be provided in the issue body below. If using code blocks, make sure that [syntax highlighting is correct](https://docs.github.com/en/get-started/writing-on-github/working-with-advanced-formatting/creating-and-highlighting-code-blocks#syntax-highlighting) and double check that the rendered preview is not broken.
label: Expected Behavior
description: A clear and concise description of what you expected to happen.
validations:
required: true
- type: markdown
Expand All @@ -62,3 +79,11 @@ body:
- type: markdown
attributes:
value: These steps are used to add integration tests to ensure the same issue does not happen again. Thanks in advance!
- type: input
attributes:
label: Which browser are you using? (if relevant)
description: 'Please specify the exact version. For example: Chrome 100.0.4878.0'
- type: input
attributes:
label: How are you deploying your application? (if relevant)
description: 'For example: next start, next export, Vercel, Other platform'
42 changes: 42 additions & 0 deletions .github/actions/issue-validator/canary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
Please verify that your issue can be recreated with `next@canary`.

### **Why was this issue marked with the `please verify canary` label?**

We noticed the provided reproduction was using an older version of Next.js, instead of `canary`.

The canary version of Next.js ships daily and includes all features and fixes that have not been released to the stable version yet. You can think of canary as a _public beta_. Some issues may already be fixed in the canary version, so please verify that your issue reproduces by running `npm install next@canary` and test it in your project, using your reproduction steps.

If the issue does not reproduce with the `canary` version, then it has already been fixed and this issue can be closed.

### **How can I quickly verify if my issue has been fixed in `canary`?**

The safest way is to install `next@canary` in your project and test it, but you can also search through [closed Next.js issues](https://github.com/vercel/next.js/issues?q=is%3Aissue+is%3Aclosed) for duplicates or check the [Next.js releases](https://github.com/vercel/next.js/releases). You can also use the GitHub [template](https://github.com/vercel/next.js/tree/canary/examples/reproduction-template) (preferred), or the [CodeSandbox](https://codesandbox.io/s/github/vercel/next.js/tree/canary/examples/reproduction-template) or [StackBlitz](https://stackblitz.com/fork/github/vercel/next.js/tree/canary/examples/reproduction-template) templates to create a reproduction with `canary` from scratch.

### **My issue has been open for a long time, why do I need to verify `canary` now?**

Next.js does not backport bug fixes to older versions of Next.js. Instead, we are trying to introduce only a minimal amount of breaking changes between major releases.

### **What happens if I don't verify against the canary version of Next.js?**

An issue with the `please verify canary` that receives no meaningful activity (e.g. new comments that acknowledge verification against `canary`) will be automatically closed and locked after 30 days.

If your issue has not been resolved in that time and it has been closed/locked, please open a new issue, with the required reproduction, using `next@canary`.

### **I did not open this issue, but it is relevant to me, what can I do to help?**

Anyone experiencing the same issue is welcome to provide a minimal reproduction following the above steps. Furthermore, you can upvote the issue using the :+1: reaction on the topmost comment (please **do not** comment "I have the same issue" without repro steps). Then, we can sort issues by votes to prioritize.

### **I think my reproduction is good enough, why aren't you looking into it quicker?**

We look into every Next.js issue and constantly monitor open issues for new comments.

However, sometimes we might miss one or two due to the popularity/high traffic of the repository. We apologize, and kindly ask you to refrain from tagging core maintainers, as that will usually not result in increased priority.

Upvoting issues to show your interest will help us prioritize and address them as quickly as possible. That said, every issue is important to us, and if an issue gets closed by accident, we encourage you to open a new one linking to the old issue and we will look into it.

### **Useful Resources**

- [How to Contribute to Open Source (Next.js)](https://www.youtube.com/watch?v=cuoNzXFLitc)
- [How to create a Minimal, Complete, and Verifiable example](https://stackoverflow.com/help/mcve)
- [Reporting a Next.js bug](https://github.com/vercel/next.js/blob/canary/.github/ISSUE_TEMPLATE/1.bug_report.yml)
- [Next.js Triaging issues](https://github.com/vercel/next.js/blob/canary/contributing/repository/triaging.md)
4 changes: 2 additions & 2 deletions .github/actions/issue-validator/index.mjs

Large diffs are not rendered by default.

Loading