Skip to content

Commit 7828374

Browse files
committed
prepare and publish version 1.0.0
1 parent 04ccb96 commit 7828374

File tree

6 files changed

+159
-86
lines changed

6 files changed

+159
-86
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,13 @@ module.exports = {
1111
],
1212
parserOptions: {
1313
sourceType: "module"
14+
},
15+
rules: {
16+
"prettier/prettier": [
17+
"error",
18+
{
19+
endOfLine: "auto"
20+
}
21+
]
1422
}
1523
};

CHANGELOG

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Version 1.0.0 - 27.08.2022
2+
3+
This is the first release of the package with various bug fixes and dependencies updates from the original repo.
4+
This package can be installed by running.
5+
6+
`npm install styled-qr-code` or `yarn add styled-qr-code`
7+
8+
## Breaking change
9+
10+
- removed the deprecated method signature `download(extension: string)`. Now only `download({name: 'qr', extension: 'png')` is supported
11+
- The orientation of the generated qr code has been fixed to generate qr codes compatible with all known scanners see [#49](https://github.com/kozakdenys/qr-code-styling/issues/105) [#105 QR code is not valid by some scanners](https://github.com/kozakdenys/qr-code-styling/issues/105).
12+
An configuration option `useLegacyDotRotation` has been added to restore the previous behavior.
13+
- images options `crossOrigin` are now set to anonymous by default
14+
15+
## Feat
16+
17+
- added optional quality parameter to get getRawData to control the size and quality of the returned image
18+
- added convenience method `toDataUrl` to return a base64 encoded string of the qr code instead of making a detour via a blob
19+
- improved typescript types
20+
21+
- updated lockfile to v2 [1d91c08fabe430911f68e15cc108c5f015b5329c](1d91c08fabe430911f68e15cc108c5f015b5329c)
22+
- fix svg: [1d91c08fabe430911f68e15cc108c5f015b5329c](1d91c08fabe430911f68e15cc108c5f015b5329c)
23+
- svg now includes images as base64 link: [78070cf808e0b60bb2f6ac310083688f1c27cf99](78070cf808e0b60bb2f6ac310083688f1c27cf99)
24+
- images are now correctly cropped [f400491fe13c5969b8a9d8c1e2e7c90b7067c5a59](f400491fe13c5969b8a9d8c1e2e7c90b7067c5a5)
25+
26+
## Dependencies
27+
28+
Updated multiple dependencies and resolved security vulnerabilities. For a full list see: [https://github.com/KilianB/styled-qr-code/commit/535017b1e8dba2eb66666e42eb61e15f8a9866b9#diff-7ae45ad102eab3b6d7e7896acd08c427a9b25b346470d7bc6507b6481575d519](package diff)
29+
30+
## Misc
31+
32+
- update example to include legacy and new qr code generation codes

0 commit comments

Comments
 (0)