Commit graph

4151 commits

Author SHA1 Message Date
JJ Kasper
1dbacda576
Remove extension from err.sh link (#8500)
* Remove extensions from err.sh link

* Remove .md from test also
2019-08-23 17:00:57 -05:00
JJ Kasper
30cd8c2840
v9.0.5-canary.2 2019-08-23 16:19:30 -05:00
JJ Kasper
674ba17211
Update prerender-manifest structure (#8497) 2019-08-23 16:17:40 -05:00
Henrik Wenz
483cd1052f Refactor data-fetch example (#8490)
* Remove eslint exclusion

https://www.npmjs.com/package/isomorphic-unfetch

* Fix emoji char

* Update preact.js
2019-08-23 11:24:47 -04:00
Luis Fernando Alvarez D
64e8c61dcf Update ./static/ folder documentation (#8477)
* Improve the static folder note

* Update README.md
2019-08-23 11:10:30 -04:00
Joe Haddad
5396ab473a
Remove front from examples 2019-08-23 10:47:40 -04:00
Alex Castle
3970a26b92 Tweaks and test for library chunks fixes (#8482)
* Adjust lib chunk naming algorithm and prevent duplicate react-dom

* Remove alias for react-dom and update separator replacement logic

* Add comment to webpack-config

* Add integration test for react-dom duplication

* Switch to using hash for lib chunk names

* remove extra file from PR

* Remove another extraneous change

* Remove test based on lib chunk name

* Update index.test.js
2019-08-23 10:28:48 -04:00
Henrik Wenz
a9325f123a Remove prefetch attributes from examples (#8481)
* Remove prefetch from with-apollo-and-redux-saga example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from using-inferno example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from with-apollo-and-redux example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from with-apollo-auth example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from with-tailwindcss example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from with-graphql-hooks example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated

* Remove prefetch from data-fetch example

Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
2019-08-23 10:12:25 -04:00
Henrik Wenz
7eda3bc632 Fix invalid href with-tailwindcss example (#8488)
Uncaught (in promise) Error: Invalid href passed to router: https://github.com/zeit/next.js https://err.sh/zeit/next.js/invalid-href-passed
2019-08-23 09:39:46 -04:00
Joe Haddad
f890482871
Check for TypeScript files for auto setup (#8479)
* Check for TypeScript files for auto setup
This re-adds the behavior and only checks the `pages` directory for speed reasons.

* Adjust logic

* Handle not found too
2019-08-22 22:01:12 -04:00
迷渡
4a864ca951 fix duplicate spaces in readme (#8484) 2019-08-22 20:47:43 -05:00
JJ Kasper
56a134409c Debug TypeScript test suite (#8476)
* Tweak typescript test suite

* Revert "Tweak typescript test suite"

This reverts commit 9e0108da7c70e7ae45b412b60c07162383de65f3.

* Make sure HMR connection isn't being closed
while testing

* Update to not re-use NODE_ENV

* Break up/rework TypeScript test suite

* bump
2019-08-22 16:34:24 -04:00
JJ Kasper
bf11421992 Add deprecation warning for App Container (#8475)
* Add deprecation warning for App Container

* Apply suggestions from code review

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

* Tweak for more dead-code elimination
2019-08-22 16:19:15 -04:00
JJ Kasper
be850d0353
Add warning when empty object is returned from getInitialProps (#8474)
* Add warning when empty object is returned
from getInitialProps

* Apply suggestions from code review

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

* Apply suggestions from code review

Co-Authored-By: Jan Potoms <potoms.jan@gmail.com>
2019-08-22 12:06:30 -05:00
Joe Haddad
d85dfecd5e
v9.0.5-canary.1 2019-08-22 11:53:08 -04:00
Sojin Park
7c0ac82264 Fix bug in hook destructuring optimization when ignoring array elements (#8455)
* Fix bug in hook destructuring optimization when ignoring array elements

* Add test cases
2019-08-22 11:21:34 -04:00
Alex Castle
3896cbe712 Adjust lib chunk naming algorithm and prevent duplicate react-dom (#8450)
* Adjust lib chunk naming algorithm and prevent duplicate react-dom

* Remove alias for react-dom and update separator replacement logic

* Add comment to webpack-config
2019-08-22 10:46:11 -04:00
Jesse Katsumata
3e912323f8 Update redux example using hooks api (#8410)
* Update redux example with hooks api

* Update react and react-redux package

* Apply standard style
2019-08-21 16:23:18 -05:00
Henrik Wenz
a256270e15 [with-apollo] Remove prefetch attibutes (#8465)
Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://err.sh/zeit/next.js/prefetch-true-deprecated
2019-08-21 12:20:57 -04:00
Ran Yitzhaki
c3b18fdeaa Fix a broken link in webpack config (#8456)
* Fix a broken link in webpack config

* Update test
2019-08-21 11:58:31 -04:00
Henrik Wenz
878a92f101 Remove Duplicate Assignment (#8464) 2019-08-21 09:23:25 -05:00
Julien Bouquillon
1007777471 doc: typo fix (#8460)
* doc: typo fix

* fix glitch
2019-08-21 14:38:14 +02:00
Joe Haddad
f41f630d19
v9.0.5-canary.0 2019-08-20 17:25:46 -04:00
JJ Kasper
9c8aaf9d4b Fix build-manifest not removing _app files for modern (#8447) 2019-08-20 15:32:03 -04:00
Jason Miller
8bd2e433de Initial optimizeLibraries experimental flag (#8345)
* Add experimental optimizeLibraries flag, currently prunes Moment.js locales

* expose moment for use in assertion

* try with the same setup as the production integration test

* Apply optimiztaions in dev and on server so they're consistent.

* fix build (oh dear)

* Update index.test.js

* Rename flag to future.excludeDefaultMomentLocales

* Adjust impl
2019-08-20 15:19:45 -04:00
Borek Bernard
233152ee17 Add package.json to with-zones example, make create-next-app work (#8453)
* Add package.json to with-zones example

So that create-next-app works.

* Update README – no need to run `yarn` / `npm i`

This example doesn't have any dependencies in its package.json,
everything is handled by running `now dev`.
2019-08-20 14:45:16 -04:00
Lukáš Huvar
f0b6d0a1e2 Fix custom page extension in development (#8446)
* Fix page extension in development

* Remove un-used file

* Fix standard
2019-08-20 13:38:30 -04:00
Joe Haddad
5ad0ea8e5b
Remove __NEXT_REPLACE__BUILD_ID__ workaround (#8445)
We no longer need this because we don't run terser on serverless bundles.

---

Closes https://github.com/zeit/next.js/issues/8436
2019-08-20 12:38:14 -04:00
Joe Haddad
847e892d71
Remove Flying Shuttle experiment (#8433)
* Remove Flying Shuttle experiment

* Remove more old tests

* Remove minify loader
2019-08-20 11:07:57 -04:00
Lukáš Huvar
0e01435f64 Change FAQ for dynamic routing (#8439) 2019-08-20 14:40:13 +02: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
Joe Haddad
211dad31c2
Adjust experimental warning (#8432)
* Adjust experimental warning
This adds some flare to the experimental warning message.

* Update test
2019-08-20 01:56:55 -04:00
Joe Haddad
1d9fd6a51b
Adjust Create Next App install env (#8431) 2019-08-20 00:41:51 -04:00
Stanislav Morozevich
718e577169 Update with-apollo-auth example (#8416)
* Provide default value for apolloState

* Use hooks api

* Fix formatting problems

* Use useRef hook

* Add simple comment about displayName

* Go with caret for react-hooks and react-ssr
2019-08-19 23:49:24 -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
Kristoffer K
3fa7c12857 [with-electron] Upgrade electron & transpile for the installed version (#8399)
* Upgrade packages

* Transpile for the installed electron version

* standard --fix
2019-08-19 23:25:43 -04:00
Joe Haddad
a271ab3633
Add a fallback CODEOWNER 2019-08-19 23:14:11 -04:00
Joe Haddad
2ddf05a55b
Add myself as CODEOWNER 2019-08-19 23:12:46 -04:00
paulogdm
2ab5c86641 Update Zones Documentation (#8426)
* Update README.md

Small typo reported on Spectrum. Kudos to @borekb

* Update packages/next/README.md

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

* Update packages/next/README.md

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

* Update packages/next/README.md

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

* Update README.md

* Update README.md
2019-08-19 19:43:01 -04:00
JJ Kasper
144eecd185 Add example with forwardRef to readme (#8428) 2019-08-19 17:17:31 -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
William
ec95927e14 Fix dynamic APIs with query params (#8386)
* Fix dynamic APIs with query params

If you define a dynamic API such as

```
pages/
  api/
    [id].js
```

This api becomes available at `/api/[id]`. If you send a request with
a query parameter the value of `req.query.id` will include the query
string as well as the path parameter.

E.g. the request to `/api/2?test=123` will result in `req.query`
being

```javascript
{
  id: "2?test=123",
  test: "123",
}
```

instead of

```javascript
{
  id: "2",
  test: "123",
}
```

* Fix url parse in serverless loader

* Add serverless test
2019-08-19 13:19:39 -04:00
undirectlookable
177524be8e Fix conflict between defaultPathMap and default 404.html export (#8366)
* Fix conflict between defaultPathMap and default 404.html export,if have a page in pages/404.js

* Update packages/next/export/index.js

Co-Authored-By: JJ Kasper <jj@jjsweb.site>

* add test export-override-404
2019-08-19 10:16:00 -05:00
Joe Haddad
1e1eae2f25 Upgrade send dep (#8424)
This upgrade adds native support for wasm.

---

Closes https://github.com/zeit/next.js/issues/8208
2019-08-19 15:24:12 +02:00
Matthew Sweeney
6dbc64ff28 Update Link for create-next-app (#8423) 2019-08-19 13:02:58 +02:00
none23
c13d1bca27 Fix a typo in with-reasonml-todo example (#8420)
Noticed a minor typo
2019-08-19 12:33:22 +02:00
Ondrej Sika
d7a6cddde6 next/bin/next - fix typo in help text (#8419) 2019-08-18 23:50:20 +02:00
JJ Kasper
b2b5ece322
v9.0.4-canary.7 2019-08-18 14:52:22 -05:00
Tim Neutkens
46c4f20cd3
Add custom profiler / tracer (#8378)
* Add custom profiler / tracer

This captures both client/production builds and everything before and after is cpu profiled, which makes sure that the whole process instead of just webpack is included in the final report.

* Update tests

* Update profiling-plugin.js

* Rename profiling-plugin.js to profiling-plugin.ts

* Update profiling-plugin.ts

* Update and rename profiling-plugin.ts to profiling-plugin.js

* Update webpack-config.ts

* Update profiling-plugin.js

* Add types

* Add missing type

* Add back TypeScript linting

* Remove tracing-js
2019-08-18 21:45:39 +02:00