Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

0.3.1 Release #23

Merged
merged 3 commits into from
Nov 3, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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