The new USER_AGENT_PREFIX option on Shopify.Context will allow us to add to the User-Agent header and track calls coming specifically from koa-shopify-auth as opposed to coming straight from the new library itself.
WHAT is this pull request doing?
Updates the initializeShopify method to use the Context.USER_AGENT_PREFIX. It will reference anything currently set as the prefix so that we are adding to, but not overriding, anything someone might also pass in using that setting.
Type of change
[ ] Patch: Bug (non-breaking change which fixes an issue)
[x] Minor: New feature (non-breaking change which adds functionality)
[ ] Major: Breaking change (fix or feature that would cause existing functionality to not work as expected)
Checklist
[x] I have added a changelog entry, prefixed by the type of change noted above
WHY are these changes introduced?
The new
USER_AGENT_PREFIX
option onShopify.Context
will allow us to add to theUser-Agent
header and track calls coming specifically fromkoa-shopify-auth
as opposed to coming straight from the new library itself.WHAT is this pull request doing?
Updates the
initializeShopify
method to use theContext.USER_AGENT_PREFIX
. It will reference anything currently set as the prefix so that we are adding to, but not overriding, anything someone might also pass in using that setting.Type of change
Checklist