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