Skip to content

Latest commit

 

History

History
1479 lines (1109 loc) · 137 KB

CHANGELOG.md

File metadata and controls

1479 lines (1109 loc) · 137 KB

0.15.2 (2020-09-30)

Fixes

  • admin-ui Allow cancellation from custom Order states (117264f), closes #472
  • admin-ui Fix address dialog issues (0d61f47), closes #463
  • admin-ui Fix asset drag/drop support in safari (55304c5)
  • core Fix handling of JobRecord ids when using UUID strategy (30e6e70), closes #478
  • email-plugin Include shipping method in order receipt handler (ea907a4), closes #473

Features

  • core Add totalQuantity field to Order type (829ac96), closes #465
  • elasticsearch-plugin Allow full client options to be passed (c686509), closes #474

0.15.1 (2020-09-09)

Features

  • admin-ui Customer address editor opens in modal (0a4d460)
  • create Make distinction between MySQL & MariaDB (a31bbf8)

Fixes

  • admin-ui Allow removing last item from ProductSelectorFromInput (21db8cf)
  • admin-ui Correctly update product list after deletion (5587144), closes #453
  • admin-ui Display custom fields in Address form (f074f65), closes #455
  • core Add resolver for Product.facetValues (163a32f), closes #449
  • core Add warning for list defaults in mysql (d47becc)
  • core Correctly parse fragments defined before operations (44a9ab9), closes #459
  • core Fix only_full_group_by issues in MySQL search (188cfaa)

0.15.0 (2020-08-27)

Fixes

  • admin-ui Dynamically set yearRange of DatetimePickerComponent (c66b10b), closes #425
  • admin-ui Fix channel header when using bearer auth (fa29805)
  • admin-ui Fix filtering of product variant table (121b6fc)
  • admin-ui Prevent clipping of product selector overlay (7f9b6d7)
  • admin-ui Refetch orders list on channel change (ffa5615)
  • asset-server-plugin Make nativeS3Configuration optional (650977d)
  • core Correct shipping calculator typing (9052845)
  • core Correct shipping calculator typing (4a8e9ed)
  • core Correct typing of GraphQL ID type in generated code (dc7b303), closes #410
  • core Correctly calculate item price discount actions (06bb780)
  • core Correctly handle adjustOrderLine with quantity 0 (7381d3d), closes #435
  • core Ignore deleted variants when validating options (9c242f8), closes #412
  • core Make AssetOptions fields optional (698011e)

Features

  • admin-ui Add Brazilian Portuguese translations (7673353)
  • admin-ui Add password form input (6c909b3), closes #445
  • admin-ui Add pt_BR to default translations (5da5b4e)
  • admin-ui Implement list types for ConfigurableOperationDef args (4c7467b), closes #414
  • admin-ui Implement list types for custom fields (e72f0b3), closes #416
  • admin-ui Implement pagination & filtering of product variants (e2b445b), closes #411
  • admin-ui Implement product selector custom form input (f687f49), closes #400
  • admin-ui Unify CustomFieldControl type with FormInputComponent (9e22347), closes #415
  • core Add productVariant query to Admin API (72b6ccd)
  • core Add removeAllOrderLines mutation in Shop API (841e352), closes #430
  • core Add support for list types in ConfigurableOperationDefs (6698195), closes #414
  • core Implement "containsProducts" PromotionCondition (688d304), closes #400
  • core Implement customer group form input (177866e), closes #400
  • core Implement customer group promotion condition (fd70448), closes #400
  • core Implement product discount promotion action (7da0d46), closes #400
  • core Implement search by collection slug (a4cbdbb), closes #405
  • core Improve type-safety of custom ui input config (d0cc096), closes #414
  • core Make Orders ChannelAware (9bb5750), closes #440
  • core Support list types for custom fields (1fa3cf1), closes #416
  • elasticsearch-plugin Implement search by collection slug (cbfd499), closes #405

BREAKING CHANGE

  • If you use custom field controls in the Admin UI, you'll need to slightly modify the component class: the customFieldConfig property has been renamed to config and a required readonly: boolean; field should be added. This is part of an effort to unify the way custom input components work across different parts of the Admin UI.
  • Orders are now channel-aware which requires a non-destructive DB migration to apply the schema changes required for this relation. In addition, this migration is required to relate existing Orders to the default Channel:
    // Assuming the ID of the default Channel is 1. If you are using a UUID strategy,
    // replace 1 with the ID of the default channel.
    await queryRunner.query(
      'INSERT INTO `order_channels_channel` (orderId, channelId) SELECT id, 1 FROM `order`',
      undefined,
    );
  • The 'facetValueIds' type has been removed from the ConfigArgType type, and replaced by 'ID' and the list option. This change only affects you if you have created custom CollectionFilters of PromotionActions/Conditions using the 'facetValueIds' type for an argument.
  • The ID type in @vendure/common/lib/generated-types & @vendure/common/lib/generated-shop-types is now correctly typed as string | number, whereas previously it was string. If you are using any generated types in your plugin code, this may lead to TypeScript compiler errors which will need to be corrected.

0.14.1 (2020-08-18)

Fixes

  • admin-ui Fix notification for customer verification email (6c76ebe), closes #438
  • admin-ui Make emailAddress required in CustomerDetail form (2a9ee2e), closes #438
  • admin-ui Update facets cache after deletion (f4eec6a), closes #424
  • core Correct shipping calculator typing (18f5bcd)
  • core Correctly handle aliases when transforming Asset urls (18bbeee), closes #417
  • email-plugin Add filter of emailVerificationHandler (a68b18e), closes #438

