Skip to content
This repository was archived by the owner on May 28, 2023. It is now read-only.

Commit 32029f7

Browse files
Merge pull request #325 from DivanteLtd/release/v1.10
Release/v1.10
2 parents 0ec68cb + 741ac5c commit 32029f7

40 files changed

+913
-1969
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,6 @@ src/config.json
1111
config/local.json
1212
var/magento2-sample-data/
1313
.migrate
14+
*.iml
1415
/docker/elasticsearch/data/
1516
!/docker/elasticsearch/data/.gitkeep

.travis.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,13 @@ install:
1111

1212
jobs:
1313
include:
14-
- stage: Build
14+
- &build
15+
stage: Build
1516
script:
16-
- yarn lint
17-
- yarn build
18-
node_js: "8"
19-
- script:
20-
- yarn lint
21-
- yarn build
22-
node_js: "10"
17+
- yarn lint
18+
- yarn build
19+
node_js: '10'
20+
21+
- <<: *build
22+
node_js: '8'
23+

CHANGELOG.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,32 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
66

7+
## [1.10.0] - 2019.08.12
8+
9+
### Added
10+
- Typescript support - @ResuBaka (#210, #242)
11+
- Multi Stock Inventory (Magento MSI) support - @aleron75, @dimasch (#226)
12+
- Import of magento 2 cms pages and blocks to the full import - @toh82 (#235)
13+
- Information about magento 2 cms pages and blocks import to the readme - @toh82 (#235)
14+
- Introduce orderNumber to order creation endpoint - @Flyingmana (#251)
15+
- Optional Redis Auth functionality. - @rain2o (#267)
16+
- Extensions have ability to modify Elasticsearch results. - @grimasod (#269)
17+
- Refactored Travis build config - @Tjitse-E (#273)
18+
- Multistore support for `magento1`-platform using `magento1-vsbridge` - @cewald (#276)
19+
20+
### Changed
21+
- Sharp dependency has been updated. *It might require reinstalling yarn dependencies* - @lukeromanowicz
22+
23+
### Fixed
24+
- Missing `res` and `req` parameters are now passed to ProductProcessor - @jahvi (#218)
25+
- Moving of graphql files to the dist folder - @ResuBaka (#242)
26+
- Moving of schema files to the dist folder - @ResuBaka (#244)
27+
- Missing assetPath config for magento1 - @ResuBaka (#245)
28+
- New payload for magento1 stock check endpoint - @cewald (#261)
29+
- `yarn dev:inspect` command and extract nodemon config to nodemon.json - @Tjitse-E, @cewald (#272, #279)
30+
- Include Magento Currency Code in mage2vs import and productsdelta if available - @rain2o (#281)
31+
- Better handling of HTTP error codes provided by API client - @pkarw (#3151)
32+
733
## [1.9.6] - 2019.07.11
834
- Dependencies update to avoid lodash security issues.
935

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,12 @@ You can run the following command to execute the full import:
126126
```bash
127127
yarn mage2vs import --store-code=de
128128
```
129+
130+
Import of CMS blocks and pages is also performed by the full import. If the CMS API extension ((SnowdogApps/magento2-cms-api)[https://github.com/SnowdogApps/magento2-cms-api]) was not installed in magento 2, it's recommended to skip the CMS import commands.
131+
132+
```bash
133+
yarn mage2vs import --skip-blocks --skip-pages
134+
```
129135

130136
## Executing delta indexer
131137

config/custom-environment-variables.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"redis": {
1111
"host": "REDIS_HOST",
1212
"port": "REDIS_PORT",
13-
"db": "REDIS_DB"
13+
"db": "REDIS_DB",
14+
"auth": "REDIS_AUTH"
1415
}
1516
}

config/default.json

Lines changed: 27 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,18 @@
3535
"redis": {
3636
"host": "localhost",
3737
"port": 6379,
38-
"db": 0
38+
"db": 0,
39+
"auth": false
3940
},
4041
"kue": {},
4142
"availableStores": [
4243
"de",
4344
"it"
4445
],
46+
"msi": {
47+
"enabled": false,
48+
"defaultStockId": 1
49+
},
4550
"storeViews": {
4651
"multistore": true,
4752
"mapStoreUrlsFor": [
@@ -50,19 +55,22 @@
5055
],
5156
"de": {
5257
"storeCode": "de",
53-
"disabled": true,
58+
"disabled": false,
5459
"storeId": 3,
5560
"name": "German Store",
5661
"url": "/de",
5762
"elasticsearch": {
5863
"host": "localhost:8080/api/catalog",
5964
"index": "vue_storefront_catalog_de"
6065
},
66+
"msi": {
67+
"stockId": 2
68+
},
6169
"tax": {
6270
"defaultCountry": "DE",
6371
"defaultRegion": "",
6472
"calculateServerSide": true,
65-
"sourcePriceIncludesTax": false
73+
"sourcePriceIncludesTax": false
6674
},
6775
"i18n": {
6876
"fullCountryName": "Germany",
@@ -77,14 +85,17 @@
7785
},
7886
"it": {
7987
"storeCode": "it",
80-
"disabled": true,
88+
"disabled": false,
8189
"storeId": 4,
8290
"name": "Italian Store",
8391
"url": "/it",
8492
"elasticsearch": {
8593
"host": "localhost:8080/api/catalog",
8694
"index": "vue_storefront_catalog_it"
8795
},
96+
"msi": {
97+
"stockId": 2
98+
},
8899
"tax": {
89100
"defaultCountry": "IT",
90101
"defaultRegion": "",
@@ -126,7 +137,8 @@
126137
"mailchimp-subscribe",
127138
"example-magento-api",
128139
"cms-data",
129-
"mail-service"
140+
"mail-service",
141+
"example-processor"
130142
],
131143
"extensions": {
132144
"mailchimp": {
@@ -144,6 +156,11 @@
144156
},
145157
"targetAddressWhitelist": ["contributors@vuestorefront.io"],
146158
"secretString": "__THIS_IS_SO_SECRET__"
159+
},
160+
"example-processor": {
161+
"resultProcessors": {
162+
"product": "my-product-processor"
163+
}
147164
}
148165
},
149166
"magento2": {
@@ -159,6 +176,11 @@
159176
},
160177
"magento1": {
161178
"imgUrl": "http://magento-demo.local/media/catalog/product",
179+
"assetPath": "",
180+
"magentoUserName": "",
181+
"magentoUserPassword": "",
182+
"httpUserName": "",
183+
"httpUserPassword": "",
162184
"api": {
163185
"url": "http://magento-demo.local/vsbridge",
164186
"consumerKey": "",

docker-compose.nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ services:
1717
- './migrations:/var/www/migrations'
1818
- './package.json:/var/www/package.json'
1919
- './babel.config.js:/var/www/babel.config.js'
20+
- './tsconfig.json:/var/www/tsconfig.json'
21+
- './nodemon.json:/var/www/nodemon.json'
2022
- './scripts:/var/www/scripts'
2123
- './src:/var/www/src'
2224
- './var:/var/www/var'

ecosystem.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"apps": [
33
{
44
"name": "api",
5-
"interpreter": "babel-node",
65
"script": "./dist/index.js",
76
"log_date_format": "YYYY-MM-DD HH:mm:ss",
87
"ignore_watch": ["node_modules"]

nodemon.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"verbose": true,
3+
"debug": false,
4+
"exec": "ts-node src",
5+
"watch": ["./src"],
6+
"ext": "ts, js",
7+
"inspect": true
8+
}

package.json

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
11
{
22
"name": "vue-storefront-api",
3-
"version": "1.9.5",
3+
"version": "1.10.0-rc1",
44
"private": true,
55
"description": "vue-storefront API and data services",
66
"main": "dist",
77
"scripts": {
8-
"dev": "nodemon -w src --exec \"babel-node src\"",
9-
"build": "babel src -s -D -d dist",
8+
"dev": "nodemon",
9+
"dev:inspect": "nodemon --exec \"node --inspect -r ts-node/register src\"",
10+
"build": "npm run -s build:code && npm run -s build:copy:graphql && npm run -s build:copy:schema",
11+
"build:code": "tsc --build",
12+
"build:copy:graphql": "cpx src/**/*.graphqls dist",
13+
"build:copy:schema": "cpx 'src/**/*.schema*.json' dist",
1014
"start": "pm2 start ecosystem.json $PM2_ARGS",
1115
"db": "node scripts/db.js",
1216
"seo": "node scripts/seo.js",
@@ -75,6 +79,7 @@
7579
"mage2vuestorefront": "git+https://github.com/DivanteLtd/mage2vuestorefront.git",
7680
"magento1-vsbridge-client": "github:DivanteLtd/magento1-vsbridge-client",
7781
"magento2-rest-client": "github:DivanteLtd/magento2-rest-client",
82+
"md5": "^2.2.1",
7883
"merge-graphql-schemas": "^1.5.2",
7984
"migrate": "^1.6.2",
8085
"mime-types": "^2.1.18",
@@ -90,13 +95,17 @@
9095
"winston": "^2.4.2"
9196
},
9297
"devDependencies": {
93-
"@babel/cli": "^7.2.3",
94-
"@babel/core": "^7.4.0",
95-
"@babel/node": "^7.2.2",
96-
"@babel/preset-env": "^7.4.2",
98+
"@types/body-parser": "^1.17.0",
99+
"@types/config": "^0.0.34",
100+
"@types/express": "^4.16.1",
101+
"@types/node": "^11.13.4",
97102
"apollo-server-express": "^1.3.6",
103+
"cpx": "^1.5.0",
98104
"eslint": "^4.16.0",
99-
"nodemon": "^1.18.7"
105+
"nodemon": "^1.18.7",
106+
"ts-node": "^8.1.0",
107+
"tslib": "^1.9.3",
108+
"typescript": "3.3.*"
100109
},
101110
"bugs": {
102111
"url": "https://github.com/DivanteLtd/vue-storefront-api/issues"

0 commit comments

Comments
 (0)