Skip to content

Commit

Permalink
chore: Publish v0.14.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Jul 20, 2020
1 parent e5c2788 commit 0121484
Show file tree
Hide file tree
Showing 14 changed files with 105 additions and 38 deletions.
67 changes: 67 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.
## <small>0.13.1 (2020-06-30)</small>


Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "0.13.1",
"version": "0.14.0",
"npmClient": "yarn",
"useWorkspaces": true,
"command": {
Expand Down
6 changes: 3 additions & 3 deletions packages/admin-ui-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions packages/admin-ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/admin-ui",
"version": "0.13.1",
"version": "0.14.0",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/admin-ui/src/lib/core/src/common/version.ts
Original file line number Diff line number Diff line change
@@ -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';
6 changes: 3 additions & 3 deletions packages/asset-server-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/common",
"version": "0.13.1",
"version": "0.14.0",
"main": "index.js",
"license": "MIT",
"scripts": {
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/core",
"version": "0.13.1",
"version": "0.14.0",
"description": "A modern, headless ecommerce framework",
"repository": {
"type": "git",
Expand Down Expand Up @@ -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",
Expand Down
6 changes: 3 additions & 3 deletions packages/create/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@vendure/create",
"version": "0.13.1",
"version": "0.14.0",
"license": "MIT",
"bin": {
"create": "./index.js"
Expand All @@ -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",
Expand Down
18 changes: 9 additions & 9 deletions packages/dev-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "dev-server",
"version": "0.13.1",
"version": "0.14.0",
"main": "index.js",
"license": "MIT",
"private": true,
Expand All @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/elasticsearch-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand All @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/email-plugin/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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"
}
Expand Down
6 changes: 3 additions & 3 deletions packages/testing/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down
8 changes: 4 additions & 4 deletions packages/ui-devkit/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
Expand Down

0 comments on commit 0121484

Please sign in to comment.