Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uuidv5 v1 #3683

Merged
merged 4 commits into from
Jan 25, 2018
Merged

Uuidv5 v1 #3683

merged 4 commits into from
Jan 25, 2018

Conversation

danielfarrell
Copy link
Contributor

This is targeted at master and makes the UUID creation a helper method that gets passed along to plugins

refs #1853

@ghost ghost assigned danielfarrell Jan 24, 2018
@ghost ghost added the review label Jan 24, 2018
@gatsbybot
Copy link
Collaborator

gatsbybot commented Jan 24, 2018

Deploy preview for gatsbygram ready!

Built with commit 3877b5f

https://deploy-preview-3683--gatsbygram.netlify.com

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thanks for pushing this.

@@ -76,6 +77,7 @@ const runAPI = (plugin, api, args) => {
reporter,
getNodeAndSavePathDependency,
cache,
createNodeId,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can't remember if we talked about this but we should automatically set the namespace for each plugin using its name. That way there's no chance that ids could clash.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, that was mentioned before, yeah. Obviously not here yet, but I'll add it quick.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ha, actually it was half here, the method takes a namespace, just wasn't setting that up properly.

@KyleAMathews
Copy link
Contributor

Awesome, thanks!

@KyleAMathews
Copy link
Contributor

Oh, could you update the snapshots so Travis passes?

@danielfarrell
Copy link
Contributor Author

Pushed. Sorry, my test suite was fairly broken(I hadn't run bootstrap recently) and I didn't realize that was keeping the wordpress snapshot from updating.

@KyleAMathews KyleAMathews merged commit 5818936 into gatsbyjs:master Jan 25, 2018
@ghost ghost removed the review label Jan 25, 2018
@KyleAMathews
Copy link
Contributor

nice, thanks!

@danielfarrell danielfarrell deleted the uuidv5-v1 branch January 25, 2018 22:07
@pieh
Copy link
Contributor

pieh commented Jan 31, 2018

Can we define in plugins package.json what version of gatsby they rely on? (my package.json dependencies knowledge is weak)

For context #3787

@KyleAMathews
Copy link
Contributor

@pieh yeah we're adding Gatsby as a peerDependencies for plugins for this sort of thing. Many plugins won't need updated for v2 so we can just add ^2.0.0 to the peerDependency string and things will keep working.

@TuckerWhitehouse TuckerWhitehouse mentioned this pull request Feb 16, 2018
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants