Commit graph

472 commits

Author SHA1 Message Date
Joe Haddad
9af587930f
v9.0.8-canary.4 2019-10-03 20:36:43 -04:00
Joe Haddad
8945cbcee0
v9.0.8-canary.3 2019-10-03 13:13:20 -04:00
Joe Haddad
3d5af360a4
v9.0.8-canary.2 2019-10-02 19:28:51 -04:00
Joe Haddad
b3cc32e9f4
v9.0.8-canary.1 2019-10-02 10:13:09 -04:00
Joe Haddad
1ff5005524
v9.0.8-canary.0 2019-10-01 14:27:31 -04:00
Tim Neutkens
4e1f1131bc v9.0.7 2019-09-28 14:45:57 +02:00
Tim Neutkens
f68556473a v9.0.7-canary.10 2019-09-28 14:16:03 +02:00
Tim Neutkens
1c58c5f461 v9.0.7-canary.9 2019-09-28 12:45:56 +02:00
Joe Haddad
e930961f42
v9.0.7-canary.8 2019-09-28 00:28:30 -04:00
Joe Haddad
c566b322a8
v9.0.7-canary.7 2019-09-27 14:49:01 -04:00
Joe Haddad
ebf1fe3da5
v9.0.7-canary.6 2019-09-25 11:39:43 -04:00
Tim Neutkens
fb9d777f6c v9.0.7-canary.5 2019-09-24 15:41:12 +02:00
JJ Kasper
85e720a092 Add experimental SPR support (#8832)
* initial commit for SPRv2

* Add initial SPR cache handling

* update SPR handling

* Implement SPR handling in render

* Update tests, handle caching with serverless next
start, add TODOs, and update manifest generating

* Handle no prerender-manifest from not being used

* Fix url.parse error

* Apply suggestions from code review

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>

* Replace set with constants in next-page-config

* simplify sprStatus.used

* Add error if getStaticProps is used with getInitialProps

* Remove stale TODO

* Update revalidate values in SPR cache for non-seeded routes

* Apply suggestions from code review

* Remove concurrency type

* Rename variable for clarity

* Add copying prerender files during export

* Add comment for clarity

* Fix exporting

* Update comment

* Add additional note

* Rename variable

* Update to not re-export SPR pages from build

* Hard navigate when fetching data fails

* Remove default extension

* Add brackets

* Add checking output files to prerender tests

* Adjust export move logic

* Clarify behavior of export aggregation

* Update variable names for clarity

* Update tests

* Add comment

* s/an oxymoron/contradictory/

* rename

* Extract error case

* Add tests for exporting SPR pages and update
/_next/data endpoint to end with .json

* Relocate variable

* Adjust route building

* Rename to unstable

* Rename unstable_getStaticParams

* Fix linting

* Only add this when a data request

* Update prerender data tests

* s/isServerless/isLikeServerless/

* Don't rely on query for `next start` in serverless mode

* Rename var

* Update renderedDuringBuild check

* Add test for dynamic param with bracket

* Fix serverless next start handling

* remove todo

* Adjust comment

* Update calculateRevalidate

* Remove cache logic from render.tsx

* Remove extra imports

* Move SPR cache logic to next-server

* Remove old isDynamic prop

* Add calling App getInitialProps for SPR pages

* Update revalidate logic

* Add isStale to SprCacheValue

* Update headers for SPR

* add awaiting pendingRevalidation

* Dont return null for revalidation render

* Adjust logic

* Be sure to remove coalesced render

* Fix data for serverless

* Create a method coalescing utility

* Remove TODO

* Extract send payload helper

* Wrap in-line

* Move around some code

* Add tests for de-duping and revalidating

* Update prerender manifest test
2019-09-24 10:50:04 +02:00
JJ Kasper
d0b982b020
v9.0.7-canary.4 2019-09-20 15:50:53 -05:00
Joe Haddad
b3d1b776df
v9.0.7-canary.3 2019-09-19 11:38:18 -04:00
Joe Haddad
4466e8ccb5
v9.0.7-canary.2 2019-09-18 20:24:00 -04:00
Joe Haddad
1aec686c80
v9.0.7-canary.1 2019-09-18 16:29:09 -04:00
Joe Haddad
e920e579f2
v9.0.7-canary.0 2019-09-18 15:16:05 -04:00
Joe Haddad
b4d349e6c1
Reduce Install Size (#8788)
* Reduce Install Size
This should shave a decent amount off our install size.

* Fix CSS source map emitting

* Fix generation

* Enable source maps for testing purposes

* Disable double comment

* Fix test regex
2019-09-18 13:59:46 -04:00
Joe Haddad
65358b7a33
Global CSS Support (#8710)
* Global CSS Support

* Fix webpack configuration

* oneOf rule isn't necessary yet

* Adjust CSS chunk naming

* Begin testing CSS behavior

* Add another test TODO

* Replace null-loader with ignore-loader

* Turn on chunks for new CSS feature

* Fix multi test suite

* Test CSS import order

* Test style HMR

* Test CSS compilation

* Test compilation and prefixing together

* Verify CSS styling works for Development and Production

* Add missing TODO

* Remove unnecessary test

* Adjust TODO message

* Hide page until React hydrates

* Revert "Hide page until React hydrates"

This reverts commit 898d4e0ee547b003d5790e2b11476740d645b907.

* Hide FOUC during development

* Test CSS imports

* Update tests TODO

* Add fixture for url() test

* Test `file-loader` support in CSS files

* Use a simple variant of cssnano

* Self-import

* Undo bundling

* Implement suggestion
2019-09-17 16:05:20 -04:00
Joe Haddad
20aa1e4d21
v9.0.6 2019-09-17 14:21:38 -04:00
Joe Haddad
85f84a040a
v9.0.6-canary.7 2019-09-17 13:24:34 -04:00
Joe Haddad
aa98323ed0
v9.0.6-canary.6 2019-09-17 00:22:13 -04:00
Tim Neutkens
369eceb0e7 v9.0.6-canary.5 2019-09-16 20:35:55 +02:00
JJ Kasper
204028d6ab Update build feedback with dots indicating activity (#8382)
* Add progress for analyzing and auto-prerendering

* Add typing for tty-aware-progress and use stdout

* Add fancier spinners

* Update spinner and add handling for logs while spinning

* Remove un-needed types package

* Remove progress and combine analyzing/prerendering messages
2019-09-16 17:37:00 +02:00
Joe Haddad
00e0281d71
v9.0.6-canary.4 2019-09-14 17:42:59 -04:00
JJ Kasper
2ae8b345db
v9.0.6-canary.3 2019-09-13 14:49:59 -05:00
Joe Haddad
25451ce47a
v9.0.6-canary.2 2019-09-13 10:53:16 -04:00
Maël Nison
d3c1731c09 Adds the PnP plugin by default (#8653)
* Adds the PnP plugin by default

* Covers loaders

* Fixes linting
2019-09-06 09:49:38 -04:00
Tim Neutkens
5a9b0ba2ce v9.0.6-canary.1 2019-09-05 16:11:08 +02:00
Tim Neutkens
2ba352da39 Move next-server back into next package (#8613)
* Initial move

* Make emitting work

* Update paths

* Remove leftover files

* Add correct externals configuration

* Import correct path

* Update path to work with ts-server test

* Update lib directory

* Compile next-server/lib
2019-09-04 10:00:54 -04:00
Tim Neutkens
d501b941f0 v9.0.6-canary.0 2019-09-04 10:54:38 +02:00
Giuseppe
ad0cca9549 Update styled-jsx (#8583)
* Update styled-jsx

Fixes an escaping issue in template literals that @lfades found

* Update next-server's styled-jsx also
2019-08-31 10:08:43 -05:00
Joe Haddad
1f4e34ca00
Anonymous Telemetry (#8529)
* Add anonymous telemetry

* Fix types

* Remove semver package

* Rename build time variable

* Track CSS-in-JS solutions

* Single retry and 5s timeout
2019-08-29 12:43:06 -04:00
JJ Kasper
f81b6d56e0 Replace worker-farm with jest-worker (#8496)
* Replace worker-farm with jest-worker

* Apply suggestions from code review

Co-Authored-By: Joe Haddad <joe.haddad@zeit.co>

* Remove semaphores on top of jest-worker, unwind
terser worker, and remove extra error log
2019-08-24 14:55:42 -04:00
Joe Haddad
2c7b4d8aaa
v9.0.5 2019-08-24 12:45:04 -04:00
Joe Haddad
0f92a8770a
v9.0.5-canary.3 2019-08-24 11:34:12 -04:00
JJ Kasper
30cd8c2840
v9.0.5-canary.2 2019-08-23 16:19:30 -05:00
Joe Haddad
d85dfecd5e
v9.0.5-canary.1 2019-08-22 11:53:08 -04:00
Joe Haddad
f41f630d19
v9.0.5-canary.0 2019-08-20 17:25:46 -04:00
Joe Haddad
df4f600291
🗜 Optimize client-side routing manifest (#8429)
* Optimize client-side routing manifest

* Turn on granularChunks for tests

* Add row for build manifest

* Hack it
2019-08-20 02:28:09 -04:00
Maël Nison
a8aa15af11 Adds basic support for PnP (#8427)
* Adds basic support for PnP

* Update preset.ts

* Update next-babel-loader.js
2019-08-19 23:39:07 -04:00
JJ Kasper
37c666976f
v9.0.4 2019-08-19 14:53:54 -05:00
JJ Kasper
8c26a08c9e
v9.0.4-canary.8 2019-08-19 12:45:10 -05:00
JJ Kasper
b2b5ece322
v9.0.4-canary.7 2019-08-18 14:52:22 -05:00
JJ Kasper
308c2cd4bc
v9.0.4-canary.6 2019-08-16 12:55:46 -05:00
Jason Miller
cfd6080435 Feature: Add transparent JSX optimization (#8350)
* Add transparent JSX optimization.

* fix duplicate React import

* fix React not being imported when only a single Fragment node is present in a source module

* remove babel-plugin-react-require

* Fix JSX optimization for CommonJS source files.
2019-08-15 17:07:34 -04:00
Joe Haddad
d3f25ccbc5
v9.0.4-canary.5 2019-08-14 14:15:43 -04:00
Joe Haddad
2d810950b2
v9.0.4-canary.4 2019-08-14 12:18:44 -04:00
Joe Haddad
5a8ed815fc
Define typeof window for application code only (#8355) 2019-08-13 22:02:53 -04:00
JJ Kasper
d9abbaded1 Remove experimental async-to-promises code (#8353) 2019-08-13 16:04:17 -04:00
Spencer Elliott
de4e16bf72 Add missing dependency "compression" to next-server (#8344)
* Add missing dependency "compression"

* Remove "compression" dependency from next
2019-08-13 12:03:50 -04:00
Tim Neutkens
963726d68e v9.0.4-canary.3 2019-08-11 22:44:23 +02:00
Joe Haddad
43370c1f8a
v9.0.4-canary.2 2019-08-08 14:19:46 -04:00
Joe Haddad
11d2206c32
v9.0.4-canary.1 2019-08-05 18:48:11 -04:00
JJ Kasper
e7d96f77bd
Add test for dynamic routing/webpack HMR bug (#8061)
* Add failing test for dynamic routing/webpack HMR bug

* Remove un-used args from onDemandEntryHandler

* update to latest webpack with escaping
2019-08-01 11:17:42 -05:00
Joe Haddad
00b56c6ede
v9.0.3 2019-07-31 16:14:36 -04:00
JJ Kasper
858f4eb8ec
v9.0.3-canary.6 2019-07-30 16:35:15 -05:00
Jason Miller
9659b4b555 Optional Server Compression (#8066)
* Add `compress` option to enable gzip compression in `next start`.

* Add compress option, defaulting to true

* Disable compression for serverless target

* Pin compression dep

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* Pin compression types

Co-Authored-By: Joe Haddad <timer150@gmail.com>

* lockfile update for locked compression deps

* simplify compression middleware application

* add test for compression
2019-07-29 14:35:09 -04:00
JJ Kasper
7b33fbbfe6
v9.0.3-canary.5 2019-07-29 11:54:02 -05:00
Felix Mosheev
730f9cc472 Update webpack to 4.38.0 (#8147) 2019-07-29 11:01:58 -04:00
Tim Neutkens
2b1a5c3eb4 v9.0.3-canary.4 2019-07-27 11:42:02 +01:00
Joe Haddad
22b58b1c66
v9.0.3-canary.3 2019-07-25 13:56:34 -04:00
Joe Haddad
5a54e8715a
v9.0.3-canary.2 2019-07-19 16:52:53 -04:00
Joe Haddad
2758060bfc
v9.0.3-canary.1 2019-07-17 23:43:17 -04:00
Joe Haddad
a07f40a5ec
v9.0.3-canary.0 2019-07-17 23:09:09 -04:00
Joe Haddad
becd07402e
v9.0.2 2019-07-16 11:50:20 -04:00
Joe Haddad
2a2ebfae74
v9.0.2-canary.1 2019-07-16 09:32:51 -04:00
Joe Haddad
571eb9817a
v9.0.2-canary.0 2019-07-15 20:13:10 -04:00
Joe Haddad
47160fb0aa
v9.0.1 2019-07-11 16:31:30 -04:00
Joe Haddad
bbe1e0f8a6
v9.0.1-canary.2 2019-07-11 14:53:10 -04:00
Joe Haddad
e5fa2beac1
v9.0.1-canary.1 2019-07-10 01:39:48 -04:00
Joe Haddad
7da546a3a5
v9.0.1-canary.0 2019-07-08 19:23:58 -04:00
Joe Haddad
b013e11be3
Upgrade to webpack with latest acorns (#7795)
Closes https://github.com/zeit/next.js/issues/6240
2019-07-08 15:36:55 -04:00
Tim Neutkens
66bf56ff7e v9.0.0 2019-07-08 08:43:07 +02:00
Joe Haddad
9f65e50b66
v8.1.1-canary.70 2019-07-08 02:23:36 -04:00
JJ Kasper
cc497568b4
v8.1.1-canary.69 2019-07-05 16:45:09 -07:00
Joe Haddad
7f3bdb1bf0
v8.1.1-canary.68 2019-07-05 01:08:29 -04:00
JJ Kasper
e00a2c5d64
v8.1.1-canary.67 2019-07-03 15:57:16 -07:00
Tim Neutkens
6a507fad1d v8.1.1-canary.66 2019-07-03 14:41:25 +02:00
Tim Neutkens
a88d6b7482 v8.1.1-canary.65 2019-07-03 13:44:09 +02:00
JJ Kasper
def94e6173
v8.1.1-canary.64 2019-07-01 15:23:15 -07:00
Joe Haddad
af94c27a9d
Upgrade watchpack to remove eslint-config-prettier (#7716) 2019-07-01 11:09:20 -04:00
JJ Kasper
aeeba6b2e8
v8.1.1-canary.63 2019-06-28 18:02:20 -07:00
Joe Haddad
808a3bcc66
v8.1.1-canary.62 2019-06-28 17:12:01 -04:00
JJ Kasper
44d8c624f4
v8.1.1-canary.61 2019-06-26 14:59:13 -07:00
JJ Kasper
bf04031f9d
v8.1.1-canary.60 2019-06-25 20:53:06 -07:00
JJ Kasper
ba373d8707
v8.1.1-canary.59 2019-06-25 20:09:20 -07:00
JJ Kasper
c773dae48a
v8.1.1-canary.58 2019-06-25 15:57:57 -07:00
JJ Kasper
5a1b32dcf1
v8.1.1-canary.57 2019-06-24 18:12:22 -07:00
JJ Kasper
9e22f06664
v8.1.1-canary.56 2019-06-24 16:45:18 -07:00
Joe Haddad
353e505172
Fix TypeScript typings (#7648)
* Fix TypeScript typing
This correctly defines `process.browser` instead of `process.env.browser`.

It also removes `process.crossOrigin` because it's not found in our documentation anywhere and is mostly used for internal purposes.

* Make sure `process.browser` doesn't throw a type error

* Split globals from Next.js module

* Allow `test` as a valid NODE_ENV

* Fix type assignment

* Make sure global types get published

* Fix test
2019-06-24 14:26:17 -04:00
Joe Haddad
31b3106a32
Revert "ncc Webpack build redux (#7628)"
This reverts commit e85a517e1a.
2019-06-24 09:48:26 -04:00
JJ Kasper
516325eafc
v8.1.1-canary.55 2019-06-21 11:17:26 -07:00
Guy Bedford
e85a517e1a ncc Webpack build redux (#7628)
* Reimplement ncc webpack build

This reverts commit 6feca310d7.

* Shared webpack build

* ncc workaround pending @zeit/ncc#437

* update ncc

* build tweaks, fixup autodll-import

* possible Node 8 fix

* second possible Node 8 fix

* and update taskfile
2019-06-21 12:28:41 -04:00
Joe Haddad
204e5a7171
v8.1.1-canary.54 2019-06-19 13:28:43 -04:00
JJ Kasper
1cad7e8e6a
v8.1.1-canary.53 2019-06-18 14:24:35 -07:00
JJ Kasper
feb31f4de7
v8.1.1-canary.52 2019-06-13 11:35:23 -07:00
Joe Haddad
7132995a0d
v8.1.1-canary.51 2019-06-11 13:59:09 -04:00
Joe Haddad
d1b7b82922
v8.1.1-canary.50 2019-06-10 12:30:00 -04:00