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

Add more TypeScript types #7054

Merged
merged 22 commits into from
Apr 22, 2019
Merged

Add more TypeScript types #7054

merged 22 commits into from
Apr 22, 2019

Conversation

lfades
Copy link
Member

@lfades lfades commented Apr 16, 2019

The purpose of this PR is to add missing types that can be very useful for Typescript projects using Next.js and for the core too.

The types are not yet being published to NPM, that will come in another PR.

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.7s 12.7s -983ms
node_modules Size 43.9 MB 43.9 MB ⚠️ +1.56 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +108 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.6 kB ⚠️ +34 B
Client _app Size 2.49 kB 2.56 kB ⚠️ +77 B
Client _app gzip Size 1.04 kB 1.07 kB ⚠️ +23 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 580 kB ⚠️ +313 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.4s 14.7s ⚠️ +273ms
node_modules Size 43.9 MB 43.9 MB ⚠️ +1.56 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +108 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.6 kB ⚠️ +34 B
Client _app Size 2.49 kB 2.56 kB ⚠️ +77 B
Client _app gzip Size 1.04 kB 1.07 kB ⚠️ +23 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 337 kB 338 kB ⚠️ +148 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB ⚠️ +39 B
Serverless pages/index Size 330 kB 330 kB ⚠️ +148 B
Serverless pages/index gzip Size 85.4 kB 85.5 kB ⚠️ +40 B
Serverless pages/_error Size 331 kB 331 kB ⚠️ +148 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB ⚠️ +39 B
Serverless pages/routerDirect Size 330 kB 331 kB ⚠️ +148 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB ⚠️ +41 B
Serverless pages/withRouter Size 330 kB 331 kB ⚠️ +148 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB ⚠️ +38 B
Build Dir Size 2.12 MB 2.12 MB ⚠️ +960 B

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.3s 12.3s ⚠️ +61ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +108 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.6 kB ⚠️ +34 B
Client _app Size 2.49 kB 2.56 kB ⚠️ +77 B
Client _app gzip Size 1.04 kB 1.07 kB ⚠️ +23 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 580 kB ⚠️ +322 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.8s 13.3s -415ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +108 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.6 kB ⚠️ +34 B
Client _app Size 2.49 kB 2.56 kB ⚠️ +77 B
Client _app gzip Size 1.04 kB 1.07 kB ⚠️ +23 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 337 kB 338 kB ⚠️ +175 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB ⚠️ +52 B
Serverless pages/index Size 330 kB 330 kB ⚠️ +175 B
Serverless pages/index gzip Size 85.4 kB 85.5 kB ⚠️ +53 B
Serverless pages/_error Size 331 kB 331 kB ⚠️ +175 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB ⚠️ +51 B
Serverless pages/routerDirect Size 330 kB 331 kB ⚠️ +175 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB ⚠️ +50 B
Serverless pages/withRouter Size 330 kB 331 kB ⚠️ +175 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB ⚠️ +52 B
Build Dir Size 2.12 MB 2.12 MB ⚠️ +1.09 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 11.5s 12s ⚠️ +491ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -514 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.7s 13.1s ⚠️ +350ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -573 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB -22 B
Serverless pages/index Size 330 kB 330 kB -573 B
Serverless pages/index gzip Size 85.5 kB 85.4 kB -23 B
Serverless pages/_error Size 331 kB 330 kB -573 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -29 B
Serverless pages/routerDirect Size 331 kB 330 kB -573 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -31 B
Serverless pages/withRouter Size 331 kB 330 kB -573 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB -26 B
Build Dir Size 2.12 MB 2.11 MB -2.78 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 11.7s 11.9s ⚠️ +145ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -514 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.2s 13.3s ⚠️ +157ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -573 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB -23 B
Serverless pages/index Size 330 kB 330 kB -573 B
Serverless pages/index gzip Size 85.5 kB 85.4 kB -25 B
Serverless pages/_error Size 331 kB 330 kB -573 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -27 B
Serverless pages/routerDirect Size 331 kB 330 kB -573 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -31 B
Serverless pages/withRouter Size 331 kB 330 kB -573 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB -24 B
Build Dir Size 2.12 MB 2.11 MB -2.78 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.2s 11.7s -534ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -514 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.8s 13.1s ⚠️ +299ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +42 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -18 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +31 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +11 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -554 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB -17 B
Serverless pages/index Size 330 kB 330 kB -554 B
Serverless pages/index gzip Size 85.5 kB 85.4 kB -18 B
Serverless pages/_error Size 331 kB 330 kB -554 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -22 B
Serverless pages/routerDirect Size 331 kB 330 kB -554 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -24 B
Serverless pages/withRouter Size 331 kB 330 kB -554 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB -18 B
Build Dir Size 2.12 MB 2.11 MB -2.68 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.9s 13.3s ⚠️ +457ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +44 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -16 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +33 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +13 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -510 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.2s 14.3s ⚠️ +92ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +44 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -16 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +33 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +13 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -548 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB -16 B
Serverless pages/index Size 330 kB 330 kB -548 B
Serverless pages/index gzip Size 85.5 kB 85.4 kB -18 B
Serverless pages/_error Size 331 kB 330 kB -548 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -21 B
Serverless pages/routerDirect Size 331 kB 330 kB -548 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -24 B
Serverless pages/withRouter Size 331 kB 330 kB -548 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB -17 B
Build Dir Size 2.12 MB 2.11 MB -2.65 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.3s 12s -251ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -572 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.4s 13.6s -796ms
node_modules Size 43.9 MB 45.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -489 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB ⚠️ +1 B
Serverless pages/index Size 330 kB 330 kB -489 B
Serverless pages/index gzip Size 85.5 kB 85.5 kB ⚠️ +4 B
Serverless pages/_error Size 331 kB 330 kB -489 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -1 B
Serverless pages/routerDirect Size 331 kB 330 kB -489 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -2 B
Serverless pages/withRouter Size 331 kB 330 kB -489 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB ⚠️ +4 B
Build Dir Size 2.12 MB 2.11 MB -2.42 kB

