1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/lib
Sergio Daniel Xalambrí 38822717a9 Add support for URL objects in Link and Router (#1345)
* Add support for URL objects in Link and Router

* Fix typo in comment

* Fix possible bug if the `href` prop is `null`

* Document the usage of URL objects in Link and Router

* Update readme.md

* Parse URL to get the host & hostname in `isLocal`

This should check if the current location and the checked URL have the same `host` or `hostname`.

* Format `as` parameter from object to string if required

* Format `href` and `as` inside the construct and componentWillReceiveProps

* Use `JSON.stringify` to compare objects

* Add usage example

* chore(package): update chromedriver to version 2.28.0 (#1386)

https://greenkeeper.io/

* Refactor the codebase a bit.

* Change the example name.

* Add a few test cases.

* Add the example to the README.
2017-03-12 09:27:51 +05:30
..
router Add support for URL objects in Link and Router (#1345) 2017-03-12 09:27:51 +05:30
app.js Shallow routing changes (#1363) 2017-03-06 10:14:10 -08:00
css.js Remove traces of glamor (#1286) 2017-02-26 17:58:00 +05:30
error-debug.js tweak font sizes again 🙈 2017-01-21 18:12:27 -08:00
error.js Fix status messages on error (#1131) 2017-02-14 16:15:42 +01:00
eval-script.js remove gulpfile.js (#1092) 2017-02-12 17:32:45 +01:00
head.js Add default utf-8 charset. (#270) 2016-11-17 15:06:54 -08:00
link.js Add support for URL objects in Link and Router (#1345) 2017-03-12 09:27:51 +05:30
p-queue.js improve prefetch (#1161) 2017-02-16 00:59:42 +05:30
prefetch.js fix prefetch url (#1154) 2017-02-15 15:01:03 +01:00
shallow-equals.js Added linting using standard (#27) 2016-10-16 17:00:17 -07:00
side-effect.js batch update head contents (#129) 2016-10-28 23:39:20 +09:00
utils.js Add better hash URL support. (#1250) 2017-02-28 09:31:17 -08:00