All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and adheres to Semantic Versioning.
-
⚠️ [Breaking] Stop responding to the request in the GraphQL Proxy function, returning Shopify's response instead #312The examples below are in express; you will now need to handle the response yourself.
Before:
app.post('/graphql', async (req, res) => { await Shopify.Utils.graphqlProxy(req, res); });
After:
app.post('/graphql', async (req, res) => { const response = await Shopify.Utils.graphqlProxy(req, res); res.status(200).send(response.body); });
- Add support for January 2022 API version #285
- Add a 5 second
clockToleranceto fixjwt not activeerror #227 - [Breaking] Change default for OAuth.beginAuth to online sessions #203
- see oauth.md for updated docs
- [Breaking] Return and delete session in
validateAuthCallback#217- see oauth.md for updated usage
- [Breaking] Extract
addHandlerandgetHandlermethods for webhooks out ofregister#205 - [Breaking] Sessions no longer default to
falseforisOnline#169 - Required
Sessionarguments must be passed to the constructor #169 - Allow
undefinedinAuthScopes#169
- Fixed the HTTP client error messages to expand objects #252
- Added
October21toApiVersion#247
- Don't include extra params when calculating local hmac #196
- Added Storefront API client under
Shopify.Clients.Storefront - Add
isActive()method toSessionclass to check if session is active, replaceSessionwithSessionInterfacewhen used as a type #153
- Added
April21toApiVersion#149
- Allow plain objects to be returned from the
loadCallbackonCustomSessionStorage#126 - Documentation and example code for
CustomSessionStorage#129
- Throw a different error for a missing cookie upon OAuth return #131
- Improved documentation for GraphQL and Rest Clients. #123
- Made Docs directory more browseable in GitHub. #136
- Make sure
CustomSessionStorageconverts theexpiresfield from a string toDate. #132 - Made
limitoptional for get-requests with query #135
- Minor text/doc changes
- Added
2021-01API version to enum. #117 - Allow retrieving offline sessions using
loadCurrentSession. #119
- Initial public release
- Added
AuthScopesvalue object to allow apps to easily check whether scopes have been updated. #110
- GraphQL Proxy attempts to parse the request body as JSON before passing it to the client. #106
- Webhooks types are now exported outside the library #91
- Added support for private apps #99
USER_AGENT_PREFIXadded to Context, to add agent to all requests #101- Add link to tutorial on how to rotate credentials if neccesary #107
- Export
withSessionutility method #96 - GraphQL Client appropriately handles queries with variables #97
- Use cryptographically random bytes to generate nonce #98
- Stop using
SameSite=nonecookies for OAuth, usinglaxinstead #100
- Fixed an issue when deleting the current session for embedded apps #88
- Add
withSessionutility method #83
- Preserve the OAuth cookie session for a few seconds so SPA can perform their initial load using it #70
- Session fetches now return
undefinedwhen a session is not available #64 - Add
deleteCurrentSessionutils method #60
- Beta release
- Test releasing scripts
- Start of Changelog