@lfades lfades changed the title WIP: Move client pages to Typescript Move client pages to Typescript Apr 19, 2019
@timneutkens timneutkens changed the title Move client pages to Typescript Add more TypeScript types Apr 22, 2019
@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12s 11.9s -137ms
node_modules Size 39.9 MB 41.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 580 kB 579 kB -572 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.8s 14s ⚠️ +156ms
node_modules Size 39.9 MB 41.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 337 kB -489 B
Serverless pages/link gzip Size 87.4 kB 87.4 kB -15 B
Serverless pages/index Size 330 kB 330 kB -489 B
Serverless pages/index gzip Size 85.5 kB 85.5 kB -14 B
Serverless pages/_error Size 331 kB 330 kB -489 B
Serverless pages/_error gzip Size 85.3 kB 85.3 kB -18 B
Serverless pages/routerDirect Size 331 kB 330 kB -489 B
Serverless pages/routerDirect gzip Size 85.5 kB 85.5 kB -19 B
Serverless pages/withRouter Size 331 kB 330 kB -489 B
Serverless pages/withRouter gzip Size 85.6 kB 85.6 kB -16 B
Build Dir Size 2.12 MB 2.12 MB -2.42 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.5s 12.2s -346ms
node_modules Size 39.9 MB 41.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 581 kB 580 kB -571 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.7s 15s ⚠️ +300ms
node_modules Size 39.9 MB 41.7 MB ⚠️ +1.79 MB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -488 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB -13 B
Serverless pages/index Size 331 kB 331 kB -488 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB -8 B
Serverless pages/_error Size 332 kB 331 kB -488 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB -17 B
Serverless pages/routerDirect Size 331 kB 331 kB -488 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB -17 B
Serverless pages/withRouter Size 332 kB 331 kB -488 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB -11 B
Build Dir Size 2.12 MB 2.12 MB -2.41 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.1s 11.2s -882ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.55 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 581 kB 580 kB -571 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.9s 13.8s -69ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.55 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -488 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB -14 B
Serverless pages/index Size 331 kB 331 kB -488 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB -9 B
Serverless pages/_error Size 332 kB 331 kB -488 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB -18 B
Serverless pages/routerDirect Size 331 kB 331 kB -488 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB -19 B
Serverless pages/withRouter Size 332 kB 331 kB -488 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB -12 B
Build Dir Size 2.12 MB 2.12 MB -2.41 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 11.9s 11.7s -213ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 581 kB 580 kB -418 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.3s 14s -216ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -335 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB ⚠️ +29 B
Serverless pages/index Size 331 kB 331 kB -335 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB ⚠️ +31 B
Serverless pages/_error Size 332 kB 331 kB -335 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB ⚠️ +25 B
Serverless pages/routerDirect Size 331 kB 331 kB -335 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB ⚠️ +24 B
Serverless pages/withRouter Size 332 kB 331 kB -335 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB ⚠️ +31 B
Build Dir Size 2.12 MB 2.12 MB -1.65 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 11.7s 11.7s ⚠️ +15ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 639 kB 639 kB -394 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.8s 13.8s -72ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -335 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB ⚠️ +31 B
Serverless pages/index Size 331 kB 331 kB -335 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB ⚠️ +34 B
Serverless pages/_error Size 332 kB 331 kB -335 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB ⚠️ +27 B
Serverless pages/routerDirect Size 331 kB 331 kB -335 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB ⚠️ +28 B
Serverless pages/withRouter Size 332 kB 331 kB -335 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB ⚠️ +33 B
Build Dir Size 2.24 MB 2.24 MB -1.6 kB

