Guy Bedford
e7fcdd327f
send
2020-03-30 16:26:25 -04:00
Guy Bedford
9615bbd83d
recast, babel core sharing
2020-03-30 16:26:25 -04:00
Guy Bedford
98f4f8b886
raw-body
2020-03-30 16:26:25 -04:00
Guy Bedford
26dca225d6
node-fetch, ora
2020-03-30 16:26:25 -04:00
Guy Bedford
4a37263e98
lru-cache
2020-03-30 16:26:25 -04:00
Guy Bedford
4adf4b3300
lodash.curry
2020-03-30 16:26:25 -04:00
Guy Bedford
0f80e127f4
launch-editor
2020-03-30 16:26:25 -04:00
Guy Bedford
e11a7c132b
jsonwebtoken
2020-03-30 16:26:25 -04:00
Guy Bedford
3b36a3711c
json5
2020-03-30 16:26:25 -04:00
Guy Bedford
9831d3b3e2
is-docker, is-wsl
2020-03-30 16:26:25 -04:00
Guy Bedford
5da7d9edca
http-proxy
2020-03-30 16:26:25 -04:00
Guy Bedford
a34766ab62
gzip-size
2020-03-30 16:26:25 -04:00
Guy Bedford
9d3b82094e
fresh
2020-03-30 16:26:25 -04:00
Guy Bedford
fda5becf09
etag
2020-03-30 16:26:25 -04:00
Guy Bedford
6a8455e713
escape-string-regexp
2020-03-30 16:26:25 -04:00
Guy Bedford
a9a704e727
devalue
2020-03-30 16:26:25 -04:00
Guy Bedford
580c13a028
cookie
2020-03-30 16:26:25 -04:00
Guy Bedford
0adb310c27
compress, content-type
2020-03-30 16:26:25 -04:00
Guy Bedford
af40b5b2f8
chalk, ci-info
2020-03-30 16:26:25 -04:00
Guy Bedford
90a0cef87e
browserslist
2020-03-30 16:26:25 -04:00
Guy Bedford
8af5a83301
amphtml-validator
2020-03-30 16:26:25 -04:00
Guy Bedford
eb5e962d78
async-retry
2020-03-30 16:26:25 -04:00
Guy Bedford
b215348cdb
remove unused babel types
2020-03-30 16:26:25 -04:00
Guy Bedford
5619f990cf
refactor ncc optimization, babel optimization
2020-03-30 16:26:25 -04:00
Joe Haddad
7038d275d0
v9.3.4-canary.0
2020-03-30 13:04:48 -04:00
shYkiSto
2db9563f13
fix(performance-relayer): properly clean up event listeners ( #11410 )
...
Co-authored-by: siarhei.fedarovich <siarhei.fedarovich@ticketmaster.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-30 13:04:27 -04:00
Joe Haddad
c2c4241860
Use Lax Cookie for Preview Mode ( #11495 )
...
* Use Lax Cookie for Preview Mode
* Fix tests
2020-03-30 12:47:26 -04:00
JJ Kasper
2713369e40
Update to not add path segments to redirect query automatically ( #11497 )
...
* Update to not add path segments to redirect query automatically
* Move check up
2020-03-30 18:43:24 +02:00
Joe Haddad
b5d8660ef3
v9.3.3
2020-03-30 10:00:26 -04:00
Tim Neutkens
ac223e2761
v9.3.3-canary.0
2020-03-30 14:21:05 +02:00
Tim Neutkens
d3d0b936a4
Fix type ignore ( #11479 )
2020-03-30 10:02:36 +02:00
David D
6f27e21f8a
Fix #11396 ( #11397 )
...
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-30 09:53:09 +02:00
Eugene Dzhumak
8d63330c15
Change mdx options description ( #11409 )
...
* Change mdx options description
https://mdxjs.com/advanced/plugins#using-remark-and-rehype-plugins
* Change descriptions of next-mdx
2020-03-28 14:20:48 -05:00
liulanz
39a70d8eb1
Minor change in README.md ( #11434 )
...
* changed link for JOIN THE COMMUNITY
* Update packages/next/README.md
Co-Authored-By: Luis Alvarez D. <luis@zeit.co>
Co-authored-by: Luis Alvarez D. <luis@zeit.co>
2020-03-28 12:58:42 -05:00
Tim Neutkens
8fdc13afa4
Add support for comments in tsconfig.json ( #11392 )
...
Fixes #11390
2020-03-27 14:23:36 +01:00
Tim Neutkens
ee0081356d
v9.3.2
2020-03-26 20:11:41 +01:00
Joe Haddad
dd4cee7245
v9.3.2-canary.9
2020-03-26 15:00:03 -04:00
Joe Haddad
ee249ee6cd
v9.3.2-canary.8
2020-03-26 13:18:16 -04:00
Joe Haddad
1d6ffc39f7
Fix static/
file name encoding ( #11373 )
...
* Test `static/` file name encoding
* Fix `static/` file name encoding
2020-03-26 12:58:15 -04:00
Tim Neutkens
e83cd4aa96
v9.3.2-canary.7
2020-03-26 14:13:54 +01:00
JJ Kasper
d8155b22ff
Add initial support for new env handling ( #10525 )
...
* Add initial support for new env config file
* Fix serverless processEnv call when no env is provided
* Add missing await for test method
* Update env config to .env.json and add dotenv loading
* ncc dotenv package
* Update type
* Update with new discussed behavior removing .env.json
* Update hot-reloader createEntrypoints
* Make sure .env is loaded before next.config.js
* Add tests for all separate .env files
* Remove comments
* Add override tests
* Add test for overriding env vars based on local environment
* Add support for .env.test
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Use chalk for env loaded message
* Remove constant as it’s not needed
* Update test
* Update errsh, taskr, and CNA template ignores
* Make sure to only consider undefined missing
* Remove old .env ignore
* Update to not populate process.env with loaded env
* Add experimental flag and add loading of global env values
Co-authored-by: Tim Neutkens <timneutkens@me.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-26 13:32:41 +01:00
Joe Haddad
aac2e3e2db
v9.3.2-canary.6
2020-03-25 15:02:15 -04:00
JJ Kasper
2ba6db65e2
Update to prevent re-using workers for getStaticPaths in dev mode ( #11347 )
2020-03-25 14:57:14 -04:00
Filipe Medeiros
a6ac0a5057
Just a small typo I think, right? ( #11344 )
2020-03-25 13:26:53 +01:00
JJ Kasper
77380507d8
Make sure to copy AMP SSG files during export ( #11331 )
...
* Make sure to copy AMP SSG files during export
* bump
* bump
2020-03-25 09:22:34 +01:00
Joe Haddad
e7842aff23
v9.3.2-canary.5
2020-03-24 22:19:47 -04:00
JJ Kasper
eeea53c04b
Fix warning for API routes with next export ( #11330 )
...
* Fix warning for API routes with next export
* Update warning copy
2020-03-24 13:38:22 -04:00
Tim Neutkens
876ae3fc87
Upgrade loader-utils ( #11324 )
2020-03-24 09:57:23 -04:00
Tim Neutkens
55186cabd6
v9.3.2-canary.4
2020-03-24 12:40:29 +01:00
Tim Neutkens
7774101ad1
Skip paths that are routed to a .d.ts file ( #11322 )
2020-03-24 12:25:58 +01:00
JJ Kasper
b4fca31d3b
Update handling for ENOENT from GSSP methods ( #11302 )
...
* Update handling for ENOENT from GSSP methods
* Add route to routes-manifest test
2020-03-24 09:33:39 +01:00
Yosuke Furukawa
aadb31fa5b
Add custom amp optimizer and skip validation mode ( #10705 )
...
* Add custom amp optimizer and skip validation mode
* fix: type
* fix worker lint errors
2020-03-24 09:31:04 +01:00
Joe Haddad
130733129d
v9.3.2-canary.3
2020-03-23 18:46:48 -04:00
Joe Haddad
f19dcf9b6e
Add Numeric Separator Support for TypeScript ( #11308 )
...
* Add Numeric Separator Support for TypeScript
* Check for number in render
2020-03-23 17:41:35 -05:00
Joe Haddad
c68de947a4
v9.3.2-canary.2
2020-03-23 11:20:28 -04:00
Tim Neutkens
7fce52b905
Add support for paths in tsconfig.json and jsconfig.json ( #11293 )
...
* Add support for tsconfig/json `paths` option
* Add tests for paths in tsconfig.json
* Don't apply aliases when paths is empty
* Clean up unused methods and link to TypeScript license
* Add tests for jsconfig
* Put feature under an experimental flag
* Enable to see if tests pass
* Update types
* Add feature under an experimental flag
2020-03-23 10:45:51 -04:00
Dulmandakh
d3fb262958
remove mkdirp, bump fs-extra to 9.0.0 ( #11251 )
...
* bump mkdirp to 1.0.3, which support promise
* fix mkdirp in spr-cache.ts
* bump fs-extra to 9.0.0
* remove mkdirp
2020-03-21 17:02:05 +01:00
Tim Neutkens
f25f9b8753
v9.3.2-canary.1
2020-03-20 13:07:04 +01:00
JJ Kasper
c14d983d54
Ensure hybrid AMP works correctly with SSG ( #11205 )
...
* Ensure hybrid AMP works correctly with SSG
* Strip AMP from query when not needed
2020-03-20 09:46:52 +01:00
Tim Neutkens
38e42cd4bb
Add support for baseUrl option in tsconfig and jsconfig ( #11203 )
...
* Add support for baseUrl option in tsconfig and jsconfig
* Move jsconfigPath
* Remove filter
2020-03-19 17:34:24 +01:00
Prateek Bhatnagar
3907dfd60d
updating min nodejs requirement ( #11181 )
...
* updating min canary requirement
* watchpack requires 10.13.0
2020-03-19 09:25:41 +01:00
JJ Kasper
e28e8ada98
Group CSS files in shared build output separate from JS files ( #11184 )
...
* Group CSS files in shared build output separate from JS files
* Fix buildId not being replaced in shared by all
2020-03-19 09:25:10 +01:00
Joe Haddad
bf93ca4af6
v9.3.2-canary.0
2020-03-18 13:00:25 -04:00
Sebastian Benz
4b1ce16e12
upgrade @ampproject/toolbox-optimizer to 2.0.1 ( #11168 )
...
Fixes #11159
2020-03-18 14:20:29 +01:00
Tim Neutkens
527453560e
Update <dir> reference in help text
...
Fixes #11151
2020-03-18 10:18:29 +01:00
JJ Kasper
836f68aa67
Add CSS file to build output ( #11145 )
...
* Remove filtering CSS from build output
* Add displaying page specific CSS files and including them in page size
2020-03-18 09:47:39 +01:00
JJ Kasper
203f43c1fe
Add error when attempting to export GSSP page ( #11154 )
...
* Add error when attempting to export GSSP page
* Update errors/gssp-export.md
* Update errors/gssp-export.md
* Update errors/gssp-export.md
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-03-18 09:33:10 +01:00
Shu Uesugi
408a01ce95
Update CLI custom config documentation link ( #11152 )
...
* Update CLI custom config documentation link
* Update packages/next/cli/next-dev.ts
Co-Authored-By: Joe Haddad <timer150@gmail.com>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-18 09:21:12 +01:00
Tim Neutkens
9730be6734
v9.3.1
2020-03-17 16:06:51 +01:00
Tim Neutkens
d661fac733
v9.3.1-canary.7
2020-03-17 15:39:49 +01:00
Tim Neutkens
25d8652283
v9.3.1-canary.6
2020-03-16 10:57:41 +01:00
JJ Kasper
ea7c1e1dcf
Add support for SCSS options ( #11063 )
...
* Add support for SCSS includePaths
* Support sassOptions instead of just includePaths
Co-authored-by: Tim Neutkens <timneutkens@me.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-16 10:55:16 +01:00
Tim Neutkens
30cf4d5ab6
v9.3.1-canary.5
2020-03-15 15:15:19 +01:00
Kaito Sugimoto
4cac93a75e
Update @next/bundle-analyzer dependencies ( #11068 )
...
* Update @next/bundle-analyzer
* update module
* Update yarn.lock
2020-03-15 12:24:07 +01:00
Aaron Reisman
85e9ce1b0b
Update preset.ts: Remove any and use updated Node.js types ( #11075 )
...
Remove any and use updated Node.js types
2020-03-15 12:22:53 +01:00
Giuseppe
bc4aba1713
Upgrade styled-jsx ( #11070 )
...
The main change in this version is https://github.com/zeit/styled-jsx/pull/621
2020-03-15 11:51:55 +01:00
JJ Kasper
71f97198d1
Add support for static 404 when _error does not have custom GIP ( #11062 )
...
* Add support for static 404 when _error does not have custom GIP
* Update tests
2020-03-14 09:58:20 +01:00
Joe Haddad
925d843503
v9.3.1-canary.4
2020-03-13 09:09:10 -04:00
Joe Haddad
18036d4e51
Correct Cache-Control Behavior for GS(S)P ( #11022 )
...
* Correct Cache-Control Behavior for GS(S)P
* remove old line
* fix test
2020-03-13 10:40:10 +01:00
Joe Haddad
8f8030f7eb
v9.3.1-canary.3
2020-03-12 14:09:12 -04:00
Armand Abric
886037b1ba
Add "noreferrer" to the prerender indicator doc link ( #11005 )
2020-03-12 11:23:58 -04:00
Daniel Lutz
20c546710d
Add Array.flat polyfill to nomodule-polyfills ( #11004 )
...
* Add Array.flat polyfill to nomodule-polyfills
* Fix code style issue
2020-03-12 10:03:06 -04:00
Jeremy Stucki
861257bdfc
Generic form of GetStaticProps and GetServerSideProps ( #10856 )
...
* Generic form of GetStaticProps and GetServerSideProps
* Oops, fix type!
* Add constraint for P
* Update packages/next/types/index.d.ts
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-12 09:11:15 -04:00
Joe Haddad
a86184eb89
v9.3.1-canary.2
2020-03-12 07:31:26 -04:00
JJ Kasper
ccb6ce7ed4
Add support for getStaticProps in pages/404 ( #10984 )
...
* Make sure to not show pages/404 GIP error from _app having GIP
* Add error for getStaticProps in pages/404 too
* Add support for getStaticProps in pages/404
* Update test
2020-03-12 10:48:14 +01:00
Joe Haddad
9d9f7a5873
Improve Sass Error ( #10982 )
...
* Improve Sass Error
* test sass error massage
* use quotes
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-11 16:34:14 -04:00
Tim Neutkens
e52048daa7
Use core-js promise polyfill for nomodule browsers ( #10985 )
...
* Use core-js promise polyfill for nomodule browsers
Also updated to the core-js@3 features modules instead of importing the exact modules directly.
Fixes #10966
* Simplify reflect and regexp
* Add ie11 test for bad Promise
* Add test script for regexp and ie11
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <joe.haddad@zeit.co>
2020-03-11 16:21:49 -04:00
JJ Kasper
34a8e8843d
Make sure to not show pages/404 GIP error from _app having GIP ( #10974 )
...
* Make sure to not show pages/404 GIP error from _app having GIP
* Add error for getStaticProps in pages/404 too
2020-03-11 12:18:05 -04:00
Joe Haddad
33503f70a7
v9.3.1-canary.1
2020-03-11 10:37:26 -04:00
Joe Haddad
905f0ce214
Check SSG Page via Route Lookup ( #10971 )
2020-03-11 09:33:55 -05:00
JJ Kasper
6616a371e8
Update handling for patterns in custom routes ( #10523 )
...
* Update handling for unnamed params and named patterns in custom-routes
* Update query handling to match Now
2020-03-10 16:09:35 -04:00
JJ Kasper
fde1ce2924
Add warning when built-in CSS/SCSS support is disabled ( #10942 )
2020-03-10 14:29:40 -04:00
Joe Haddad
a4ab088746
v9.3.1-canary.0
2020-03-09 14:59:13 -04:00
Joe Haddad
1e53a4961a
Correctly Count Object References ( #10903 )
...
* Correctly Count Object References
* Make error message better
* add more tests
2020-03-09 14:58:51 -04:00
Tim Neutkens
befb5006f4
v9.3.0
2020-03-09 19:08:52 +01:00
Joe Haddad
713340600d
v9.2.3-canary.29
2020-03-09 13:31:12 -04:00
Joe Haddad
8443a809f3
Verify GS(S)P Serializability ( #10857 )
...
* Verify GS(S)P Serializability
* Add support for cyclic refs
* Add unit tests
* Test for error in development mode
* Fix prerender preview tests
* Fix gssp preview tests
* fix 2x test cases
* Add desired test
* fix some more tests
* Fix route manifest expect
* Fix test expects
* Test that `getServerSideProps` does not error in production
* Test that getStaticProps is not checked in production
* Test serialization check during build
* Fix export detection for serverless
* Update test/unit/is-serializable-props.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-09 13:30:44 -04:00
Tim Neutkens
1a47dbea69
Upgrade webpack ( #10895 )
...
Fixes #10890
2020-03-09 13:11:06 +01:00
Tim Neutkens
f0cec748d8
v9.2.3-canary.28
2020-03-09 11:01:02 +01:00
Tim Neutkens
1d16b10e3a
v9.2.3-canary.27
2020-03-09 10:45:11 +01:00
JJ Kasper
764edc51b2
Add identifier to NEXT_DATA when custom server is used ( #10869 )
2020-03-06 11:14:39 -05:00
Tim Neutkens
9edafc6469
v9.2.3-canary.26
2020-03-06 12:20:38 +01:00
Joe Haddad
49369d7649
Fix getServerSideProps
Test Case ( #10862 )
...
* Fix `getServerSideProps` Test Case
* Data requests should fail instead of rendering
2020-03-06 00:53:11 -05:00
JJ Kasper
b274fe39d3
Update method for attaching GS(S)P identifier to page ( #10859 )
...
* Update to use separate export instead of attaching to Component to identify GS(S)P pages
* Handle initialProps being undefined
2020-03-05 23:15:10 -05:00
Joe Haddad
d07db4a054
v9.2.3-canary.25
2020-03-05 13:54:01 -05:00
Joe Haddad
5dfc7da2f9
Fix getStaticPaths modules being cached in dev mode ( #10852 )
2020-03-05 13:48:09 -05:00
Tim Neutkens
69ba79346f
Update README-template.md
2020-03-05 17:35:41 +01:00
Tim Neutkens
2d64986733
v9.2.3-canary.24
2020-03-05 16:00:12 +01:00
Tim Neutkens
1e505e860f
Ensure an accessible default viewport meta tag ( #10823 )
...
* fix: remove minimum-scale from default viewport
* update test
* remove extra comma
* drop initial-scale
2020-03-05 11:03:15 +01:00
Tim Neutkens
0f0398c88e
Make sure to error when setting too large of preview data ( #10831 )
...
* Make sure to error when setting too large of preview data
* Update to check size after signing and limit to 2KB
2020-03-04 21:37:53 +01:00
Joe Haddad
640e8f3548
v9.2.3-canary.23
2020-03-04 11:56:58 -05:00
Joe Haddad
50c95d16b4
Send Credentials for getServerSideProps
Requests ( #10826 )
...
* Send Credentials for `getServerSideProps` Requests
* Fix tests
2020-03-04 11:56:08 -05:00
JJ Kasper
70cb5bd726
Update to make sure preview mode works with getServerSideProps ( #10813 )
...
* Update to make sure preview mode works with getServerSideProps
* Update to only parse previewData in GS(S)P mode
2020-03-04 13:58:12 +01:00
Vincent Voyer
81c126ee8b
fix(cli): inspect flag is deprecated ( #10819 )
...
This commit effectively removes the --inspect flag from the CLI help and better inform on the deprecation.
2020-03-04 11:53:20 +01:00
JJ Kasper
4ef1cd4ebe
Add identifier to NEXT_DATA for gs(s)p ( #10812 )
...
* Add identifier to NEXT_DATA for gs(s)p
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* fix lint
* apply lint fix
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-03 13:39:08 -05:00
Gerald Monaco
3ca022a821
Throw NoFallbackError instead of returning ( #10793 )
...
* Throw a NoFallbackError instead of returning
* Replace invariant
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-03 13:25:45 -05:00
Joe Haddad
6598e99b49
v9.2.3-canary.22
2020-03-02 19:03:10 -05:00
Joe Haddad
a5d0cb9d80
Measure getStaticProps
, getServerSideProps
( #10800 )
...
* Measure `getStaticProps`, `getServerSideProps`
* Test new fields
2020-03-02 19:01:12 -05:00
Prateek Bhatnagar
16672a4353
Adding conformance checks ( #10314 )
...
* adding tests for rect sync conformance check
* adding test for react sync script conformance check
* reverting yarn lock changes
* adding duplicate polyfill conformance
* bug fixes in dulpicate polyfill conformance check
* adding settings capability to conformance plugin
* removing minification check from server build
* bug fix
* settings for react sync script check
2020-03-02 22:53:18 +01:00
JJ Kasper
4056e98280
v9.2.3-canary.21
2020-03-02 12:34:46 -06:00
JJ Kasper
9ec3dae607
Fix next/config module mismatch in new serverless mode ( #10792 )
...
* Add failing test case
* Update serverless-loader require to fix config module mismatch
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-03-02 12:38:16 -05:00
Joe Haddad
2b74db73fa
v9.2.3-canary.20
2020-03-02 12:22:31 -05:00
Joe Haddad
990eda2c88
Prefetch SSG Data ( #10127 )
...
* Prefetch SSG Data
* Update packages/next/client/page-loader.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
* Revert router.ts
* Revert link.tsx
* undo change
* mimmic existing
* simplify
* Prefetch href and asPath
* fix load
* dedupe prefetchAs
* Inject script tag on hover
* comment prefetchAs
* minify code
* introduce lazy files
* Add some breathing room
* correct default type
* Prefetch non-dynamic data
* Prefetch dynamic route data
* Fix size test
* Humanize code
* add tests
* Disable code
* Only generate modern version in modern mode
* Extract function helper
* add comments
* Filter out dynamic route to simplify manifest size
* add test
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-03-02 12:14:40 -05:00
Joe Haddad
8f01a4ae83
Fix RenderOpts in next-server
( #10776 )
...
* Correctly pass preview data
* remove todo
* re-do change
* fix types
* Prevent regression
2020-03-02 11:58:47 +01:00
Joe Haddad
94009422c5
v9.2.3-canary.19
2020-03-01 22:34:22 -05:00
Joe Haddad
8999ef2660
Remove Dead Code from Next Server ( #10772 )
...
* Remove Dead Code from Next Server
* remove options
* trigger
2020-03-01 12:26:31 -05:00
Joe Haddad
302b55b43d
Remove dangerousAsPath
from RenderOpts
( #10773 )
2020-03-01 12:14:10 -05:00
Joe Haddad
bc4f7bd216
v9.2.3-canary.18
2020-03-01 11:44:44 -05:00
Joe Haddad
24345c9d06
Correctly Dedupe Prefetching ( #10758 )
...
* Correctly Dedupe Prefetching
* add test
2020-02-29 18:06:18 -05:00
Joe Haddad
b7f779058f
Consistently Type GS(S)P ( #10757 )
2020-02-29 17:36:49 -05:00
Joe Haddad
e608c86b59
Separate Low Priority Files from Main Files ( #10756 )
...
* Separate Low Priority Files from Main Files
* Fix tests
2020-02-29 17:09:42 -05:00
Prateek Bhatnagar
5a82812568
Adding new types of performance monitoring ( #10421 )
...
* add new types of performance monitoring
* adding LCP
* adding cls to perf relayer
* add test for cls and lcp
* nit fixes
* re-organizing code
* fixing tests for lcp
* updating size limits in test
2020-02-28 17:44:03 -06:00
JJ Kasper
b2624012ea
Remove old eslint-ignores from unstable_ prefix ( #10740 )
2020-02-28 12:40:27 -05:00
Gerald Monaco
3bfb6501f1
Extract getStaticPaths helper ( #10731 )
...
* Extract getStaticPaths helper
* Extract sendPayload and prepareServerlessUrl
* Remove erroneously included file
2020-02-28 11:56:50 -05:00
Gerald Monaco
d4fa6afa24
Extract sendPayload and prepareServerlessUrl ( #10732 )
2020-02-28 11:36:19 -05:00
Joe Haddad
586fdf4eba
v9.2.3-canary.17
2020-02-28 09:44:58 -05:00
Janicklas Ralph
7848615bd6
Fix url-polyfill dep and re-enable native-url ( #10726 )
...
* Adding native-url package
* Bumping native-url version
* Upgrading native-url
* Logging stats object for debugging
* Logging stats object for debugging
* Adding try catch to the error lines
* Experimenting with regex
* Experimenting with regex
* Experimenting with regex
* Testing regex changes
* Fixing defer-script test case to not include polyfill.js
* Meging changes with existing polyfill work
* Bumping version
* adjust webpack config
* Reduce size in size test
* Remove 1kb from legacy
* Bumping native-url version, includes fix for IE11
* Update lock file
* Updating native-url, fixes issue on IE11
* Fix sourcemap being added in document
* Adding Router as an app level dep. Fixes Router not being added as a dep to pages without Link when granularChunks is enabled
* Fix typescript error
* Fix modern + granularChunks hydration failing
* Fix TS error
* Update native-url version
* Adding native-url with safari fix
* Update url-polyfill in polyfill-nomodule package
* Remove url-polyfill from next package.json
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-27 22:08:58 -05:00
JJ Kasper
0ff41daa48
v9.2.3-canary.16
2020-02-27 12:05:45 -06:00
JJ Kasper
c9d9f1131c
Remove unstable_
prefix from new methods ( #10723 )
...
* Rename getServerProps to getServerSideProps
* Remove unstable_ prefix from new methods
* Add error when legacy methods are detected
* Add legacy methods for babel transform
* Add unstable_getServerSideProps also
* Apply suggestions from code review
Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>
* Update types import
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-27 11:57:39 -06:00
JJ Kasper
2789e7e0c2
Rename getServerProps to getServerSideProps ( #10722 )
2020-02-27 11:04:30 -06:00
Luis Alvarez D
75559f1431
Add --example=<github-url> to create-next-app ( #10226 )
...
* Initial support for URLs
* Added folder support
* Added --example-path
* Bug fix
* Also install deps
* Updated error message
* Bug fix and replace the file path
* Added tests
Co-authored-by: Shu Uesugi <shu@chibicode.com>
2020-02-27 16:32:32 +01:00
Tim Neutkens
0b88d17aeb
v9.2.3-canary.15
2020-02-27 15:34:27 +01:00
Joe Haddad
663f5c4b6e
Fix Error Message
2020-02-27 09:25:17 -05:00
Tim Neutkens
5cba994016
v9.2.3-canary.14
2020-02-27 14:10:49 +01:00
Joe Haddad
47ff1eb95a
Ability to Disable SSG Fallback ( #10701 )
...
* Ability to Disable SSG Fallback
* Throw error when value is missing
* Fix existing tests
* Adjust error message
* Do not render fallback at build time for `fallback: false` page
* Fix existing fallback behavior
* fix build
* fix version
* fix some tests
* Fix last test
* Add docs for get static paths
* Add explicit mode tests
* test for fallback error message
2020-02-27 13:23:28 +01:00
JJ Kasper
b3ffdabbad
v9.2.3-canary.13
2020-02-26 13:49:08 -06:00
JJ Kasper
6dea45bdc9
Add dataRoutes field to routes-manifest for SSG and serverProps routes ( #10622 )
...
* Add dataRoutes field to routes-manifest for SSG and serverProps routes
* Update routes-manifest test
2020-02-26 14:35:02 -05:00
JJ Kasper
395714a475
Update url prop handling for pages with new data methods ( #10653 )
...
* Make sure to show error when url prop is returned for a page
* Update test and handle undefined pageProps
* Handle empty props
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Update tests
* Update to not add url prop for SSG/SSP pages
* Update errsh for reserved prop
* Update errsh wording some more
* Update tests and to warn instead of error
* Update reserved prop warning
* Include page in url prop warning
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-26 13:26:55 -05:00
JJ Kasper
364b4fe797
Make sure rewrites are handled in serverless mode correctly ( #10697 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-26 13:14:34 -05:00
Tim Neutkens
c0f42837bf
Update README.md
2020-02-26 15:00:26 +01:00
Tim Neutkens
513a7d5b5c
Update head-manager to compress better ( #10687 )
...
* Update head-manager to compress better
* Decrease size limit test
2020-02-26 13:56:13 +01:00
Shu Uesugi
c57cdbb31d
Rename zeit.co/new → zeit.co/import ( #10674 )
...
* Replace zeit.co/new → zeit.co/import
* Update deployment.md
2020-02-24 19:08:34 -05:00
JJ Kasper
40abd708e1
Show better error when non-array is returned from custom-routes ( #10670 )
...
* Show better error when non-array is returned from custom-routes
* bump
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-24 17:01:02 -05:00
Joe Haddad
0ee18741e7
v9.2.3-canary.12
2020-02-24 16:47:54 -05:00
JJ Kasper
f17e170c3d
Add calling getStaticPaths in development before showing fallback ( #10611 )
...
* Add calling getStaticPaths in development before showing fallback
* Move staticPathsWorker to next-dev-server
* Make sure to clear require cache in worker process
* bump
* Remove staticPathsCache member
* Update numWorkers for staticPathsWorker
2020-02-24 16:36:59 -05:00
Joe Haddad
008a558d03
v9.2.3-canary.11
2020-02-24 13:41:19 -05:00
Joe Haddad
c3d914919a
Fix Double URL Encoding for Serverless ( #10663 )
2020-02-24 13:06:11 -05:00
JJ Kasper
7767a42fff
Make sure to log errors from data fetching in dev mode in the console ( #10652 )
2020-02-24 10:14:46 +01:00
Joe Haddad
91a4732440
v9.2.3-canary.10
2020-02-22 12:15:54 -05:00
Brian Mathews
d467e040d5
Invalidate cache for link[preload] in dev for CSS files ( #10630 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-22 04:39:36 -05:00
Joe Haddad
89c792f67f
Preview Mode Should Not Cache ( #10636 )
...
* Preview Mode Should Not Cache
* add import
* fix import
* add tests
* Add real serverless mode tests
2020-02-22 10:26:39 +01:00
Joe Haddad
0890b586f4
v9.2.3-canary.9
2020-02-22 00:17:18 -05:00
Joe Haddad
43a70c7ef1
Fix Cookie Expiration ( #10634 )
2020-02-21 16:05:43 -05:00
Joe Haddad
40217b75b9
Revert "Re-Enable Native url
Module ( #10530 )" ( #10623 )
...
This reverts commit b329f6a2d6
.
2020-02-21 01:16:07 -05:00
JJ Kasper
f5cb1a69d7
Add error messages for dynamic SSG page without getStaticPaths ( #10620 )
...
* Add error messages for dynamic SSG page without getStaticPaths
* Update error check
* Update test file
* Update another test file
* Adjust
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-21 00:57:10 -05:00
JJ Kasper
95071730b6
Add err.sh for getStaticProps error ( #10619 )
...
* Add err.sh for getStaticProps error
* Prettify error
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-21 00:45:50 -05:00
Janicklas Ralph
b329f6a2d6
Re-Enable Native url
Module ( #10530 )
...
* Adding native-url package
* Bumping native-url version
* Upgrading native-url
* Logging stats object for debugging
* Logging stats object for debugging
* Adding try catch to the error lines
* Experimenting with regex
* Experimenting with regex
* Experimenting with regex
* Testing regex changes
* Fixing defer-script test case to not include polyfill.js
* Meging changes with existing polyfill work
* Bumping version
* adjust webpack config
* Reduce size in size test
* Remove 1kb from legacy
* Bumping native-url version, includes fix for IE11
* Update lock file
* Updating native-url, fixes issue on IE11
* Fix sourcemap being added in document
* Adding Router as an app level dep. Fixes Router not being added as a dep to pages without Link when granularChunks is enabled
* Fix typescript error
* Fix modern + granularChunks hydration failing
* Fix TS error
* Update native-url version
* Adding native-url with safari fix
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-21 00:25:49 -05:00
JJ Kasper
16b3a54caa
v9.2.3-canary.8
2020-02-20 15:48:47 -06:00
JJ Kasper
3cd45bc331
Make sure to handle failing to load _error ( #10617 )
2020-02-20 22:25:41 +01:00
Tim Neutkens
90480b84c9
v9.2.3-canary.7
2020-02-20 20:27:24 +01:00
Tim Neutkens
e9e1a2b900
Disable setImmediate polyfill ( #10612 )
...
* Disable setImmediate polyfill
* Update size-limit
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-20 12:52:28 -05:00
JJ Kasper
db445db790
Add err.sh for invalid getStaticPaths return value ( #10605 )
...
* Add err.sh for invalid getStaticPaths return value
* Update error link
* Apply suggestions from code review
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-02-20 10:05:49 +01:00
JJ Kasper
61025b8693
v9.2.3-canary.6
2020-02-19 15:47:06 -06:00
Tim Neutkens
9a0d82b4d9
Clean up landed experimental flags ( #10593 )
...
* Clean up landed experimental flags
* Remove check for experimental flags from build too
* Remove /_errors/404 in favor of /404
* Remove unneeded check for pathname
* Update test paths
* Fix test
* Update test
* Remove test for disabled config
* Set pages404 always to true
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-19 14:54:38 -05:00
Joe Haddad
0acea5f44a
v9.2.3-canary.5
2020-02-19 13:21:33 -05:00
Joe Haddad
d7167e28e0
Fix AMP Validator Version ( #10600 )
2020-02-19 13:18:17 -05:00
Dmitry Ishkov
b3fad60d7d
use clearInterval instead of clearTimer on a timer ( #10597 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-19 12:39:22 -05:00
Richard van der Dys
103e82260d
Fixed pathname check in router ( #10547 )
...
* Fixed pathname check in router
Remove the query portion of the URL when checking paths
* Updated change and added trial test
* Update test
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-19 12:00:27 -05:00
Joe Haddad
893fb6e982
v9.2.3-canary.4
2020-02-19 11:32:57 -05:00
Joe Haddad
5e12e5f56a
Emit ES5 Friendly Code in Program#exit Visitor ( #10591 )
...
* Emit ES5 Friendly Code in Program#exit Visitor
* Document reasoning
* updt
* Update next-ssg-transform.ts
2020-02-19 11:29:30 -05:00
Joe Haddad
a30e94f21a
Fix Nested Index Dynamic Routes in Development ( #10595 )
...
* Fix Nested Index Dynamic Routes in Development
* add missing
2020-02-19 11:13:04 -05:00
Joe Haddad
9fdd344c9e
v9.2.3-canary.3
2020-02-19 08:47:16 -05:00
Joe Haddad
c58f45f42d
Add Failing CSS Test Case ( #10590 )
...
* Add Failing CSS Test Case
* update tests
2020-02-19 08:46:58 -05:00
Tim Neutkens
082cc68d87
v9.2.3-canary.2
2020-02-19 11:28:29 +01:00
JJ Kasper
9e8f173319
Update to latest watchpack with dynamic route rename fix ( #10351 )
...
* Fix dynamic route rename failing for case change
* Update normalizing curPageFiles
* Remove using webpacks file info since its inaccurate
* Revert changes in favor of fixing upstream
* Update to latest watchpack with case rename fix
2020-02-19 11:05:59 +01:00
JJ Kasper
2a0843349c
Update error message for invalid return value from getStaticPaths ( #10580 )
2020-02-19 00:20:45 -06:00
Pierre de la Martinière
0a5cc30ee8
Add NextApiHandler type ( #10573 )
...
* Add NextApiHandler type
* Fix formatting
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-18 22:57:31 -05:00
JJ Kasper
db04cc57c1
Make sure to handle rejection when prefetching pages ( #10579 )
...
* Make sure to handle rejection when prefetching pages
* Update comment
* Make sure to show prefetch error in development still
2020-02-18 15:28:29 -06:00
Tim Neutkens
c706e1af84
v9.2.3-canary.1
2020-02-18 20:04:41 +01:00
Tim Neutkens
0222a09cd0
Enable polyfillsOptimization ( #10574 )
...
* Enable polyfillsOptimization
* Update sizes
* Commons is no longer there
* Update test
2020-02-18 19:26:55 +01:00
Tim Neutkens
04c5737e3c
v9.2.3-canary.0
2020-02-18 16:33:28 +01:00
Tim Neutkens
743bf5d345
Enable scss/sass support ( #10571 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-18 08:35:12 -05:00
Tim Neutkens
3a1aa554c5
Enable pages/404.js support ( #10572 )
2020-02-18 08:18:41 -05:00
Maël Nison
c71fcbe4e8
Adds a missing dependency ( #10570 )
2020-02-18 13:46:45 +01:00
Tim Neutkens
d8fd6880d2
v9.2.2
2020-02-18 12:12:49 +01:00
Tim Neutkens
2c414b47e3
v9.2.2-canary.23
2020-02-18 11:08:15 +01:00
Luis Alvarez D
88b1fe50c5
Remove react import in create-next-app template ( #10564 )
2020-02-18 09:51:11 +01:00
Jan Potoms
3f691eaa45
Remove ts-ignore where possible ( #10541 )
...
* Remove ts-ignore where possible
And replace by typecasts
* More accurate types
* bend cliententries in a correct shape earlier on
* comment becomes unnecessary
* add webpack overload to allow for the next.js use case
* Avoid changing public interface
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-17 16:16:19 -05:00
Joe Haddad
f4c5a95c48
v9.2.2-canary.22
2020-02-17 16:00:55 -05:00
Joe Haddad
41e24a516a
Speculate Navigations for Client-Side JS ( #10560 )
...
* Speculate Navigations for Client-Side JS
* add tests
* avoid desctructure
2020-02-17 14:46:15 -06:00
Shu Uesugi
9cfc09e3ab
Simplify create-next-app README ( #10545 )
...
* Rename to README-template.md
* Add yarn scripts
* Rewrite CNA README
* Forgot zeit link
* Simplify
* Update deploy doc
* Just link to the doc
* page is reloaded
* reload → update
* Deploy updates
2020-02-16 16:00:12 +01:00
Joe Haddad
31a47b4bff
v9.2.2-canary.21
2020-02-15 13:17:19 -05:00
Joe Haddad
6d5c48742b
Implement isFallback
Router Property ( #10539 )
...
This adds a `isFallback` property to detect if the page is being rendered in "fallback" mode or normal mode.
Accessed via the `useRouter()` hook.
---
Closes #10527
2020-02-15 13:01:10 -05:00
Sebastian Benz
ae9b13e0be
Migrate to AMP Optimizer 2.0 ( #10535 )
...
* Migrate to AMP Optimizer 2.0
Most notable changes:
* Automatically import all missing AMP component scripts.
* Automatically add any missing mandatary AMP tags.
* 40% faster
I've updated the docs to mention component auto import and added a corresponding
test case.
* change validator tests which now pass validation
* Improve wording
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
* Update adding-amp-components.md
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-14 16:01:43 -05:00
Joe Haddad
1c247b5cf1
Check next.config.js settings ( #10425 )
...
* Check next.config.js settings
* Add tests
* test package.json case too
2020-02-14 15:42:44 -05:00
JJ Kasper
ecfa7f7d16
v9.2.2-canary.20
2020-02-14 10:06:05 -06:00
JJ Kasper
a7337a9b38
Make sure to encode pathname for custom-route destination ( #10536 )
...
* Make sure to encode pathname for custom-route destination
* Add tests to security test suite
2020-02-14 16:53:08 +01:00
Joe Haddad
fbbb184163
v9.2.2-canary.19
2020-02-13 19:52:02 -05:00
Joe Haddad
71019e70d3
Remove native-url
Again ( #10526 )
...
* Remove `native-url` Again
* update comment
* update sizes
2020-02-13 17:54:25 -05:00
Joe Haddad
2e8d638073
v9.2.2-canary.18
2020-02-13 00:27:01 -05:00
JJ Kasper
4617950457
Add handling for default as named export in SSG transform ( #10486 )
...
* Add failing SSG syntax
* Add handling for default as named export in SSG transform
* Revert [comment].js
* Revert index.js
* adjust
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-13 00:25:44 -05:00
Jan Potoms
0b12e2e859
Improve error for invalid page configurations ( #10441 )
...
* Remove any type and fix edge cases
Removed the "as any" and use the @babel/types typeguards instead. This revealed some edge cases that would just error.
* Remove ts-ignore
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-12 23:39:51 -05:00
Gerald Monaco
44e40d4f55
Clean up async in next-server ( #10476 )
...
* Clean up async in next-server
* fix case when err is null
* Refactor how components are loaded
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-12 23:28:31 -05:00
Joe Haddad
66273807a5
Retry Static Data Fetch on Hydration ( #10513 )
2020-02-12 23:06:41 -05:00
Joe Haddad
3e91d41f08
v9.2.2-canary.17
2020-02-12 21:44:52 -05:00
Joe Haddad
e38e3dd55a
Adjust SSG Loading Behavior ( #10510 )
...
* Adjust SSG Loading Behavior
* Update expected preview behavior
* Rename two corrections
* Only use skeleton in production for now
* Fix "should SSR SPR page correctly" test
* fix tests
* fix trailing comment letter
* disable test for now
2020-02-12 20:06:07 -05:00
Joe Haddad
495838b7e9
v9.2.2-canary.16
2020-02-11 20:27:05 -05:00
Joe Haddad
3cb3498324
SSG Preview Mode ( #10459 )
...
* checkpoint: api impl
* Add support for tryGetPreviewData
* snapshot: server(less) support
* Add X-Prerender-Bypass-Mode header support
* Pass preview data to getStaticProps call
* add TODO
* setPreviewData
* 100k iterations
* Handle jwt error
* Write out preview values
* forgot file
* set preview props
* Send preview props
* add preview props
* Pass around more data
* update yarn lock
* Fail on Invalid Prerender Manifest
* Make Missing Prerender Manifest Fatal
* fix ts errors
* fix test
* Fix setting cookies + maxage
* Secure is not needed as we encrypt necessary data
* Set on domain root
* Set cookie max ages
* Render a fallback on-demand for non-dynamic pages
* Test preview mode
* remove old build
* remove snapshots
* Add serverless tests
* use afterAll
* Remove object assigns
* fix cookie spread
* add comment
2020-02-11 20:16:42 -05:00
Joe Haddad
79fb13e587
Builds with Warnings Still Complete ( #10498 )
2020-02-11 17:09:00 -05:00
Shu Uesugi
2ff0913864
Use filter for create-next-app template ( #10496 )
2020-02-11 12:33:27 -05:00
JJ Kasper
4def88c398
Update next-server routes order for expected priority ( #10326 )
...
* Update next-server routes order for expected priority
* Update router to allow disabling page routes
* Fix headers having check: true behavior when they should not
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-10 18:06:38 -05:00
Joe Haddad
14f33dd54f
Make Missing Prerender Manifest Fatal ( #10485 )
...
* Fail on Invalid Prerender Manifest
* Make Missing Prerender Manifest Fatal
* fix test
2020-02-10 17:43:34 -05:00
Joe Haddad
d8f26e5a55
v9.2.2-canary.15
2020-02-08 16:52:33 -05:00
JJ Kasper
cbb9c2ca92
Add error message when rewriting to dynamic SSG page ( #10458 )
...
* Add error message when rewriting to dynamic SSG page
* Update comment
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-07 22:23:15 -05:00
JJ Kasper
f6e7a38101
Add paths field for unstable_getStaticPaths ( #10454 )
...
* Add paths field for unstable_getStaticPaths
* Make sure to specify page in getStaticPaths errors
2020-02-07 22:09:54 -05:00
JJ Kasper
0183a131a6
v9.2.2-canary.14
2020-02-07 11:12:19 -06:00
JJ Kasper
9dc0afd9b9
Redesign custom-routes output and show headers in output ( #10444 )
2020-02-07 16:06:02 +01:00
Tim Neutkens
c0eab7ee20
v9.2.2-canary.13
2020-02-07 14:10:18 +01:00
JJ Kasper
3099f0881a
Add initial SSG fallback handling ( #10424 )
...
* Add initial SSG fallback handling
* Remove extra changes and update fallback handling
* Remove extra timeout for testing
* Update SSG tests in dynamic-routing suite
* Add racing to decide between rendering fallback and data
* Update size-limit test
* Update comment
* Make sure to follow correct route change order
* Make comment more verbose for racing
* Revert getStaticData to only return Promise
* Make sure to update URL on fallback
* Add retrying for data, de-dupe initial fallback request, and merge fallback replace
* Update to add preload for fallback pages data
* Add test for data preload link
* Use pre-built fallback in production mode
* Remove preload link for fallback from _document
* Update to make sure fallback is rendered correctly for serverless
2020-02-07 14:09:06 +01:00
Jan Potoms
5e4850ceee
Remove unused dependency @types/babel-types ( #10448 )
...
`@types/babel-types` doesn't seem to be in use anymore. `babel-types` is not used anywhere and `@babel/types` has its own typings included.
2020-02-07 11:13:59 +01:00
Luis Alvarez D
ea5c5164b2
Update utm links in create-next-app ( #10442 )
...
* Updated links
* Use default-example as the medium
* Apply suggestion
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-06 17:03:51 -06:00
JJ Kasper
238202ec11
Make missing param error message more specific ( #10433 )
2020-02-05 15:27:22 -06:00
JJ Kasper
a4c507d5b4
Update to use existing util to de-dupe path check ( #10431 )
...
* Update to use existing util to de-dupe path check
* Update error message for requested/resolved mismatch
* Use correct dataRoute value for prerender manifest
* Fix pageUrl having double slash on Windows
2020-02-05 22:10:39 +01:00
JJ Kasper
924f8ae3b6
Remove old ts-ignores and extra value in routeInfo ( #10429 )
2020-02-05 10:52:34 -06:00
JJ Kasper
4203d7fd52
v9.2.2-canary.12
2020-02-04 21:44:06 -06:00
JJ Kasper
5ae7fe534e
De-dupe paths returned in getStaticPaths ( #10423 )
...
* De-dupe paths returned in getStaticPaths
* Remove warning
2020-02-04 21:55:11 -05:00
JJ Kasper
ec39aa46dc
Update optimize event with static 404 status ( #10420 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-04 15:10:40 -05:00
Joe Haddad
ecd628b7e0
Re-enable native-url
( #10419 )
...
* Re-enable `native-url`
* update sizes
2020-02-04 14:58:22 -05:00
Joe Haddad
4009f99234
v9.2.2-canary.11
2020-02-04 14:23:46 -05:00
Alex Castle
21fea2ce61
Modify splitChunksPlugin to give shared CSS chunks different names ( #10408 )
...
* Modify splitChunksPlugin to give shared CSS chunks different names
* fix lint
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-04 14:22:26 -05:00
JJ Kasper
e3d298dc62
Add support for rewriting to external resources ( #10041 )
...
* Add support for rewriting to external resources
* Update rewrite proxying test
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-04 14:08:03 -05:00
Joe Haddad
bc81379618
Detect Invalid Pages Before Optimize ( #10418 )
2020-02-04 13:55:43 -05:00
Luis Alvarez D
909ab3b179
Check for invalid pages ( #10403 )
...
* Updated event
* adjust regex
* adjust regexp more
* Better test file regex
* add tests
* Update index.test.js
* Rename test file
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-04 10:46:22 -05:00
JJ Kasper
821b325547
v9.2.2-canary.10
2020-02-03 16:38:10 -06:00
JJ Kasper
89b2dfc502
Make sure runtime config works in dev mode for serverless targ… ( #10402 )
2020-02-03 23:34:23 +01:00
Lachlan Campbell
c480c37c8e
Skip undefined attribute in Head ( #9856 )
...
* Fix #8655 , skip rendering meta tags with undefined props
* Filter all tags, not just meta
* Only render defined props
* Remove filtering of undefined strings
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Replace Object.entries
* Remove filtering code
* Simplify code
* Add test
* Add tests for undefined head prop value and tweak check
* Update to strip undefined prop values to match react
* Update head.js
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-03 14:55:14 -05:00
Joe Haddad
bf4a156dd3
v9.2.2-canary.9
2020-02-03 11:42:05 -05:00
Joe Haddad
3d507abe0c
Remove Old Records ( #10398 )
2020-02-03 11:41:43 -05:00
Joe Haddad
f542999b30
v9.2.2-canary.8
2020-02-03 07:26:51 -05:00
Joe Haddad
683486da63
Add TypeScript Definitions for Sass ( #10363 )
...
* Add TypeScript Definitions for Sass
* fix test
2020-02-03 00:03:42 -05:00
JJ Kasper
f7880f3463
v9.2.2-canary.7
2020-02-02 21:51:12 -06:00
JJ Kasper
65de050017
Update to not show API not ended warning when response is piped to ( #10342 )
...
* Update to not show API not ended warning when response is piped to
* Update to use res.once
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 21:48:00 -06:00
JJ Kasper
c01534c92e
Make sure runtime config is set before any imports for serverless ( #10386 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 22:33:53 -05:00
Luis Alvarez D
5a32c9cbbf
Update create app docs ( #10382 )
...
* Updated links
* Added utm
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 22:20:04 -05:00
Luis Durão
a433b9be6a
Fix bug in catch-all routes with SSG ( #10379 )
...
* Fix bug in catch-all routes with SSG
* fix slash
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-02-02 22:07:45 -05:00
JJ Kasper
e90af3f0ac
v9.2.2-canary.6
2020-02-02 13:08:38 -06:00
Matt Snider
d715c13f41
Custom AMP Validator Variable Name Collision Fix ( #10371 )
...
* Changing variable name internally
* Add tests for custom AMP validator
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-02-02 12:02:56 -06:00
Tim Neutkens
9ba4bee23e
v9.2.2-canary.5
2020-02-02 12:49:14 +01:00
JJ Kasper
db90ffe1ea
Implement experimental pages/404.js for custom 404 page ( #10329 )
...
* Implement experimental pages/404.js for custom 404 page
* Make sure to show error for getInitialProps in pages/404 in dev mode also
* Update routes-manifest tests for new value
* Make sure page404 is boolean in routes-manifest
* Rename variables for consistency
* Make sure to only use 404 page for 404 error
2020-02-01 15:47:42 +01:00
JJ Kasper
1674f2de1e
Add check that dynamic route is API route in handleApiRequest ( #10360 )
...
* Add failing test case
* Add check that dynamic route is API route in handleApiRequest
2020-02-01 15:14:50 +01:00
JJ Kasper
afc278f567
Add support for runtimeConfigs in serverless mode ( #10365 )
...
* Add support for runtimeConfigs in serverless mode
* Update test
2020-02-01 14:24:22 +01:00
JJ Kasper
e63d822161
Make sure to not override initial navigation when refreshing static page's query ( #10353 )
...
* Add failing case
* Make sure to only refresh query if still on initial page
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-31 20:19:59 -05:00
Tim Neutkens
9546011ae4
v9.2.2-canary.4
2020-01-30 13:41:40 +01:00
Paco
81fd704681
Update the default template of create-next-app ( #10327 )
...
* Update the default template for create-next-app
* Fix link
2020-01-30 01:14:05 -05:00
Tim Neutkens
e35005c214
[Experimental] Nomodule polyfills chunk ( #10212 )
...
* Polyfill Promise in polyfills chunk
* Override promise polyfill to use built-in
* Update sizes
* Update polyfills
* Test
* Add dep
* Use iife
* Unscope
* Revert "Unscope"
This reverts commit ab26bcefd551c544d5b3c577b7ce91e5ecfb9bb9.
* trigger
* Remove unused code
* Set helpers to true
* Update yarn.lock
* Fix test
* Update polyfills size
* Add comment
* Add back comment
* Put polyfills optimization under experimental flag
* Fix filename
* bring back promise for backwards compat until experimental feature is landed
* fix resolve alias check
* correct loader
* fix logic branches
* adjust !!
* adjust cache key
* Conditionally branch polyfill
* fix promise polyfill branching
* Re-add runtime
* fix base object
* fix yarn lock
* Add cache key
* correctly set caller
* add basic test
* Increment h=>i
* increment to j just in case
Co-authored-by: Joe Haddad <timer150@gmail.com>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-30 01:04:29 -05:00
JJ Kasper
29d1b4f326
v9.2.2-canary.3
2020-01-29 12:49:51 -06:00
Dmitry Rybin
41d1757b4e
fix: 9919 Add warning when no config is exported from next.con… ( #10228 )
...
* fix: 9919 no exported config found
* fix: 9919 remove isolated test, add integration
* fix: 9919 add check for successfull compilation and fix warnin check
* Add test for development output
* fix: 9919 add error page and link to it in warning
* Update empty-configuration.md
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-29 09:12:30 +01:00
JJ Kasper
f711b77b90
Enable static 404 config to allow static 404 page when availab… ( #10290 )
...
* Enable static 404 config to allow static 404 page when available
* Update static 404 suite
* Fix invalid params test case
2020-01-28 22:39:53 +01:00
Alexander Dreith
bd3662b52b
Fix preprocessor loader error ( #10235 )
...
* Run resolve-url-loader after sass-loader
* Add regression test
* Update test to match
* Revert global.ts
* Make `preProcessors` readonly
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-28 16:31:38 -05:00
JJ Kasper
e4a6bab23e
v9.2.2-canary.2
2020-01-28 13:17:57 -06:00
JJ Kasper
6dbc03bcb9
v9.2.2-canary.1
2020-01-27 23:07:50 -06:00
JJ Kasper
e3ded1aecc
v9.2.2-canary.0
2020-01-27 16:53:15 -06:00
JJ Kasper
c24daa2172
Add initial support for unstable_getServerProps ( #10077 )
...
* Add support for unstable_getServerProps
* Apply suggestions from review
* Add no-cache header and update types
* Revert sharing of load-components type
* Add catchall test and update routes-manifest field
* Update header check
* Update to pass query for getServerProps data requests
* Update to not cache getServerProps requests
* Rename server side props identifier
* Update to nest props for getServerProps
* Add no-cache header in serverless-loader also
* Update to throw error for mixed SSG/serverProps earlier
* Add comment explaining params chosing in serverless-loader
* Update invalidKeysMsg to return a string and inline throwing
* Inline throwing mixed SSG/serverProps error
* Update setting cache header in serverless-loader
* Add separate getServerData method in router
* Update checkIsSSG -> isDataIdentifier
* Refactor router getData back to ternary
* Apply suggestions to build/index.ts
* drop return
* De-dupe extra escape regex
* Add param test
2020-01-27 17:50:59 -05:00
Joe Haddad
abd69ec4be
Fix Experimental Modern Mode with CSS ( #10289 )
2020-01-27 15:32:45 -05:00
Shu Uesugi
e1083f0e3a
docs: remove --save from npm install; avoid system-ui ( #10252 )
...
* Minor edits for CSS doc
* Remove unnecessary --save from npm install
* Different font family
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-27 08:35:12 -05:00
James Mosier
c9dc17b852
Added support for BigInt to API routes ( #10215 )
...
* Added support for bigint to API routes
Closes #7980
* added BigInt test to get result
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-27 08:19:49 -05:00
Matthew Sweeney
569e7acab8
Improve Stalled Requests Grammar ( #10283 )
2020-01-27 08:05:31 -05:00
Stig Kleppe-Jørgensen
799bb42517
Improved wording in comment ( #10277 )
2020-01-27 12:59:40 +01:00
JJ Kasper
2ff2e9e12c
Update _next/data URL handling in serverless-loader ( #10261 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-24 23:34:00 -05:00
JJ Kasper
f143ca63be
Update SSG types and clean up RenderOpts type ( #10259 )
...
* Update SSG types and clean up RenderOpts type
* Move SSG types back to internal module
2020-01-24 23:25:11 -05:00
JJ Kasper
e079cce41c
Update static check vars and fix types ( #10260 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-24 17:41:00 -06:00
JJ Kasper
8579888cec
De-dupe escape-regex with escape-string-regexp ( #10257 )
...
* De-dupe escape-regex with escape-string-regex
* Un de-dupe for client-side file
2020-01-24 18:27:39 -05:00
Joe Haddad
45d5535b36
v9.2.1
2020-01-23 17:09:26 -05:00
Joe Haddad
f495ec44f1
v9.2.1-canary.11
2020-01-23 16:39:43 -05:00
Joe Haddad
3f9b930815
Error on Invalid PostCSS Shape ( #10244 )
...
* Error on Invalid PostCSS Shape
* Add link to docs
2020-01-23 16:27:07 -05:00
Prateek Bhatnagar
0edd6a031a
Adding conformance webpack plugin ( #9716 )
...
* adding Conformance Plugin behind a flag
* fixing compiler ts error
* fixing spelling errors 🤦🏻♂️
* addressing comments
* bug fix
* making it const enum
* reverting const enum
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-23 16:09:12 -05:00
Joe Haddad
32ded0539e
PostCSS Error When Exporting Function ( #10242 )
...
* PostCSS Error When Exporting Function
* Update postcss-function.md
2020-01-23 15:39:50 -05:00
Joe Haddad
c713741f51
Explain Ignored PostCSS Plugin ( #10240 )
2020-01-23 15:28:37 -05:00
Luis Alvarez D
b747f7b26e
Check for invalid objects in rewrites/redirects/headers ( #10238 )
2020-01-23 11:08:25 -06:00
JJ Kasper
37628d5887
v9.2.1-canary.10
2020-01-23 08:30:52 -06:00
Joe Haddad
3c3186efb5
Revert "feat(build): Transpile assuming higher version of runt… ( #10233 )
...
This reverts commit 6b87b2b541
.
2020-01-23 09:04:46 -05:00
JJ Kasper
17cb1ef999
Fix rewriting to API routes not including query ( #10223 )
2020-01-23 10:23:34 +01:00
Joe Haddad
9b8ea96abc
v9.2.1-canary.9
2020-01-22 15:28:06 -05:00
Alexander Dreith
8449ebc221
[Experimental] Add built-in Sass support ( #10133 )
...
* Add built-in Sass support
* Add copy of CSS tests for SCSS
* Fix failing tests
* Fix url-loader tests
* Remove css file generated by tests
* Fix nprogress import for css file
* Fix SCSS modules (still 2 tests that need investigating)
* Update documentation for Sass support
* Fix plain CSS import test
* Fix formatting with prettier fix
* Update test output to reflect scss usage
* Revert "Fix plain CSS import test"
This reverts commit 380319d9d0c4bfb19e28c210262ccd82d19f3556.
# Conflicts:
# test/integration/scss-modules/test/index.test.js
* Update loader structure
* Resolve loaders before passing to compile function
* Remove dead filter code
* Arrange loaders in order and push to array
* Fix loader order bug
* Fix global Sass loader and make module prepocessor optional
* Adjust Sass Modules Implementation
* Fix typo
* Adjust regexps
* Use regexes
* Simplify global setup
* Adjust comments
* fix regex
* Simplify identifier file
* Update Sass Instructions
* Remove unneeded fixtures
* Adjust global tests
* Remove wrapper
* Update source maps
* Flag scss behavior
* Fix css property value
* Update fixtures with Sass vars
* Turn on Scss support
* fix HMR test
* Fix snapshots
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-22 15:26:51 -05:00
Tim Neutkens
dd4d3f7c00
v9.2.1-canary.8
2020-01-22 17:25:18 +01:00
Joe Haddad
f67f99a295
Extract CSS Loaders into Separate Files ( #10210 )
2020-01-22 09:50:27 -06:00
Tim Neutkens
6988a2e0a5
Use builtins for React transform ( #10207 )
...
* Disable core-js on Next.js core files as it's not transforming anything important
* Move babel options to taskr plugin
* Disable transform-runtime for pages dir
* Disable correctly
* Disable corejs for core files
* Temporarily check if this fixes the error
* Use builtIns and exclude async-to-generator
* Update index.test.js
2020-01-22 16:24:02 +01:00
Joe Haddad
4a2236dac3
Dedupe CSS Regexes ( #10206 )
2020-01-22 09:50:30 -05:00
Joe Haddad
a3f1d65eba
Fix ESLint Ignores and Extract Fn ( #10205 )
2020-01-22 09:32:51 -05:00
Tim Neutkens
7b0118a991
Disable core-js on Next.js core files as it's not transforming… ( #10193 )
...
* Disable core-js on Next.js core files as it's not transforming anything important
* Move babel options to taskr plugin
* Disable transform-runtime for pages dir
* Disable correctly
* Disable corejs for core files
* Temporarily check if this fixes the error
2020-01-22 14:34:49 +01:00
JJ Kasper
b6edf814b7
Update error for failing to parse custom-route source ( #10197 )
...
* De-dupe invalid-custom-routes tests
* Update error for failing to parse custom-route source
2020-01-22 11:16:13 +01:00
JJ Kasper
fe72fd215c
v9.2.1-canary.7
2020-01-21 15:49:16 -06:00
JJ Kasper
53e9983d83
Add hydration callback for testing ( #10195 )
...
* Add hydration callback for testing
* Update size-limit test
2020-01-21 15:33:58 -05:00
Tim Neutkens
fa65442cad
Disable core-js for server-side build ( #10189 )
...
* Disable core-js in server-side build
* Update cache-key
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-21 09:47:20 -05:00
Tim Neutkens
bea488f009
Don't include core-js for default _document ( #10187 )
...
* Don't include core-js for default _document
* update taskfile.js
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-21 09:18:06 -05:00
Joe Haddad
c75146f7b2
Test CSS/Media Caching in Production Suite ( #10184 )
...
* Test CSS Modules in Production Suite
* fix build
* test css and media assets
2020-01-21 08:19:53 -05:00
Joe Haddad
ebc46c111f
v9.2.1-canary.6
2020-01-20 18:53:41 -05:00
JJ Kasper
fcfb5959e6
Allow mismatching href
and as
when manually provided ( #9837 )
...
* Allow mismatch href and as when manually provided
* Swap warning and error and throw error in production also
* Add test for mismatch error in production
* Update to only show warning in development
2020-01-20 16:47:52 -06:00
JJ Kasper
57aae473ed
v9.2.1-canary.5
2020-01-20 16:36:58 -06:00
Luis Alvarez D
39020c432d
Improve user errors for invalid pageExtensions
( #10178 )
...
* Added validation for pageExtensions and tests
* Removed log
* Test for undefined
2020-01-20 17:19:33 -05:00
JJ Kasper
5f5c5e4e9e
Add support for catch-all routes with SSG ( #10175 )
...
* Add support for catchall routes with SSG
* Add test for invalid catchall param in getStaticPaths
2020-01-20 16:44:50 -05:00
JJ Kasper
0d0f21899c
v9.2.1-canary.4
2020-01-20 15:42:03 -06:00
Vitaliy
7a728d69db
Serve public/
folder when page routes are disabled ( #10169 )
...
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 16:13:47 -05:00
JJ Kasper
04f1dd52b9
Delay hydration until after page is visible in development ( #10164 )
...
* Delay hydration until after page is visible in development
* Tweak dead-code elimination
2020-01-20 21:41:41 +01:00
Sebastian Silbermann
6b87b2b541
feat(build): Transpile assuming higher version of runtime ( #9511 )
...
* feat(build): Transpile assuming higher version of runtime
* Use runtime version from manifest
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 21:40:59 +01:00
JJ Kasper
a21a8fcc4d
Add error for invalid distDir value ( #10177 )
...
* Add error for invalid distDir value
* Add check for null/undefined distDir
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-20 14:35:29 -06:00
Joe Haddad
2e668e6b31
Remove native-url
( #10176 )
...
* Remove `native-url`
* Increase sizes
2020-01-20 14:47:42 -05:00
Tim Neutkens
acca2c0a5d
v9.2.1-canary.3
2020-01-20 15:57:03 +01:00
JJ Kasper
e04e5a5c15
Add initial support for static 404 page ( #10113 )
...
* Add initial support for static 404 page
* Apply suggestions from code review
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Simplify custom error page check
* Add comment explaining reason for custom app check
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-20 15:10:24 +01:00
Richard Scotten
33b22796c7
Add option arg to changeState when onlyAHashChange ( #10003 )
...
* added option to changeState when onlyAHashChange
* added integration tests
* segregated tests because they caused other tests to fail
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-18 20:35:12 -06:00
JJ Kasper
15cffd0059
v9.2.1-canary.2
2020-01-17 14:14:52 -06:00
JJ Kasper
5a9a478cc8
Fix hydration with custom _app and granular chunks ( #10144 )
...
* Add failing hydration test
* Add importing of next/router to _app
* Fix type
* Update _app check for windows
* Remove babel fix
* Update to use webpack to require next/router
2020-01-17 14:13:51 -06:00
Joe Haddad
2fe7435814
v9.2.1-canary.1
2020-01-17 13:20:32 -05:00
Joe Haddad
08f241fc3f
Switch from defer
to async
( #10143 )
2020-01-17 12:20:13 -06:00
Joe Haddad
53d5bd89ce
v9.2.1-canary.0
2020-01-17 11:54:28 -05:00
JJ Kasper
51420c7241
Fix SSG data request failing with trailing slash ( #10140 )
...
* Fix SSG data request failing with trailing slash
* Update to re-use toRoute method
2020-01-17 11:54:00 -05:00
JJ Kasper
ee0761255a
Error on query values in exportPathMap for auto export page ( #9908 )
...
* Add warning when providing query values in exportPathMap for auto-export page
* Update test for SSG page also
* Update to error instead of warn
* Update warn -> Error and check exit code
2020-01-16 21:39:00 -05:00
JJ Kasper
22e015f7b6
Support unnamed parameters in custom-routes correctly ( #9920 )
...
* Support unnamed parameters in custom-routes correctly
* Update unnamed params checking to be strict
* Removed un-used regexKeys
* Update test routes
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-16 17:38:38 -05:00
Josh Larson
80ed74bcae
Add specific warning for require() PostCSS plugin ( #10121 )
2020-01-16 00:09:56 -05:00
Joe Haddad
57ec121d48
Rename Build SPR to SSG ( #10114 )
2020-01-15 15:57:07 -05:00
JJ Kasper
563f3c084c
Honor exportTrailingSlash for default 404 ( #10109 )
2020-01-15 14:18:31 -06:00
Joe Haddad
b595dd6af1
v9.2.0
2020-01-15 11:38:15 -05:00
Joe Haddad
6b21b45edf
v9.1.8-canary.17
2020-01-15 11:20:38 -05:00
Luis Alvarez D
a15ccbc0fe
Update readme to link to the new docs ( #10096 )
...
* Updated next readme
* Delete README_old.md
* Update README.md
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-15 11:25:18 +01:00
Prateek Bhatnagar
552f3b4302
fixing observing paint types in safari bug ( #10076 )
...
* fixing observing paint types in safari bug
* using try catch for performanceObserver fallback
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 23:16:38 -05:00
Joe Haddad
3aa6edb618
v9.1.8-canary.16
2020-01-14 23:03:19 -05:00
Joe Haddad
41195b69e1
Fix Legacy CSS with Granular Chunks ( #10101 )
2020-01-14 23:02:49 -05:00
JJ Kasper
fff897d766
Apply some renames for SSG related code ( #10099 )
...
* Rename some spr related stuff to ssg
* Update packages/next/lib/constants.ts
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 20:22:15 -05:00
Joe Haddad
6d2d675bb8
v9.1.8-canary.15
2020-01-14 15:13:18 -05:00
Tomas Cerskus
ce2714de73
Fix reading Component.__N_SSG ( #10037 )
...
* Fix error when reading Component.__NEXT_SPR in packages/next/client/index.js
* Use the .? optional chaining operator
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Update index.js
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 15:06:26 -05:00
Joe Haddad
d9d9545f30
Error on CSS in Custom Document ( #10091 )
2020-01-14 14:53:42 -05:00
Joe Haddad
2d76c4a9bb
Replace __NEXT_SPR with __N_SSG Identifier ( #10090 )
2020-01-14 14:40:20 -05:00
Houssein Djirdeh
01699c6ac3
removes performance measures and marks for concurrent and blocking modes ( #10088 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 14:17:18 -05:00
Joe Haddad
5494f0c500
v9.1.8-canary.14
2020-01-14 13:40:02 -05:00
JJ Kasper
84264f8179
Add required permanent: boolean
field to redirect ( #10044 )
...
* Add permanent field for redirects
* Update printing redirect status code
* Don't add permanent to routes-manifest
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 13:28:48 -05:00
Janicklas Ralph
415a9b6d1e
Fix modern + granularChunk hydration failing ( #9727 )
...
* Adding native-url package
* Bumping native-url version
* Upgrading native-url
* Logging stats object for debugging
* Logging stats object for debugging
* Adding try catch to the error lines
* Experimenting with regex
* Experimenting with regex
* Experimenting with regex
* Testing regex changes
* Fixing defer-script test case to not include polyfill.js
* Meging changes with existing polyfill work
* Bumping version
* adjust webpack config
* Reduce size in size test
* Remove 1kb from legacy
* Bumping native-url version, includes fix for IE11
* Update lock file
* Updating native-url, fixes issue on IE11
* Fix sourcemap being added in document
* Adding Router as an app level dep. Fixes Router not being added as a dep to pages without Link when granularChunks is enabled
* Fix typescript error
* Fix modern + granularChunks hydration failing
* Fix TS error
* Update native-url version
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-14 13:10:16 -05:00
James George
7f25fb6cf6
chore: Minor code refactor to eliminate redundant code ( #10051 )
2020-01-14 10:40:45 +01:00
Joe Haddad
9f6fdb95f2
Ignore CSS Ordering Warnings ( #10068 )
2020-01-13 07:48:24 -05:00
Joe Haddad
240b41cce3
v9.1.8-canary.13
2020-01-10 17:13:39 -05:00
Christopher Snyder
c294ad0a53
Fix missing quotes around in
operator check for PerformanceObserver ( #10018 )
...
* Fix missing quotes around `in` operator check for PerformanceObserver
* Always call `getEntriesByType()` even if performance observer is supported.
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-10 17:00:32 -05:00
Joe Haddad
3dc4a6873c
v9.1.8-canary.12
2020-01-10 16:08:55 -05:00
Joe Haddad
a7a924f2a4
Disable New CSS For Sass, Less, and Stylus ( #10043 )
2020-01-10 15:07:06 -06:00
JJ Kasper
5c6a20dbfc
Add refresh header for 308 redirect for IE11 compatibility ( #10042 )
2020-01-10 15:54:23 -05:00
Joe Haddad
243c038222
docs(errors): CSS Modules Imported by a Dependency ( #10034 )
2020-01-10 11:45:01 -05:00
JJ Kasper
14ca20d0d5
Add warning when API resolves without the request being finished ( #9999 )
...
* Add error when API resolves without the request being finished
* Update to only show warning in development instead
* Update packages/next/next-server/server/api-utils.ts
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-10 10:56:20 -05:00
Joe Haddad
dd020fb888
docs(errors): CSS Imported by a Dependency ( #10032 )
2020-01-10 10:40:28 -05:00
Joe Haddad
fa81a4df83
Add Links to Global CSS Error ( #10031 )
...
* Add Links to Global CSS Error
* Add Example
2020-01-10 09:31:38 -06:00
Joe Haddad
12665cb0b2
v9.1.8-canary.11
2020-01-09 21:56:44 -05:00
JJ Kasper
3e923d059d
Fix public/
file name encoding ( #10022 )
...
* Update serving of files from public folder to handle special chars
* Update tests and match handling in dev mode
* Fix windows public file handling
* Remove colon test to make git on windows happy
* Remove un-used files
* Add missing await
2020-01-09 21:56:05 -05:00
Joe Haddad
b90289fc4f
v9.1.8-canary.10
2020-01-09 20:17:45 -05:00
Joe Haddad
5d3303f50a
Ensure Build Output Does Not Contain <buildId>
( #10021 )
...
* Ensure Build Output Does Not Contain `<buildId>`
* use posix join for common file
2020-01-09 17:31:03 -05:00
Joe Haddad
de0b0e8712
v9.1.8-canary.9
2020-01-09 17:09:23 -05:00
Joe Haddad
345efa3ea8
Keep Chunk Hash in Build Output ( #10020 )
2020-01-09 15:44:47 -06:00
Joe Haddad
dd6406ace2
Add Back Comments ( #10019 )
...
* Add Back Comments
* remove property all together
* Replace all instances
2020-01-09 16:33:22 -05:00
Joe Haddad
af82f322e5
Enable New CSS Support by Default ( #9927 )
...
* Enable New CSS Support by Default
* Adjust configs
* Fix invisible AMP body
* Fix AMP validation warning
* test fix
* Use expression that won't be eliminated by babel
2020-01-09 15:31:28 -05:00
Joe Haddad
d0957e3001
v9.1.8-canary.8
2020-01-09 13:52:01 -05:00
Joe Haddad
0fd15ad6ba
Separate Self Size and First Load Size ( #10014 )
...
* Separate Self Size and First Load Size
* Tweak tests
2020-01-09 13:49:52 -05:00
Joe Haddad
e5c1f94688
v9.1.8-canary.7
2020-01-08 11:50:09 -05:00
Jan Potoms
2112e81ae4
Don't prepend a slash on empty path ( #9973 )
...
Fixes https://github.com/zeit/next.js/issues/9678
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-08 11:45:17 -05:00
Afzal Sayed
58b2d9e208
Use optional chaining syntax ( #9975 )
...
* Use optional chaining syntax
* Changes as per review
* Bug fix
2020-01-08 11:30:53 -05:00
Joe Haddad
7a6f056192
v9.1.8-canary.6
2020-01-08 10:33:28 -05:00
Joe Haddad
1c6f0874ce
Test That Custom Properties Are Not Compiled ( #9984 )
...
* Fix Browserslist Loading
* Fix Browserslist Integration for CSS
* Add missing file
* Test That Custom Properties Are Not Compiled
* Disable custom properties transform
2020-01-08 12:06:16 +01:00
Luis Alvarez D
18d8c90c3f
Updated docs for pathname ( #9964 )
...
* Updated docs for pathname
* Apply suggestions from Tim
Co-Authored-By: Tim Neutkens <tim@timneutkens.nl>
* Removed trailing dots
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-08 11:56:17 +01:00
Joe Haddad
3c8fff354b
Simplify <Link>
Prefetch Deduping ( #9987 )
...
* Simplify `<Link>` Prefetch Deduping
* Fix test
* Update test/integration/preload-viewport/test/index.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-07 18:25:44 -05:00
Joe Haddad
c387986b6a
v9.1.8-canary.5
2020-01-07 17:12:54 -05:00
Joe Haddad
8686fca6a4
Fix Browserslist Integration for CSS ( #9985 )
...
* Fix Browserslist Loading
* Fix Browserslist Integration for CSS
* Add missing file
2020-01-07 16:59:58 -05:00
Joe Haddad
c6e6d98f9a
v9.1.8-canary.4
2020-01-06 16:41:14 -05:00
Joe Haddad
c512b04ed9
v9.1.8-canary.3
2020-01-06 15:52:33 -05:00
Joe Haddad
2757826cf7
Use <script defer>
by default, matching <script type=module>
( #9966 )
...
* Use `<script defer>` by default, matching `<script module>` behavior
* remove old test
2020-01-06 14:55:08 -05:00
Felix Mosheev
dea80b8565
Allow libs that ends with next/dist
such as i18next
, next-i18next
, react-i18next
to be external ( #9956 )
...
fixes #9022
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-06 14:27:36 -05:00
JJ Kasper
501587ab2c
v9.1.8-canary.2
2020-01-06 11:27:13 -06:00
Joe Haddad
a50a0577d2
Fix Tests ( #9963 )
2020-01-06 10:43:26 -06:00
Brian Mathews
5a2182e62e
Add assetPrefix when fetching script and style dependencies ( #9933 )
...
* Add assetPrefix when fetching script and style dependencies for granularChunks
* Lint
* Fix assetPrefix usage with granularChunks
* Add tests for granularChunks with assetPrefix
* Cleanup
2020-01-06 10:55:39 -05:00
Tim Neutkens
32ec4f6913
Allow for shortened names for certain items ( #9949 )
...
* Use smaller name as it's not shortened
* Remove export as it's not used and it'll be shortened
* Update size
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-04 15:53:33 -05:00
JJ Kasper
1db6764c52
v9.1.8-canary.1
2020-01-04 12:14:26 -06:00
Tim Neutkens
7e817cab04
Remove rewriteUrlForNextExport from bundles when option is not enabled ( #9946 )
...
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-04 12:16:57 -05:00
Tim Neutkens
72a0c5578e
Remove async from void functions in page-loader ( #9948 )
...
* Remove async from void functions in page-loader
* Fix void return
* Update page-loader.js
* Update index.test.js
2020-01-04 11:58:32 -05:00
Tim Neutkens
1fd57d22d5
Remove experiment ( #9945 )
...
* Remove experiment
* Add back ssr-prepass for serverless test
* Update size as they both decreased
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2020-01-04 17:40:18 +01:00
Tim Neutkens
8898b853e6
Don't bundle prop-types to then tree shake it ( #9944 )
2020-01-04 14:12:11 +01:00
Jerry Green
b66c34eac3
Fix js template to be TS compatible ( #9941 )
2020-01-04 12:41:35 +01:00
Joe Haddad
8ebc5461e4
v9.1.8-canary.0
2020-01-03 16:31:32 -05:00
Joe Haddad
9261b82a82
Enable New Chunking Behavior ( #9731 )
...
* Enable New Chunking Behavior
* fix tst
* Increase sizes in test
* add another test
* Fix preloading order
* Replace commons with framework
2020-01-03 15:55:10 -05:00
JJ Kasper
ae78e8f5be
Fix get(Static|Initial)Props re-running when updating query ( #9907 )
...
* Add failing test for re-calling getStaticProps after updating query
* Fix get(Static|Initial)Props re-running when updating query
* Update invalid export tests
Co-authored-by: Joe Haddad <timer150@gmail.com>
2020-01-03 15:36:24 -05:00
Joe Haddad
8e2ff2cd1f
v9.1.7
2020-01-03 14:54:11 -05:00
Joe Haddad
a701072fc6
v9.1.7-canary.16
2020-01-03 13:19:52 -05:00
Joe Haddad
878ee56bb9
Fix New CSS Support Media Paths ( #9916 )
...
* Fix CSS Media Paths
* update test
* Use absolute path
* Add new tests
* fix import
2020-01-03 12:45:04 -05:00
Igor Crispim Diniz
2f1b15c674
Fix _app global css import order ( #9836 )
...
* fix root components import order
* import order tests
* chunks attachment order tests
2020-01-03 18:00:06 +01:00
Tim Neutkens
3a797f1a38
v9.1.7-canary.15
2020-01-03 17:14:01 +01:00
Tim Neutkens
c8799f9e7d
Enable catchAllRouting by default ( #9922 )
2020-01-03 16:51:26 +01:00
Tim Neutkens
ed1424197c
v9.1.7-canary.14
2020-01-03 11:46:14 +01:00
JJ Kasper
6e1762a751
Remove extra logging from on-demand-entries ( #9909 )
...
* Remove extra logging from on-demand-entries
* Update on-demand-entry-handler.ts
* Update on-demand-entry-handler.ts
* Update on-demand-entry-handler.ts
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2020-01-03 11:43:36 +01:00
Joe Haddad
aa04318773
v9.1.7-canary.13
2020-01-02 18:48:56 -05:00
Joe Haddad
00179adcaa
Fix User Error in Async API Endpoint ( #9911 )
2020-01-02 18:47:39 -05:00
JJ Kasper
ad7bb4e352
Add headers support to custom-routes ( #9879 )
...
* Add headers support to custom-routes
* Update manifest version test
* Add headers field for dynamic routes test
* Update test
2020-01-01 13:47:58 +01:00
JJ Kasper
7bf6aca7be
v9.1.7-canary.12
2019-12-31 16:09:59 -06:00
JJ Kasper
8132524d24
Revert version bump for routes-manifest ( #9896 )
2019-12-31 16:06:09 -06:00
JJ Kasper
5c72663c87
Ensure params in query are updated for custom-routes ( #9797 )
...
* Add handling for params in destination query
* Update describe name
2019-12-31 14:13:55 -06:00
Joe Haddad
4f0c74c543
Fix Potential Duplication of Page Loading ( #9894 )
2019-12-31 12:19:39 -06:00
JJ Kasper
b6d513146e
v9.1.7-canary.11
2019-12-30 17:54:51 -06:00
Joe Haddad
8247f19f10
Defer Loading CSS Configuration ( #9889 )
2019-12-30 17:53:35 -06:00
Joe Haddad
b0892eff1d
v9.1.7-canary.10
2019-12-30 17:57:32 -05:00
Joe Haddad
0957ed6f32
Use Cached SSG Data on History Navigation ( #9887 )
...
* Use Cached SSG Data on History Navigation
* Add data caching test
* Create a static data cache
* Eliminate an if / return
* Do not cache in dev mode
* bump
* bump
* bump
* bump
Co-authored-by: JJ Kasper <jj@jjsweb.site>
2019-12-30 17:57:06 -05:00
JJ Kasper
39ccd8ffe8
Add error for rewrite to auto-exported dynamic page ( #9816 )
...
* Add error for rewrite to auto-exported dynamic page
* Update packages/next/next-server/server/render.tsx
Co-authored-by: Joe Haddad <timer150@gmail.com>
2019-12-30 14:06:38 -05:00
Joe Haddad
078b2a5e49
Refactor SSG Data Fetching ( #9884 )
2019-12-30 12:40:23 -06:00
JJ Kasper
cad5a84e51
v9.1.7-canary.9
2019-12-30 09:44:45 -06:00
Tim Neutkens
df97f2d93c
Update native-url for peerdep ( #9882 )
...
Fixes https://github.com/zeit/next.js/issues/9687#issuecomment-569632942
2019-12-30 11:30:50 +01:00
JJ Kasper
148084006a
Add basePath to routes-manifest ( #9875 )
...
* Add basePath to routes-manifest
* Bump routes-manifest version
* Update tests for version bump
2019-12-30 11:23:26 +01:00
Tim Neutkens
ae567bfc29
v9.1.7-canary.8
2019-12-29 20:05:27 +01:00
Tim Neutkens
86808bbce2
Add basePath support ( #9872 )
...
* Add basePath support
* Add tests including copy of HMR tests
* Add production tests
* Add tests for serverless target
* Add missing quotes
2019-12-29 20:03:12 +01:00
Joe Haddad
2d0ad7d40c
Refactor Router#getInitialProps ( #9853 )
...
This PR refactors `Router#getInitialProps` in preparation for dedicated SSG fetching logic. This PR should have no functional change -- please review it carefully.
2019-12-29 14:01:46 -05:00
Joe Haddad
be3b5b7c5f
Register Created Bindings ( #9864 )
2019-12-28 16:01:01 -06:00
Joe Haddad
f1f464b366
v9.1.7-canary.7
2019-12-27 15:27:33 -05:00
Joe Haddad
edf63e597d
Expose CSS Issuer When Error ( #9850 )
...
* Expose CSS Issuer When Error
This introduces a friendlier error for invalid CSS imports by telling you the offending file.
---
Fixes #9847
* fix test matches
2019-12-27 13:56:33 -06:00
Joe Haddad
14b18da055
Special Global CSS Error within node_modules
( #9849 )
2019-12-27 13:35:37 -05:00
Joe Haddad
5bd58d5aca
v9.1.7-canary.6
2019-12-27 13:23:14 -05:00
Joe Haddad
a56d9a918c
Do Not Run File Loader on Server ( #9843 )
2019-12-26 16:17:37 -06:00
Joe Haddad
6b50b1322b
Allow Boolean API Response ( #9842 )
2019-12-26 15:38:12 -06:00
Joe Haddad
ec440d4b7b
Allow Empty API Body ( #9838 )
2019-12-26 14:23:06 -05:00
Joe Haddad
9e680b4cb2
v9.1.7-canary.5
2019-12-26 12:06:27 -05:00
Joe Haddad
69a34dd778
Fix IE11 Prefetching ( #9823 )
2019-12-24 15:40:06 -05:00
Tim Neutkens
3e05139dc3
v9.1.7-canary.4
2019-12-24 16:59:36 +01:00
Jason Miller
93c745c2b7
[Experimental] Move Babel transpile into a cached thread pool ( #9331 )
...
* Add cached off-thread babel transpile
* Update webpack-config.ts
Co-authored-by: Tim Neutkens <tim@timneutkens.nl>
2019-12-24 16:58:50 +01:00
Joe Haddad
632e40f266
Optimize Prefetching ( #9818 )
...
* Optimize Prefetching
* fix css client nav test
* fix preload viewport test
* fix production test
* patch tests more
* Make page loader wait on prefetch
* no unhandled rejection
* Save some bytes
2019-12-24 10:07:44 -05:00
Joe Haddad
86025c84eb
v9.1.7-canary.3
2019-12-23 16:22:42 -05:00
JJ Kasper
b9865ba32e
Add checking filesystem after each rewrite ( #9568 )
...
* Add check: true behavior to custom routes
* Update adding dev routes
* Add checking of pages and dynamic routes for check: true
* Fix hasPage binding
* Add tests for check: true behavior
* Update regex checking
* Make changes based on review
* Update to handle rewrites in serverless loader
* Update to not change req.url
* Make sure to always parse dynamic route params
* Export all of pathToRegexp from path-match
Co-authored-by: Joe Haddad <timer150@gmail.com>
2019-12-23 16:20:17 -05:00
Joe Haddad
5c3f9ba745
Add Specific Error for Function in PostCSS Config ( #9815 )
2019-12-23 14:43:38 -06:00
JJ Kasper
17fe6e3221
v9.1.7-canary.2
2019-12-20 15:58:59 -06:00
JJ Kasper
1ec7716fe6
Prevent re-observing for an already prefetched page ( #9644 )
...
* Prevent re-observing for an already prefetched page
* Update size-limit test
* Move prefetched setting
* Remove extra prefetched setting
2019-12-20 15:30:58 -06:00
JJ Kasper
dcab416d6d
v9.1.7-canary.1
2019-12-20 12:32:35 -06:00
JJ Kasper
1de765e452
Update to close SSE connection before unload ( #9798 )
2019-12-20 12:01:22 -06:00
JJ Kasper
163f607160
Add parsing of route source during checking ( #9787 )
...
* Add parsing of route during checking
* Update err.sh
2019-12-19 10:48:34 -06:00
Lachlan Campbell
8e1046d94a
Fix error message typo: "Keys that need moved" ( #9772 )
2019-12-17 14:25:02 -10:00
JJ Kasper
ac9f1665ef
v9.1.7-canary.0
2019-12-17 11:13:24 -06:00
JJ Kasper
463d30ec9d
Add handling for external redirects ( #9764 )
2019-12-17 11:02:39 -06:00
Tim Neutkens
dbc0853ed4
v9.1.6
2019-12-17 10:49:31 +01:00
JJ Kasper
bdedf2c057
v9.1.6-canary.11
2019-12-16 11:46:59 -06:00
JJ Kasper
fd95d6c8bc
Fix AMP HMR for child components ( #9736 )
2019-12-16 11:45:48 -06:00
Tim Neutkens
2ba056aa20
Add check for invalid assetPrefix ( #9759 )
...
* Add check for invalid assetPrefix
* Update test/integration/invalid-config-values/test/index.test.js
Co-Authored-By: JJ Kasper <jj@jjsweb.site>
2019-12-16 16:07:03 +01:00
JJ Kasper
a32af59e93
Fix Shared Sizes Missing Commons ( #9752 )
...
* Fix shared sizes missing commons
* Add tests
2019-12-14 12:23:04 -07:00
Taylor Bryant
eee4efd0e8
Fix typo (change imperatively
to imperative
) ( #9750 )
2019-12-14 11:56:33 -07:00