chore: release 1.2.5

This commit is contained in:
Yarmo Mackenbach 2023-10-05 11:14:38 +02:00
parent a3c9e9137d
commit 8a01cdf9fa
No known key found for this signature in database
GPG key ID: 3C57D093219103A3
9 changed files with 25 additions and 8 deletions

View file

@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [Unreleased]
## [1.2.5] - 2023-10-05
### Added
- Support for theme color
## [1.2.4] - 2023-10-04 ## [1.2.4] - 2023-10-04
### Changed ### Changed
- Claim display information - Claim display information

13
dist/doip.core.js vendored
View file

@ -5750,6 +5750,12 @@ var doip = (function (exports, openpgp$1, fetcher) {
* @public * @public
*/ */
this.avatarUrl = null; this.avatarUrl = null;
/**
* Theme color
* @type {string | null}
* @public
*/
this.themeColor = null;
/** /**
* List of identity claims * List of identity claims
* @type {import('./claim.js').Claim[]} * @type {import('./claim.js').Claim[]}
@ -5854,6 +5860,7 @@ var doip = (function (exports, openpgp$1, fetcher) {
email: this.email, email: this.email,
description: this.description, description: this.description,
avatarUrl: this.avatarUrl, avatarUrl: this.avatarUrl,
themeColor: this.themeColor,
isRevoked: this.isRevoked, isRevoked: this.isRevoked,
claims: this.claims.map(x => x.toJSON()) claims: this.claims.map(x => x.toJSON())
} }
@ -5873,6 +5880,7 @@ var doip = (function (exports, openpgp$1, fetcher) {
persona.email = personaObject.email; persona.email = personaObject.email;
persona.description = personaObject.description; persona.description = personaObject.description;
persona.avatarUrl = personaObject.avatarUrl; persona.avatarUrl = personaObject.avatarUrl;
persona.themeColor = personaObject.avatarUrl;
persona.isRevoked = personaObject.isRevoked; persona.isRevoked = personaObject.isRevoked;
return persona return persona
@ -9742,6 +9750,8 @@ var doip = (function (exports, openpgp$1, fetcher) {
const profileName = payloadJson['http://ariadne.id/name']; const profileName = payloadJson['http://ariadne.id/name'];
/** @type {string} */ /** @type {string} */
const profileDescription = payloadJson['http://ariadne.id/description']; const profileDescription = payloadJson['http://ariadne.id/description'];
/** @type {string} */
const profileThemeColor = payloadJson['http://ariadne.id/color'];
/** @type {string[]} */ /** @type {string[]} */
const profileClaims = payloadJson['http://ariadne.id/claims']; const profileClaims = payloadJson['http://ariadne.id/claims'];
@ -9751,6 +9761,9 @@ var doip = (function (exports, openpgp$1, fetcher) {
if (profileDescription) { if (profileDescription) {
pe.setDescription(profileDescription); pe.setDescription(profileDescription);
} }
if (profileThemeColor && /^#([0-9A-F]{3}){1,2}$/i.test(profileThemeColor)) {
pe.themeColor = profileThemeColor;
}
const profile = new Profile(ProfileType.ASP, uri, [pe]); const profile = new Profile(ProfileType.ASP, uri, [pe]);
profile.publicKey.fingerprint = fp; profile.publicKey.fingerprint = fp;

File diff suppressed because one or more lines are too long

View file

@ -2728,7 +2728,7 @@ var doipFetchers = (function (exports) {
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.2.4'; const version = '1.2.5';
/* /*
Copyright 2022 Yarmo Mackenbach Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -2698,7 +2698,7 @@ var doipFetchers = (function (exports) {
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
const version = '1.2.4'; const version = '1.2.5';
/* /*
Copyright 2022 Yarmo Mackenbach Copyright 2022 Yarmo Mackenbach

File diff suppressed because one or more lines are too long

View file

@ -1,6 +1,6 @@
{ {
"name": "doipjs", "name": "doipjs",
"version": "1.2.4", "version": "1.2.5",
"description": "Decentralized Online Identity Proofs library in Node.js", "description": "Decentralized Online Identity Proofs library in Node.js",
"type": "module", "type": "module",
"main": "./src/index.js", "main": "./src/index.js",

View file

@ -22,4 +22,4 @@ limitations under the License.
* doip.js library version * doip.js library version
* @constant {string} * @constant {string}
*/ */
export const version = '1.2.4' export const version = '1.2.5'