Skip to content

Commit

Permalink
Merge pull request #56 from dingo-d/develop
Browse files Browse the repository at this point in the history
2.0.8
  • Loading branch information
dingo-d authored Dec 29, 2020
2 parents e7eeba0 + 3a9feff commit 09ff365
Show file tree
Hide file tree
Showing 22 changed files with 5,768 additions and 4,945 deletions.
19 changes: 18 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,20 @@
{
"extends": [ "plugin:@wordpress/eslint-plugin/esnext" ]
"env": {
"node": true
},
"extends": [
"plugin:@wordpress/eslint-plugin/esnext"
],
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"rules": {
"template-curly-spacing": 0,
"space-in-parens": 0,
"computed-property-spacing": 0
}
}
50 changes: 0 additions & 50 deletions .github/workflows/deploy.yaml

This file was deleted.

1 change: 1 addition & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<arg name="basepath" value="./"/>

<!-- Exclude Composer vendor directory. -->
<exclude-pattern>*/node_modules/*</exclude-pattern>
<exclude-pattern>*/vendor/*</exclude-pattern>
<exclude-pattern>*/webpack/*</exclude-pattern>
<exclude-pattern>*/assets/*</exclude-pattern>
Expand Down
23 changes: 23 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,29 @@ This projects adheres to [Semantic Versioning](https://semver.org/) and [Keep a

_No documentation available about unreleased changes as of yet._


## [2.0.8] - 2020-12-29

### Changed

* Updated JS packages and webpack bundling process (updated to webpack 5)

### Fixed

* Update bundle of the assets and the PHP packages (possible cause to some issues in version 2.0.7?)

## [2.0.7] - 2020-12-28

### Fixed

* Changed the typehint of the admin order fields hook.

## [2.0.6] - 2020-11-30

### Fixed

* Add assets to the plugin. The GH Action tag is not working as intended so this is a manual fix.

## [2.0.5] - 2020-11-29

### Fixed
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@

**Contributors**: dingo_bastard
**Tags**: woocommerce, api, solo api, solo, api integration, shop, payment, woo
**Requires at least**: 5.1
**Requires at least**: 5.3
**Requires PHP**: 7.3
**Tested up to**: 5.5
**Stable tag**: 2.0.5
**Tested up to**: 5.6
**Stable tag**: 2.0.8
**WC requires at least**: 4.0.0
**WC tested up to**: 4.7.0
**WC tested up to**: 4.8.0
**License**: MIT
**License URI**: https://opensource.org/licenses/MIT

Expand Down
33 changes: 29 additions & 4 deletions README.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
=== Woo Solo Api ===
Contributors: dingo_bastard
Tags: woocommerce, api, solo api, solo, api integration, shop, payment, woo
Requires at least: 5.2
Requires at least: 5.3
Requires PHP: 7.3
Tested up to: 5.5
Stable tag: 2.0.5
Tested up to: 5.6
Stable tag: 2.0.8
WC requires at least: 4.0.0
WC tested up to: 4.7.0
WC tested up to: 4.8.0
License: MIT
License URI: https://opensource.org/licenses/MIT

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

== Changelog ==

= 2.0.8 =
Release Date: December 29th, 2020

Changed:

* Updated JS packages and webpack bundling process (updated to webpack 5)

Fixed:

* Update bundle of the assets and the PHP packages (possible cause to some issues in version 2.0.7?)

= 2.0.7 =
Release Date: December 28th, 2020

Fixed:

* Changed the typehint of the admin order fields hook.

= 2.0.6 =
Release Date: November 30th, 2020

Fixed:

* Add assets to the plugin. The GH Action tag is not working as intended so this is a manual fix.

= 2.0.5 =
Release Date: November 29th, 2020

Expand Down
8 changes: 4 additions & 4 deletions assets/dev/scripts/index.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable camelcase */

import Serialize from 'php-serialize';
import {serialize, unserialize} from 'php-serialize';
import {bind} from 'decko';

/**
Expand Down Expand Up @@ -178,7 +178,7 @@ class App extends Component {
availableGateways = [];
} else {
availableGateways = res.solo_api_available_gateways.length ?
Serialize.unserialize(res.solo_api_available_gateways) :
unserialize(res.solo_api_available_gateways) :
[];
}

Expand All @@ -196,7 +196,7 @@ class App extends Component {
mailGateways = [];
} else {
mailGateways = res.solo_api_mail_gateway.length ?
Serialize.unserialize(res.solo_api_mail_gateway) :
unserialize(res.solo_api_mail_gateway) :
[];
}

Expand Down Expand Up @@ -263,7 +263,7 @@ class App extends Component {
.reduce((obj, key) => {
if (!this.objectHasEmptyProperties(this.state)) {
if (key === 'solo_api_available_gateways' || key === 'solo_api_mail_gateway') {
obj[key] = Serialize.serialize(this.state[key]);
obj[key] = serialize(this.state[key]);
} else if (this.state[key] === null || typeof this.state[key] == 'undefined') {
obj[key] = defaultState[key];
} else {
Expand Down
6 changes: 3 additions & 3 deletions husky.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
hooks: {
'pre-commit': 'lint-staged',
},
hooks: {
'pre-commit': 'lint-staged',
},
};
Loading

0 comments on commit 09ff365

Please sign in to comment.