Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

Commit

Permalink
Merge pull request #8 from PhotoPay/bugfix/7.7.5
Browse files Browse the repository at this point in the history
Bugfix 7.7.5
  • Loading branch information
vjekoart authored Apr 20, 2021
2 parents 6833f96 + aa16ef5 commit e04fa8e
Show file tree
Hide file tree
Showing 22 changed files with 103 additions and 39 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Release notes

## 7.7.5

* We've fixed a broken `rollup.config.js` which resulted in unusable UMD development bundle

## 7.7.4

### Breaking changes
Expand Down
8 changes: 8 additions & 0 deletions examples/es-module/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,14 @@ function main()
// 2. Create instance of SDK load settings with your license key
const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey );

/* [TEMPORARY FIX]
* Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used
* for examples, doesn't support COOP and COEP headers.
*
* For more information see "Integration" section in the official documentation.
*/
loadSettings.wasmType = "BASIC";

// [OPTIONAL] Change default settings

// Show or hide hello message in browser console when WASM is successfully loaded
Expand Down
2 changes: 1 addition & 1 deletion examples/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@
"typescript": "^3.9.5"
},
"dependencies": {
"@microblink/photopay-in-browser-sdk": "~7.7.4"
"@microblink/photopay-in-browser-sdk": "~7.7.5"
}
}
8 changes: 8 additions & 0 deletions examples/typescript/src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,14 @@ function main()
// 2. Create instance of SDK load settings with your license key
const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey );

/* [TEMPORARY FIX]
* Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used
* for examples, doesn't support COOP and COEP headers.
*
* For more information see "Integration" section in the official documentation.
*/
loadSettings.wasmType = "BASIC";

// [OPTIONAL] Change default settings

// Show or hide hello message in browser console when WASM is successfully loaded
Expand Down
12 changes: 10 additions & 2 deletions examples/umd/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h1 id="msg">Loading...</h1>
</div>
</body>

<script type="text/javascript" src="https://unpkg.com/@microblink/[email protected].4/dist/photopay-sdk.js"></script>
<script type="text/javascript" src="https://unpkg.com/@microblink/[email protected].5/dist/photopay-sdk.js"></script>
<script type="text/javascript">
/**
* PhotoPay In-browser SDK demo app which demonstrates how to:
Expand Down Expand Up @@ -60,6 +60,14 @@ <h1 id="msg">Loading...</h1>
// 2. Create instance of SDK load settings with your license key
const loadSettings = new PhotoPaySDK.WasmSDKLoadSettings( licenseKey );

/* [TEMPORARY FIX]
* Use basic WebAssembly builds since most performant option requires server setup and unpkg.com, which is used
* for examples, doesn't support COOP and COEP headers.
*
* For more information see "Integration" section in the official documentation.
*/
loadSettings.wasmType = "BASIC";

// [OPTIONAL] Change default settings

// Show or hide hello message in browser console when WASM is successfully loaded
Expand All @@ -69,7 +77,7 @@ <h1 id="msg">Loading...</h1>
loadSettings.loadProgressCallback = progress => ( progressEl.value = progress );

// Set absolute location of the engine, i.e. WASM and support JS files
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].4/resources/";
loadSettings.engineLocation = "https://unpkg.com/@microblink/[email protected].5/resources/";

// 3. Load SDK
PhotoPaySDK.loadWasmModule( loadSettings ).then
Expand Down
11 changes: 8 additions & 3 deletions oss-dependencies/npm.txt
Original file line number Diff line number Diff line change
Expand Up @@ -516,10 +516,10 @@
│ ├─ email: [email protected]
│ ├─ path: node_modules/@babel/types
│ └─ licenseFile: node_modules/@babel/types/LICENSE
├─ @microblink/[email protected].4
├─ @microblink/[email protected].5
│ ├─ licenses: Custom: https://travis-ci.org/PhotoPay/photopay-in-browser.svg
│ ├─ repository: https://github.com/PhotoPay/photopay-in-browser
│ ├─ path: /opt/jenkins/android-arm7-sony-xperia-z/E0/core-webassembly-sdks/SDKs/PhotoPay/photopay-in-browser
│ ├─ path: /Users/mbp/Projects/core-webassembly-sdks/SDKs/PhotoPay/photopay-in-browser
│ └─ licenseFile: README.md
├─ @nicolo-ribaudo/[email protected]
│ ├─ licenses: MIT
Expand Down Expand Up @@ -852,7 +852,7 @@
│ ├─ url: sindresorhus.com
│ ├─ path: node_modules/callsites
│ └─ licenseFile: node_modules/callsites/license
├─ [email protected].30001211
├─ [email protected].30001212
│ ├─ licenses: CC-BY-4.0
│ ├─ repository: https://github.com/ben-eb/caniuse-lite
│ ├─ publisher: Ben Briggs
Expand Down Expand Up @@ -1326,6 +1326,11 @@
│ ├─ url: http://blog.izs.me/
│ ├─ path: node_modules/fs.realpath
│ └─ licenseFile: node_modules/fs.realpath/LICENSE
├─ [email protected]
│ ├─ licenses: MIT
│ ├─ repository: https://github.com/fsevents/fsevents
│ ├─ path: node_modules/fsevents
│ └─ licenseFile: node_modules/fsevents/LICENSE
├─ [email protected]
│ ├─ licenses: MIT
│ ├─ repository: https://github.com/Raynos/function-bind
Expand Down
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@microblink/photopay-in-browser-sdk",
"version": "7.7.4",
"version": "7.7.5",
"description": "A simple payment barcode scanning library for WebAssembly-enabled browsers.",
"homepage": "https://github.com/PhotoPay/photopay-in-browser",
"repository": "github:PhotoPay/photopay-in-browser",
Expand Down
15 changes: 15 additions & 0 deletions resources/PhotoPaySDK.worker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion resources/PhotoPayWasmSDK.worker.min.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions resources/advanced-threads/PhotoPayWasmSDK.js

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

Binary file modified resources/advanced-threads/PhotoPayWasmSDK.wasm
Binary file not shown.
Loading

0 comments on commit e04fa8e

Please sign in to comment.