diff --git a/.changeset/react-native-support.md b/.changeset/react-native-support.md deleted file mode 100644 index 02d40e9..0000000 --- a/.changeset/react-native-support.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@lglab/react-qr-code': minor ---- - -Add React Native support. The same `ReactQRCode` component now renders in React Native 0.82+ and Expo through `react-native-svg` (an optional peer dependency), picked by Metro through a new `react-native` export condition. Both the web and native refs gain `toDataURL({ size })`, which resolves with a PNG data URL. - -PNG and JPEG downloads now draw the logo exactly where the SVG shows it: `imageSettings.height`, `opacity`, `crossOrigin` and an `x` or `y` of `0` were ignored before. diff --git a/apps/docs/CHANGELOG.md b/apps/docs/CHANGELOG.md index 837faf2..e5ef72f 100644 --- a/apps/docs/CHANGELOG.md +++ b/apps/docs/CHANGELOG.md @@ -1,5 +1,12 @@ # reactqrcode.com +## 1.4.19 + +### Patch Changes + +- Updated dependencies [[`ce06d35`](https://github.com/LGLabGreg/react-qr-code/commit/ce06d35fddc06cda0fd3edffc2d6741d97ea6cf3)]: + - @lglab/react-qr-code@1.9.0 + ## 1.4.18 ### Patch Changes diff --git a/apps/docs/package.json b/apps/docs/package.json index 71d82d7..5a78557 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -1,6 +1,6 @@ { "name": "reactqrcode.com", - "version": "1.4.18", + "version": "1.4.19", "private": true, "scripts": { "dev": "next dev --turbopack", diff --git a/packages/react-qr-code/CHANGELOG.md b/packages/react-qr-code/CHANGELOG.md index 97babe5..d65571b 100644 --- a/packages/react-qr-code/CHANGELOG.md +++ b/packages/react-qr-code/CHANGELOG.md @@ -1,5 +1,13 @@ # @lglab/react-qr-code +## 1.9.0 + +### Minor Changes + +- [#671](https://github.com/LGLabGreg/react-qr-code/pull/671) [`ce06d35`](https://github.com/LGLabGreg/react-qr-code/commit/ce06d35fddc06cda0fd3edffc2d6741d97ea6cf3) Thanks [@LGLabGreg](https://github.com/LGLabGreg)! - Add React Native support. The same `ReactQRCode` component now renders in React Native 0.82+ and Expo through `react-native-svg` (an optional peer dependency), picked by Metro through a new `react-native` export condition. Both the web and native refs gain `toDataURL({ size })`, which resolves with a PNG data URL. + + PNG and JPEG downloads now draw the logo exactly where the SVG shows it: `imageSettings.height`, `opacity`, `crossOrigin` and an `x` or `y` of `0` were ignored before. + ## 1.8.1 ### Patch Changes diff --git a/packages/react-qr-code/package.json b/packages/react-qr-code/package.json index d8fef89..30c4800 100644 --- a/packages/react-qr-code/package.json +++ b/packages/react-qr-code/package.json @@ -1,6 +1,6 @@ { "name": "@lglab/react-qr-code", - "version": "1.8.1", + "version": "1.9.0", "description": "React library to generate QR codes", "author": "LGLab", "license": "MIT",