adjustmentOperations query has been replaced by promotionConditions and promotionActions
ConfigurableOperations (ShippingEligibilityChecker, ShippingCalculator, CollectionFilter, PromotionCondition, PromotionAction, PaymentMethodHandler) have a new API for defining their arguments. For existing Vendure installations, any Shipping Methods, Promotions and Collection will need to be re-configured after the update by removing any checker/calculator/filter/condition/action and re-adding it.
ConfigurableOperations descriptions must now be specified as an array of LocalizedString rather than just a plain string. This allows the descriptions to be adapted to other locales.
The languageCode argument has been removed from all Shop API queries, namely product, products, collection and collections. Instead, LanguageCode should be specified as a query param.
languageCode GraphQL arguments have been removed from queries and instead, a "languageCode" query param may be attached to the API URL to specify the language of any translatable entities.Vendure plugins are now defined as Nestjs modules. For existing installations, the VendureConfig will need to be modified so that plugins are not instantiated, but use the static .init() method to pass options to the plugin, e.g.:
// before
plugins: [ new AdminUiPlugin({ port: 3002 }) ],
// after
plugins: [ AdminUiPlugin.init({ port: 3002 }) ],
The generateVariantsForProduct mutation has been removed
The reindex mutation now returns a JobInfo type, which has an id that can then be polled via the new job query as to its progress and status.
This change allows custom fields to be defined on the OrderLine entity. When they are, then the "addItemToOrder" mutation will accept a third argument - "customFields", which matches the fields specified in the config. Additionally, a couple of mutations have been renamed: "removeItemFromOrder" -> "removeOrderLine", "adjustItemQuantity" -> "adjustOrderLine" and their "orderItemId" argument has been renamed to "orderLineId".