Skip to content

Conversation

@stefanprobst
Copy link
Contributor

Currently we have three redux namespaces for plugins (flattenedPlugins, plugins, apiToPlugins). This PR reduces this to just flattenedPlugins.
Also: use flattenedPlugins.nodeAPIs in api-runner-node and page-hot-reloader.

@stefanprobst stefanprobst requested a review from a team March 3, 2019 18:00
@wardpeet
Copy link
Contributor

wardpeet commented Mar 4, 2019

this is cool! Thanks for the cleanup, I still need to test this out. Removing these namespaces does this mean it's a breaking change? I haven't looked really at it.

@stefanprobst
Copy link
Contributor Author

I don't think this was public API (?), so should be good.
apiToPlugins was introduced in #2588; and plugins is used once in page-hot-reloader. Both can easily just use flattenedPlugins.

@stefanprobst
Copy link
Contributor Author

Looks like the one usage in page-hot-reloader also got removed recently in #12671

@stefanprobst
Copy link
Contributor Author

@wardpeet Have you had a chance to look at this? Thanks!

@stefanprobst
Copy link
Contributor Author

Anything missing from this?

@wardpeet wardpeet self-assigned this Mar 26, 2019
@wardpeet
Copy link
Contributor

doing it tomorrow!

@DSchau DSchau added the status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response label Apr 1, 2019
@wardpeet
Copy link
Contributor

wardpeet commented Apr 2, 2019

Tomorrow took a while but i've tested it and read through the code and it looks 👌

Thanks!

@wardpeet wardpeet merged commit bba69e9 into gatsbyjs:master Apr 2, 2019
@stefanprobst
Copy link
Contributor Author

Cool thanks!

@stefanprobst stefanprobst deleted the remove-apitoplugins-namespace branch April 2, 2019 05:11
@sidharthachatterjee
Copy link
Contributor

Published in [email protected]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

status: awaiting reviewer response A pull request that is currently awaiting a reviewer's response

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants