Skip to content

Commit

Permalink
Final tweaks alpha15 (#968)
Browse files Browse the repository at this point in the history
* Some more updates to CHANGELOG

* Run format

* Missed changing this for node naming refactor

* Not a node so just 'type'
  • Loading branch information
KyleAMathews authored May 15, 2017
1 parent 9931b2c commit d9d8db8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,13 @@ components #928
### Changed

- Change node format to hide most node-specific fields under an "internal"
key #960
key. Any code referencing `node.type` and others will need changed to
`node.internal.type` #960
- Changed the id for the root `<div>` used by Gatsby to mount React to `___gatsby`
- The default layout component should be at `layouts/index.js` not `layouts/default.js` https://github.com/gatsbyjs/gatsby/pull/940#issuecomment-300537162
- `this.props.children` in layout components is now a *function* https://github.com/gatsbyjs/gatsby/pull/940#issuecomment-300878300

### Chore
- Upgrade Jest to v20 #935

## [1.0.0-alpha14] - 2017-05-05
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import crypto from 'crypto'
import parseMetadata from './parse'
import crypto from "crypto"
import parseMetadata from "./parse"

const digest = str => crypto.createHash(`md5`).update(str).digest(`hex`)

Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-transformer-react-docgen/src/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ERROR_MISSING_DEFINITION } from "react-docgen/dist/parse"
import findAllComponentDefinitions
from "react-docgen/dist/resolver/findAllComponentDefinitions"

import { cleanDoclets, parseDoclets, applyPropDoclets } from './Doclets'
import { cleanDoclets, parseDoclets, applyPropDoclets } from "./Doclets"

function getAssignedIdenifier(path) {
let property = path.parentPath
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby-transformer-remark/src/extend-node-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ module.exports = (
pluginsCacheStr = pluginOptions.plugins.map(p => p.name).join(``)

return new Promise((resolve, reject) => {
const files = allNodes.filter(n => n.type === `File`)
const files = allNodes.filter(n => n.internal.type === `File`)

// Setup Remark.
const remark = new Remark({
Expand Down
2 changes: 1 addition & 1 deletion packages/gatsby/src/schema/infer-graphql-type.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ function inferGraphQLType({
`Could not infer graphQL type for value: ${exampleValue}`
)

headType = inferredType.internal.type
headType = inferredType.type
}
return { type: new GraphQLList(headType) }
}
Expand Down

0 comments on commit d9d8db8

Please sign in to comment.