All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
- Update order manager
- Accepts Order Form ID via querystring
- Splunk logger to order-manager package
- Use
@vtex/order-manager
package.
refreshOutdatedData
field inorderForm
mutation
- Property
index
to cancelled event errors.
- Update fetch policy on orderForm query to
no-cache
.
- Emit toasts with orderForm
generalMessages
.
- Replace
splunk-events
lib withvtex.checkout-splunk
.
- Order form updated to stale data if authentication state changed (checked via
orderForm.canEditData
).
- Delay minicart state if user isn't offline until orderForm query completes.
- Re-enable orderForm id heuristics.
- Order form isn't updated when
canEditData
property differs.
axios
dependency.
- Update local order form if the server returns an order form with a different id.
- Save order form in
localStorage
to enable offline use-cases. - Update
TaskQueue#enqueue
function to be network-aware when executing the task.
- Use the separate
default export
s fromvtex.checkout-resources
.
- Use typings exported by
vtex.checkout-graphql
. - Improved linter and fixed resulting errors.
id
to OrderForm.
- Cache to
OrderForm
query in Apollo.
- OrderForm data in Apollo's cache is now updated when the local OrderForm is modified.
- Cache from
OrderForm
query.
loading
property from theOrderFormContext
being set tofalse
before the order form was updated with the proper values.
error
property returned by the order form GraphQL query to theOrderFormContext
.- Log to Splunk when the order form query fails.
- Warnings from tests.
- Typings of
OrderQueue
context to have aCancellablePromiseLike
return value for theenqueue
function.
- This app was breaking in IE11 due to a module not exporting code compatible with it.
loading
attribute would not be updated onOrderFormContext
.orderForm
query being executed during SSR.
- A new component tree would be mounted after the
orderForm
query was completed.
- Function
isWaiting
to determine whether a task with the specifiedid
is still in the queue.
dummyOrderForm
file in order to displayproduct-list
preview skeleton.
useQueueStatus
hook andQueueStatus
enum toOrderQueue
.
- Moved
README.md
location to comply with IO Docs Builder requirements.
- A running task is not cancelled anymore when another task with same
id
is pushed to the queue.
- GraphQL queries are now imported from
checkout-resources
.
- Order form provider.
- When a task is cancelled, the rejected promise now returns an object with error code and message.
- Fixed tests that were broken in v0.1.1.
OrderManagerProvider
anduseOrderManager
are nowexport default
'ed fromOrderManager.tsx
.
- Initial version of OrderManager