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

Merged
merged 194 commits into from
Oct 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
194 commits
Select commit Hold shift + click to select a range
001a67d
Add test fixture `e2e/app-dir/next-image` (#41609)
styfle Oct 20, 2022
bdc53ef
Root layout head not required (#41621)
Oct 21, 2022
6f43c90
feat(edge): adds AsyncLocalStorage support to the edge function sandb…
feugy Oct 21, 2022
7102050
Add support for `images.loaderFile` config (#41585)
styfle Oct 21, 2022
14c9376
BREAKING CHANGE: Remove React 17 (#41629)
timneutkens Oct 21, 2022
6fb9a19
Update `next-image-experimental` codemod to handle loaders (#41633)
styfle Oct 21, 2022
7796b1e
Font loader default config (#41628)
Oct 22, 2022
3a87e81
Disable using prebundled of react for appDir (#41635)
huozhi Oct 22, 2022
c204552
v12.3.2-canary.33
ijjk Oct 22, 2022
b6cfeeb
Refactor hot-reloader client for app (#41598)
timneutkens Oct 22, 2022
9dae7a8
Enable ReactRefreshLogBox-builtins.test.ts, remove loader from import…
timneutkens Oct 22, 2022
b525160
layout: add build status for app routes (#41627)
feedthejim Oct 22, 2022
392c4d0
Update @types/node to 14.14.31 (#41634)
javivelasco Oct 22, 2022
d260ad2
Change `data-nimg` attribute on `next/image` (#41612)
styfle Oct 22, 2022
2e2cc55
chore(examples): fix typo in [videoId].tsx (#41655)
eltociear Oct 22, 2022
78138af
chore: Update swc_core to `v0.40.7` (#41613)
kdy1 Oct 22, 2022
4ce259f
Update to handle correct react version with app (#41658)
ijjk Oct 22, 2022
e0b04f2
feat(cna): add template (#41660)
balazsorban44 Oct 22, 2022
0b669a1
Improve errors for invalid component export (#41657)
huozhi Oct 22, 2022
73499e4
Add experimental warning note (#41666)
shuding Oct 22, 2022
b0f87fb
Bundle ssr client layer excepts react externals (#41606)
huozhi Oct 22, 2022
aca3e98
Improve error message for wrong props (#41668)
shuding Oct 23, 2022
9c7e8b6
Remove deprecated `webpack5` config option (#41667)
styfle Oct 23, 2022
a1a26ca
v12.3.2-canary.34
huozhi Oct 23, 2022
0a97d07
Improve error messages (#41669)
shuding Oct 23, 2022
a105515
Create root layout (#41523)
Oct 23, 2022
70a128e
Ensure we properly normalize /index in minimal mode (#41678)
ijjk Oct 23, 2022
374ca38
Update params of PageProps to string map (#41677)
huozhi Oct 23, 2022
0b921a6
Expose AsyncLocalStorage on global for react (#41683)
ijjk Oct 23, 2022
bed983c
Update URL malformed edge error (#41685)
ijjk Oct 23, 2022
b6ed1a7
Update to latest react experimental (#41671)
ijjk Oct 23, 2022
2c8d295
v12.3.2-canary.35
ijjk Oct 23, 2022
9c07993
Revert "Add experimental warning note" (#41688)
timneutkens Oct 23, 2022
6687f28
Fix typos: code comment (#41691)
hiro0218 Oct 24, 2022
4f9e3bf
useSelectedLayoutSegment -> useSelectedLayoutSegments, add useSelecte…
timneutkens Oct 24, 2022
d5a682e
Ensure `AsyncLocalStorage` for static generation is shared for client…
javivelasco Oct 24, 2022
af39504
App dir sass (#41690)
Oct 24, 2022
48c7a80
chore: Update swc_core to `v0.40.13` (#41692)
kdy1 Oct 24, 2022
1fa0068
Disable esm resolving for appDir and alias react (#41687)
huozhi Oct 24, 2022
b411567
Print error when next dev has conflicting app & page (#41656)
styfle Oct 24, 2022
496b2eb
v12.3.2-canary.36
ijjk Oct 24, 2022
5de6f46
Support next option for Request (#41614)
huozhi Oct 24, 2022
db3e953
Revert "chore: Update swc_core to `v0.40.13`" (#41699)
ijjk Oct 24, 2022
49842b9
v12.3.2-canary.37
ijjk Oct 24, 2022
752f06f
Revert "Revert "chore: Update swc_core to `v0.40.13`"" (#41700)
ijjk Oct 24, 2022
2d9e17c
chore: Update swc_core to `v0.40.16` (#41702)
kdy1 Oct 24, 2022
a9d1452
Move redirect and notFound to navigation exports (#41703)
huozhi Oct 24, 2022
ef7de2a
Font subsets in function call (#41694)
Oct 24, 2022
13f6eff
Pin build image version (#41704)
Brooooooklyn Oct 24, 2022
fbe1ffb
Include resolved external package dirs (#41706)
shuding Oct 24, 2022
ceb07ff
v12.3.2-canary.38
ijjk Oct 24, 2022
95af245
Fail on prerendering with dynamic error config (#41707)
javivelasco Oct 24, 2022
20f5db0
Update precompiled react to next channel (#41708)
huozhi Oct 24, 2022
92254d1
Emit VSCode settings for TypeScript (#41710)
shuding Oct 24, 2022
997a4f3
v12.3.2-canary.39
ijjk Oct 24, 2022
8935529
Upgrade Edge Runtime v.1.1.0 (#41727)
Kikobeats Oct 24, 2022
fedcae4
Update custom-error-page for getServerSideProps (#41723)
HugoDF Oct 24, 2022
792c661
examples(with-typescript-graphql): migrate to Yoga v3 and codegen new…
charlypoly Oct 24, 2022
5223d66
Bump version tailwindcss example to 3.2 (#41681)
saulloalmeida Oct 24, 2022
ef62bf3
Fix module trace error messages to not include queries (#41738)
shuding Oct 24, 2022
fa04df2
Fix ignored file path (#41747)
shuding Oct 24, 2022
3a0fc13
Update CNA app template (#41701)
ijjk Oct 24, 2022
383ec5a
Fix static generation and crawler requests (#41735)
shuding Oct 24, 2022
b177013
Add error if `app` detected but config is missing (#41696)
styfle Oct 24, 2022
c5111f7
Update font avg (#41734)
Oct 24, 2022
8fd5f0b
Add default not found template (#41750)
shuding Oct 24, 2022
e9684b0
Remove unneeded types (#41752)
shuding Oct 24, 2022
4b8f16c
Add message for `appDir` feedback (#41751)
javivelasco Oct 24, 2022
17a4f6a
v12.3.2-canary.40
ijjk Oct 24, 2022
8678865
feat: set a better type for the default image loader (#41639)
amirhhashemi Oct 24, 2022
c124cab
Fix edge entry layer resolution bug (#41757)
shuding Oct 25, 2022
f5a89eb
Dont apply existing externals path changing to rsc layers (#41744)
huozhi Oct 25, 2022
2277eb9
Enable appDir e2e deploy tests #1 (#41759)
javivelasco Oct 25, 2022
1d596ca
Pathname and search params SSG (#41247)
Oct 25, 2022
78bf0a7
Update react next channel (#41761)
huozhi Oct 25, 2022
10e7d45
Font description and error messages (#41764)
Oct 25, 2022
16c7480
Updating avg width metrics for google fonts (#41755)
janicklas-ralph Oct 25, 2022
a5d6742
Bump minimum Node.js version to 14.6.0 (#41765)
styfle Oct 25, 2022
e107bc4
Throw error <a> child in <Link> (#41756)
styfle Oct 25, 2022
2ac7e4c
docs: update `ci-build-caching` (#41763)
eve0415 Oct 25, 2022
455161c
[typescript] fix typo in edge runtime name (#41773)
Schniz Oct 25, 2022
e8d5de6
Only import dev overlay for dev mode (#41771)
huozhi Oct 25, 2022
67c802a
Add initial head handling in app (#41607)
ijjk Oct 25, 2022
f2d2dde
Fix revalidate during dev (#41772)
ijjk Oct 25, 2022
fe5a502
v12.3.2-canary.41
ijjk Oct 25, 2022
e7f97c3
Fix no-store test case (#41775)
ijjk Oct 25, 2022
a090b5c
Ensure async_hooks are not resolved for client (#41778)
ijjk Oct 25, 2022
b69dcb5
Make ship happen (#41776)
sokra Oct 25, 2022
bd16ef3
v12.3.2-canary.42
ijjk Oct 25, 2022
f9768a7
Add head handling (#41768)
timneutkens Oct 25, 2022
e841558
Update async storage fix (#41779)
ijjk Oct 25, 2022
bee5215
v12.3.2-canary.43
ijjk Oct 25, 2022
47e5ebe
update publish
ijjk Oct 25, 2022
63aab20
v13.0.0
ijjk Oct 25, 2022
2478708
Add turbopack example (#41789)
jaredpalmer Oct 25, 2022
b343580
examples: Update turbopack (#41793)
jaredpalmer Oct 25, 2022
3800f26
examples: Remove turbo.json from turbopack example (#41794)
jaredpalmer Oct 25, 2022
ba02680
example: add postcss as with-turbopack example devDep (#41795)
jaredpalmer Oct 25, 2022
1b26367
Update Cargo.lock file
Brooooooklyn Oct 26, 2022
83347b3
Rest of options in experimental.turbotrace and documentation (#41817)
Brooooooklyn Oct 26, 2022
bad43cf
fix example command in issue template for create-next-app (#41803)
koenpunt Oct 26, 2022
bba571a
Update with-supertokens example (#41802)
rishabhpoddar Oct 26, 2022
d402bb7
Remove swcMinify: true since this is 13's default (#41869)
karlhorky Oct 26, 2022
fb8febd
chore: remove `swcMinify: true` as it's the new default. (#41877)
balazsorban44 Oct 26, 2022
3bf71e4
Update link in Turbopack example. (#41876)
leerob Oct 26, 2022
58980c6
fix `any` type in example `with-turbopack` (#41798)
nekochan0122 Oct 26, 2022
97422c6
Update with-aws-amplify with TypeScript (#41815)
Oct 26, 2022
a1072c6
[Doc] Update Next.js + Static Web Apps (#41857)
Reshmi-Sriram Oct 26, 2022
5dd4999
Convert many examples to TypeScript (#41825)
maxproske Oct 26, 2022
11d9925
Fixed errors at with-passport-and-next-connect. (#41897)
balazsorban44 Oct 26, 2022
a05a0c7
Update the documentation. (#41758)
leerob Oct 26, 2022
9781c62
Fix revalidate check in client component (#41917)
ijjk Oct 27, 2022
b776bb6
chore(examples): use `next@latest` in all examples (#41922)
balazsorban44 Oct 27, 2022
9e173bf
Fix invalid markdown lang (#41926)
ijjk Oct 27, 2022
8035770
chore: update example dev script (#41904)
Kosai106 Oct 27, 2022
0ab2bed
Fix more incorrect markdown langs (#41939)
ijjk Oct 27, 2022
c6107a9
Add data attribute to div to distinguish it (#41889)
timneutkens Oct 27, 2022
edba939
test(dev): support to run test with --turbo (#41908)
kwonoj Oct 27, 2022
e64bf98
Update font links and add missing error (#41910)
Oct 27, 2022
05d4c9e
Fix lint cli help (#41783)
bertho-zero Oct 27, 2022
0e25f8c
[Doc] Update inline documentation for next/link (#41871)
abayomi185 Oct 27, 2022
4d20beb
BREAKING CHANGE: feat(edge): split `NextCookies` to `RequestCookies` …
balazsorban44 Oct 27, 2022
0beed35
v13.0.1-canary.0
ijjk Oct 27, 2022
191710d
Show error message when using legacy props on new `next/image` (#41930)
styfle Oct 27, 2022
288144c
Upgrade Edge Runtime (#41987)
Kikobeats Oct 27, 2022
882f338
docs: Update the version history in the middleware page (#41949)
nuta Oct 27, 2022
2e9e54b
Fix typo: docs/basic-features/font-optimization.md (#41967)
yasath Oct 27, 2022
b512f8d
Revert "Include frameworks in main-app" (#41997)
shuding Oct 27, 2022
227c35c
Update README.md (#41959)
serkanbektas Oct 27, 2022
bbe7fdd
Fix broken link in `@next/font` docs (#42002)
steven-tey Oct 27, 2022
5d2e278
fix(next/dev): do not suppress error from bindings (#41989)
kwonoj Oct 27, 2022
c8983a6
Fix page static info extractor for app dir (#42001)
shuding Oct 27, 2022
0cb1762
docs: clarify PR template instructions (#41957)
jimCresswell Oct 27, 2022
b9140ed
Add never return type for redirect() and notFound() (#42009)
timneutkens Oct 27, 2022
4b00495
Google fonts multiple weights & styles (#42008)
Oct 27, 2022
1b2e61c
Update e2e test for app-dir edge (#42015)
ijjk Oct 27, 2022
c17e7cb
[docs] Fix Grammar in Step 8. (#42018)
alphaxek Oct 27, 2022
3618b90
Merge app internal chunk into main chunk for layouts (#41902)
huozhi Oct 27, 2022
491a21b
Fix build type error of page params (#42019)
shuding Oct 27, 2022
9fe18e8
Add link from `next/image` docs to example (#42020)
styfle Oct 27, 2022
65083f8
Allow disabling Strict mode in app (#41894)
timneutkens Oct 28, 2022
70e7e58
Update react next channel (#42021)
huozhi Oct 28, 2022
3275eb8
Fix typo. (#42067)
LorenzoBloedow Oct 28, 2022
06ded79
Fix benchmark link typo in Turbopack example (#42064)
iiegor Oct 28, 2022
57426a2
Update Examples to use React 18 (#42027)
craigwheeler Oct 28, 2022
cff0745
docs: update version install commands in upgrade guide (#42073)
balazsorban44 Oct 28, 2022
d07ae34
Update font-optimization.md (#42036)
peraltafederico Oct 28, 2022
e2a98cd
chore(examples): fix `with-aphrodite` exapmle (#42078)
balazsorban44 Oct 28, 2022
80843e1
Fix turbo custom config detection (#42022)
ijjk Oct 28, 2022
984bd77
Fix css modules imports in client components (#42077)
shuding Oct 28, 2022
e2e1048
fix: Data URL images with 'fill' are always triggering 'missing sizes…
teobler Oct 28, 2022
90f0f72
added @latest to codemods page (#42091)
ismaelrumzan Oct 28, 2022
2411a62
chore(examples): move `app` directories (#42094)
balazsorban44 Oct 28, 2022
7ef653c
docs: clarify env inclusion in bundles (#41950)
jimCresswell Oct 28, 2022
dc3cd95
Fix turbo css-modules test (#42103)
ijjk Oct 29, 2022
d510204
types: leverage webpack types and remove casting (#42104)
huozhi Oct 29, 2022
6e734d9
Fix CSS imports from outside of the app dir when src folder is presen…
shuding Oct 29, 2022
6028a7a
Remove react root condition and always use concurrent mode (#42141)
huozhi Oct 29, 2022
ff0d082
Keep react-dom/server.node in precompiled (#42138)
huozhi Oct 29, 2022
ee6601c
Broken link in example page (#42135)
IngoVals Oct 30, 2022
9bf811e
Fix typo in importing counterReducer (#42162)
jaykch Oct 30, 2022
0a0c8e0
Enhanced grammar. (#42148)
alphaxek Oct 30, 2022
c19c100
grammar fix in adding-examples README. (#42152)
alphaxek Oct 30, 2022
f355dd4
[docs] Enhanced grammar in building README. (#42155)
alphaxek Oct 30, 2022
676be08
Warn when legacy prop detected on `next/image` (#42102)
styfle Oct 30, 2022
d651e27
Fix failing codemod test `url-to-withrouter` (#42109)
styfle Oct 30, 2022
1d58c0a
Improve TypeScript plugin error when the configuration is not statica…
shuding Oct 30, 2022
a67f100
Ensure app revalidate has correct default (#42168)
ijjk Oct 30, 2022
56dd821
Update turbo crates (#42014)
ijjk Oct 30, 2022
9ac42fd
Update vscode config handling (#42169)
ijjk Oct 30, 2022
6d53e8b
v13.0.1-canary.1
ijjk Oct 30, 2022
2e6588d
fix: allow resolving large JSON data in server components (#42025)
balazsorban44 Oct 30, 2022
e2b6c87
v13.0.1-canary.2
timneutkens Oct 30, 2022
8ada894
Correcting documentation (#42179)
artdevgame Oct 30, 2022
ab42da0
Run next/link codemod for Next.js 13 on examples (#41913)
timneutkens Oct 30, 2022
29c5acd
issue-41925 fix: skip duplicate props when transferring props from an…
ishaqibrahimbot Oct 30, 2022
86b3e7d
Ensure we detect config correctly with turbo flag (#42201)
ijjk Oct 31, 2022
b7a9b06
Fix next/link codemod errors in with-turbopack (#42203)
ijjk Oct 31, 2022
389c77f
feat(create-next-app): JS/TS prompt (with appDir support); enhanced t…
ctjlewis Oct 31, 2022
0affdeb
Fix typo `pnpm-lock.yam` in `.prettierignore_staged` (#42212)
wxh06 Oct 31, 2022
4316d38
docs(create-next-app): copy changes from #42012 to package-level READ…
ctjlewis Oct 31, 2022
1361595
update turbo version (#42228)
sokra Oct 31, 2022
005cf9b
Adding note about beta docs (#42230)
timeyoutakeit Oct 31, 2022
2280a2d
Fix CSS modules imports from outside of the root directory (#42106)
shuding Oct 31, 2022
b7ea0a5
Add prompt for ESLint to CNA (#42218)
ijjk Oct 31, 2022
cc0c85e
Default font config fix (#42235)
Oct 31, 2022
ca1946b
Multiple local font weights and styles (#42232)
Oct 31, 2022
76dc2dc
v13.0.1-canary.3
ijjk Oct 31, 2022
848bb3a
Escape HTML on "<Link> with <a> child" page (#42114)
Oct 31, 2022
8e3586d
Optimize bundle size for appDir (#42252)
timneutkens Oct 31, 2022
a4f9d77
Update failing e2e middleware response test (#42256)
ijjk Oct 31, 2022
96696c2
Add event for dev process stop (#42255)
ijjk Oct 31, 2022
50ced11
Add E2E test for @vercel/og API route (#42258)
ijjk Oct 31, 2022
1c1b503
v13.0.1-canary.4
ijjk Oct 31, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ packages/next-swc/crates/**
bench/nested-deps/pages/**
bench/nested-deps/components/**
packages/next-bundle-analyzer/index.d.ts
examples/with-typescript-graphql/lib/gql/
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/1.bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ body:
- type: input
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.
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
Expand Down
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,5 @@ Choose the right checklist for the change that you're making:

## Documentation / Examples

- [ ] Make sure the linting passes by running `pnpm lint`
- [ ] Make sure the linting passes by running `pnpm build && pnpm lint`
- [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
297 changes: 5 additions & 292 deletions .github/workflows/build_test_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -316,82 +316,6 @@ jobs:
path: |
test/traces

testDevReact17:
name: Test Development (react v17)
runs-on: ubuntu-latest
needs: [build, build-native-test]
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
NEXT_TEST_REACT_VERSION: ^17
strategy:
fail-fast: false
matrix:
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
node-version: 16
check-latest: true

- run: echo ${{needs.build.outputs.docsChange}}

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- uses: actions/download-artifact@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
name: next-swc-test-binary
path: packages/next-swc/native

- run: npm i -g pnpm@${PNPM_VERSION}
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 10
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npx @replayio/playwright install chromium
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: node run-tests.js --type development --timings -g ${{ matrix.group }}/2
name: Run test/development
if: ${{needs.build.outputs.docsChange == 'nope'}}
env:
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testDevReact17 / Group ${{ matrix.group }}
RECORD_ALL_CONTENT: 1
RECORD_REPLAY: 1
RECORD_REPLAY_TEST_METRICS: 1
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}

- uses: replayio/action-upload@v0.4.5
if: always()
with:
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

- name: Upload test trace
if: always()
uses: actions/upload-artifact@v3
with:
name: test-trace
if-no-files-found: ignore
retention-days: 2
path: |
test/traces

testDevE2E:
name: Test Development (E2E)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -471,84 +395,6 @@ jobs:
path: |
test/traces

testDevE2EReact17:
name: Test Development (E2E) (react v17)
runs-on: ubuntu-latest
needs: [build, build-native-test]
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
NEXT_TEST_REACT_VERSION: ^17
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }}
strategy:
fail-fast: false
matrix:
group: [1, 2, 3]
steps:
- name: Setup node
uses: actions/setup-node@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
node-version: 16
check-latest: true

- run: echo ${{needs.build.outputs.docsChange}}

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- uses: actions/download-artifact@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
name: next-swc-test-binary
path: packages/next-swc/native

- run: npm i -g pnpm@${PNPM_VERSION}
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 10
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npx @replayio/playwright install chromium
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
name: Run test/e2e (dev)
if: ${{needs.build.outputs.docsChange == 'nope'}}
env:
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testDevE2EReact17 / Group ${{ matrix.group }}
RECORD_ALL_CONTENT: 1
RECORD_REPLAY: 1
NEXT_TEST_MODE: dev
RECORD_REPLAY_TEST_METRICS: 1
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}

- uses: replayio/action-upload@v0.4.5
if: always()
with:
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

- name: Upload test trace
if: always()
uses: actions/upload-artifact@v3
with:
name: test-trace
if-no-files-found: ignore
retention-days: 2
path: |
test/traces

testProd:
name: Test Production
runs-on: ubuntu-latest
Expand Down Expand Up @@ -616,72 +462,6 @@ jobs:
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

testProdReact17:
name: Test Production (react v17)
runs-on: ubuntu-latest
needs: [build, build-native-test]
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
NEXT_TEST_REACT_VERSION: ^17
strategy:
fail-fast: false
matrix:
group: [1, 2]
steps:
- name: Setup node
uses: actions/setup-node@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
node-version: 16
check-latest: true

- run: echo ${{needs.build.outputs.docsChange}}

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- uses: actions/download-artifact@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
name: next-swc-test-binary
path: packages/next-swc/native

- run: npm i -g pnpm@${PNPM_VERSION}
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 10
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npx @replayio/playwright install chromium
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: node run-tests.js --type production --timings -g ${{ matrix.group }}/2
name: Run test/production
if: ${{needs.build.outputs.docsChange == 'nope'}}
env:
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testProdReact17 / Group ${{ matrix.group }}
RECORD_ALL_CONTENT: 1
RECORD_REPLAY: 1
RECORD_REPLAY_TEST_METRICS: 1
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}

- uses: replayio/action-upload@v0.4.5
if: always()
with:
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

testProdE2E:
name: Test Production (E2E)
runs-on: ubuntu-latest
Expand Down Expand Up @@ -751,74 +531,6 @@ jobs:
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

testProdE2EReact17:
name: Test Production (E2E) (react v17)
runs-on: ubuntu-latest
needs: [build, build-native-test]
env:
NEXT_TELEMETRY_DISABLED: 1
NEXT_TEST_JOB: 1
NEXT_TEST_REACT_VERSION: ^17
TEST_TIMINGS_TOKEN: ${{ secrets.TEST_TIMINGS_TOKEN }}
strategy:
fail-fast: false
matrix:
group: [1, 2, 3]
steps:
- name: Setup node
uses: actions/setup-node@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
node-version: ${{ matrix.node }}
check-latest: true

- run: echo ${{needs.build.outputs.docsChange}}

# https://github.com/actions/virtual-environments/issues/1187
- name: tune linux network
run: sudo ethtool -K eth0 tx off rx off

- uses: actions/cache@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
id: restore-build
with:
path: ./*
key: ${{ github.sha }}-${{ github.run_number }}

- uses: actions/download-artifact@v3
if: ${{needs.build.outputs.docsChange == 'nope'}}
with:
name: next-swc-test-binary
path: packages/next-swc/native

- run: npm i -g pnpm@${PNPM_VERSION}
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npm i -g playwright-chromium@1.22.2 && npx playwright install-deps
timeout-minutes: 10
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: npx @replayio/playwright install chromium
if: ${{needs.build.outputs.docsChange == 'nope'}}

- run: node run-tests.js --type e2e --timings -g ${{ matrix.group }}/3
name: Run test/e2e (production)
if: ${{needs.build.outputs.docsChange == 'nope'}}
env:
RECORD_REPLAY_METADATA_TEST_RUN_TITLE: testProdE2EReact17 / Group ${{ matrix.group }}
RECORD_ALL_CONTENT: 1
RECORD_REPLAY: 1
NEXT_TEST_MODE: start
RECORD_REPLAY_TEST_METRICS: 1
RECORD_REPLAY_WEBHOOK_URL: ${{ secrets.RECORD_REPLAY_WEBHOOK_URL }}

- uses: replayio/action-upload@v0.4.5
if: always()
with:
api-key: rwk_iKsQnEoQwKd31WAJxgN9ARPFuAlyXlVrDH4uhYpRnti
public: true
filter: ${{ 'function($v) { $v.metadata.test.result = "failed" }' }}

testIntegration:
name: Test Integration
runs-on: ubuntu-latest
Expand Down Expand Up @@ -1455,18 +1167,19 @@ jobs:
target: 'i686-pc-windows-msvc'
- host: ubuntu-latest
target: 'x86_64-unknown-linux-gnu'
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-x64
build: >-
set -e &&
rustup toolchain install "${RUST_TOOLCHAIN}" &&
rustup default "${RUST_TOOLCHAIN}" &&
rustup target add x86_64-unknown-linux-gnu &&
npm i -g "@napi-rs/cli@${NAPI_CLI_VERSION}" "turbo@${TURBO_VERSION}" && if [ ! -f $(dirname $(which yarn))/pnpm ]; then ln -s $(which yarn) $(dirname $(which yarn))/pnpm;fi &&
unset CC_x86_64_unknown_linux_gnu && unset CC &&
turbo run build-native --cache-dir=".turbo" -- --release --target x86_64-unknown-linux-gnu &&
strip packages/next-swc/native/next-swc.*.node
- host: ubuntu-latest
target: 'x86_64-unknown-linux-musl'
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-alpine
build: >-
set -e &&
rustup toolchain install "${RUST_TOOLCHAIN}" &&
Expand All @@ -1488,7 +1201,7 @@ jobs:
strip -x packages/next-swc/native/next-swc.*.node
- host: ubuntu-latest
target: 'aarch64-unknown-linux-gnu'
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-debian-aarch64
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-aarch64
build: >-
set -e &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
Expand Down Expand Up @@ -1540,7 +1253,7 @@ jobs:
${ANDROID_NDK_LATEST_HOME}/toolchains/llvm/prebuilt/linux-x86_64/bin/llvm-strip packages/next-swc/native/next-swc.*.node
- host: ubuntu-latest
target: 'aarch64-unknown-linux-musl'
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:lts-alpine
docker: ghcr.io/napi-rs/napi-rs/nodejs-rust:stable-2022-10-24-alpine
build: >-
set -e &&
export JEMALLOC_SYS_WITH_LG_PAGE=16 &&
Expand Down
4 changes: 2 additions & 2 deletions .prettierignore_staged
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ packages/next/bundles/webpack/packages/*.runtime.js
lerna.json
packages/next-codemod/transforms/__testfixtures__/**/*
packages/next-codemod/transforms/__tests__/**/*
pnpm-lock.yam
pnpm-lock.yaml
.github/actions/issue-validator/index.mjs
**/convex/_generated/**
**/convex/_generated/**
2 changes: 1 addition & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "pnpm",
"runtimeArgs": ["debug-react-exp", "dev", "test/e2e/app-dir/app"],
"runtimeArgs": ["debug", "dev", "test/e2e/app-dir/app"],
"skipFiles": ["<node_internals>/**"],
"env": {
"NEXT_PRIVATE_LOCAL_WEBPACK": "1"
Expand Down
Loading