diff --git a/package.json b/package.json index 0b4af37..9a75d3d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "gatsby-remark-source-name", - "version": "1.0.0", + "version": "2.0.0", "description": "Add a custom sourceName field to remark nodes", "main": "index.js", "repository": "https://www.github.com/elboman/gatsby-remark-source-name", diff --git a/src/gatsby-node.js b/src/gatsby-node.js index fd28854..d659eb9 100644 --- a/src/gatsby-node.js +++ b/src/gatsby-node.js @@ -1,5 +1,5 @@ -exports.onCreateNode = ({ node, getNode, boundActionCreators }) => { - const { createNodeField } = boundActionCreators; +exports.onCreateNode = ({ node, getNode, actions }) => { + const { createNodeField } = actions; // We only care about MarkdownRemark content. if (node.internal.type !== 'MarkdownRemark') {