Skip to content

Commit

Permalink
Merge pull request #23 from NotNinja/develop
Browse files Browse the repository at this point in the history
0.3.1 Release
  • Loading branch information
neocotic authored Nov 3, 2017
2 parents 9341be4 + 5291264 commit 5c2360f
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## Version 0.3.1, 2017.11.03

* Error thrown as context is lost for API methods when using destructuring imports [#22](https://github.com/NotNinja/convert-svg/issues/22)

## Version 0.3.0, 2017.11.03

* Add option to control background color [#14](https://github.com/NotNinja/convert-svg/issues/14)
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.4.0",
"version": "0.3.0",
"version": "0.3.1",
"packages": [
"packages/*"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/convert-svg-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "convert-svg-core",
"version": "0.3.0",
"version": "0.3.1",
"description": "Supports converting SVG into another format using headless Chromium",
"homepage": "https://github.com/NotNinja/convert-svg",
"bugs": {
Expand Down
5 changes: 5 additions & 0 deletions packages/convert-svg-core/src/API.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ class API {
*/
constructor(provider) {
this[_provider] = provider;

// Workaround for #22 by ensuring all public methods are bound to this instance
this.convert = this.convert.bind(this);
this.convertFile = this.convertFile.bind(this);
this.createConverter = this.createConverter.bind(this);
}

/**
Expand Down
4 changes: 2 additions & 2 deletions packages/convert-svg-to-jpeg/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "convert-svg-to-jpeg",
"version": "0.3.0",
"version": "0.3.1",
"description": "Converts SVG to JPEG using headless Chromium",
"homepage": "https://github.com/NotNinja/convert-svg",
"bugs": {
Expand All @@ -26,7 +26,7 @@
"url": "https://github.com/NotNinja/convert-svg.git"
},
"dependencies": {
"convert-svg-core": "^0.3.0"
"convert-svg-core": "^0.3.1"
},
"devDependencies": {
"chai": "^4.1.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/convert-svg-to-png/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "convert-svg-to-png",
"version": "0.3.0",
"version": "0.3.1",
"description": "Converts SVG to PNG using headless Chromium",
"homepage": "https://github.com/NotNinja/convert-svg",
"bugs": {
Expand All @@ -25,7 +25,7 @@
"url": "https://github.com/NotNinja/convert-svg.git"
},
"dependencies": {
"convert-svg-core": "^0.3.0"
"convert-svg-core": "^0.3.1"
},
"devDependencies": {
"chai": "^4.1.2",
Expand Down

0 comments on commit 5c2360f

Please sign in to comment.