Release 0.7.5

This commit is contained in:
Yarmo Mackenbach 2020-12-10 02:05:36 +01:00
parent e96b86696a
commit 8d68a30d50
7 changed files with 31 additions and 17 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [0.7.5] - 2020-12-08
### Fixed
- Browser bundling
## [0.7.4] - 2020-12-08 ## [0.7.4] - 2020-12-08
### Fixed ### Fixed
- Handling HKP URI - Handling HKP URI

29
dist/doip.js vendored
View file

@ -1193,7 +1193,7 @@ process.umask = function() { return 0; };
},{}],9:[function(require,module,exports){ },{}],9:[function(require,module,exports){
module.exports={ module.exports={
"name": "doipjs", "name": "doipjs",
"version": "0.7.4", "version": "0.7.5",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {
@ -1205,6 +1205,7 @@ module.exports={
"valid-url": "^1.0.9" "valid-url": "^1.0.9"
}, },
"devDependencies": { "devDependencies": {
"browserify-shim": "^3.8.14",
"chai": "^4.2.0", "chai": "^4.2.0",
"chai-as-promised": "^7.1.1", "chai-as-promised": "^7.1.1",
"chai-match-pattern": "^1.2.0", "chai-match-pattern": "^1.2.0",
@ -1213,7 +1214,7 @@ module.exports={
"mocha": "^8.2.0" "mocha": "^8.2.0"
}, },
"scripts": { "scripts": {
"release:bundle": "./node_modules/browserify/bin/cmd.js ./src/index.js --standalone doip -o ./dist/doip.js", "release:bundle": "./node_modules/browserify/bin/cmd.js ./src/index.js --standalone doip -x openpgp -o ./dist/doip.js",
"release:minify": "./node_modules/minify/bin/minify.js ./dist/doip.js > ./dist/doip.min.js", "release:minify": "./node_modules/minify/bin/minify.js ./dist/doip.js > ./dist/doip.min.js",
"prettier:check": "./node_modules/prettier/bin-prettier.js --check .", "prettier:check": "./node_modules/prettier/bin-prettier.js --check .",
"prettier:write": "./node_modules/prettier/bin-prettier.js --write .", "prettier:write": "./node_modules/prettier/bin-prettier.js --write .",
@ -1237,10 +1238,17 @@ module.exports={
"identity" "identity"
], ],
"author": "Yarmo Mackenbach <yarmo@yarmo.eu> (https://yarmo.eu)", "author": "Yarmo Mackenbach <yarmo@yarmo.eu> (https://yarmo.eu)",
"license": "Apache-2.0" "license": "Apache-2.0",
"browserify": {
"transform": [ "browserify-shim" ]
},
"browserify-shim": {
"openpgp": "global:openpgp"
}
} }
},{}],10:[function(require,module,exports){ },{}],10:[function(require,module,exports){
(function (global){(function (){
/* /*
Copyright 2020 Yarmo Mackenbach Copyright 2020 Yarmo Mackenbach
@ -1259,11 +1267,7 @@ limitations under the License.
const path = require('path') const path = require('path')
const mergeOptions = require('merge-options') const mergeOptions = require('merge-options')
const validUrl = require('valid-url') const validUrl = require('valid-url')
const openpgp = require(path.join( const openpgp = (typeof window !== "undefined" ? window['openpgp'] : typeof global !== "undefined" ? global['openpgp'] : null)
require.resolve('openpgp'),
'..',
'openpgp.min.js'
))
const serviceproviders = require('./serviceproviders') const serviceproviders = require('./serviceproviders')
const keys = require('./keys') const keys = require('./keys')
const utils = require('./utils') const utils = require('./utils')
@ -1463,6 +1467,7 @@ const verify = async (input, fingerprint, opts) => {
exports.verify = verify exports.verify = verify
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"./keys":12,"./serviceproviders":13,"./utils":28,"merge-options":5,"path":6,"valid-url":8}],11:[function(require,module,exports){ },{"./keys":12,"./serviceproviders":13,"./utils":28,"merge-options":5,"path":6,"valid-url":8}],11:[function(require,module,exports){
/* /*
Copyright 2020 Yarmo Mackenbach Copyright 2020 Yarmo Mackenbach
@ -1490,6 +1495,7 @@ exports.serviceproviders = serviceproviders
exports.utils = utils exports.utils = utils
},{"./claims":10,"./keys":12,"./serviceproviders":13,"./utils":28}],12:[function(require,module,exports){ },{"./claims":10,"./keys":12,"./serviceproviders":13,"./utils":28}],12:[function(require,module,exports){
(function (global){(function (){
/* /*
Copyright 2020 Yarmo Mackenbach Copyright 2020 Yarmo Mackenbach
@ -1509,11 +1515,7 @@ const path = require('path')
const bent = require('bent') const bent = require('bent')
const req = bent('GET') const req = bent('GET')
const validUrl = require('valid-url') const validUrl = require('valid-url')
const openpgp = require(path.join( const openpgp = (typeof window !== "undefined" ? window['openpgp'] : typeof global !== "undefined" ? global['openpgp'] : null)
require.resolve('openpgp'),
'..',
'openpgp.min.js'
))
const mergeOptions = require('merge-options') const mergeOptions = require('merge-options')
const fetchHKP = (identifier, keyserverBaseUrl) => { const fetchHKP = (identifier, keyserverBaseUrl) => {
@ -1699,6 +1701,7 @@ exports.process = process
exports.getUserData = getUserData exports.getUserData = getUserData
exports.getFingerprint = getFingerprint exports.getFingerprint = getFingerprint
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
},{"bent":1,"merge-options":5,"path":6,"valid-url":8}],13:[function(require,module,exports){ },{"bent":1,"merge-options":5,"path":6,"valid-url":8}],13:[function(require,module,exports){
/* /*
Copyright 2020 Yarmo Mackenbach Copyright 2020 Yarmo Mackenbach

2
dist/doip.min.js vendored

File diff suppressed because one or more lines are too long

View file

@ -1,4 +1,4 @@
# doip.js <small>0.7.4</small> # doip.js <small>0.7.5</small>
<img src="doip.png" width="120"> <img src="doip.png" width="120">

View file

@ -1,5 +1,12 @@
# Changelog # Changelog
## [0.7.5]
[2020-12-10](https://codeberg.org/keyoxide/doipjs/releases/tag/0.7.5)
### Fixed
- Browser bundling
## [0.7.4] ## [0.7.4]
[2020-12-08](https://codeberg.org/keyoxide/doipjs/releases/tag/0.7.4) [2020-12-08](https://codeberg.org/keyoxide/doipjs/releases/tag/0.7.4)

View file

@ -15,7 +15,7 @@ npm install --save doipjs
Install on website by including the following HTML snippet: Install on website by including the following HTML snippet:
```html ```html
<script src="https://cdn.jsdelivr.net/npm/doipjs@0.7.4/dist/doip.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/doipjs@0.7.5/dist/doip.min.js"></script>
``` ```
Next step: [quick start (Node.js)](quickstart-nodejs.md) and [quick start (browser)](quickstart-browser.md) Next step: [quick start (Node.js)](quickstart-nodejs.md) and [quick start (browser)](quickstart-browser.md)

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "0.7.4", "version": "0.7.5",
"description": "Decentralized OpenPGP Identity Proofs library in Node.js", "description": "Decentralized OpenPGP Identity Proofs library in Node.js",
"main": "src/index.js", "main": "src/index.js",
"dependencies": { "dependencies": {