JJ Kasper
a34ecc0a4e
Remove route cache key ( #6921 )
2019-04-06 14:05:55 -05:00
JJ Kasper
8e51c78ed5
Add test for AMP in serverless mode ( #6894 )
...
* Add amp request header and check for amp
query in serverless mode
* Add serverless test for an AMP page
* Update to handle querystring weirdness
* Update serverless test config
2019-04-04 14:55:47 -05:00
Tim Neutkens
b38446717a
Allow only values that can be serialized to key ( #6881 )
...
@ijjk
2019-04-03 20:43:20 +02:00
Tim Neutkens
5288aaafbd
Temporarily pass arguments directly ( #6876 )
2019-04-03 14:51:59 +02:00
Tim Neutkens
b1fdffec75
amp-bind data injection ( #6840 )
2019-04-02 16:09:34 +02:00
Connor Davis
861edad459
Implement Recursive Delete ( #6489 )
...
Removes `rimraf` for a smaller custom lib
Benchmarks (in ms):
```
rimraf 1
518.536376
rimraf 2
416.112451
rimraf 3
451.905842
rimraf 4
525.117395
rimraf 5
434.230384
---- Average: 469.18ms
-----------
recursive delete 1
121.493979
recursive delete 2
130.335272
recursive delete 3
149.798316
recursive delete 4
182.184688
recursive delete 5
130.346207
--- Average: 142.83ms
```
`recursiveDelete` finishes in ~30% of the time it takes `rimraf` (3.3 times faster)
2019-03-05 14:01:42 +01:00
Connor Davis
5514949df0
Remove glob package ( #6415 )
...
We don't use a lot of the features of `glob`, so let's remove it in favor of a leaner approach using regex.
It's failing on windows and I have no idea why and don't own a windows machine 🤦🏼♂️
(Ignore some of the commits in here, I forgot to create the new branch before I started working)
2019-02-24 22:08:35 +01:00
Connor Davis
b146eb5200
Replace del
with rimraf
package ( #6411 )
2019-02-22 13:49:30 -06:00
Connor Davis
fcf1167cd4
Upgrade standard and fix files ( #6358 )
...
Upgrades `standard` to major version 12
2019-02-19 22:45:07 +01:00
Tim Neutkens
b4ade0a3cd
Revert "Move phases back to next/constants ( #6104 )"
...
This reverts commit 9112f63eba
.
2019-01-26 02:01:49 +01:00
Tim Neutkens
9112f63eba
Move phases back to next/constants ( #6104 )
...
* Move phases back to next/constants
* Fix typescript error
2019-01-23 14:10:12 +01:00
Tim Neutkens
9ffd23eeef
Replace pages-plugin with loader ( #5994 )
...
* Remove unused argument
* Replace pages-plugin with loader
* Add loader-utils types
* Remove logs
* Bring back previous deposal behavior
* Remove console.log
* Remove webpack/utils as it’s no longer in use
* Remove hot-self-accept-loader
* Error Recovery tests
* Make hotSelfAccept a noop default loader
* Fix windows deleted/added
* Remove logging
* Remove unused variables
* Remove log
* Simplify entrypoint generation
* Don’t return the function
* Fix _app test
* Remove code that’s always true
* Move aliases to constants
* Use alias
* Join pages alias in reduce
* Default pages differently
* Loop over pages instead of manually defining
* Move entry generation into common function
* Update packages/next/build/webpack/loaders/next-client-pages-loader.ts
Co-Authored-By: timneutkens <tim@timneutkens.nl>
* Update packages/next/build/webpack/loaders/next-client-pages-loader.ts
2019-01-08 23:10:32 +01:00
Tim Neutkens
fb92fdef54
Make sure const/async is transpiled ( #5760 )
...
* Make sure const/async is transpiled
* Use babel common compilation instead
2018-11-28 17:53:49 +01:00
Tim Neutkens
15bb1c5e79
Use Typescript to transpile Next.js core files instead of Babel ( #5747 )
...
- Replaces taskr-babel with taskr-typescript for the `next` package
- Makes sure Node 8+ is used, no unneeded transpilation
- Compile Next.js client side files through babel the same way pages are
- Compile Next.js client side files to esmodules, not commonjs, so that tree shaking works.
- Move error-debug.js out of next-server as it's only used/require in development
- Drop ansi-html as dependency from next-server
- Make next/link esmodule (for tree-shaking)
- Make next/router esmodule (for tree-shaking)
- add typescript compilation to next-server
- Remove last remains of Flow
- Move hoist-non-react-statics to next, out of next-server
- Move htmlescape to next, out of next-server
- Remove runtime-corejs2 from next-server
2018-11-28 15:03:02 +01:00
Tim Neutkens
9d30e411b5
Fallback to <script> loading behavior when preload is not supported ( #5744 )
...
Based on https://github.com/zeit/next.js/pull/5737#discussion_r236059295
This will cause a warning in chrome/safari after 3s
2018-11-26 23:58:40 +01:00
Tim Neutkens
cad19c808c
Use <link rel=“prefetch”> for prefetching ( #5737 )
...
* Use <link rel=“prefetch”> for prefetching
Fixes #5734
* Fix unit tests for router
* Add test for prefetch
* Rename test
* Check all logs for message
2018-11-25 00:47:39 +01:00
Tim Neutkens
785377d3c3
Add missing dependencies to server ( #5369 )
...
- compile default pages correctly into `.next`
- add missing runtime dependencies
2018-10-03 00:08:57 +02:00
Tim Neutkens
82d56e063a
next-server ( #5357 )
2018-10-02 00:55:31 +02:00
Tim Neutkens
b1c4f3aec4
Monorepo ( #5341 )
...
- Implements Lerna
- Moves all source code into `packages/next`
- Keeps integration tests in the root directory
2018-10-01 01:02:10 +02:00