Features

  • admin-ui Add Address custom fields to order detail (c4ca2d0), closes #409
  • admin-ui Restrict Asset input based on permitted file types (dc668d9), closes #421
  • asset-server-plugin Extended S3Config to accept aws-sdk configuration properties (ce903ad)
  • core Add Address custom fields to OrderAddress (6f35493), closes #409
  • core Custom field length configuration for localeString (9fab7e8)
  • core Expose all cookie options in VendureConfig (ad089ea), closes #436
  • core Expose permitted Asset types in ServerConfig type (66abc7f), closes #421
  • core Implement permitted mime types for Assets (272b2db), closes #421
  • core Validate DB table structure on worker bootstrap (c1ccaa1)
  • core Verbose query error logging (#433) (8cf7483), closes #433

0.14.0 (2020-07-20)

Fixes

  • admin-ui Fix error when creating new Customer (edc56f8)
  • admin-ui Fix ts error introduced by ShippingMethods custom fields (8c38ad1)
  • admin-ui Save custom fields in the Customer detail view (3c45b16), closes #387
  • core Correct handling of multiple session for same user (2c42305)
  • core Correctly call PaymentMethodHandler.onStateTransitionStart (143e62f)
  • core Define cascade behaviour for featured assets (3f0c79b)
  • core Fix bug where session user in cache would get removed (ebec0f0)
  • core Fix error when de-serializing a RequestContext without expiry (a1e03fd)
  • core Prevent countryCode exception when adding payment to order (49c2ad4)

Features

  • admin-ui-plugin Support loginUrl option (5a95476)
  • admin-ui Add loginUrl option to support external login pages (2745146), closes #215
  • admin-ui Add ability to delete administrator from admin list (e217ce0), closes #384
  • admin-ui Display auth strategy in customer history (bdfc43d)
  • admin-ui Display customer last login time (0f9dd1c)
  • admin-ui Enable updating of Order custom fields (5bbd80b), closes #404
  • admin-ui Implement multiple asset deletion (b2f3f08), closes #380
  • admin-ui Implement order process state chart view (7283258)
  • admin-ui Improve multi-selection in Asset gallery component (a4e132a), closes #380
  • admin-ui Support custom state transitions from Order detail view (1d2ba31)
  • core Add ProductOption.group field & resolver (f20e108), closes #378
  • core Add ProductVariant.product field & resolver (0334848), closes #378
  • core Add admin helpers to ExternalAuthenticationService (3456ffb)
  • core Add custom fields to registerCustomerAccount mutation (be1f200), closes #388
  • core Allow all CustomOrderProcess handlers to be async functions (5d67d06)
  • core Enable custom fields on ShippingMethod entity (#406) (fbc36ab), closes #406 #402
  • core Export ExternalAuthenticationService (c3ed2cd)
  • core Expose nextStates on Order type in Admin API (ece0bbe)
  • core Expose order state machine config via serverConfig type (0a77438)
  • core Expose User.authenticationMethod in GraphQL APIs (96f923a)
  • core Implement authenticate mutation for Admin API (357f878)
  • core Implement deleteAdministrator mutation (dc82b2c), closes #384
  • core Implement setOrderCustomFields in Admin API (ad89fc9), closes #404
  • core Implement setOrderCustomFields in Shop API (3a12dc5), closes #404
  • core Implement transitionOrderToState in Admin API (3196b52)
  • core Implement configurable session caching (09a432d), closes #394
  • core Implement deleteAssets mutation (6f12014), closes #380
  • core Improve customization of order process (0011ea9), closes #401
  • core Include auth strategy name in AttemptedLoginEvent (b83f1fe)
  • core Log error variables as well as message (de25bdb)
  • core More flexible customer registration flow (92350e6), closes #392
  • core More flexible handling of shipping calculations (d166c08), closes #397 #398
  • core Record lastLogin date on authenticate (39c743b)
  • core Record strategy used to register in Customer history (5504044)
  • core Rework User/auth implementation to enable 3rd party auth (f12b96f), closes #215
  • core Store authenticationStrategy on an AuthenticatedSession (e737c56)
  • email-plugin Use new User model in email handlers (16dd884)

BREAKING CHANGE

  • (email-plugin) The default email handlers have been updated to use the new User model, and as a result the email templates "email-verification", "email-address-change" and "password-reset" should be updated to remove the "user" object, so {{ user.verificationToken }} becomes {{ verificationToken }} and so on.
  • A new AuthenticationMethod entity has been added, with a one-to-many relation to the existing User entities. Several properties that were formerly part of the User entity have now moved to the AuthenticationMethod entity. Upgrading with therefore require a careful database migration to ensure that no data is lost. On release, a migration script will be provided for this.
  • Some ON DELETE behaviour was incorrectly defined in the database schema, and has how been fixed. This will require a non-destructive migration.
  • The AttemptedLoginEvent.identifier property is now optional, since it will only be sent when using the "native" authentication strategy. Code that listens for this event should now check that the identifier property is defined before attempting to use it.
  • The RequestContext.session object is no longer a Session entity. Instead it is a new type, SerializedSession which contains a subset of data pertaining to the current session. For example, if you have custom code which references ctx.session.activeOrder you will now get an error, since activeOrder does not exist on SerializedSession. Instead you would use SerializedSession.activeOrderId and then lookup the order in a separate query.

The reason for this change is to enable efficient session caching.

  • The Administrator entity has a new deletedAt field, which will require a non-destructive database migration.
  • The way custom Order states are defined has changed. The VendureConfig.orderOptions.process property now accepts an array of objects implementing the CustomerOrderProcess interface. This interface is more-or-less the same as the old OrderProcessOptions object, but the use of an array now allows better composition, and since CustomerOrderProcess inherits from InjectableStrategy, this means providers can now be injected and used in the custom order process logic.

0.13.1 (2020-06-30)

Features

  • admin-ui Display billing address in Order detail view (c8992a5), closes #372
  • core Add setOrderBillingAddress mutation to Shop API (83347b2), closes #372
  • core Allow phoneNumber in registerCustomerAccount mutation (2c710b9), closes #389

Fixes

  • admin-ui Add custom field controls to ProductOption dialog (4678360), closes #382
  • admin-ui Correctly render channels in Role detail view (cfb3c03)
  • admin-ui Only check jobs if Admin has ReadSettings permission (daca6b6), closes #383
  • core Correctly resolve activeCustomer order lines (56449b8), closes #374 #375
  • core Implement field resolvers for Facet & FacetValue (7a4d046)

0.13.0 (2020-06-12)

Fixes

  • admin-ui-plugin Correct handling of missing config file (41f9085)
  • admin-ui Fix duplicated "Adding Items" filter option in Order list (2da3c16)
  • admin-ui Fix facet detail form losing input data (2430f30), closes #353
  • core Attach Order to PaymentStateTransitionEvent on create (1c57462), closes #371
  • core Correctly serialize job queue data payloads (1a9ac07)
  • core Fix collection.parent resolver in Postgres (f3feb7c), closes #361
  • core Fix cookie auth for custom controller routes (e36b9db), closes #362
  • core Fix error when applying multiple promotions (c807d32)
  • core Fix findByIdsInChannel to take ids into account (#365) (dd4bbc9), closes #365
  • core Fix removal of order item promotions (f385d69)
  • core Fix typo in "transitions" config option name (41b07eb)
  • email-plugin Do not HTML-escape "from" address (699c796), closes #363
  • email-plugin Fix dev mailbox when trailing slash omitted (5372561), closes #355

Features

  • admin-ui-plugin Enable traditional & simplified Chinese trans (43ef874)
  • admin-ui Add 'groups' field to Customer type in Admin API (9635677), closes #330
  • admin-ui Add Collection slug to detail form (700f4d6), closes #335
  • admin-ui Add phoneNumber to customer detail form (768c838), closes #359
  • admin-ui Add Traditional Chinese for i18n-Message (7160048)
  • admin-ui Allow groups admin from CustomerDetailComponent (8dca9a3), closes #330
  • admin-ui Create CustomerGroup UI components & routes (90b38a5), closes #330
  • admin-ui Display customer history in detail view (8eea7d6), closes #343
  • admin-ui Enable deletion of Customers from customer list (d1b0b9e), closes #360
  • admin-ui Implement UI for updating, deleting notes (ef5eddf), closes #310
  • core Add "slug" field to Collection entity (5b4d3db), closes #335
  • core Add "slug" field to CollectionBreadcrumb type (97ffb1d)
  • core Create customer history entries for groups (4620730), closes #343
  • core Enable Collection query by slug (d5586bc), closes #335
  • core Enable users to specify superadmin credentials (0f0a1ad), closes #279
  • core Implement Customer history tracking (ccedf7c), closes #343
  • core Implement CustomerGroup queries & mutations (13342c0), closes #330
  • core Implement editing & deletion of Order/Customer notes (90bacf5), closes #310
  • core Improved control over TypeORM query logging (3168e54), closes #368
  • core Search by facetValueId allows operator argument (2eca24e), closes #357
  • core Update LanguageCode enum to support common regional variants (8daee55), closes #356
  • elasticsearch-plugin Added mapQuery option (a6de120), closes #364
  • elasticsearch-plugin Search by facetValueId allows operator arg (f7f7e5c), closes #357
  • email-plugin Enable logging for SMTP transport (5ed6c24), closes #369

BREAKING CHANGE

  • A DB migration will be required due to some additions to the schema related to Customer history entries.
  • A new "slug" field has been added to the CollectionTranslation entity, requiring a DB migration. Also, when creating a new Collection via the createCollection mutation, each translation must include a slug.

0.12.5 (2020-05-28)

Features

  • admin-ui Add German translations (00bf630)
  • admin-ui Focus facet selector when opening "add facets" dialog (42c1a48)

Fixes

  • admin-ui Fix error updating PaymentMethod config parameters (b4061a5), closes #345
  • admin-ui Update available facets when creating new values (05864c6), closes #347
  • asset-server-plugin Fix mime type detection (7613f74), closes #341

0.12.4 (2020-05-20)

Fixes broken publish of admin-ui-plugin

0.12.3 (2020-05-20)

Fixes

  • core Fix MySQL error in DefaultSearchPlugin (9eb39a2), closes #331 #342
  • core Increase resilience of app close when worker in main thread (3ce74ff)

Features

  • admin-ui Display visual feedback when uploading Assets (ca6c30f)
  • core Add static lifecycle hooks to run before bootstrap (c92c21b)
  • core Implement configurable PriceCalculationStrategy (3e2cc2b), closes #237
  • testing Expose underlying NestApplication & NestMicroservice (ebf78a2)

0.12.2 (2020-05-13)

Fixes

  • create Add work-around for upstream tslib issue (2f39379)

0.12.1 (2020-05-12)

Fixes

  • admin-ui-plugin Fix default value for apiPort (efde4d7)
  • create Fix use of deprecated port option (96765b4)

0.12.0 (2020-05-12)

Perf

  • core Improved performance of validateVariantOptionIds (#337) (7d19b9c), closes #337 #328

Features

  • admin-ui Add Polish translations (#317) (65a113b), closes #317
  • admin-ui Add system health status page (b3411f2), closes #289
  • admin-ui Allow status badges to be defined for NavMenuItems (97e209c)
  • asset-server-plugin Add health check (05820f4), closes #289
  • asset-server-plugin Create S3AssetStorageStrategy (3f89022), closes #191
  • core Add health check for DB & worker (1b84ea7), closes #289
  • core Added playground and debug config for graphql apis (1fb5fb4)
  • core Allow custom CollectionFilters in config (87edc9b), closes #325
  • core Group api options in VendureConfig (6904743), closes #327
  • core Implement injectable lifecycle hooks for configurable ops (16db620), closes #303
  • core Implement injectable lifecycle hooks for strategies (451caf1), closes #303
  • core Prettier console greeting on server start (fc30dfd)
  • elasticsearch-plugin Add health check (47a8cb9), closes #289

Fixes

  • admin-ui-plugin Correctly fall back to 'auto' apiHost option (b02d58a)
  • core Fix emailAddress conflict when creating Customers (0d4e31a), closes #300

BREAKING CHANGE

  • Options in the VendureConfig related to the API have been moved into a new location: VendureConfig.apiOptions. The affected options are hostname, port, adminApiPath, shopApiPath, channelTokenKey, cors, middleware and apolloServerPlugins.

    // before
    const config: VendureConfig = {
      port: 3000,
      middleware: [/*...*/],
      // ...
    }
    
    // after
    const config: VendureConfig = {
      apiOptions: {
          port: 3000,
          middleware: [/*...*/],
      },
      // ...
    }

    This also applies to the ConfigService, in case you are using it in a custom plugin.

  • The customer and user tables have received some non-destructive modifications, requiring a DB migration.

  • The graphql-playground for the Shop and Admin APIs are now turned off by default, and the Apollo server debug option is also set to false by default (it was formerly true). You can manually configure these values using the VendureConfig.apiOptions object.

0.11.1 (2020-04-23)

Fixes

  • admin-ui Correctly display overlays inside modals (ee9c8ca)
  • admin-ui Restore missing translation for "public" (2f06d30)
  • core Correctly invalidate Zone cache on Country changes (f4101b7)
  • core Fix swiss and congolese currency codes (#302) (2fbf37a), closes #302
  • core Throw on no active taxZone when applying taxes to price (451ae50), closes #321
  • core Use correct error type for email address conflict (0ba66cb), closes #299
  • ui-devkit Correctly handle static asset file paths (27b0adb), closes #309
  • ui-devkit Fix generation of shared module file (#318) (fd73472), closes #318

Features

  • admin-ui Display warnings if Channel lacks default zones (e80fcf8), closes #323
  • admin-ui Implement Zone list view, improved Zone/Country admin (821f258), closes #323
  • asset-server-plugin Implement asset binary deletion (571ee55), closes #306
  • core Implement asset binary deletion (b8fc937), closes #306
  • core Warn when deleting a Zone used as a Channel default (945c36d)

0.11.0 (2020-04-13)

Fixes

  • admin-ui Fix display of in-progress jobs (5bed0e6)
  • admin-ui Get entity default language from active Channel (effe2c6), closes #296
  • admin-ui Refresh Collection List on deletion (4202398), closes #295
  • core add missing translations for default channel not found (#301) (07e1958), closes #301
  • core Correctly derive request language from active Channel (aae4aa9)
  • core Correctly reindex enabled state (2231505), closes #295
  • core Fix deletion of Collections (44916b7), closes #297
  • core Fix generated import in CLI populate types (4ea139f)
  • core Fix race condition when moving Collections (987b611)
  • core Limit Channel defaultLanguage to one of availableLanguages (b9f4dc0)
  • core Use configured defaultLanguageCode rather than hard-coded val (d2942e6), closes #296
  • core Validate availableLanguages when update GlobalSettings (e304ae2)
  • elasticsearch-plugin Fix bad import paths (99733fa)
  • email-plugin Pass all email options when creating transport (1c6b39f)

Features

  • admin-ui Display live list of queued jobs (bbe5855)
  • admin-ui Enable setting default language for Channels (0120202), closes #296
  • admin-ui Implement Asset deletion UI (4912a29), closes #285
  • admin-ui Update to Angular 9.1.0 (084edd9)
  • asset-server-plugin Update Sharp version to 0.25.2 (13edc9c)
  • core Add DB-based persistence for JobQueue (a61df93), closes #282
  • core Add jobQueues query (46068b3)
  • core Export ProcessContext service (3177ac0)
  • core Extract SQL-based JobQueueStrategy in a bundled plugin (a2069f6)
  • core Implement deleteAsset mutation (efa12ba), closes #285
  • core Implement removeSettledJobs mutation (82af7f6)
  • core Log any errors when creating Asset preview images (e1b8cb8)
  • core Redesign JobQueue to allow persistence, concurrency etc (7acf532), closes #282
  • core Resume interrupted jobs in queue on restart (9b66d33)
  • core Update to Nestjs v7 (3d6657a)
  • core Update to TypeScript 3.8 (e255674), closes #286
  • create Add DefaultJobQueuePlugin to default config template (38b375f)
  • elasticsearch-plugin Update index on asset deletion (c80662a)
  • elasticsearch-plugin Update to use new job queue (42b1d28)
  • email-plugin Generate and send emails on the worker (0cc5f87)
  • testing Add bootstrap method to TestServer (dab9e21)

Perf

  • admin-ui-plugin Use trackBy function to improve perf of datatable (09ab4d7)

BREAKING CHANGE

  • (If using the DefaultJobQueuePlugin) A new JobRecord entity has been added, so a DB migration will be needed.

  • In order to accommodate Asset deletion, some non-destructive DB modifications have been made which will require a migration.

  • Nestjs has been updated to v7. If you make use of any of the Nest internals in your plugins, this may cause some breaking changes. Please see the Nest migration guide for details.

    This release also includes updates to many dependencies which in turn have dropped support for Node.js v8. Therefore Vendure now supports Node.js v10 or higher.

  • The CollectionAsset entity had a cascade delete defined, which will require a DB migration.

  • The JobQueueService has been completely re-designed. In the event that you are using this service in your Plugins, please see the API documentation on how to use it now.

0.10.2 (2020-04-02)

Fixes

  • admin-ui-plugin Add Chinese to the default available languages (46ff932)
  • admin-ui Fix prosemirror error when changing product detail tabs (8a7cf9a)
  • admin-ui Make rich text editor editable when creating products etc (d268276)
  • asset-server-plugin Fix build to export non-image file icon (63166a2)

Features

  • admin-ui Better error reporting for invalid translation files (a64f7ac), closes #292
  • create Check server port is free before install (202f68d)
  • create Pin TypeScript version (a2fba13), closes #268

0.10.1 (2020-03-24)

Features

  • admin-ui-plugin Allow ui languages to be set in the AdminUiPlugin (db3bce3), closes #264
  • admin-ui Added Chinese i18n messages (#280) (749ee3d), closes #280
  • admin-ui Enable ui language config & selection (aa4452e), closes #264
  • core Export some missing symbols from Core (f16bd7b)
  • testing Expose raw http fetch method in SimpleGraphQLClient (d715d30)
  • ui-devkit Allow custom i18n files to compiled into the Admin UI (df88d58), closes #264
  • ui-devkit Allow stand-alone translation extensions (7a70642), closes #264

Fixes

  • core Correctly handle error responses for REST controllers (72be58d), closes #187
  • core Fix DefaultAssetNamingStrategy with files without extensions (dee3258), closes #271 #272
  • core Fix error when using non-TCP transport in workerOptions (b37ea05), closes #270
  • core Prevent data leakage of guest Customer data (ea51000), closes #98
  • elasticsearch-plugin Do not expose private facets in search result (60bb5b9)

0.10.0 (2020-03-17)

Features

  • admin-ui Export helper for hosting external ui extensions (3d08460)
  • admin-ui Export minified theme css for ui extensions dev (99073c9)
  • admin-ui Improved ui extension development API & architecture (fe72c41)
  • admin-ui Simplify API for adding menu items, custom controls (2b9e4c4)
  • admin-ui Update Angular to v9 (bc35c25)
  • admin-ui Update Clarity to v3.rc (f8b94b2)
  • admin-ui Use ProseMirror as rich text editor (e309111)
  • ui-devkit Allow static assets to be renamed (08e23d0)
  • ui-devkit Run detect and run ngcc on first compilation (b5a57a8)

Fixes

  • admin-ui Enable full template type checks and fix issues (db36111)
  • admin-ui Prevent removal of FacetValue on ProductDetail form enter (1db6c3d), closes #267
  • core Correctly resolve deprecated asset fields in search query (e9a517b)
  • core Correctly update search index on ProductVariant deletion (401c236), closes #266
  • elasticsearch-plugin Correctly update index on variant deletion (8b91a59), closes #266

BREAKING CHANGE

  • This release introduces a re-architected solution for handling extensions to the Admin UI. If you do not use the ui extensions feature, you will not need to change anything. For those already using ui extensions, these are the changes:

  • The @vendure/admin-ui-plugin now contains only the default admin ui app.

  • To create extensions, you will need to install @vendure/ui-devkit, which exposes a compileUiExtensions() function.

  • Here is an example of how the config differs:

      // before
      AdminUiPlugin.init({
          port: 3002,
          extensions: [
              ReviewsPlugin.uiExtensions,
              RewardsPlugin.uiExtensions,
          ],
          watch: true,
      }),
      // after
    import { compileUiExtensions } from '@vendure/ui-devkit/compiler';
    
    // ...
    
      AdminUiPlugin.init({
          port: 3002,
          app: compileUiExtensions({
              // The source files of the admin ui, extended with your extensions,
              // will be output and compiled from this location
              outputPath: path.join(__dirname, '../admin-ui'),
              extensions: [
                  ReviewsPlugin.uiExtensions,
                  RewardsPlugin.uiExtensions,
              ],
              watch: true,
          }),
      }),
  • For lazy-loaded extension modules, you must now specify a route property. This allows us to lazy-load each extension individually, whereas previously all extensions were bundled into a single lazy-loaded chunk.

    export class ReviewsPlugin {
        static uiExtensions: AdminUiExtension = {
            extensionPath: path.join(__dirname, 'ui'),
            id: 'reviews-plugin',
            ngModules: [{
                type: 'lazy',
    +           route: 'product-reviews',
                ngModuleFileName: 'reviews-ui-lazy.module.ts',
                ngModuleName: 'ReviewsUiLazyModule',
            }],
        };
    }
    
    // in the route config of the lazy-loaded module
    {
    -   path: 'product-reviews',
    +   path: '',
    +   pathMatch: 'full',
        component: AllProductReviewsListComponent,
    },
  • The CustomFieldControl interface changed slightly:

    import {
    - CustomFieldConfig,
    + CustomFieldConfigType,
      CustomFieldControl,
    } from '@vendure/admin-ui/core';
    
    @Component({
        // ...
    })
    export class ReviewCountComponent implements CustomFieldControl  {
    -   customFieldConfig: CustomFieldConfig;
    +   customFieldConfig: CustomFieldConfigType;
        formControl: FormControl;
        // ...
    }
  • NOTE: if you run into errors with Angular dependencies in the wrong place (e.g. nested inside the node_modules of another dependency), try running yarn upgrade --check-files, or failing that, remove the node_modules directory, delete the lockfile, and re-install.

0.9.0 (2020-02-19)

Fixes

  • asset-server-plugin Correctly handle non-integer image dimensions (e28c2b3)
  • core Do not merge orders from another Customer (de3715f), closes #263
  • testing Correctly log from the main process (bdd419f)

Features

  • admin-ui Asset names can be updated (fcb4f3d)
  • admin-ui Export BaseEntityResolver (db68d86)
  • admin-ui Implement editing of Asset focal point (11b6b33), closes #93
  • admin-ui Thumbnails make use of focal point data (667b885), closes #93
  • asset-server-plugin Add ability to disable caching per-request (22cc878)
  • asset-server-plugin Implement focal point-aware cropping (5fef77d), closes #93
  • asset-server-plugin Make AssetNamingStrategy configurable (09dc445), closes #258
  • asset-server-plugin Make the AssetStorageStrategy configurable (a13a504), closes #258
  • core Add focalPoint field to Asset entity (1666e22), closes #93
  • core Add asset focal point data to SearchResult type (f717fb3), closes #93
  • core Publish AssetEvent when Asset created/modified (3a352c5)
  • elasticsearch-plugin Store asset focal point data (9027beb), closes #93

Perf

  • asset-server-plugin Implement hashed directory naming for assets (30c27c5), closes #258
  • testing Disable synchronization for sqljs e2e tests (4ad7752)

BREAKING CHANGE

  • A new field, focalPoint has been added to the Asset entity which will require a database migration to add.
  • The LocalAssetStorageStrategy class has been removed from @vendure/core and now lives in the @vendure/asset-server-plugin package.
  • The search query's SearchResult type has had two properties deprecated: productPreview and productVariantPreview. They are replaced by productAsset.preview and productVariantAsset.preview respectively. The deprecated properties still work but will be removed from a future release.
  • The AssetServerPlugin has a new default naming strategy - instead of dumping all assets & previews into a single directory, it will now split sources & previews into subdirectories and in each of them will use hashed directories to ensure that the total number of files in a single directory does not grow too large (as this can have a negative performance impact). If you wish to keep the current behavior, then you must manually set the namingStrategy: new DefaultAssetNamingStrategy() in the AssetServerPlugin.init() method.

0.8.2 (2020-02-12)

Features

  • admin-ui Can delete TaxCategory via list view (6f6e0a1), closes #262
  • admin-ui Can delete TaxRate via list view (ee02aa2), closes #262
  • core Implement deletion of TaxCategory (b263b8b), closes #262
  • core Implement deletion of TaxRate (8c2db90), closes #262

Fixes

  • email-plugin Correctly filter when using loadData in handler (66bc98c), closes #257
  • email-plugin Fix Handlebars "cannot resolve property" error (2984a90), closes #259

0.8.1 (2020-02-05)

Fixes

  • admin-ui Do not reset Promotion actions & conditions on update (2b3fc72), closes #256
  • core Prevent Customers from logging in to admin API (09eb30c), closes #77

Features

  • core Allow a custom function for generating order codes (7d36de9), closes #252

0.8.0 (2020-01-30)

Fixes

  • admin-ui Better error message when user lacks permissions (1f7c230), closes #246
  • admin-ui Correct types for OrderDetail (2169366), closes #232
  • admin-ui Fix TS error with latest apollo-client typings (465f81e), closes #243
  • admin-ui Set default requiresPermission for ActionBar items (292e6d4)
  • core Correctly resolve Customer.User property (c11c8a0)
  • core Fix "contains" list filter operator for postgres (c3898a6)
  • core Fix date handling for ListQueryBuilder (6a6397b), closes #251
  • core Fix inconsistencies in behaviour between DB drivers (71b8f4c)
  • core Fix inconsistencies in DefaultSearchPlugin search strategies (50fbae6)
  • core Fix worker becoming unresponsive after errors (0f905b0), closes #250
  • core Publish state transition events after persisting entities (005a553), closes #245
  • core Remove null defaults from entity fields (98bff33), closes #244
  • core Validate non-nullable custom fields (f5dd95e)
  • elasticsearch-plugin Fix inconsistencies in behaviour between DBs (35d0008)

Features

  • admin-ui Expose services to ActionBarItem onClick function (e44d372), closes #247
  • core Set default DB timezone to UTC (8bf2c7a)
  • core Store TaxRate value as decimal type (1aea1b5), closes #234
  • core Use decimal type for OrderItem.taxRate (92650ec), closes #234
  • testing Add support for e2e tests backed by MySQL/MariaDB (dbc591f), closes #207
  • testing Add support for e2e tests backed by Postgres (50bdbd8), closes #207
  • testing Modularize DB support for e2e tests (f8060b5), closes #207

BREAKING CHANGE

  • The @vendure/testing package now requires you to explicitly register initializers for the databases you with to test against. This change enables e2e tests to be run against any database supported by TypeORM. The dataDir option has been removed from the call to the TestServer.init() method, as it is specific to the SqljsInitializer:

before:

import { createTestEnvironment, testConfig } from '@vendure/testing';

describe('my e2e test suite', () => {
    const { server, adminClient } = createTestEnvironment(testConfig);

    beforeAll(() => {
        await server.init({
            dataDir: path.join(__dirname, '__data__'),
            initialData,
            productsCsvPath: path.join(__dirname, 'fixtures/e2e-products-minimal.csv'),
            customerCount: 1,
        });
    });

    //...
});

after:

import { createTestEnvironment, registerInitializer, SqljsInitializer, testConfig } from '@vendure/testing';

registerInitializer('sqljs', new SqljsInitializer(path.join(__dirname, '__data__')));

describe('my e2e test suite', () => {
    const { server, adminClient } = createTestEnvironment(testConfig);

    beforeAll(() => {
        await server.init({
            initialData,
            productsCsvPath: path.join(__dirname, 'fixtures/e2e-products-minimal.csv'),
            customerCount: 1,
        });
    });

    //...
});
  • The OrderItem.taxRate column type in the database has been changed from int to decimal. You will need to perform a migration to update this column and depending on your database type, you may need to manually edit the migration script in order to preserve the old values.
  • The TaxRate.value column type in the database has been changed from int to decimal. You will need to perform a migration to update this column and depending on your database type, you may need to manually edit the migration script in order to preserve the old values.
  • The default dbConnectionOptions.timezone setting is now set to 'Z' (UTC). If you have not explicitly set the timezone in your project, then up until now it would have defaulted to 'local'. To preserve this behavior you can override this new default by setting dbConnectionOptions.timezone: 'local' in your VendureConfig.
  • This relates to Admin UI extensions. The onClick function signature of any custom ActionBarItems has changed - the second parameter used to be the ActivatedRoute - it is now an object containing ActivatedRoute plus an instance of DataService and NotificationService.

0.7.0 (2019-12-18)

Features

  • admin-ui Display CustomFields for OrderLines in order detail view (c33f1f6), closes #227
  • ui-devkit Allow ui extensions to be launched in a new window (71eb6a5)

Fixes

  • admin-ui Correct mis-spelled "secondary" type in ModalService (9600c42)
  • admin-ui Correctly handle multiple additional NavMenu items (6e27c37)
  • core Update TypeORM version to fix Postgres 12 compatibility (895ebdf), closes #177

Perf

  • core Add reload: false to .save() operations (3c33f33)
  • core Implement caching of GraphqlValueTransformer type trees (ffe47b1), closes #226
  • core Optimize OrderCalculator logic to improve performance (71f3eab), closes #226
  • core Optimize some SQL queries in hot code paths for Orders (691f579), closes #226
  • core Remove the @RelationId() decorator from OrderItem (6bda232), closes #226

BREAKING CHANGE

  • The Order entity now has a new column, taxZoneId. This is used to more efficiently track changes to the active tax zone, and therefore reduce the number of tax calculations to be performed on an Order. This change will require a migration which should be routine.

0.6.5 (2019-12-11)

Fixes

  • admin-ui Add polling to watch mode to alleviate race condition (1b95a81)
  • admin-ui Allow new FacetValues to be added (337762e), closes #222
  • admin-ui Assign NavMenuSection default permission if not specified (b476dcb)
  • admin-ui Correctly initialize Facet detail view (d68fcb7)
  • admin-ui Fix CustomerDetail display of custom fields (02757ea)
  • core Fix error when patching custom fields (a3afc1b)

Features

  • admin-ui Export Dialog interface (6b31f28)
  • admin-ui Initial implementation of extension host architecture (85815c1), closes #225
  • ui-devkit Add notify() function (085c7cf)
  • ui-devkit Create ui-devkit package for developing UI extensions (20cd34d), closes #225

0.6.4 (2019-12-04)

Fixes

  • admin-ui Correct bad imports (3cd74ab)
  • admin-ui Make Channel zones required in ChannelDetailComponent (ba27360), closes #218
  • admin-ui Order detail - fix broken app when no featuredAsset (#219) (e0bfa4d), closes #219
  • core Enforce Channels created with a default tax/shipping Zone (f57fb51), closes #218
  • core Use "double precision" as column type for float custom fields (8f2d034), closes #217
  • email-plugin Fix incorrect relative imports (561c793)

Features

  • admin-ui Make readonly custom fields readonly in the UI (cf1d7f1), closes #216
  • core Export OrderCalculator helper service (6340045)
  • core Implement internal and readonly CustomField properties (c2ae44f), closes #216

0.6.3 (2019-11-26)

Note: only the @vendure/email-plugin package was updated in this release, as v0.6.2 included a critical bug which prevented installation via @vendure/create

Fixes

  • email-plugin Fix TypeScript compiler error on defaultEmailHandlers (d794e5f)

0.6.2 (2019-11-26)

Features

  • core Allow custom ApolloServerPlugins to be specified (dc45c87), closes #210
  • create Include a .gitignore file (6b6b3e3)
  • email-plugin Allow async data loading in EmailEventHandlers (155d429), closes #184

Fixes

  • core Ensure plugins instantiated only once per process (7198b85), closes #213
  • core Export LoginEvent & RefundStateTransitionEvent (90e161b)
  • core Use correct config & output path when generating migrations (637c863)
  • core Use correct config for runMigrations & revertLastMigration (c9acd68)

0.6.1 (2019-11-18)

Fixes

  • asset-server-plugin Update sharp dependency for node 13 compat (186b47e), closes #204
  • core Fix product search with postgres (dadef4c), closes #206

0.6.0 (2019-11-14)

Fixes

  • admin-ui Correctly display HttpErrorResponse messages (8cc6885)
  • admin-ui Correctly specify channels when creating a Role (34a6a3e)
  • admin-ui Update permissions-based display when permissions change (aec08be)
  • core Add resolver for Role.channels (5a2ddc5)

Features

  • admin-ui Add channel switcher (0396e88), closes #12
  • admin-ui Display color-coded label for Channels (571c379)
  • admin-ui Display permissions by Channel in Admin detail view (586f2d7)
  • admin-ui Enable assigning Products to Channels (59b9c91), closes #12
  • admin-ui Enable deletion of Channels (b295e52), closes #12
  • admin-ui Enable deletion of Roles (2a674a3)
  • admin-ui Enable removal of Product from Channel (27eea68), closes #12
  • admin-ui Enable setting Role channel on update (8379a82), closes #12
  • admin-ui Truncate display of role permissions if too long (98d971f)
  • core Add channel handling to DefaultSearchPlugin (280a38b)
  • core Allow Roles to be created in other channels (df5f006), closes #12
  • core Allow Roles to have Channels specified on update (b3dd6c1)
  • core Assign superadmin Role to newly created Channels (6fc421a)
  • core Automatically assign Customer role to all new Channels (da826f2)
  • core Constrain channel-aware queries by channelId (51c1b07), closes #12
  • core Implement assignProductsToChannel mutation (5fda66b), closes #12
  • core Implement deleteChannel mutation (989960b), closes #12
  • core Implement deleteRole mutation (7b338a4)
  • core Implement removeProductsFromChannel mutation (6a165dc)
  • core Make product/variant events more granular (4f9a186)
  • core Update search index on Product assigned/removed from Channel (3a6c277), closes #12
  • elasticsearch-plugin Add support for multiple channels (aacfaf4)

BREAKING CHANGE

  • The CatalogModificationEvent which was previously published whenever changes were made to Product or ProductVariant entities has been replaced with a ProductEvent and ProductVariantEvent, including the type of event ('created', 'updated', 'deleted').
  • The SearchIndexItem entity used by the DefaultSearchPlugin has a couple of new fields related to Channel handling. Once the schema is updated (either by synchronizing or running a migration), the search index should be rebuilt.

0.5.1 (2019-11-04)

Fixes

  • admin-ui Display correct net total in Order detail (b177f2c), closes #200

Features

  • admin-ui Export CanDeactivateDetailGuard (89c0699)
  • core Allow lazy evaluation of APIExtensionDefinitions (69dad0b)
  • core Export some entity utils from service helpers (ddceb64)
  • core Export the Api decorator & ApiType type (c7857d3)
  • core Update Nestjs to v6.8.5, TypeORM to v0.2.20
  • elasticsearch-plugin Allow definition of custom mappings (2c8b7df)
  • testing Extract e2e testing tools into @vendute/testing package, closes #198

0.5.0 (2019-10-23)

Features

  • admin-ui-plugin Allow UI extensions to contain multiple modules (b23c3e8)
  • admin-ui Display hint if deleting Collection with descendants (27b7080)
  • admin-ui Export BaseListComponent & BaseDetailComponent (d222449)
  • admin-ui Make CollectionList items expandable (147bf17)
  • core Allow log level to be set in migration helpers (34cb07e)
  • core Auto-generate GraphQL ListOptions for plugin extensions (aa40776)
  • core Export all service-layer helpers in PluginCommonModule (0d57eca)
  • core Export ListQueryBuilder helper (5bb5c1e)

Fixes

  • admin-ui Fix notification label for CollectionList (cd02789), closes #186
  • admin-ui Import missing social-shapes icons (7b5b943)
  • admin-ui Remove paging from CollectionList (517fcd0)
  • core Correctly handle 404 and other Nestjs errors (4f2c4df), closes #187
  • core Deleting a Collection also deletes descendants (1ba9e2d), closes #186
  • core Prevent unhandled promise rejection on worker SIGINT (39ca526), closes #150
  • create Add .gitattributes to prevent eol conversions (5fdeace), closes #185

BREAKING CHANGE

  • The API for configuring Admin UI extensions has changed to allow a single extension to define multiple Angular NgModules. This arose as a requirement when working on more complex UI extensions which e.g. define both a shared and a lazy module which share code. Such an arrangement was not possible using the existing API.

Here's how to update:

// Old API
extensions: [
    {
        type: 'lazy',
        ngModulePath: path.join(__dirname, 'ui-extensions/greeter'),
        ngModuleFileName: 'greeter-extension.module.ts',
        ngModuleName: 'GreeterModule',
    }
],

// New API
extensions: [
    {
        extensionPath: path.join(__dirname, 'ui-extensions/greeter'),
        ngModules: [{
            type: 'lazy',
            ngModuleFileName: 'greeter-extension.module.ts',
            ngModuleName: 'GreeterModule',
        }],
    }
],

0.4.0 (2019-10-16)

Features

  • admin-ui Add coupon & date rage data to PromotionList (4827aa4)
  • admin-ui Add date range & coupon code controls to PromotionDetail (48def65), closes #174
  • admin-ui Add detailed promotion & tax info to OrderDetail view (cd823fe)
  • admin-ui Add visibility to Order notes (760d519), closes #180
  • admin-ui Create cross-browser datetime picker component (78a713c), closes #181
  • admin-ui Display coupon code entries in order history (9f269fe)
  • core Add couponCodes to Order & mutations to add/remove codes (fdacb4b), closes #174
  • core Add date range and couponCode to Promotion entity (e615d2f), closes #174
  • core Add history entry to Order when vouchers applied/removed (887cc6c)
  • core Add isPublic flag to AddNoteToOrderInput (f97c3ac), closes #180
  • core Add validation to Promotion conditions (74e7444)
  • core Export database migration helpers (d509805)
  • core Expose Order.promotions via GraphQL APIs (02ebd9c), closes #174
  • core Implement per-customer usage limits for Promotions (9d45069), closes #174
  • core Implement Promotion date range & coupon code checks (f6eb343), closes #174
  • core Log thrown errors (ed7f5fb)
  • core Move error logging to the API Filter layer (e8fd15d)
  • create Generate README file with new projects (4e2784f)
  • create Rework folder structure, add build & migration scripts (746abff), closes #175

Fixes

  • admin-ui Fix creating new Channels (b8e4c6c), closes #182
  • admin-ui Fix customField product error: handle undef. case (8265359)
  • core Allow nullable fields to be unset via GraphQL API (d9f5c41)
  • core Fix DefaultLogger logLevel Error (d5405a0)
  • core Fix duplicate plugin entities being registered on bootstrap (ce00406)
  • core Fix order totals calculation with order % discount (a4fea59)
  • core Fix OrderItem totals calculation logic (3c66cf8)

BREAKING CHANGE

  • A new couponCodes column is added to the Order table, which will require a DB migration.
  • A new promotions relation has been added to the order table, and a perCustomerUsageLimit column to the promotion table. This will require a DB migration.
  • Removes atLeastNOfProduct from defaultPromotionConditions and itemPercentageDiscount & buy1Get1Free from defaultPromotionActions. They are either not useful or need to be re-implemented in a way that works correctly.

0.3.4 (2019-10-09)

Features

  • admin-ui Add entity info to detail views (cf604aa), closes #179

Fixes

  • admin-ui Do not expose internal entity IDs (2ca9cc1), closes #178
  • core Add date fields to graphql Country type (818be24)
  • core Fix uuid strategy, rework setting of ID data types in DB (d50d488), closes #176

0.3.3 (2019-10-03)

Features

  • admin-ui Allow creation of verified Customers (f451115), closes #171
  • admin-ui Allow selection of payment to be refunded (8009220)
  • core Improved Collection import (c654d6f), closes #173
  • core Verify admin-created Customers if password supplied (9931e25), closes #171

Fixes

  • admin-ui Correctly handle defaults for configurable operations (9bd6a79)
  • admin-ui Fix DisabledDirective making form dirty (70e857d)
  • core Do not duplicate plugins when running work in main process (c040c0b)

0.3.2 (2019-09-26)

Note only the @vendure/admin-ui, @vendure/admin-ui-plugin & @vendure/email-plugin packages were updated in this release.

Fixes

  • admin-ui Fix infinite loop hang on CollectionList page (230703f), closes #170
  • email-plugin Fix smtp auth (98bc90a)

0.3.1 (2019-09-25)

Features

  • admin-ui Add controls for disabling & deleting a Promotion (7568e20), closes #159
  • admin-ui Add permissions checks for Product list/detail views (75dc385), closes #94
  • admin-ui Add permissions checks to main nav items (78201fb), closes #94
  • admin-ui Add permissions checks to Promotions & Settings views (2552191), closes #94
  • admin-ui Allow extensions to define CustomField controls (83d9090), closes #55
  • admin-ui Allow shared & lazy UI plugins to be specified (5daf756), closes #55
  • admin-ui Can add custom buttons to list/detail views (ef47c62), closes #55
  • admin-ui Expose query & mutation method on DataService (09250a8)
  • admin-ui Implement readonly state for RichTextEditor (5f2987c)
  • admin-ui Permissions checks for Facet & Collection views (7f8163a), closes #94
  • admin-ui Set up infrastructure for permission-based UI display (6bd5181), closes #94
  • core Add Promotion-specific CRUD permissions (7ddd893)
  • core Allow length of custom field strings to be specified (fe360f5), closes #166
  • core Ensure SuperAdmin role has all permissions (ab866c1)
  • core Expose active user permissions in Admin API (b7cd6e5), closes #94
  • create Add example fromAddress global template variable (b727327)
  • email-plugin Added from field to the email config (#168) (09eb34e), closes #168

Fixes

  • admin-ui Correctly disable selects/toggles based on permissions (1e41b92)
  • core Correct permissions for tax-related resolvers (d2b52ce)
  • core Correct some permissions in Channel & Promotion resolvers (e2a64fa)
  • core Ensure all Roles always include the Authenticated permission (c2de3de)

0.3.0 (2019-09-18)

Features

  • admin-ui-plugin Add watch mode for UI extension development (c0b4d3f), closes #55
  • admin-ui-plugin Detect whether extensions need to be re-compiled (ba8c44f), closes #55
  • admin-ui Display Order custom fields (cbe11d2), closes #164
  • admin-ui Enable adding options to single-variant Products (7303171), closes #162
  • admin-ui Enable drag-drop reordering of assets (0e624f4), closes #156
  • admin-ui Enable drag-drop reordering of Collections (ffab838)
  • admin-ui Experimental system for extending the UI (1dcb2e6), closes #55
  • admin-ui Expose public API at @vendure/admin-ui/devkit (c2742ec)
  • admin-ui Implement adding new variants by extending options (fefe0ea), closes #162
  • core Re-architect entity-asset relations to allow ordering (4ed2ce3), closes #156
  • create Add ci option to test installs (c2c7b82)

Fixes

  • admin-ui Trigger navigation confirm if assets have been changed (6e751b0)
  • core Allow removal of all Assets from an entity (528eb3c)
  • core Fix facet value CollectionFilter (7b6fe6c), closes #158
  • core Resolve collection assets field (e32895f), closes #157
  • core Specify Collection.description as text type (351e811), closes #165

BREAKING CHANGE

  • The internal representation of Asset relations has changed to enable explicit ordering of assets. This change means that the database schema had to be updated.

0.2.1 (2019-09-09)

Features

  • admin-ui Check for running jobs after each mutation (8b2b0dc)
  • core Add optional metadata to JobInfo (7ddec36)
  • core Create WorkerService for simpler communication to worker (16ab03d)
  • core Enable custom fields on Order entity (4ef0f15)
  • core EventBus exposes Observable event stream with .ofType() (506a0fa)
  • core Improve speed of bulk product import (92abbcb)

Fixes

  • admin-ui Fix error creating product with localeString custom prop (4ae5b72)
  • core Fix fetching entities with a single localeString custom field (0d0545f)
  • elasticsearch-plugin Fix null productVariantPreview error (571f7af)

Perf

  • core Move application of CollectionFilters to worker (0a90982), closes #148

0.2.0 (2019-08-28)

Features

  • admin-ui Add filtering to countries list (fff6f19)
  • admin-ui Add filtering to orders list (8dda408)
  • admin-ui Add search input to customer list (28e4e41)
  • common Add DeepRequired type (c77e365)
  • core Expose new RuntimeVendureConfig interface (6ea7124)
  • core Include width and height in Asset entity (338ef95), closes #79
  • elasticsearch-plugin Add options for customising term query (7191842)
  • elasticsearch-plugin Allow facetValues size to be configured (3a5aff4)
  • elasticsearch-plugin Allow querying by price range (573f345)
  • elasticsearch-plugin Extend response with price range data (81eff46)

Fixes

  • common Add missing chars to normalizeString function (f687cc8), closes #144
  • core Correctly prefix asset urls for resolved properties (0517b6c), closes #146
  • elasticsearch-plugin Correctly remove deleted items from index (f0a56fa)
  • elasticsearch-plugin Correctly report facetValue counts (2f8af7c)
  • elasticsearch-plugin Fix error when creating new Product (b6ae235), closes #145
  • elasticsearch-plugin Make option optional (da8b2f2)

0.1.2-beta.12 (2019-08-20)

Fixes

  • admin-ui Add missing icon (4027325)
  • admin-ui Fix error on creating product with empty option values (452f5a9), closes #141
  • core Add 'float' type to arg types for shipping operations (f8626d1)
  • core Correctly filter out ineligible shipping methods (911463a)
  • core Fix application hang when worker microservice fails to start (25de044)
  • create Correctly log verbose output from server (a4b76b2)

Features

  • admin-ui-plugin Automatically configure admin-ui auth method (fd68d1e), closes #138
  • admin-ui Add shipping method eligibility testing tool (300da15)
  • admin-ui Automatically populate shipping method code (082e882)
  • admin-ui Display shipping calculator metadata (4e5bce5), closes #136
  • admin-ui Enable deletion of shipping methods (0032978)
  • admin-ui Support bearer token auth method (c31a383), closes #138
  • core Add testEligibleShippingMethods query (bc860e0)
  • core Allow ShippingCalculator to return arbitrary metadata (bdbdf9a), closes #136
  • core Automatically set CORS exposedHeaders for bearer auth (f4cd718), closes #137
  • core Implement deleteShippingMethod mutation, add tests (0b1dfd5)

0.1.2-beta.11 (2019-08-08)

Fixes

  • admin-ui Correctly display long items in SimpleItemList (ca2758f)
  • admin-ui Display zero shipping price in test tool (0e7e2d3)
  • admin-ui Fix styling of order history (8c5ff50)
  • admin-ui Minor styling fixes (c8fe561)
  • core Correct typing of PaymentMetadata (e6d35df)
  • core Correctly update Refund state (58caba7)

Features

  • admin-ui Add shipping method test UI (b76eac5), closes #133
  • admin-ui Display ProductVariant custom fields (32017f3)
  • admin-ui Display refund metadata (eabd343)
  • admin-ui Support extended ConfigurableOperations (8cc0941), closes #135
  • core Extend configurable operation arguments API (d17aaa9), closes #135
  • core I18n for descriptions and labels of ConfigurableOperations (a135e15)
  • core Implement testShippingMethod query (a3a9931), closes #133

BREAKING CHANGE

  • 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.

0.1.2-beta.10 (2019-08-01)

Features

  • admin-ui Display nested payment metadata (f90e773)
  • admin-ui Enable cancellation of active orders (8224ddd)
  • core Add error handling to payments (cba63e1)
  • core Allow cancellation of order by id (8d0a0eb)
  • core Export OrderState & PaymentState types (8ef699d)

Fixes

  • core Correct ID types for SearchInput (de78cc8)
  • core Fix incorrect import paths (663fbd8)
  • core Remove LanguageCode arg from Shop API (3b80224), closes #130
  • core Remove non-existent import (e660d46)
  • elasticsearch-plugin Remove references to Decode decorator (0d3d8ef)

BREAKING CHANGE

  • 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.

0.1.2-beta.9 (2019-07-25)

Features

  • core Make request pipeline compatible with REST requests (42aa5fb)
  • core Rewrite plugin system to use Nest modules (7ec309b), closes #123
  • core Use query param to specify language (2035003), closes #128
  • create Improve error handling (b5e0b62)
  • create Update config template to new plugin format (eb5d4ff)

Fixes

  • admin-ui Remove references to obsolete languageCode arguments (1e81068), closes #128

BREAKING CHANGE

  • All 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 }) ],
    

0.1.2-beta.8 (2019-07-18)

Fixes

  • core Fix filtering PaginatedList results (b6a365f)
  • core Fix graphQL schema errors with latest nestjs/graphql (fbeecef), closes #129

Features

  • admin-ui Extend custom field controls to support new options (019cd02), closes #85
  • core Add custom validation function to custom field config (80eba9d), closes #85
  • core Add nullable & defaultValue options to custom fields config (b1722d8), closes #85
  • core Add options to string custom field config (bc0813e), closes #85
  • core Add validation parameters to custom fields (b6b13a5), closes #85
  • core Check for name conflict in custom fields, test sort/filter (27abcff), closes #85
  • core Implement access control for custom fields (8f763b2), closes #85
  • core Improve error messages for invalid custom field inputs (af13dc2), closes #85

0.1.2-beta.7 (2019-07-10)

Features

  • admin-ui Implement deletion of Collections (1d7ab26)
  • admin-ui Implement deletion of ProductVariants (bcc2662)
  • admin-ui Implement editing of ProductOptions (420793d)
  • admin-ui Implement integrated ProductVariant creation (58dad1d), closes #124
  • core Add createProductVariant mutation & tests (9d74d9d), closes #124
  • core Implement create and update of ProductOption (601c766)
  • core Implement deleteCollection mutation (051f2f3)
  • core Implement deleteProductVariant mutation (8b22831), closes #124

Fixes

  • admin-ui Do not hide dropdown panel (bbbe70d)
  • common Fix generateAllCombinations edge case (016adf8)
  • core Make ProductOption type fields non-nullable (0ea150c)
  • core Publish CatalogModificationEvent when variant created (65d18ee)

BREAKING CHANGE

  • The generateVariantsForProduct mutation has been removed

0.1.2-beta.6 (2019-07-03)

Features

  • admin-ui Add controls to settle authorized payments (32006ae), closes #117
  • admin-ui Display order history timeline (3f5745d), closes #118
  • admin-ui Implement adding notes to Order history (1108914), closes #118
  • admin-ui Implement cancellation & refund flows (9295a90), closes #121
  • admin-ui Implement creating fulfillment for orders (1a22d0d), closes #119
  • admin-ui Implement fulfillment controls (a006545), closes #119
  • admin-ui Implement manual refund settlement (66006a1), closes #121
  • admin-ui Improve layout of OrderDetailComponent (c1d8664)
  • core Add settlePayment mutation (f2b9a12), closes #117
  • core Allow payment handler to reject settlement (4cbae46), closes #117
  • core Implement adding notes to an Order (3682cbf), closes #118
  • core Implement cancelOrder mutation (a03fec7), closes #120
  • core Implement createFulfillment mutation (e501578), closes #119
  • core Implement order history (e4927c3), closes #118
  • core Implement OrderItem-level cancellation (35084f3), closes #120
  • core Implement Refund mutations (8870b02), closes #121
  • core Implement resolver for Order.fulfillments (ff0bb0a), closes #119
  • core Simplify API for creating Fulfillments (8cb4c41)

Fixes

  • core Fix AssetInterceptor stack overflow with cyclic response (c90a2a4)
  • core Make @types/fs-extra a dependency (37e9865)
  • elasticsearch-plugin Close down es client when app closes (44809a1)
  • elasticsearch-plugin Index products when updating by variantIds (6d243d2)

0.1.2-beta.5 (2019-06-19)

Fixes

  • admin-ui Correctly display checkboxes and toggles (bc42b95)
  • admin-ui Correctly handle boolean configurable inputs (b5d10c1), closes #112
  • admin-ui Fix asset picker dialog filtering (16e7fc1), closes #113
  • admin-ui Paginate Collections list (17ac985), closes #114
  • core Clean up unused dependencies in DefaultSearchPlugin (9b3cd26)
  • core Close worker when app closes when running in main process (33b2fe1)
  • core Fix bad imports from common module (960b647)
  • core Set worker to run off main process by default (8e14213)
  • core Wait for worker tasks to complete on app shutdown (2a9fb0b)
  • core When populating, run search index builder on main process (6564d3f)
  • create Run worker on main process when populating (87dc49a)
  • email-plugin Move server setup to onBootstrap method (5f7a65e)

Features

  • core Display more worker info on bootstrap (edbcbc4)
  • core FacetValue Collection filter can specify logical operator (f136117), closes #112
  • core Get DefaultSearchPlugin working with new Worker architecture (6ca2ab4), closes #115
  • core Prevent calling bootstrapWorker when runInMainProcess = true (dc8e173)
  • core Set up worker architecture based on Nest microservices (508bafd), closes #115
  • create Set an env variable during the create process (b085e49)
  • create Update to use separate worker process (f3560f2)

0.1.2-beta.4 (2019-06-06)

Fixes

  • admin-ui Fix background image on login screen (8066d9b)
  • admin-ui Fix styles to work with Clarity v2 (6ab33cc)
  • core Disable index builder worker thread for sql.js (a49d1a3)
  • core Fix i18next typing issues after update (41a3e7a)
  • core Fix TypeScript errors arising in v3.5.1 (8e78450)
  • core Queue concurrent search index writes to avoid key conflicts (ae1145a)

Features

  • admin-ui Display background jobs in UI (59d8312), closes #111
  • admin-ui Improve polling logic for jobs (ced3990)
  • admin-ui Update to Angular 8 (cb69306)
  • core Background thread search indexing (b78354e)
  • core Create async job manager for long-running tasks (a83945a), closes #111
  • core Process all updates to the search index on worker thread (fe40641)
  • core Update TypeORM to 0.2.18, compatible with sql.js 1.0 (7eda23b)
  • core Use batching when reindexing search index (40c5946)
  • core Use batching when updating collection filters (325b807)

BREAKING CHANGE

  • 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.

0.1.2-beta.3 (2019-05-31)

Features

  • admin-ui Allow custom error messages passed to FormFieldComponent (220d861)
  • admin-ui Update slug in product detail form after save (2cecb39)
  • admin-ui Validate slug pattern in product detail form (29509d8), closes #103
  • core Allow custom fields to be set on OrderLine (a4b7e07), closes #109
  • core Allow product to be queried by slug (a2d847d), closes #108
  • core Enforce unique slugs for Products (d8d5fcc), closes #103
  • core Normalize product slug values (e2235cb), closes #103
  • core Rename SearchInput facetIds arg to facetValueIds (8b116b2)

Fixes

  • asset-server-plugin Fix type of assetUrlPrefix option (d753f0e)
  • core Configure GraphQL Playground to include credentials (4429730), closes #107
  • core Do not list deleted productVariants in a Collection (e1fecbb), closes #100
  • core Do not throw when deleting Facet with no FacetValues (f7d337f), closes #105
  • core Fix bad common import paths (6a54be3)
  • core Fix error when searching ShopAPI with postgres (f05360b), closes #99
  • core Fix postgres error when specifying custom fields (d8b6c47), closes #85 #101
  • email-plugin Fix bad common import paths (077fd6d)

BREAKING CHANGE

  • The "facetIds" field of the SearchInput type has been renamed to "facetValueIds" to better reflect the expected id type.
  • 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".

0.1.2-beta.2 (2019-05-24)

Fixes

  • core Fix CollectionBreadcrumb.name error (5b6f93a), closes #97
  • core Fix intermittent "no active session" errors (1313ca7)

Features

  • asset-server-plugin Allow url prefix to be set in options (c0ea092)

0.1.2-beta.1 (2019-05-22)

Fixes

  • admin-ui Fix publish flow to ensure correct version in UI (dc52814)

0.1.2-beta.0 (2019-05-22)

Fixes

  • admin-ui Correctly display configurable money values (3546071)
  • admin-ui Correctly sort assets (e57450b)
  • admin-ui Do not run CanDeactivateGuard when switching tabs (d8e6258)
  • admin-ui Fix boolean configurable input (994264d)
  • admin-ui Fix creation of zone from country list (0aa0bc8)
  • admin-ui Fix error with rich text editor (trix) (b42ead6)
  • admin-ui Replace all clr-dropdown with vdr-dropdown (4de2a6a), closes #95
  • admin-ui Reset page when filters changed in product list (c9325b6)
  • core Add missing timestamp fields to Asset GraphQL type (1c543db)
  • core Add property resolver for Collection.featuredAsset (cd367a7)
  • core Check existence of ProductVariant before updating (fe5eedd)
  • core Correctly intercept top-level Assets (d767a9d)
  • core Correctly update country in customer address (75f9492)
  • core Fix bad import paths (e126d2e)
  • core Fix bug which created new address for each order placed (8703e25)
  • core Fix error when updating variant stock level (57c5499)
  • core Fix reordering of collections (75f8858), closes #75
  • core Fix search.facetValues resolver error (ecfbf56)
  • core Fix type error (missing isPrivate property) (4d1cd65)
  • core Implement property resolver for Collection.children (e5f614e)
  • core Prevent race conditions when updating search index (8872a94)
  • core Relax engines check for Yarn (9c4f8fb)
  • core Typo in mock product data (cf0f842)
  • email-plugin Fix failing test (cf2acbf)

Features

  • admin-ui Add ApiType to RequestContext (9b55c17)
  • admin-ui Add asset preview dialog (34413ce)
  • admin-ui Add controls for stockOnHand & trackInventory (4e021b8), closes #81
  • admin-ui Add enabled/disabled toggle to ProductVariants (406ab28), closes #62
  • admin-ui Add input for configurable string operators (b5a07d1), closes #71
  • admin-ui Add toggle to enable/disable Product (a117bbe), closes #62
  • admin-ui Add UI controls for making Collections private (4f17d3e), closes #71
  • admin-ui Add UI controls for private Facets (290a576), closes #80
  • admin-ui Collapse settings menu group by default (c8539de)
  • admin-ui Create ProductSearchInput bar (0668443)
  • admin-ui Implement custom dropdown based on CDK Overlay (409bb16), closes #95
  • admin-ui Improve collection list & child collection creation (c996fa7)
  • admin-ui Improve layout of ProductVariantList card (8ecd2c3)
  • admin-ui Link up product filters with url (8aab908)
  • admin-ui Make facet list values expandable (13ce943)
  • admin-ui More styling for product variant list (0522e5c)
  • admin-ui Numerous style tweaks (14ee458)
  • admin-ui Reindex search index from product list (de7f22d)
  • admin-ui Restyle form inputs (438802d), closes #60
  • admin-ui Set the global trackInventory setting (bf4185b), closes #81
  • admin-ui Standardise colour palette (9cb73ae), closes #41
  • admin-ui Table view for product variants (058749a)
  • core Add "enabled" field to Product & ProductVariant (a877853), closes #62
  • core Add "enabled" field to search index, add & fix e2e tests (fcd3086), closes #62
  • core Add isPrivate flag to Collection (848c8b4), closes #71
  • core Correctly handle disabled field for grouped search (56cad72), closes #62
  • core Create entities & fields needed for stock control (aace38f), closes #81
  • core Create Logger service (65445cb), closes #86
  • core Create Sale stock movements when Order is completed (e0a0441), closes #81
  • core Create StockMovements when variant stock changed (f8521db), closes #81
  • core Create workflow for updating a Customer email address (f8065de), closes #87
  • core Export populate-collections CLI command (0aef0b7)
  • core Expose init CLI command (4d5f0d9)
  • core Implement CollectionFilter based on ProductVariant name (18549c7), closes #71
  • core Implement private Facets (b6c3240), closes #80
  • core Implement tax on shipping (1b13aa3), closes #54
  • core Improved logging messages on bootstrap (9efada8), closes #86
  • core Publish events on login/logout (5ab83da), closes #53
  • core Richer mock data (089282e), closes #96
  • core Update import CSV format to include stock fields (3f732ab), closes #81
  • core Use Logger to log TypeORM logs (5966bec), closes #86
  • create Better error reporting on DB connection issues. (1a7dc05), closes #90
  • create Update config with latest email-plugin API changes (b2277c5)
  • email-plugin Create dev mode mailbox server (e38075f)
  • email-plugin Create handler for email address change (8a5907e), closes #87
  • email-plugin Generate test emails from dev mailbox (35105ec)
  • email-plugin Highlight open email in dev mailbox (3fac1ac)
  • email-plugin Improve styling of email templates (8f0c6e7)
  • email-plugin Introduce globalTemplateVars option (407d232)
  • email-plugin Simplify email config API (d35420a), closes #88