Skip to content
Open
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
10 changes: 10 additions & 0 deletions packages/barqode/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# barqode

## 0.1.0

### Minor Changes

- expose `prepareZXingModule` from `zxing-wasm` (See https://github.com/Sec-ant/zxing-wasm#configuring-wasm-serving)

### Patch Changes

- update `barcode-detector` to `v3.0.8`

## 0.0.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/barqode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
}
],
"dependencies": {
"barcode-detector": "^2.3.1",
"barcode-detector": "^3.0.8",
"runed": "^0.16.1",
"webrtc-adapter": "^9.0.1"
}
Expand Down
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/components/types.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { BarcodeFormat, DetectedBarcode, Point2D } from "barcode-detector/pure";
import type { BarcodeFormat, DetectedBarcode, Point2D } from "barcode-detector/ponyfill";
import type { Snippet } from "svelte";
import type { HTMLInputAttributes } from "svelte/elements";

Expand Down
4 changes: 4 additions & 0 deletions packages/barqode/src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,7 @@ export type {
DropzoneProps,
StreamProps,
} from "./components/types.js";

// Re-exporing to allow wasm path customization
// See https://github.com/Sec-ant/zxing-wasm#configuring-wasm-serving
export { prepareZXingModule } from "barcode-detector/ponyfill";
2 changes: 1 addition & 1 deletion packages/barqode/src/lib/internal/scanner.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// based on vue-qrcode-reader by Niklas Gruhn
// see https://github.com/gruhn/vue-qrcode-reader

import { type DetectedBarcode, type BarcodeFormat, BarcodeDetector } from "barcode-detector/pure";
import { type DetectedBarcode, type BarcodeFormat, BarcodeDetector } from "barcode-detector/ponyfill";
import { eventOn } from "./callforth.js";
import { DropImageFetchError } from "./errors.js";

Expand Down
43 changes: 28 additions & 15 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.