Skip to content

Commit

Permalink
Bump to v2.1.3 and fix vulnerabilities
Browse files Browse the repository at this point in the history
  • Loading branch information
sumimakito committed Mar 22, 2021
1 parent eab18a4 commit 766636b
Show file tree
Hide file tree
Showing 5 changed files with 297 additions and 358 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## Ver. 2.1.3

- Fixed vulnerabilities in dependencies.
- Updated node-canvas.

## Ver. 2.1.2

- Fixed an issue where the QR codes were not drawing correctly if a logo image was set.
Expand Down
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ An awesome but simple QR code generator written in JavaScript.
- [correctLevel](#correctlevel)
- [maskPattern](#maskpattern)
- [version](#version)
- [<del>dotScale</del> (DEPRECATED)](#deldotscaledel-deprecated)
- [components](#components)
- [colorDark](#colordark)
- [colorLight](#colorlight)
Expand All @@ -41,6 +40,7 @@ An awesome but simple QR code generator written in JavaScript.
- [logoScale](#logoscale)
- [logoMargin](#logomargin)
- [logoCornerRadius](#logocornerradius)
- [<del>dotScale</del> (DEPRECATED)](#deldotscaledel-deprecated)
- [ComponentOptions](#componentoptions)
- [scale](#scale)
- [protectors](#protectors)
Expand Down Expand Up @@ -137,7 +137,7 @@ type Options = {
logoScale?: number;
logoMargin?: number;
logoCornerRadius?: number;
dotScale?: number;
dotScale?: number; // DEPRECATED!!
};
```

Expand Down Expand Up @@ -217,22 +217,6 @@ Accepts an integer in range [1, 40].
<hr/>

### <del>dotScale</del> (DEPRECATED)

**Type** `number?`

**Default** `0.4`

Use [components](#components) to control the scaling in a more advanced way.

> This option is yet to be removed. You can still use this option to control the scaling of the QR code parts in the lagacy way.
Ratio of the real size to the full size of the blocks.

This can be helpful when you want to make more parts of the background visible.

<hr/>

### components

**Type** [ComponentOptions](#componentoptions)
Expand Down Expand Up @@ -359,6 +343,22 @@ Size of margins around the logo image in pixels.

Corner radius of the logo image in pixels.

<hr/>

### <del>dotScale</del> (DEPRECATED)

**Type** `number?`

**Default** `0.4`

Use [components](#components) to control the scaling in a more advanced way.

> This option is yet to be removed. You can still use this option to control the scaling of the QR code parts in the lagacy way.
Ratio of the real size to the full size of the blocks.

This can be helpful when you want to make more parts of the background visible.

## ComponentOptions

> _ComponentOptions_ controls the appearances of parts in the QR code.
Expand Down
6 changes: 4 additions & 2 deletions dist/awesome-qr.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "awesome-qr",
"version": "2.1.2-rc.0",
"version": "2.1.3-rc.0",
"description": "An awesome but simple QR code generator written in JavaScript.",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
Expand All @@ -26,7 +26,7 @@
"homepage": "https://github.com/SumiMakito/Awesome-qr.js#readme",
"dependencies": {
"buffer": "^6.0.3",
"canvas": "^2.6.1",
"canvas": "https://github.com/Automattic/node-canvas.git#6fae569fc5e2ca2d5d81c9d15a0fe49bfb993b51",
"js-binary-schema-parser": "^2.0.0"
},
"devDependencies": {
Expand All @@ -37,7 +37,7 @@
"tmp": "^0.2.1",
"ts-loader": "^7.0.5",
"typescript": "^3.9.6",
"webpack": "^4.43.0",
"webpack": "^4.46.0",
"webpack-cli": "^3.3.12"
}
}

0 comments on commit 766636b

Please sign in to comment.