Skip to content

Commit 09ff365

Browse files
authored
Merge pull request #56 from dingo-d/develop
2.0.8
2 parents e7eeba0 + 3a9feff commit 09ff365

22 files changed

+5768
-4945
lines changed

.eslintrc

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
11
{
2-
"extends": [ "plugin:@wordpress/eslint-plugin/esnext" ]
2+
"env": {
3+
"node": true
4+
},
5+
"extends": [
6+
"plugin:@wordpress/eslint-plugin/esnext"
7+
],
8+
"parserOptions": {
9+
"ecmaVersion": 2018,
10+
"sourceType": "module",
11+
"ecmaFeatures": {
12+
"jsx": true
13+
}
14+
},
15+
"rules": {
16+
"template-curly-spacing": 0,
17+
"space-in-parens": 0,
18+
"computed-property-spacing": 0
19+
}
320
}

.github/workflows/deploy.yaml

Lines changed: 0 additions & 50 deletions
This file was deleted.

.phpcs.xml.dist

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
<arg name="basepath" value="./"/>
1212

1313
<!-- Exclude Composer vendor directory. -->
14+
<exclude-pattern>*/node_modules/*</exclude-pattern>
1415
<exclude-pattern>*/vendor/*</exclude-pattern>
1516
<exclude-pattern>*/webpack/*</exclude-pattern>
1617
<exclude-pattern>*/assets/*</exclude-pattern>

CHANGELOG.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,29 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a
1313

1414
_No documentation available about unreleased changes as of yet._
1515

16+
17+
## [2.0.8] - 2020-12-29
18+
19+
### Changed
20+
21+
* Updated JS packages and webpack bundling process (updated to webpack 5)
22+
23+
### Fixed
24+
25+
* Update bundle of the assets and the PHP packages (possible cause to some issues in version 2.0.7?)
26+
27+
## [2.0.7] - 2020-12-28
28+
29+
### Fixed
30+
31+
* Changed the typehint of the admin order fields hook.
32+
33+
## [2.0.6] - 2020-11-30
34+
35+
### Fixed
36+
37+
* Add assets to the plugin. The GH Action tag is not working as intended so this is a manual fix.
38+
1639
## [2.0.5] - 2020-11-29
1740

1841
### Fixed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,12 @@
1313

1414
**Contributors**: dingo_bastard
1515
**Tags**: woocommerce, api, solo api, solo, api integration, shop, payment, woo
16-
**Requires at least**: 5.1
16+
**Requires at least**: 5.3
1717
**Requires PHP**: 7.3
18-
**Tested up to**: 5.5
19-
**Stable tag**: 2.0.5
18+
**Tested up to**: 5.6
19+
**Stable tag**: 2.0.8
2020
**WC requires at least**: 4.0.0
21-
**WC tested up to**: 4.7.0
21+
**WC tested up to**: 4.8.0
2222
**License**: MIT
2323
**License URI**: https://opensource.org/licenses/MIT
2424

README.txt

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
=== Woo Solo Api ===
22
Contributors: dingo_bastard
33
Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo
4-
Requires at least: 5.2
4+
Requires at least: 5.3
55
Requires PHP: 7.3
6-
Tested up to: 5.5
7-
Stable tag: 2.0.5
6+
Tested up to: 5.6
7+
Stable tag: 2.0.8
88
WC requires at least: 4.0.0
9-
WC tested up to: 4.7.0
9+
WC tested up to: 4.8.0
1010
License: MIT
1111
License URI: https://opensource.org/licenses/MIT
1212

@@ -66,6 +66,31 @@ Be sure you have WooCommerce plugin installed first, otherwise you'll get an err
6666

6767
== Changelog ==
6868

69+
= 2.0.8 =
70+
Release Date: December 29th, 2020
71+
72+
Changed:
73+
74+
* Updated JS packages and webpack bundling process (updated to webpack 5)
75+
76+
Fixed:
77+
78+
* Update bundle of the assets and the PHP packages (possible cause to some issues in version 2.0.7?)
79+
80+
= 2.0.7 =
81+
Release Date: December 28th, 2020
82+
83+
Fixed:
84+
85+
* Changed the typehint of the admin order fields hook.
86+
87+
= 2.0.6 =
88+
Release Date: November 30th, 2020
89+
90+
Fixed:
91+
92+
* Add assets to the plugin. The GH Action tag is not working as intended so this is a manual fix.
93+
6994
= 2.0.5 =
7095
Release Date: November 29th, 2020
7196

assets/dev/scripts/index.jsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable camelcase */
22

3-
import Serialize from 'php-serialize';
3+
import {serialize, unserialize} from 'php-serialize';
44
import {bind} from 'decko';
55

66
/**
@@ -178,7 +178,7 @@ class App extends Component {
178178
availableGateways = [];
179179
} else {
180180
availableGateways = res.solo_api_available_gateways.length ?
181-
Serialize.unserialize(res.solo_api_available_gateways) :
181+
unserialize(res.solo_api_available_gateways) :
182182
[];
183183
}
184184

@@ -196,7 +196,7 @@ class App extends Component {
196196
mailGateways = [];
197197
} else {
198198
mailGateways = res.solo_api_mail_gateway.length ?
199-
Serialize.unserialize(res.solo_api_mail_gateway) :
199+
unserialize(res.solo_api_mail_gateway) :
200200
[];
201201
}
202202

@@ -263,7 +263,7 @@ class App extends Component {
263263
.reduce((obj, key) => {
264264
if (!this.objectHasEmptyProperties(this.state)) {
265265
if (key === 'solo_api_available_gateways' || key === 'solo_api_mail_gateway') {
266-
obj[key] = Serialize.serialize(this.state[key]);
266+
obj[key] = serialize(this.state[key]);
267267
} else if (this.state[key] === null || typeof this.state[key] == 'undefined') {
268268
obj[key] = defaultState[key];
269269
} else {

husky.config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
2-
hooks: {
3-
'pre-commit': 'lint-staged',
4-
},
2+
hooks: {
3+
'pre-commit': 'lint-staged',
4+
},
55
};

0 commit comments

Comments
 (0)