Skip to content

Commit

Permalink
chore: Publish v0.10.0
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelbromley committed Mar 17, 2020
1 parent 6aef742 commit 9986993
Show file tree
Hide file tree
Showing 14 changed files with 143 additions and 38 deletions.
105 changes: 105 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)


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.9.0",
"version": "0.10.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.9.0",
"version": "0.10.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.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"
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.9.0",
"version": "0.10.0",
"license": "MIT",
"scripts": {
"ng": "ng",
Expand Down Expand Up @@ -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",
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.9.0';
export const ADMIN_UI_VERSION = '0.10.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.9.0",
"version": "0.10.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.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",
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.9.0",
"version": "0.10.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.9.0",
"version": "0.10.0",
"description": "A modern, headless ecommerce framework",
"repository": {
"type": "git",
Expand Down Expand Up @@ -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",
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.9.0",
"version": "0.10.0",
"license": "MIT",
"bin": {
"create": "./index.js"
Expand All @@ -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"
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.9.0",
"version": "0.10.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.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"
}
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.9.0",
"version": "0.10.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.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"
}
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.9.0",
"version": "0.10.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": "^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"
}
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.9.0",
"version": "0.10.0",
"description": "End-to-end testing tools for Vendure projects",
"keywords": [
"vendure",
Expand Down Expand Up @@ -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",
Expand All @@ -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",
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.9.0",
"version": "0.10.0",
"description": "A library for authoring Vendure Admin UI extensions",
"keywords": [
"vendure",
Expand Down Expand Up @@ -39,16 +39,16 @@
"@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"
},
"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",
Expand Down

0 comments on commit 9986993

Please sign in to comment.