From 12c6006b23728b90f5511c931653a76ac2d41903 Mon Sep 17 00:00:00 2001 From: Bruno Dulcetti Date: Tue, 2 Oct 2018 23:40:17 -0300 Subject: [PATCH 1/3] Change replaceHistory to replaceComponentRenderer --- src/gatsby-browser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatsby-browser.js b/src/gatsby-browser.js index 6ed7271..4c4e39b 100644 --- a/src/gatsby-browser.js +++ b/src/gatsby-browser.js @@ -4,4 +4,4 @@ import createHistory from "history/createBrowserHistory" * Removes prefix from paths once links are clicked on by removing the basename * @see {@link https://github.com/gatsbyjs/gatsby/blob/v2.0.0-alpha.20/packages/gatsby/cache-dir/history.js#L10} */ -export const replaceHistory = () => createHistory() +export const replaceComponentRenderer = () => createHistory() From 1cb0123c92f6eb2d6f9ab78ec5bc79524ec155f7 Mon Sep 17 00:00:00 2001 From: Bruno Dulcetti Date: Tue, 2 Oct 2018 23:41:17 -0300 Subject: [PATCH 2/3] Change replaceStaticRouterComponent to replaceRenderer --- src/gatsby-ssr.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gatsby-ssr.js b/src/gatsby-ssr.js index 0d5327e..4083811 100644 --- a/src/gatsby-ssr.js +++ b/src/gatsby-ssr.js @@ -7,6 +7,6 @@ import { StaticRouter } from "react-router-dom" * @see {@link https://next.gatsbyjs.org/docs/ssr-apis/#replaceStaticRouterComponent} * @see {@link https://github.com/gatsbyjs/gatsby/blob/v2.0.0-alpha.20/packages/gatsby/cache-dir/static-entry.js#L114} */ -export const replaceStaticRouterComponent = () => { +export const replaceRenderer = () => { return ({ basename, ...props }) => } From 5effd336ad91c85cdf3f9e278c4d2c75bc30bcf9 Mon Sep 17 00:00:00 2001 From: Bruno Dulcetti Date: Wed, 3 Oct 2018 11:41:02 -0300 Subject: [PATCH 3/3] update version of package --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 775e7be..14d44c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-plugin-asset-path", - "version": "0.1.1", + "version": "0.2.1", "description": "Gatsby plugin that moves JS and CSS files and static folder to a custom folder", "main": "index.js", "scripts": {