0.37.2 (#661)
* 0.37.2 * Update CHANGELOG.md * Update CHANGELOG.md * Build packageInfo * autolint
This commit is contained in:
parent
e6630679c6
commit
a14651ab7f
13
CHANGELOG.md
13
CHANGELOG.md
@ -1,5 +1,18 @@
|
||||
# CHANGELOG
|
||||
|
||||
## 0.37.2 Feb 28, 2021
|
||||
|
||||
**Important** Not published to the stored, just made available to ensure users can have access to a version that uses the latest `@polkadot/{api, util}`
|
||||
|
||||
Contributed:
|
||||
|
||||
- Adjust tests to get rid of warnings (Thanks to https://github.com/Tbaut)
|
||||
|
||||
Changes:
|
||||
|
||||
- Bump `@polkadot/api` & `@polkadot/util` to latest released versions
|
||||
|
||||
|
||||
## 0.37.1 Feb 10, 2021
|
||||
|
||||
Contributed:
|
||||
|
||||
24
package.json
24
package.json
@ -2,22 +2,22 @@
|
||||
"repository": "https://github.com/polkadot-js/extension",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"private": true,
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
"resolutions": {
|
||||
"@polkadot/api": "^3.8.1",
|
||||
"@polkadot/keyring": "^5.6.2",
|
||||
"@polkadot/networks": "^5.6.2",
|
||||
"@polkadot/types": "^3.8.1",
|
||||
"@polkadot/util": "^5.6.2",
|
||||
"@polkadot/util-crypto": "^5.6.2",
|
||||
"@polkadot/x-fetch": "^5.6.2",
|
||||
"@polkadot/api": "^3.11.1",
|
||||
"@polkadot/keyring": "^5.9.2",
|
||||
"@polkadot/networks": "^5.9.2",
|
||||
"@polkadot/types": "^3.11.1",
|
||||
"@polkadot/util": "^5.9.2",
|
||||
"@polkadot/util-crypto": "^5.9.2",
|
||||
"@polkadot/x-fetch": "^5.9.2",
|
||||
"babel-core": "^7.0.0-bridge.0",
|
||||
"safe-buffer": "^5.2.1",
|
||||
"typescript": "^4.1.3"
|
||||
"typescript": "^4.1.5"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "polkadot-dev-build-ts && yarn build:zip",
|
||||
@ -37,12 +37,12 @@
|
||||
"watch": "cd packages/extension && yarn polkadot-exec-webpack --config webpack.watch.js --mode development --watch"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.12.13",
|
||||
"@polkadot/dev": "^0.61.25",
|
||||
"@babel/core": "^7.13.8",
|
||||
"@polkadot/dev": "^0.61.30",
|
||||
"@types/jest": "^26.0.20",
|
||||
"i18next-scanner": "^3.0.0",
|
||||
"sinon-chrome": "^3.0.1",
|
||||
"stylelint": "^13.9.0",
|
||||
"stylelint": "^13.11.0",
|
||||
"stylelint-config-recommended": "^3.0.0",
|
||||
"stylelint-config-styled-components": "^0.1.1"
|
||||
}
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
{
|
||||
"name": "@polkadot/extension-base",
|
||||
"description": "Functions, classes and other utilities used in @polkadot/extension",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/api": "^3.8.1",
|
||||
"@polkadot/extension-inject": "^0.37.2-0",
|
||||
"@polkadot/keyring": "^5.6.2",
|
||||
"@polkadot/phishing": "^0.4.29",
|
||||
"@polkadot/ui-keyring": "0.69.1"
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@polkadot/api": "^3.11.1",
|
||||
"@polkadot/extension-inject": "^0.37.2",
|
||||
"@polkadot/keyring": "^5.9.2",
|
||||
"@polkadot/phishing": "^0.6.1",
|
||||
"@polkadot/ui-keyring": "^0.70.1"
|
||||
}
|
||||
}
|
||||
|
||||
@ -459,7 +459,7 @@ export default class Extension {
|
||||
return true;
|
||||
}
|
||||
|
||||
private toggleAuthorization (url: string):ResponseAuthorizeList {
|
||||
private toggleAuthorization (url: string): ResponseAuthorizeList {
|
||||
return { list: this.#state.toggleAuthorization(url) };
|
||||
}
|
||||
|
||||
|
||||
6
packages/extension-base/src/packageInfo.ts
Normal file
6
packages/extension-base/src/packageInfo.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/extension-base', version: '0.37.2' };
|
||||
@ -1,14 +1,14 @@
|
||||
{
|
||||
"name": "@polkadot/extension-chains",
|
||||
"description": "Definitions for all known chains as exposed by the extension.",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/networks": "^5.6.2"
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@polkadot/networks": "^5.9.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*"
|
||||
|
||||
6
packages/extension-chains/src/packageInfo.ts
Normal file
6
packages/extension-chains/src/packageInfo.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/extension-chains', version: '0.37.2' };
|
||||
@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "@polkadot/extension-dapp",
|
||||
"description": "Provides an interfaces around the injected globals for ease of access by dapp developers.",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/extension-inject": "^0.37.2-0",
|
||||
"@polkadot/util": "^5.6.2",
|
||||
"@polkadot/util-crypto": "^5.6.2"
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@polkadot/extension-inject": "^0.37.2",
|
||||
"@polkadot/util": "^5.9.2",
|
||||
"@polkadot/util-crypto": "^5.9.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@polkadot/api": "*",
|
||||
|
||||
6
packages/extension-dapp/src/packageInfo.ts
Normal file
6
packages/extension-dapp/src/packageInfo.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/extension-dapp', version: '0.37.2' };
|
||||
@ -1,16 +1,16 @@
|
||||
{
|
||||
"name": "@polkadot/extension-inject",
|
||||
"description": "A generic injector (usable to any extension), that populates the base exposed interfaces to be used by dapps.",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"main": "index.js",
|
||||
"sideEffects": false,
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13"
|
||||
"@babel/runtime": "^7.13.8"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/chrome": "^0.0.129",
|
||||
"@types/chrome": "^0.0.133",
|
||||
"@types/firefox-webext-browser": "^82.0.0"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
6
packages/extension-inject/src/packageInfo.ts
Normal file
6
packages/extension-inject/src/packageInfo.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/extension-inject', version: '0.37.2' };
|
||||
@ -1,30 +1,30 @@
|
||||
{
|
||||
"name": "@polkadot/extension-ui",
|
||||
"description": "A sample signer extension for the @polkadot/api",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.34",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.15.2",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.15.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.15.2",
|
||||
"@fortawesome/react-fontawesome": "^0.1.14",
|
||||
"@polkadot/extension-base": "^0.37.2-0",
|
||||
"@polkadot/extension-inject": "^0.37.2-0",
|
||||
"@polkadot/hw-ledger": "^5.6.2",
|
||||
"@polkadot/keyring": "^5.6.2",
|
||||
"@polkadot/networks": "^5.6.2",
|
||||
"@polkadot/react-identicon": "^0.69.2-0",
|
||||
"@polkadot/react-qr": "^0.69.2-0",
|
||||
"@polkadot/util": "^5.6.2",
|
||||
"@polkadot/util-crypto": "^5.6.2",
|
||||
"i18next": "^19.8.4",
|
||||
"@polkadot/extension-base": "^0.37.2",
|
||||
"@polkadot/extension-inject": "^0.37.2",
|
||||
"@polkadot/hw-ledger": "^5.9.2",
|
||||
"@polkadot/keyring": "^5.9.2",
|
||||
"@polkadot/networks": "^5.9.2",
|
||||
"@polkadot/react-identicon": "^0.70.1",
|
||||
"@polkadot/react-qr": "^0.70.1",
|
||||
"@polkadot/util": "^5.9.2",
|
||||
"@polkadot/util-crypto": "^5.9.2",
|
||||
"i18next": "^19.9.0",
|
||||
"react": "^17.0.1",
|
||||
"react-dom": "^17.0.1",
|
||||
"react-dropzone": "^11.2.4",
|
||||
"react-i18next": "^11.8.5",
|
||||
"react-dropzone": "^11.3.1",
|
||||
"react-i18next": "^11.8.8",
|
||||
"react-is": "^17.0.1",
|
||||
"react-router": "^5.2.0",
|
||||
"react-router-dom": "^5.2.0",
|
||||
@ -35,7 +35,7 @@
|
||||
"@types/enzyme": "^3.10.8",
|
||||
"@types/enzyme-adapter-react-16": "^1.0.6",
|
||||
"@types/react-copy-to-clipboard": "^5.0.0",
|
||||
"@types/react-dom": "^17.0.0",
|
||||
"@types/react-dom": "^17.0.1",
|
||||
"@types/react-router": "^5.1.11",
|
||||
"@types/react-router-dom": "^5.1.7",
|
||||
"@types/sinon-chrome": "^2.2.10",
|
||||
|
||||
@ -59,7 +59,7 @@ function AuthManagement ({ className }: Props): React.ReactElement<Props> {
|
||||
: <>
|
||||
<div className='website-list'>
|
||||
{Object.entries(authList)
|
||||
.filter(([url]:[string, AuthUrlInfo]) => url.includes(filter))
|
||||
.filter(([url]: [string, AuthUrlInfo]) => url.includes(filter))
|
||||
.map(
|
||||
([url, info]: [string, AuthUrlInfo]) =>
|
||||
<WebsiteEntry
|
||||
|
||||
@ -40,7 +40,7 @@ interface QrScanAddressProps {
|
||||
// eslint-disable-next-line @typescript-eslint/no-unsafe-assignment,@typescript-eslint/no-unsafe-call
|
||||
configure({ adapter: new Adapter() });
|
||||
|
||||
const typeName = async (wrapper: ReactWrapper, value:string) => {
|
||||
const typeName = async (wrapper: ReactWrapper, value: string) => {
|
||||
wrapper.find('input').first().simulate('change', { target: { value } });
|
||||
await act(flushAllPromises);
|
||||
wrapper.update();
|
||||
|
||||
@ -21,7 +21,7 @@ interface Props {
|
||||
className?: string;
|
||||
}
|
||||
|
||||
function Upload ({ className } : Props): React.ReactElement {
|
||||
function Upload ({ className }: Props): React.ReactElement {
|
||||
const { t } = useTranslation();
|
||||
const { accounts } = useContext(AccountContext);
|
||||
const onAction = useContext(ActionContext);
|
||||
@ -58,7 +58,7 @@ function Upload ({ className } : Props): React.ReactElement {
|
||||
}
|
||||
|
||||
json && jsonGetAccountInfo(json)
|
||||
.then((accountInfo : ResponseJsonGetAccountInfo) => setAccountInfo(accountInfo))
|
||||
.then((accountInfo: ResponseJsonGetAccountInfo) => setAccountInfo(accountInfo))
|
||||
.catch((e) => {
|
||||
setFileError(true);
|
||||
console.error(e);
|
||||
|
||||
@ -23,7 +23,7 @@ interface Props {
|
||||
setError: (value: string | null) => void;
|
||||
}
|
||||
|
||||
function LedgerSign ({ accountIndex, addressOffset, className, error, genesisHash, onSignature, payload, setError } : Props): React.ReactElement<Props> {
|
||||
function LedgerSign ({ accountIndex, addressOffset, className, error, genesisHash, onSignature, payload, setError }: Props): React.ReactElement<Props> {
|
||||
const [isBusy, setIsBusy] = useState(false);
|
||||
const { t } = useTranslation();
|
||||
const { error: ledgerError, isLoading: ledgerLoading, isLocked: ledgerLocked, ledger, refresh, warning: ledgerWarning } = useLedger(genesisHash, accountIndex, addressOffset);
|
||||
|
||||
@ -21,7 +21,7 @@ interface Props {
|
||||
signId: string;
|
||||
}
|
||||
|
||||
function SignArea ({ buttonText, className, error, isExternal, isFirst, setError, signId } : Props): JSX.Element {
|
||||
function SignArea ({ buttonText, className, error, isExternal, isFirst, setError, signId }: Props): JSX.Element {
|
||||
const [savePass, setSavePass] = useState(false);
|
||||
const [isLocked, setIsLocked] = useState<boolean | null>(null);
|
||||
const [password, setPassword] = useState('');
|
||||
|
||||
@ -123,7 +123,7 @@ const mountComponent = async (addressComponentProps: AddressComponentProps, cont
|
||||
return { wrapper };
|
||||
};
|
||||
|
||||
const getWrapper = async (account: AccountJson, contextAccounts : AccountJson[], withAccountsInContext: boolean) => {
|
||||
const getWrapper = async (account: AccountJson, contextAccounts: AccountJson[], withAccountsInContext: boolean) => {
|
||||
// the address component can query info about the account from the account context
|
||||
// in this case, the account's address (any encoding) should suffice
|
||||
// In case the account is not in the context, then more info are needed as props
|
||||
|
||||
@ -13,7 +13,7 @@ interface Props {
|
||||
value: string;
|
||||
}
|
||||
|
||||
function InputFilter ({ className, onChange, placeholder, value } : Props) {
|
||||
function InputFilter ({ className, onChange, placeholder, value }: Props) {
|
||||
const onChangeFilter = useCallback((event: React.ChangeEvent<HTMLInputElement>) => {
|
||||
onChange(event.target.value);
|
||||
}, [onChange]);
|
||||
|
||||
@ -130,7 +130,7 @@ export async function createSeed (length?: SeedLengths, type?: KeypairType): Pro
|
||||
return sendMessage('pri(seed.create)', { length, type });
|
||||
}
|
||||
|
||||
export async function getAllMetatdata () : Promise<MetadataDef[]> {
|
||||
export async function getAllMetatdata (): Promise<MetadataDef[]> {
|
||||
return sendMessage('pri(metadata.list)');
|
||||
}
|
||||
|
||||
|
||||
@ -1,17 +1,17 @@
|
||||
{
|
||||
"name": "@polkadot/extension",
|
||||
"description": "A sample signer extension for the @polkadot/api",
|
||||
"version": "0.37.2-0",
|
||||
"version": "0.37.2",
|
||||
"author": "Jaco Greeff <jacogr@gmail.com>",
|
||||
"license": "Apache-2",
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.12.13",
|
||||
"@polkadot/extension-base": "^0.37.2-0",
|
||||
"@polkadot/extension-inject": "^0.37.2-0",
|
||||
"@polkadot/extension-ui": "^0.37.2-0"
|
||||
"@babel/runtime": "^7.13.8",
|
||||
"@polkadot/extension-base": "^0.37.2",
|
||||
"@polkadot/extension-inject": "^0.37.2",
|
||||
"@polkadot/extension-ui": "^0.37.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@polkadot/dev": "^0.61.25",
|
||||
"@polkadot/dev": "^0.61.30",
|
||||
"babel-loader": "^8.2.2",
|
||||
"browser-resolve": "^2.0.0",
|
||||
"buffer": "^6.0.3",
|
||||
@ -19,14 +19,14 @@
|
||||
"crypto-browserify": "^3.12.0",
|
||||
"extract-loader": "^5.1.0",
|
||||
"file-loader": "^6.2.0",
|
||||
"html-loader": "^1.3.2",
|
||||
"html-loader": "^2.1.1",
|
||||
"path-browserify": "^1.0.1",
|
||||
"process": "^0.11.10",
|
||||
"stream-browserify": "^3.0.0",
|
||||
"thread-loader": "^3.0.1",
|
||||
"url-loader": "^4.1.1",
|
||||
"webpack": "^5.17.0",
|
||||
"webpack-cli": "^4.4.0",
|
||||
"webpack": "^5.24.2",
|
||||
"webpack-cli": "^4.5.0",
|
||||
"webpack-extension-manifest-plugin": "^0.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
6
packages/extension/src/packageInfo.ts
Normal file
6
packages/extension/src/packageInfo.ts
Normal file
@ -0,0 +1,6 @@
|
||||
// Copyright 2017-2021 @polkadot/dev authors & contributors
|
||||
// SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
// Auto-generated by @polkadot/dev, do not edit
|
||||
|
||||
export const packageInfo = { name: '@polkadot/extension', version: '0.37.2' };
|
||||
Loading…
Reference in New Issue
Block a user