-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support
DXFilmEdge
writing, with some other fixes
- Loading branch information
Showing
9 changed files
with
117 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
"zxing-wasm": minor | ||
--- | ||
|
||
- Add `DXFilmEdge` writing support. | ||
- Fix subpath exports TS compatibility with types-versions-wildcards strategy. Check [this](https://github.com/andrewbranch/example-subpath-exports-ts-compat/tree/main/examples/node_modules/types-versions-wildcards) for more information. | ||
- Add types to `.wasm` subpath exports. | ||
- Add `ImageData` ambient type export. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,23 +30,89 @@ | |
"require": "./dist/cjs/writer/index.js", | ||
"default": "./dist/es/writer/index.js" | ||
}, | ||
"./reader/zxing_reader.wasm": "./dist/reader/zxing_reader.wasm", | ||
"./writer/zxing_writer.wasm": "./dist/writer/zxing_writer.wasm", | ||
"./full/zxing_full.wasm": "./dist/full/zxing_full.wasm" | ||
"./full/zxing_full.wasm": { | ||
"import": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/full/zxing_full.wasm" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/types/wasm.d.ts", | ||
"default": "./dist/full/zxing_full.wasm" | ||
}, | ||
"default": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/full/zxing_full.wasm" | ||
} | ||
}, | ||
"./reader/zxing_reader.wasm": { | ||
"import": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/reader/zxing_reader.wasm" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/types/wasm.d.ts", | ||
"default": "./dist/reader/zxing_reader.wasm" | ||
}, | ||
"default": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/reader/zxing_reader.wasm" | ||
} | ||
}, | ||
"./writer/zxing_writer.wasm": { | ||
"import": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/writer/zxing_writer.wasm" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/types/wasm.d.ts", | ||
"default": "./dist/writer/zxing_writer.wasm" | ||
}, | ||
"default": { | ||
"types": "./dist/es/types/wasm.d.ts", | ||
"default": "./dist/writer/zxing_writer.wasm" | ||
} | ||
}, | ||
"./imageData": { | ||
"import": { | ||
"types": "./dist/es/types/imageData.d.ts" | ||
}, | ||
"require": { | ||
"types": "./dist/cjs/types/imageData.d.ts" | ||
}, | ||
"default": { | ||
"types": "./dist/es/types/imageData.d.ts" | ||
} | ||
} | ||
}, | ||
"typesVersions": { | ||
"*": { | ||
"full/zxing_full.wasm": [ | ||
"./dist/es/types/wasm.d.ts", | ||
"./dist/cjs/types/wasm.d.ts" | ||
], | ||
"full": [ | ||
"./dist/es/full/index.d.ts", | ||
"./dist/cjs/full/index.d.ts" | ||
], | ||
"reader/zxing_reader.wasm": [ | ||
"./dist/es/types/wasm.d.ts", | ||
"./dist/cjs/types/wasm.d.ts" | ||
], | ||
"reader": [ | ||
"./dist/es/reader/index.d.ts", | ||
"./dist/cjs/reader/index.d.ts" | ||
], | ||
"writer/zxing_writer.wasm": [ | ||
"./dist/es/types/wasm.d.ts", | ||
"./dist/cjs/types/wasm.d.ts" | ||
], | ||
"writer": [ | ||
"./dist/es/writer/index.d.ts", | ||
"./dist/cjs/writer/index.d.ts" | ||
], | ||
"imageData": [ | ||
"./dist/es/types/imageData.d.ts", | ||
"./dist/cjs/types/imageData.d.ts" | ||
] | ||
} | ||
}, | ||
|
@@ -153,5 +219,5 @@ | |
} | ||
} | ||
}, | ||
"packageManager": "[email protected].1+sha512.1acb565e6193efbebda772702950469150cf12bcc764262e7587e71d19dc98a423dff9536e57ea44c49bdf790ff694e83c27be5faa23d67e0c033b583be4bfcf" | ||
"packageManager": "[email protected].2+sha512.93e57b0126f0df74ce6bff29680394c0ba54ec47246b9cf321f0121d8d9bb03f750a705f24edc3c1180853afd7c2c3b94196d0a3d53d3e069d9e2793ef11f321" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* This type is intended to be used with the esbuild file loader for wasm files | ||
* | ||
* see https://esbuild.github.io/content-types/#file | ||
*/ | ||
declare const wasmFilePath: string; | ||
export default wasmFilePath; |
Submodule zxing-cpp
updated
12 files
+3 −3 | .github/workflows/publish-python.yml | |
+1 −1 | .github/workflows/publish-winrt.yml | |
+1 −1 | core/src/BitHacks.h | |
+1 −1 | core/src/WriteBarcode.cpp | |
+9 −22 | core/src/ZXingC.cpp | |
+0 −1 | core/src/ZXingC.h | |
+1 −0 | core/src/libzint/dxfilmedge.c | |
+4 −0 | example/ZXingWriter.cpp | |
+1 −1 | test/blackbox/CMakeLists.txt | |
+1 −1 | test/unit/CMakeLists.txt | |
+0 −1 | wrappers/rust/src/bindings.rs | |
+1 −1 | zint |