Michael Bromley 5 лет назад
Родитель
Сommit
9986993430

+ 105 - 0
CHANGELOG.md

@@ -1,3 +1,108 @@
+## 0.10.0 (2020-03-17)
+
+
+#### Features
+
+* **admin-ui** Export helper for hosting external ui extensions ([3d08460](https://github.com/vendure-ecommerce/vendure/commit/3d08460))
+* **admin-ui** Export minified theme css for ui extensions dev ([99073c9](https://github.com/vendure-ecommerce/vendure/commit/99073c9))
+* **admin-ui** Improved ui extension development API & architecture ([fe72c41](https://github.com/vendure-ecommerce/vendure/commit/fe72c41))
+* **admin-ui** Simplify API for adding menu items, custom controls ([2b9e4c4](https://github.com/vendure-ecommerce/vendure/commit/2b9e4c4))
+* **admin-ui** Update Angular to v9 ([bc35c25](https://github.com/vendure-ecommerce/vendure/commit/bc35c25))
+* **admin-ui** Update Clarity to v3.rc ([f8b94b2](https://github.com/vendure-ecommerce/vendure/commit/f8b94b2))
+* **admin-ui** Use ProseMirror as rich text editor ([e309111](https://github.com/vendure-ecommerce/vendure/commit/e309111))
+* **ui-devkit** Allow static assets to be renamed ([08e23d0](https://github.com/vendure-ecommerce/vendure/commit/08e23d0))
+* **ui-devkit** Run detect and run ngcc on first compilation ([b5a57a8](https://github.com/vendure-ecommerce/vendure/commit/b5a57a8))
+
+#### Fixes
+
+* **admin-ui** Enable full template type checks and fix issues ([db36111](https://github.com/vendure-ecommerce/vendure/commit/db36111))
+* **admin-ui** Prevent removal of FacetValue on ProductDetail form enter ([1db6c3d](https://github.com/vendure-ecommerce/vendure/commit/1db6c3d)), closes [#267](https://github.com/vendure-ecommerce/vendure/issues/267)
+* **core** Correctly resolve deprecated asset fields in search query ([e9a517b](https://github.com/vendure-ecommerce/vendure/commit/e9a517b))
+* **core** Correctly update search index on ProductVariant deletion ([401c236](https://github.com/vendure-ecommerce/vendure/commit/401c236)), closes [#266](https://github.com/vendure-ecommerce/vendure/issues/266)
+* **elasticsearch-plugin** Correctly update index on variant deletion ([8b91a59](https://github.com/vendure-ecommerce/vendure/commit/8b91a59)), closes [#266](https://github.com/vendure-ecommerce/vendure/issues/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:
+  ```ts
+    // before
+    AdminUiPlugin.init({
+        port: 3002,
+        extensions: [
+            ReviewsPlugin.uiExtensions,
+            RewardsPlugin.uiExtensions,
+        ],
+        watch: true,
+    }),
+  ```
+  ```ts
+    // 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.
+  ```diff
+  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:
+  ```diff
+  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)
 
 

+ 1 - 1
lerna.json

@@ -2,7 +2,7 @@
   "packages": [
     "packages/*"
   ],
-  "version": "0.9.0",
+  "version": "0.10.0",
   "npmClient": "yarn",
   "useWorkspaces": true,
   "command": {

+ 3 - 3
packages/admin-ui-plugin/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/admin-ui-plugin",
-  "version": "0.9.0",
+  "version": "0.10.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.9.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
     "express": "^4.16.4",
     "rimraf": "^3.0.0",
     "typescript": "~3.5.3"

+ 2 - 2
packages/admin-ui/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/admin-ui",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "license": "MIT",
   "scripts": {
     "ng": "ng",
@@ -35,7 +35,7 @@
     "@ng-select/ng-select": "^3.7.2",
     "@ngx-translate/core": "^11.0.1",
     "@ngx-translate/http-loader": "^4.0.0",
-    "@vendure/common": "^0.9.0",
+    "@vendure/common": "^0.10.0",
     "@webcomponents/custom-elements": "^1.2.4",
     "apollo-angular": "^1.8.0",
     "apollo-cache-inmemory": "^1.6.5",

+ 1 - 1
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.9.0';
+export const ADMIN_UI_VERSION = '0.10.0';

+ 3 - 3
packages/asset-server-plugin/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/asset-server-plugin",
-  "version": "0.9.0",
+  "version": "0.10.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.22.2",
-    "@vendure/common": "^0.9.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
     "express": "^4.16.4",
     "node-fetch": "^2.6.0",
     "rimraf": "^3.0.0",

+ 1 - 1
packages/common/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/common",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "main": "index.js",
   "license": "MIT",
   "scripts": {

+ 2 - 2
packages/core/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/core",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "description": "A modern, headless ecommerce framework",
   "repository": {
     "type": "git",
@@ -45,7 +45,7 @@
     "@nestjs/testing": "6.8.5",
     "@nestjs/typeorm": "6.2.0",
     "@types/fs-extra": "^8.0.1",
-    "@vendure/common": "^0.9.0",
+    "@vendure/common": "^0.10.0",
     "apollo-server-express": "2.9.7",
     "bcrypt": "^3.0.6",
     "body-parser": "^1.18.3",

+ 3 - 3
packages/create/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/create",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "license": "MIT",
   "bin": {
     "create": "./index.js"
@@ -26,8 +26,8 @@
     "@types/handlebars": "^4.1.0",
     "@types/listr": "^0.14.0",
     "@types/semver": "^6.0.0",
-    "@vendure/common": "^0.9.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
     "rimraf": "^3.0.0",
     "ts-node": "^8.4.1",
     "typescript": "~3.5.3"

+ 9 - 9
packages/dev-server/package.json

@@ -1,6 +1,6 @@
 {
   "name": "dev-server",
-  "version": "0.9.0",
+  "version": "0.10.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.9.0",
-    "@vendure/asset-server-plugin": "^0.9.0",
-    "@vendure/common": "^0.9.0",
-    "@vendure/core": "^0.9.0",
-    "@vendure/elasticsearch-plugin": "^0.9.0",
-    "@vendure/email-plugin": "^0.9.0",
+    "@vendure/admin-ui-plugin": "^0.10.0",
+    "@vendure/asset-server-plugin": "^0.10.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
+    "@vendure/elasticsearch-plugin": "^0.10.0",
+    "@vendure/email-plugin": "^0.10.0",
     "typescript": "^3.3.4000"
   },
   "devDependencies": {
     "@types/csv-stringify": "^3.1.0",
-    "@vendure/testing": "^0.9.0",
-    "@vendure/ui-devkit": "^0.9.0",
+    "@vendure/testing": "^0.10.0",
+    "@vendure/ui-devkit": "^0.10.0",
     "concurrently": "^5.0.0",
     "csv-stringify": "^5.3.3"
   }

+ 3 - 3
packages/elasticsearch-plugin/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/elasticsearch-plugin",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "license": "MIT",
   "main": "lib/index.js",
   "types": "lib/index.d.ts",
@@ -22,8 +22,8 @@
     "deepmerge": "^4.0.0"
   },
   "devDependencies": {
-    "@vendure/common": "^0.9.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
     "rimraf": "^3.0.0",
     "typescript": "~3.5.3"
   }

+ 3 - 3
packages/email-plugin/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/email-plugin",
-  "version": "0.9.0",
+  "version": "0.10.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": "^4.6.5",
-    "@vendure/common": "^0.9.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/common": "^0.10.0",
+    "@vendure/core": "^0.10.0",
     "rimraf": "^3.0.0",
     "typescript": "~3.5.3"
   }

+ 3 - 3
packages/testing/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/testing",
-  "version": "0.9.0",
+  "version": "0.10.0",
   "description": "End-to-end testing tools for Vendure projects",
   "keywords": [
     "vendure",
@@ -32,7 +32,7 @@
     "url": "https://github.com/vendure-ecommerce/vendure/issues"
   },
   "dependencies": {
-    "@vendure/common": "^0.9.0",
+    "@vendure/common": "^0.10.0",
     "faker": "^4.1.0",
     "graphql": "^14.5.8",
     "graphql-tag": "^2.10.1",
@@ -44,7 +44,7 @@
     "@types/mysql": "^2.15.8",
     "@types/node-fetch": "^2.5.4",
     "@types/pg": "^7.14.1",
-    "@vendure/core": "^0.9.0",
+    "@vendure/core": "^0.10.0",
     "mysql": "^2.17.1",
     "pg": "^7.17.1",
     "rimraf": "^3.0.0",

+ 4 - 4
packages/ui-devkit/package.json

@@ -1,6 +1,6 @@
 {
   "name": "@vendure/ui-devkit",
-  "version": "0.9.0",
+  "version": "0.10.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.9.0",
-    "@vendure/common": "^0.9.0",
+    "@vendure/admin-ui": "^0.10.0",
+    "@vendure/common": "^0.10.0",
     "chokidar": "^3.0.2",
     "fs-extra": "^8.1.0",
     "rxjs": "^6.5.4"
@@ -48,7 +48,7 @@
   "devDependencies": {
     "@rollup/plugin-node-resolve": "^6.0.0",
     "@types/fs-extra": "^8.1.0",
-    "@vendure/core": "^0.9.0",
+    "@vendure/core": "^0.10.0",
     "rimraf": "^3.0.0",
     "rollup": "^1.27.9",
     "rollup-plugin-terser": "^5.1.2",