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 #4 from PhotoPay/jenkins/stable-build
Browse files Browse the repository at this point in the history
Automatically built release by Jenkins
  • Loading branch information
vjekoart committed Jul 18, 2020
2 parents 90c9e11 + de54d0b commit 784a336
Show file tree
Hide file tree
Showing 75 changed files with 11,325 additions and 1,813 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["@babel/preset-env"]
}
14 changes: 14 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true

# Tab indentation
[*.{js,ts,md}]
indent_style = space
indent_size = 4
54 changes: 54 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"root": true,
"env": {
"browser": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"project": ["./tsconfig.json"]
},
"plugins": [ "@typescript-eslint" ],
"rules": {
"brace-style": ["error", "allman", { "allowSingleLine": true }],
"eol-last": ["error", "always"],
"eqeqeq": ["error", "always"],
"indent": ["error", 4, { "SwitchCase": 1 }],
"linebreak-style": ["error", "unix"],
"lines-between-class-members": ["error", "always"],
"max-len": ["error", { "code": 120 }],
"new-cap": "error",
"no-irregular-whitespace": ["off"],
"no-multiple-empty-lines": "error",
"no-nested-ternary": "error",
"no-trailing-spaces": "error",
"no-unexpected-multiline": ["off"],
"object-curly-spacing": ["error", "always"],
"object-property-newline": "error",
"one-var": ["error", "never"],
"quotes": ["error", "double"],
"semi": ["error", "always"],
"space-before-blocks": ["error", "always"],
"space-in-parens": ["error", "always"],
"spaced-comment": ["error", "always", {
"block": { "balanced": true },
"exceptions": []
}],
"@typescript-eslint/no-empty-interface": ["error", { "allowSingleExtends": true }],
"@typescript-eslint/no-explicit-any": ["error"],
"@typescript-eslint/no-floating-promises": ["error"],
"@typescript-eslint/no-non-null-assertion": ["error"],
"@typescript-eslint/no-unsafe-assignment": ["error"],
"@typescript-eslint/no-unsafe-call": ["error"],
"@typescript-eslint/no-unsafe-member-access": ["error"],
"@typescript-eslint/no-unsafe-return": ["error"],
"@typescript-eslint/no-unused-vars": ["error"],
"@typescript-eslint/restrict-template-expressions": ["error"]
}
}
6 changes: 5 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
package-lock.json

dist
es
lib
types
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.18
6 changes: 2 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
language: node_js
node_js:
- "12.14"
- "12.18"
script:
- npm install
- cd demo
- npm install
- npm run prepublishOnly
- npm run build
30 changes: 30 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# Release notes

## 7.7.0

- Standardization of NPM package
- NPM package can be used in environments with module bundlers
- Added ES and UMD bundles for the SDK
- Types are now exposed and accessible in standard manner for NPM environment
- Extended `package.json` with project information and scripts for building and publishing
- Added Rollup build system to provide developers with infrastructure for easier customization of SDK
- Extension of examples
- Examples now cover more functionalities of the SDK
- Provided examples for integration in TS, ES and UMD environment
- Configuration options for WASM engine and WebWorker locations
- Configurations `engineLocation` and `workerLocation` are defined in the `WasmSDKLoadSettings` class
- Improved stability and readability of SDK TypeScript source code
- Added ESLint for automatic check of unsecure language constructs
- Added Babel for safe transpiling to ES6 and better browser support

## 1.0.0-beta.1

- decreased WASM binary size from 2.3 MB to 1.5 MB
- fixed vulnerability in license check
- added support for disabling hello message after license key gets validated
- by default this is still enabled, to disable it, set `allowHelloMessage` property in [WasmSDKLoadSettings](src/MicroblinkSDK/WasmLoadSettings.ts) to `false`
- fixed parsing of amount for serbian QR and PDF417 recognizers

## 1.0.0-beta.0

- initial beta release of the PhotoPay In-browser SDK
366 changes: 262 additions & 104 deletions README.md

Large diffs are not rendered by default.

13 changes: 0 additions & 13 deletions Release notes.md

This file was deleted.

3 changes: 0 additions & 3 deletions build/MicroblinkSDK.worker.js

This file was deleted.

16 changes: 0 additions & 16 deletions build/index.js

This file was deleted.

1 change: 0 additions & 1 deletion demo/.gitignore

This file was deleted.

34 changes: 0 additions & 34 deletions demo/README.md

This file was deleted.

19 changes: 0 additions & 19 deletions demo/package.json

This file was deleted.

61 changes: 0 additions & 61 deletions demo/rollup.config.js

This file was deleted.

54 changes: 0 additions & 54 deletions demo/src/index.html

This file was deleted.

Loading

0 comments on commit 784a336

Please sign in to comment.