Copy link
Member

@Timer Timer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems fine if these null changes were intentional.

warnUrl()
const pushRoute = as ? href : null
const pushRoute = as ? href : ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this switched from null?

Copy link
Member Author

@lfades lfades Apr 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Timer To keep it with the same type used by href, which is always a string

warnUrl()
const replaceRoute = as ? href : null
const replaceRoute = as ? href : ''
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why was this switched from null?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Timer To keep it with the same type used by href, which is always a string

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.1s 11.6s -479ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 639 kB 639 kB -394 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 13.9s 13.7s -221ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -335 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB ⚠️ +30 B
Serverless pages/index Size 331 kB 331 kB -335 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB ⚠️ +35 B
Serverless pages/_error Size 332 kB 331 kB -335 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB ⚠️ +27 B
Serverless pages/routerDirect Size 331 kB 331 kB -335 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB ⚠️ +27 B
Serverless pages/withRouter Size 332 kB 331 kB -335 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB ⚠️ +32 B
Build Dir Size 2.24 MB 2.24 MB -1.6 kB

@github-actions
Copy link
Contributor

Stats from current PR

Click to expand stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 12.6s 12s -550ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Base Rendered Size 1.34 kB 1.34 kB ⚠️ +2 B
Build Dir Size 639 kB 639 kB -394 B
Click to expand serverless stats
zeit/next.js canary lfades/next.js next/pages-ts Change
Build Duration 14.2s 14.3s ⚠️ +93ms
node_modules Size 39.9 MB 39.9 MB ⚠️ +4.92 kB
Total Bundle (main, webpack, commons) Size 210 kB 210 kB ⚠️ +13 B
Total Bundle (main, webpack, commons) gzip Size 68.5 kB 68.5 kB -27 B
Client _app Size 2.49 kB 2.5 kB ⚠️ +11 B
Client _app gzip Size 1.04 kB 1.02 kB -29 B
Client _error Size 9.66 kB 9.66 kB
Client _error gzip Size 3.52 kB 3.52 kB -1 B
Client pages/index Size 298 B 298 B
Client pages/index gzip Size 235 B 235 B
Client pages/link Size 3.28 kB 3.28 kB
Client pages/link gzip Size 1.49 kB 1.49 kB
Client pages/routerDirect Size 426 B 426 B
Client pages/routerDirect gzip Size 304 B 304 B
Client pages/withRouter Size 408 B 408 B
Client pages/withRouter gzip Size 293 B 293 B
Client main Size 24.4 kB 24.4 kB
Client main gzip Size 7.89 kB 7.89 kB
Client commons Size 183 kB 183 kB ⚠️ +2 B
Client commons gzip Size 59.4 kB 59.4 kB ⚠️ +2 B
Client webpack Size 1.49 kB 1.49 kB
Client webpack gzip Size 774 B 774 B
Serverless pages/link Size 338 kB 338 kB -335 B
Serverless pages/link gzip Size 87.6 kB 87.6 kB ⚠️ +30 B
Serverless pages/index Size 331 kB 331 kB -335 B
Serverless pages/index gzip Size 85.7 kB 85.7 kB ⚠️ +32 B
Serverless pages/_error Size 332 kB 331 kB -335 B
Serverless pages/_error gzip Size 85.5 kB 85.5 kB ⚠️ +26 B
Serverless pages/routerDirect Size 331 kB 331 kB -335 B
Serverless pages/routerDirect gzip Size 85.7 kB 85.7 kB ⚠️ +26 B
Serverless pages/withRouter Size 332 kB 331 kB -335 B
Serverless pages/withRouter gzip Size 85.8 kB 85.8 kB ⚠️ +32 B
Build Dir Size 2.24 MB 2.24 MB -1.6 kB

@timneutkens timneutkens merged commit 29f71bf into vercel:canary Apr 22, 2019
}

export interface IDocumentProps extends IDocumentInitialProps {
__NEXT_DATA__: INEXTDATA
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is reasoning to have it uppercase?

@lfades lfades deleted the next/pages-ts branch April 30, 2019 00:02
@lock lock bot locked as resolved and limited conversation to collaborators May 5, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants