Skip to content

Commit a75792b

Browse files
authored
Merge pull request #643 from TokenScript/feature/release-2.5.0
updated version and changelog
2 parents 2a30ee4 + 5fbabeb commit a75792b

File tree

5 files changed

+18
-35
lines changed

5 files changed

+18
-35
lines changed

CHANGELOG.md

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,29 @@
11
> Description
22
3-
The patch release addresses compatibility issues with the es6 version of the build.
3+
Feature release with fixes, added support through Wallet Connect V2, and use of signatures via Solana and Flow.
44

55
### Upgrade Steps
66

7-
* Update NPM package to version 2.4.4-rc
7+
* Update NPM package to version 2.5.0
88

99
### Breaking Changes
1010

1111
[none]
1212

1313
### New Features
1414

15-
[none]
15+
* Tokens loaded event hook added
16+
* Wallet Connect V2 IM token wallet support
17+
* Added sign/verify for flow and solana
1618

1719
### Bug Fixes
1820

19-
* TS config update for ES6 compatibility issue found
21+
* Sonar Cloud code quality updates
22+
* Namespace prefix for off chain communication
23+
* ES LINT update
24+
* Ability to extend library classes
25+
* Support for es5 browsers
26+
* Disabled support of iOS Edge with Torus
2027

2128
### Performance Improvements
2229

@@ -28,4 +35,4 @@ The patch release addresses compatibility issues with the es6 version of the bui
2835

2936
**Full Change log**:
3037

31-
https://github.com/TokenScript/token-negotiator/compare/v2.4.3...v2.4.4
38+
https://github.com/TokenScript/token-negotiator/compare/v2.4.3...v2.5.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@tokenscript/token-negotiator",
3-
"version": "2.4.4-rc",
3+
"version": "2.5.0",
44
"description": "Token-negotiator a token attestation bridge between web 2.0 and 3.0.",
55
"module": "dist/index.js",
66
"types": "dist/index.d.ts",

src/core/index.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -74,12 +74,7 @@ export const readTokens = (itemStorageKey: string) => {
7474
return output
7575
}
7676

77-
export const decodeTokens = (
78-
rawTokens: string,
79-
tokenParser: any,
80-
unsignedTokenDataName: string,
81-
includeSignedToken = false,
82-
) => {
77+
export const decodeTokens = (rawTokens: string, tokenParser: any, unsignedTokenDataName: string, includeSignedToken = false) => {
8378
const x = JSON.parse(rawTokens)
8479

8580
if (x.length) {
@@ -93,12 +88,7 @@ export const decodeTokens = (
9388
}
9489
}
9590

96-
export const decodeToken = (
97-
tokenData: OffChainTokenData,
98-
tokenParser: any,
99-
unsignedTokenDataName: string,
100-
includeSignedToken = false,
101-
) => {
91+
export const decodeToken = (tokenData: OffChainTokenData, tokenParser: any, unsignedTokenDataName: string, includeSignedToken = false) => {
10292
if (tokenData.token) {
10393
let decodedToken = new tokenParser(base64ToUint8array(tokenData.token).buffer)
10494

src/outlet/localOutlet.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,7 @@ export class LocalOutlet {
2020

2121
if (!storageTokens) return []
2222

23-
const decodedTokens = decodeTokens(
24-
storageTokens,
25-
this.tokenConfig.tokenParser,
26-
this.tokenConfig.unsignedTokenDataName,
27-
true,
28-
)
23+
const decodedTokens = decodeTokens(storageTokens, this.tokenConfig.tokenParser, this.tokenConfig.unsignedTokenDataName, true)
2924

3025
return filterTokens(decodedTokens, this.tokenConfig.filter)
3126
}
@@ -34,16 +29,7 @@ export class LocalOutlet {
3429
// check if token issuer
3530
let tokenObj = await rawTokenCheck(unsignedToken, this.tokenConfig)
3631

37-
let authHandler = new AuthHandler(
38-
null,
39-
null,
40-
this.tokenConfig,
41-
tokenObj,
42-
address,
43-
wallet,
44-
redirectMode,
45-
unsignedToken,
46-
)
32+
let authHandler = new AuthHandler(null, null, this.tokenConfig, tokenObj, address, wallet, redirectMode, unsignedToken)
4733

4834
return await authHandler.authenticate()
4935
}

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
// modified by build process.
2-
export const VERSION = '2.4.4-rc'
2+
export const VERSION = '2.5.0'

0 commit comments

Comments
 (0)