-
Notifications
You must be signed in to change notification settings - Fork 116
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release-typescript' into nialexsan/ts-conversion
- Loading branch information
Showing
21 changed files
with
102 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@onflow/fcl": minor | ||
--- | ||
|
||
Send suggested features to discovery |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@onflow/fcl": minor | ||
--- | ||
|
||
Use localStorage as default & export LOCAL_STORAGE/SESSION_STORAGE as helpers for fcl.storage.default configuration key |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@onflow/config", | ||
"version": "1.2.0", | ||
"version": "1.3.0-typescript.0", | ||
"description": "Config for FCL-JS", | ||
"license": "Apache-2.0", | ||
"author": "Dapper Labs <[email protected]>", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@onflow/fcl-wc", | ||
"version": "4.0.0", | ||
"version": "5.0.0-typescript.0", | ||
"description": "WalletConnect adapter for FCL", | ||
"license": "Apache-2.0", | ||
"author": "Dapper Labs <[email protected]>", | ||
|
@@ -31,7 +31,7 @@ | |
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.9", | ||
"@onflow/config": "^1.2.0", | ||
"@onflow/config": "^1.3.0-typescript.0", | ||
"@onflow/util-invariant": "^1.2.0", | ||
"@onflow/util-logger": "^1.3.0", | ||
"@walletconnect/modal": "^2.4.7", | ||
|
@@ -40,6 +40,6 @@ | |
"@walletconnect/utils": "^2.8.1" | ||
}, | ||
"peerDependencies": { | ||
"@onflow/fcl": "^1.6.0" | ||
"@onflow/fcl": "^1.7.0-typescript.0" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@onflow/fcl", | ||
"version": "1.6.0", | ||
"version": "1.7.0-typescript.0", | ||
"description": "Flow Client Library", | ||
"license": "Apache-2.0", | ||
"author": "Dapper Labs <[email protected]>", | ||
|
@@ -57,10 +57,10 @@ | |
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.6", | ||
"@onflow/config": "^1.2.0", | ||
"@onflow/config": "^1.3.0-typescript.0", | ||
"@onflow/interaction": "0.0.11", | ||
"@onflow/rlp": "^1.2.0", | ||
"@onflow/sdk": "^1.3.0", | ||
"@onflow/sdk": "^1.3.1-typescript.0", | ||
"@onflow/types": "^1.2.0", | ||
"@onflow/util-actor": "^1.3.0", | ||
"@onflow/util-address": "^1.2.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,8 @@ | ||
const isServerSide = () => typeof window === "undefined" | ||
|
||
const getSessionStorage = () => { | ||
try { | ||
const SESSION_STORAGE = { | ||
can: !isServerSide(), | ||
get: async key => JSON.parse(sessionStorage.getItem(key)), | ||
put: async (key, value) => sessionStorage.setItem(key, JSON.stringify(value)), | ||
} | ||
return SESSION_STORAGE | ||
} catch (error) { | ||
return null | ||
} | ||
} | ||
import {LOCAL_STORAGE} from "./storage" | ||
|
||
export const getDefaultConfig = () => { | ||
return { | ||
"discovery.wallet.method.default": "IFRAME/RPC", | ||
"fcl.storage.default": getSessionStorage(), | ||
"fcl.storage.default": LOCAL_STORAGE, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
export {renderFrame} from './render-frame' | ||
export {renderPop} from './render-pop' | ||
export {renderTab} from './render-tab' | ||
export {getDefaultConfig} from './default-config' | ||
export {coreStrategies} from './coreStrategies' | ||
export {renderFrame} from "./render-frame" | ||
export {renderPop} from "./render-pop" | ||
export {renderTab} from "./render-tab" | ||
export {getDefaultConfig} from "./default-config" | ||
export {coreStrategies} from "./coreStrategies" | ||
export {LOCAL_STORAGE, SESSION_STORAGE} from "./storage" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
const isServerSide = () => typeof window === "undefined" | ||
|
||
export const SESSION_STORAGE = { | ||
can: !isServerSide(), | ||
get: async key => JSON.parse(sessionStorage.getItem(key)), | ||
put: async (key, value) => sessionStorage.setItem(key, JSON.stringify(value)), | ||
} | ||
|
||
export const LOCAL_STORAGE = { | ||
can: !isServerSide(), | ||
get: async key => JSON.parse(localStorage.getItem(key)), | ||
put: async (key, value) => localStorage.setItem(key, JSON.stringify(value)), | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "@onflow/sdk", | ||
"version": "1.3.0", | ||
"version": "1.3.1-typescript.0", | ||
"description": "Flow SDK", | ||
"license": "Apache-2.0", | ||
"author": "Dapper Labs <[email protected]>", | ||
|
@@ -41,7 +41,7 @@ | |
}, | ||
"dependencies": { | ||
"@babel/runtime": "^7.18.6", | ||
"@onflow/config": "^1.2.0", | ||
"@onflow/config": "^1.3.0-typescript.0", | ||
"@onflow/rlp": "^1.2.0", | ||
"@onflow/transport-http": "^1.8.0", | ||
"@onflow/util-actor": "^1.3.0", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters