Skip to content

Commit

Permalink
update: packages updated, react 19 support
Browse files Browse the repository at this point in the history
  • Loading branch information
yudielcurbelo committed Dec 13, 2024
1 parent ef65b1e commit b130638
Show file tree
Hide file tree
Showing 4 changed files with 614 additions and 4,034 deletions.
Binary file modified .yarn/install-state.gz
Binary file not shown.
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@yudiel/react-qr-scanner",
"version": "2.0.8",
"version": "2.1.0",
"description": "A library to scan QR codes in React.",
"author": "Yudiel Curbelo",
"license": "MIT",
Expand Down Expand Up @@ -39,27 +39,27 @@
"@rollup/plugin-commonjs": "^26.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^11.1.6",
"@storybook/addon-essentials": "^8.2.9",
"@storybook/addon-interactions": "^8.2.9",
"@storybook/addon-links": "^8.2.9",
"@storybook/addon-essentials": "^8.4.7",
"@storybook/addon-interactions": "^8.4.7",
"@storybook/addon-links": "^8.4.7",
"@storybook/addon-webpack5-compiler-swc": "1.0.5",
"@storybook/react": "^8.2.9",
"@storybook/react-webpack5": "^8.2.9",
"@types/node": "^22.2.0",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@storybook/react": "^8.4.7",
"@storybook/react-webpack5": "^8.4.7",
"@types/node": "^22.10.2",
"@types/react": "^19.0.1",
"@types/react-dom": "^19.0.2",
"rollup": "^4.20.0",
"rollup-plugin-copy": "^3.5.0",
"rollup-plugin-dts": "^6.1.1",
"storybook": "8.2.9",
"typescript": "^5.5.4"
"storybook": "8.4.7",
"typescript": "^5.7.2"
},
"peerDependencies": {
"react": "^17 || ^18",
"react-dom": "^17 || ^18"
"react": "^17 || ^18 || ^19",
"react-dom": "^17 || ^18 || ^19"
},
"dependencies": {
"barcode-detector": "^2.2.7",
"barcode-detector": "^2.3.1",
"webrtc-adapter": "9.0.1"
},
"packageManager": "yarn@4.0.2"
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useScanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { IUseScannerState } from '../types';
import { base64Beep } from '../assets/base64Beep';

interface IUseScannerProps {
videoElementRef: RefObject<HTMLVideoElement>;
videoElementRef: RefObject<HTMLVideoElement | null>;
onScan: (result: DetectedBarcode[]) => void;
onFound: (result: DetectedBarcode[]) => void;
formats?: BarcodeFormat[];
Expand Down
Loading

0 comments on commit b130638

Please sign in to comment.