From 01214847e68a540abc711b42924df44003d11fdb Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 20 Jul 2020 16:29:56 +0200 Subject: [PATCH] chore: Publish v0.14.0 --- CHANGELOG.md | 67 +++++++++++++++++++ lerna.json | 2 +- packages/admin-ui-plugin/package.json | 6 +- packages/admin-ui/package.json | 4 +- .../src/lib/core/src/common/version.ts | 2 +- packages/asset-server-plugin/package.json | 6 +- packages/common/package.json | 2 +- packages/core/package.json | 4 +- packages/create/package.json | 6 +- packages/dev-server/package.json | 18 ++--- packages/elasticsearch-plugin/package.json | 6 +- packages/email-plugin/package.json | 6 +- packages/testing/package.json | 6 +- packages/ui-devkit/package.json | 8 +-- 14 files changed, 105 insertions(+), 38 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4a6c902cad..c9ffaccf80 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,70 @@ +## 0.14.0 (2020-07-20) + + +#### Fixes + +* **admin-ui** Fix error when creating new Customer ([edc56f8](https://github.com/vendure-ecommerce/vendure/commit/edc56f8)) +* **admin-ui** Fix ts error introduced by ShippingMethods custom fields ([8c38ad1](https://github.com/vendure-ecommerce/vendure/commit/8c38ad1)) +* **admin-ui** Save custom fields in the Customer detail view ([3c45b16](https://github.com/vendure-ecommerce/vendure/commit/3c45b16)), closes [#387](https://github.com/vendure-ecommerce/vendure/issues/387) +* **core** Correct handling of multiple session for same user ([2c42305](https://github.com/vendure-ecommerce/vendure/commit/2c42305)) +* **core** Correctly call PaymentMethodHandler.onStateTransitionStart ([143e62f](https://github.com/vendure-ecommerce/vendure/commit/143e62f)) +* **core** Define cascade behaviour for featured assets ([3f0c79b](https://github.com/vendure-ecommerce/vendure/commit/3f0c79b)) +* **core** Fix bug where session user in cache would get removed ([ebec0f0](https://github.com/vendure-ecommerce/vendure/commit/ebec0f0)) +* **core** Fix error when de-serializing a RequestContext without expiry ([a1e03fd](https://github.com/vendure-ecommerce/vendure/commit/a1e03fd)) +* **core** Prevent countryCode exception when adding payment to order ([49c2ad4](https://github.com/vendure-ecommerce/vendure/commit/49c2ad4)) + +#### Features + +* **admin-ui-plugin** Support `loginUrl` option ([5a95476](https://github.com/vendure-ecommerce/vendure/commit/5a95476)) +* **admin-ui** Add `loginUrl` option to support external login pages ([2745146](https://github.com/vendure-ecommerce/vendure/commit/2745146)), closes [#215](https://github.com/vendure-ecommerce/vendure/issues/215) +* **admin-ui** Add ability to delete administrator from admin list ([e217ce0](https://github.com/vendure-ecommerce/vendure/commit/e217ce0)), closes [#384](https://github.com/vendure-ecommerce/vendure/issues/384) +* **admin-ui** Display auth strategy in customer history ([bdfc43d](https://github.com/vendure-ecommerce/vendure/commit/bdfc43d)) +* **admin-ui** Display customer last login time ([0f9dd1c](https://github.com/vendure-ecommerce/vendure/commit/0f9dd1c)) +* **admin-ui** Enable updating of Order custom fields ([5bbd80b](https://github.com/vendure-ecommerce/vendure/commit/5bbd80b)), closes [#404](https://github.com/vendure-ecommerce/vendure/issues/404) +* **admin-ui** Implement multiple asset deletion ([b2f3f08](https://github.com/vendure-ecommerce/vendure/commit/b2f3f08)), closes [#380](https://github.com/vendure-ecommerce/vendure/issues/380) +* **admin-ui** Implement order process state chart view ([7283258](https://github.com/vendure-ecommerce/vendure/commit/7283258)) +* **admin-ui** Improve multi-selection in Asset gallery component ([a4e132a](https://github.com/vendure-ecommerce/vendure/commit/a4e132a)), closes [#380](https://github.com/vendure-ecommerce/vendure/issues/380) +* **admin-ui** Support custom state transitions from Order detail view ([1d2ba31](https://github.com/vendure-ecommerce/vendure/commit/1d2ba31)) +* **core** Add `ProductOption.group` field & resolver ([f20e108](https://github.com/vendure-ecommerce/vendure/commit/f20e108)), closes [#378](https://github.com/vendure-ecommerce/vendure/issues/378) +* **core** Add `ProductVariant.product` field & resolver ([0334848](https://github.com/vendure-ecommerce/vendure/commit/0334848)), closes [#378](https://github.com/vendure-ecommerce/vendure/issues/378) +* **core** Add admin helpers to ExternalAuthenticationService ([3456ffb](https://github.com/vendure-ecommerce/vendure/commit/3456ffb)) +* **core** Add custom fields to registerCustomerAccount mutation ([be1f200](https://github.com/vendure-ecommerce/vendure/commit/be1f200)), closes [#388](https://github.com/vendure-ecommerce/vendure/issues/388) +* **core** Allow all CustomOrderProcess handlers to be async functions ([5d67d06](https://github.com/vendure-ecommerce/vendure/commit/5d67d06)) +* **core** Enable custom fields on ShippingMethod entity (#406) ([fbc36ab](https://github.com/vendure-ecommerce/vendure/commit/fbc36ab)), closes [#406](https://github.com/vendure-ecommerce/vendure/issues/406) [#402](https://github.com/vendure-ecommerce/vendure/issues/402) +* **core** Export ExternalAuthenticationService ([c3ed2cd](https://github.com/vendure-ecommerce/vendure/commit/c3ed2cd)) +* **core** Expose `nextStates` on Order type in Admin API ([ece0bbe](https://github.com/vendure-ecommerce/vendure/commit/ece0bbe)) +* **core** Expose order state machine config via `serverConfig` type ([0a77438](https://github.com/vendure-ecommerce/vendure/commit/0a77438)) +* **core** Expose User.authenticationMethod in GraphQL APIs ([96f923a](https://github.com/vendure-ecommerce/vendure/commit/96f923a)) +* **core** Implement `authenticate` mutation for Admin API ([357f878](https://github.com/vendure-ecommerce/vendure/commit/357f878)) +* **core** Implement `deleteAdministrator` mutation ([dc82b2c](https://github.com/vendure-ecommerce/vendure/commit/dc82b2c)), closes [#384](https://github.com/vendure-ecommerce/vendure/issues/384) +* **core** Implement `setOrderCustomFields` in Admin API ([ad89fc9](https://github.com/vendure-ecommerce/vendure/commit/ad89fc9)), closes [#404](https://github.com/vendure-ecommerce/vendure/issues/404) +* **core** Implement `setOrderCustomFields` in Shop API ([3a12dc5](https://github.com/vendure-ecommerce/vendure/commit/3a12dc5)), closes [#404](https://github.com/vendure-ecommerce/vendure/issues/404) +* **core** Implement `transitionOrderToState` in Admin API ([3196b52](https://github.com/vendure-ecommerce/vendure/commit/3196b52)) +* **core** Implement configurable session caching ([09a432d](https://github.com/vendure-ecommerce/vendure/commit/09a432d)), closes [#394](https://github.com/vendure-ecommerce/vendure/issues/394) +* **core** Implement deleteAssets mutation ([6f12014](https://github.com/vendure-ecommerce/vendure/commit/6f12014)), closes [#380](https://github.com/vendure-ecommerce/vendure/issues/380) +* **core** Improve customization of order process ([0011ea9](https://github.com/vendure-ecommerce/vendure/commit/0011ea9)), closes [#401](https://github.com/vendure-ecommerce/vendure/issues/401) +* **core** Include auth strategy name in AttemptedLoginEvent ([b83f1fe](https://github.com/vendure-ecommerce/vendure/commit/b83f1fe)) +* **core** Log error variables as well as message ([de25bdb](https://github.com/vendure-ecommerce/vendure/commit/de25bdb)) +* **core** More flexible customer registration flow ([92350e6](https://github.com/vendure-ecommerce/vendure/commit/92350e6)), closes [#392](https://github.com/vendure-ecommerce/vendure/issues/392) +* **core** More flexible handling of shipping calculations ([d166c08](https://github.com/vendure-ecommerce/vendure/commit/d166c08)), closes [#397](https://github.com/vendure-ecommerce/vendure/issues/397) [#398](https://github.com/vendure-ecommerce/vendure/issues/398) +* **core** Record lastLogin date on authenticate ([39c743b](https://github.com/vendure-ecommerce/vendure/commit/39c743b)) +* **core** Record strategy used to register in Customer history ([5504044](https://github.com/vendure-ecommerce/vendure/commit/5504044)) +* **core** Rework User/auth implementation to enable 3rd party auth ([f12b96f](https://github.com/vendure-ecommerce/vendure/commit/f12b96f)), closes [#215](https://github.com/vendure-ecommerce/vendure/issues/215) +* **core** Store authenticationStrategy on an AuthenticatedSession ([e737c56](https://github.com/vendure-ecommerce/vendure/commit/e737c56)) +* **email-plugin** Use new User model in email handlers ([16dd884](https://github.com/vendure-ecommerce/vendure/commit/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) diff --git a/lerna.json b/lerna.json index e602dfbd3c..d2c8899cf9 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "0.13.1", + "version": "0.14.0", "npmClient": "yarn", "useWorkspaces": true, "command": { diff --git a/packages/admin-ui-plugin/package.json b/packages/admin-ui-plugin/package.json index 50fd5c7b3b..11688a1ea1 100644 --- a/packages/admin-ui-plugin/package.json +++ b/packages/admin-ui-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/admin-ui-plugin", - "version": "0.13.1", + "version": "0.14.0", "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ @@ -19,8 +19,8 @@ "devDependencies": { "@types/express": "^4.0.39", "@types/fs-extra": "^8.0.1", - "@vendure/common": "^0.13.1", - "@vendure/core": "^0.13.1", + "@vendure/common": "^0.14.0", + "@vendure/core": "^0.14.0", "express": "^4.16.4", "rimraf": "^3.0.0", "typescript": "3.8.3" diff --git a/packages/admin-ui/package.json b/packages/admin-ui/package.json index 082088b7e4..8c475004c6 100644 --- a/packages/admin-ui/package.json +++ b/packages/admin-ui/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/admin-ui", - "version": "0.13.1", + "version": "0.14.0", "license": "MIT", "scripts": { "ng": "ng", @@ -35,7 +35,7 @@ "@ng-select/ng-select": "^3.7.2", "@ngx-translate/core": "^12.1.2", "@ngx-translate/http-loader": "^4.0.0", - "@vendure/common": "^0.13.1", + "@vendure/common": "^0.14.0", "@webcomponents/custom-elements": "^1.2.4", "apollo-angular": "^1.8.0", "apollo-cache-inmemory": "^1.6.5", diff --git a/packages/admin-ui/src/lib/core/src/common/version.ts b/packages/admin-ui/src/lib/core/src/common/version.ts index 63a50dbbd4..52f705755a 100644 --- a/packages/admin-ui/src/lib/core/src/common/version.ts +++ b/packages/admin-ui/src/lib/core/src/common/version.ts @@ -1,2 +1,2 @@ // Auto-generated by the set-version.js script. -export const ADMIN_UI_VERSION = '0.13.1'; +export const ADMIN_UI_VERSION = '0.14.0'; diff --git a/packages/asset-server-plugin/package.json b/packages/asset-server-plugin/package.json index 1dd3496402..0972802a7b 100644 --- a/packages/asset-server-plugin/package.json +++ b/packages/asset-server-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/asset-server-plugin", - "version": "0.13.1", + "version": "0.14.0", "main": "lib/index.js", "types": "lib/index.d.ts", "files": [ @@ -22,8 +22,8 @@ "@types/fs-extra": "^8.0.1", "@types/node-fetch": "^2.5.4", "@types/sharp": "^0.24.0", - "@vendure/common": "^0.13.1", - "@vendure/core": "^0.13.1", + "@vendure/common": "^0.14.0", + "@vendure/core": "^0.14.0", "aws-sdk": "^2.670.0", "express": "^4.16.4", "node-fetch": "^2.6.0", diff --git a/packages/common/package.json b/packages/common/package.json index 1a74e6cc85..4ccd44be4f 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/common", - "version": "0.13.1", + "version": "0.14.0", "main": "index.js", "license": "MIT", "scripts": { diff --git a/packages/core/package.json b/packages/core/package.json index e18fd38cb0..75eb82c6be 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/core", - "version": "0.13.1", + "version": "0.14.0", "description": "A modern, headless ecommerce framework", "repository": { "type": "git", @@ -47,7 +47,7 @@ "@nestjs/testing": "7.0.5", "@nestjs/typeorm": "7.0.0", "@types/fs-extra": "^8.0.1", - "@vendure/common": "^0.13.1", + "@vendure/common": "^0.14.0", "apollo-server-express": "2.11.0", "bcrypt": "^4.0.1", "body-parser": "^1.19.0", diff --git a/packages/create/package.json b/packages/create/package.json index e591733250..62c879c7c4 100644 --- a/packages/create/package.json +++ b/packages/create/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/create", - "version": "0.13.1", + "version": "0.14.0", "license": "MIT", "bin": { "create": "./index.js" @@ -26,13 +26,13 @@ "@types/handlebars": "^4.1.0", "@types/listr": "^0.14.0", "@types/semver": "^6.0.0", - "@vendure/core": "^0.13.1", + "@vendure/core": "^0.14.0", "rimraf": "^3.0.0", "ts-node": "^8.4.1", "typescript": "3.8.3" }, "dependencies": { - "@vendure/common": "^0.13.1", + "@vendure/common": "^0.14.0", "chalk": "^3.0.0", "commander": "^5.0.0", "cross-spawn": "^7.0.1", diff --git a/packages/dev-server/package.json b/packages/dev-server/package.json index 1ad1a55583..2e90f62490 100644 --- a/packages/dev-server/package.json +++ b/packages/dev-server/package.json @@ -1,6 +1,6 @@ { "name": "dev-server", - "version": "0.13.1", + "version": "0.14.0", "main": "index.js", "license": "MIT", "private": true, @@ -14,18 +14,18 @@ "load-test:100k": "node -r ts-node/register load-testing/run-load-test.ts 100000" }, "dependencies": { - "@vendure/admin-ui-plugin": "^0.13.1", - "@vendure/asset-server-plugin": "^0.13.1", - "@vendure/common": "^0.13.1", - "@vendure/core": "^0.13.1", - "@vendure/elasticsearch-plugin": "^0.13.1", - "@vendure/email-plugin": "^0.13.1", + "@vendure/admin-ui-plugin": "^0.14.0", + "@vendure/asset-server-plugin": "^0.14.0", + "@vendure/common": "^0.14.0", + "@vendure/core": "^0.14.0", + "@vendure/elasticsearch-plugin": "^0.14.0", + "@vendure/email-plugin": "^0.14.0", "typescript": "3.8.3" }, "devDependencies": { "@types/csv-stringify": "^3.1.0", - "@vendure/testing": "^0.13.1", - "@vendure/ui-devkit": "^0.13.1", + "@vendure/testing": "^0.14.0", + "@vendure/ui-devkit": "^0.14.0", "concurrently": "^5.0.0", "csv-stringify": "^5.3.3" } diff --git a/packages/elasticsearch-plugin/package.json b/packages/elasticsearch-plugin/package.json index 997b3cb59d..957fae493d 100644 --- a/packages/elasticsearch-plugin/package.json +++ b/packages/elasticsearch-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/elasticsearch-plugin", - "version": "0.13.1", + "version": "0.14.0", "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -22,8 +22,8 @@ "deepmerge": "^4.0.0" }, "devDependencies": { - "@vendure/common": "^0.13.1", - "@vendure/core": "^0.13.1", + "@vendure/common": "^0.14.0", + "@vendure/core": "^0.14.0", "rimraf": "^3.0.0", "typescript": "3.8.3" } diff --git a/packages/email-plugin/package.json b/packages/email-plugin/package.json index 95e757421f..a60db80394 100644 --- a/packages/email-plugin/package.json +++ b/packages/email-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/email-plugin", - "version": "0.13.1", + "version": "0.14.0", "license": "MIT", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -33,8 +33,8 @@ "@types/handlebars": "^4.1.0", "@types/mjml": "^4.0.2", "@types/nodemailer": "^6.4.0", - "@vendure/common": "^0.13.1", - "@vendure/core": "^0.13.1", + "@vendure/common": "^0.14.0", + "@vendure/core": "^0.14.0", "rimraf": "^3.0.0", "typescript": "3.8.3" } diff --git a/packages/testing/package.json b/packages/testing/package.json index 8c7e5af5f4..aea0bd4044 100644 --- a/packages/testing/package.json +++ b/packages/testing/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/testing", - "version": "0.13.1", + "version": "0.14.0", "description": "End-to-end testing tools for Vendure projects", "keywords": [ "vendure", @@ -33,7 +33,7 @@ }, "dependencies": { "@types/node-fetch": "^2.5.4", - "@vendure/common": "^0.13.1", + "@vendure/common": "^0.14.0", "faker": "^4.1.0", "form-data": "^3.0.0", "graphql": "^14.5.8", @@ -44,7 +44,7 @@ "devDependencies": { "@types/mysql": "^2.15.8", "@types/pg": "^7.14.1", - "@vendure/core": "^0.13.1", + "@vendure/core": "^0.14.0", "mysql": "^2.17.1", "pg": "^7.17.1", "rimraf": "^3.0.0", diff --git a/packages/ui-devkit/package.json b/packages/ui-devkit/package.json index cce114c4a4..08308f2520 100644 --- a/packages/ui-devkit/package.json +++ b/packages/ui-devkit/package.json @@ -1,6 +1,6 @@ { "name": "@vendure/ui-devkit", - "version": "0.13.1", + "version": "0.14.0", "description": "A library for authoring Vendure Admin UI extensions", "keywords": [ "vendure", @@ -39,8 +39,8 @@ "@angular/cli": "^9.0.5", "@angular/compiler": "^9.0.6", "@angular/compiler-cli": "^9.0.6", - "@vendure/admin-ui": "^0.13.1", - "@vendure/common": "^0.13.1", + "@vendure/admin-ui": "^0.14.0", + "@vendure/common": "^0.14.0", "chalk": "^3.0.0", "chokidar": "^3.3.1", "fs-extra": "^9.0.0", @@ -51,7 +51,7 @@ "@rollup/plugin-node-resolve": "^7.1.1", "@types/fs-extra": "^8.1.0", "@types/glob": "^7.1.1", - "@vendure/core": "^0.13.1", + "@vendure/core": "^0.14.0", "rimraf": "^3.0.0", "rollup": "^2.2.0", "rollup-plugin-terser": "^5.3.0",