Skip to content

Commit

Permalink
0.54.1 (#489)
Browse files Browse the repository at this point in the history
* 0.54.1

* util

* Adjust

* readline usage
  • Loading branch information
jacogr authored Apr 22, 2023
1 parent c05e4f2 commit 710d150
Show file tree
Hide file tree
Showing 19 changed files with 583 additions and 565 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# CHANGELOG

## 0.54.1 Apr 22, 2023

Changes:

- Upgrade to `@polkadot/util` 12.0.1
- Upgrade to `@polkadot/api` 10.4.1
- Drop support for Node 14 (EOL 30 Apr 2023)


## 0.53.11 Apr 16, 2023

Changes:
Expand Down
18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"versions": {
"git": "0.53.11",
"npm": "0.53.11"
Expand All @@ -39,17 +39,17 @@
"test": "yarn run:api --help && yarn run:json --help && yarn run:metadata --help && yarn run:monitor --help && yarn run:signer --help && yarn run:vanity --help"
},
"devDependencies": {
"@polkadot/dev": "^0.72.43",
"@types/node": "^18.15.11",
"@polkadot/dev": "^0.73.2",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
},
"resolutions": {
"@polkadot/api": "^10.3.4",
"@polkadot/api-derive": "^10.3.4",
"@polkadot/keyring": "^11.1.3",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/util-crypto": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/api-derive": "^10.4.1",
"@polkadot/keyring": "^12.0.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"@polkadot/util-crypto": "^12.0.1",
"typescript": "^5.0.4"
}
}
16 changes: 8 additions & 8 deletions packages/api-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "A commandline API interface for interacting with a chain",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/api-cli#readme",
"license": "Apache-2.0",
Expand All @@ -15,22 +15,22 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-api": "./runcli.mjs"
},
"dependencies": {
"@polkadot/api": "^10.3.4",
"@polkadot/keyring": "^11.1.3",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/util-crypto": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/keyring": "^12.0.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"@polkadot/util-crypto": "^12.0.1",
"tslib": "^2.5.0",
"yargs": "^17.7.1"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/api-cli/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/api-cli', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/api-cli', path: 'auto', type: 'auto', version: '0.54.0' };
5 changes: 3 additions & 2 deletions packages/api-cli/src/runcli.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Copyright 2018-2023 @polkadot/api-cli authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { SubmittableResult } from '@polkadot/api';
import type { ApiOptions, SignerOptions } from '@polkadot/api/types';
import type { KeyringPair } from '@polkadot/keyring/types';
import type { Hash } from '@polkadot/types/interfaces';
Expand All @@ -11,7 +12,7 @@ import fs from 'node:fs';
import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

import { ApiPromise, SubmittableResult, WsProvider } from '@polkadot/api';
import { ApiPromise, WsProvider } from '@polkadot/api';
import { Keyring } from '@polkadot/keyring';
import { assert, isCodec, stringify } from '@polkadot/util';

Expand Down Expand Up @@ -197,7 +198,7 @@ async function getCallInfo (): Promise<CallInfo> {
log: (result: SubmittableResult | Codec | ApiCallFn): void =>
console.log(stringify({
[method]: isCodec(result)
? (result as Codec).toHuman()
? result.toHuman()
: result
}, 2)),
method,
Expand Down
16 changes: 8 additions & 8 deletions packages/json-serve/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "A JSON API endpoint server",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/json-serve#readme",
"license": "Apache-2.0",
Expand All @@ -15,17 +15,17 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-json-serve": "./runcli.mjs"
},
"dependencies": {
"@polkadot/api": "^10.3.4",
"@polkadot/api-augment": "^10.3.4",
"@polkadot/api-derive": "^10.3.4",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/api-augment": "^10.4.1",
"@polkadot/api-derive": "^10.4.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"koa": "^2.14.2",
"koa-route": "^3.2.0",
"tslib": "^2.5.0",
Expand All @@ -34,7 +34,7 @@
"devDependencies": {
"@types/koa": "^2.13.6",
"@types/koa-route": "^3.2.5",
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/json-serve/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/json-serve', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/json-serve', path: 'auto', type: 'auto', version: '0.54.0' };
14 changes: 7 additions & 7 deletions packages/metadata-cmp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "Compares metadata from 2 sources",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/metadata-cmp#readme",
"license": "Apache-2.0",
Expand All @@ -15,21 +15,21 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-metadata-cmp": "./runcli.mjs"
},
"dependencies": {
"@polkadot/api": "^10.3.4",
"@polkadot/keyring": "^11.1.3",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/keyring": "^12.0.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"tslib": "^2.5.0",
"yargs": "^17.7.1"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/metadata-cmp/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/metadata-cmp', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/metadata-cmp', path: 'auto', type: 'auto', version: '0.54.0' };
3 changes: 2 additions & 1 deletion packages/metadata-cmp/src/runcli.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
// Copyright 2018-2023 @polkadot/metadata-cmp authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { Metadata } from '@polkadot/types';
import type { RuntimeVersion, StorageEntryMetadataLatest } from '@polkadot/types/interfaces';
import type { Registry } from '@polkadot/types/types';

import yargs from 'yargs';
import { hideBin } from 'yargs/helpers';

import { ApiPromise, WsProvider } from '@polkadot/api';
import { expandMetadata, Metadata } from '@polkadot/types';
import { expandMetadata } from '@polkadot/types';
import { getSiName } from '@polkadot/types/metadata/util';
import { unwrapStorageType } from '@polkadot/types/util';
import { assert, stringCamelCase } from '@polkadot/util';
Expand Down
12 changes: 6 additions & 6 deletions packages/monitor-rpc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "A simple monitor via RPC",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/monitor-rpc#readme",
"license": "Apache-2.0",
Expand All @@ -15,15 +15,15 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-monitor": "./runcli.mjs"
},
"dependencies": {
"@polkadot/api": "^10.3.4",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"koa": "^2.14.2",
"koa-route": "^3.2.0",
"tslib": "^2.5.0",
Expand All @@ -32,7 +32,7 @@
"devDependencies": {
"@types/koa": "^2.13.6",
"@types/koa-route": "^3.2.5",
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/monitor-rpc/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/monitor-rpc', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/monitor-rpc', path: 'auto', type: 'auto', version: '0.54.0' };
18 changes: 9 additions & 9 deletions packages/signer-cli/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "A commandline signer for offline signature generataion",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/signer-cli#readme",
"license": "Apache-2.0",
Expand All @@ -15,23 +15,23 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-signer": "./runcli.mjs"
},
"dependencies": {
"@polkadot/api": "^10.3.4",
"@polkadot/api-cli": "^0.53.11",
"@polkadot/keyring": "^11.1.3",
"@polkadot/types": "^10.3.4",
"@polkadot/util": "^11.1.3",
"@polkadot/util-crypto": "^11.1.3",
"@polkadot/api": "^10.4.1",
"@polkadot/api-cli": "^0.54.0",
"@polkadot/keyring": "^12.0.1",
"@polkadot/types": "^10.4.1",
"@polkadot/util": "^12.0.1",
"@polkadot/util-crypto": "^12.0.1",
"tslib": "^2.5.0",
"yargs": "^17.7.1"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/signer-cli/src/RawSigner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import type { Signer, SignerResult } from '@polkadot/api/types';
import type { SignerPayloadRaw } from '@polkadot/types/types';

import * as readline from 'readline';
import * as readline from 'node:readline';

import { assert, isHex } from '@polkadot/util';
import { blake2AsHex } from '@polkadot/util-crypto';
Expand Down
2 changes: 1 addition & 1 deletion packages/signer-cli/src/cmdSign.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

import type { KeyringPair } from '@polkadot/keyring/types';

import * as readline from 'readline';
import * as readline from 'node:readline';

import { Keyring } from '@polkadot/keyring';
import { assert, hexToU8a, isHex, u8aToHex } from '@polkadot/util';
Expand Down
2 changes: 1 addition & 1 deletion packages/signer-cli/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/signer-cli', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/signer-cli', path: 'auto', type: 'auto', version: '0.54.0' };
10 changes: 5 additions & 5 deletions packages/vanitygen/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/tools/issues",
"description": "A vanity generator",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/tools/tree/master/packages/vanitygen#readme",
"license": "Apache-2.0",
Expand All @@ -15,19 +15,19 @@
},
"sideEffects": false,
"type": "module",
"version": "0.53.11",
"version": "0.54.0",
"main": "index.js",
"bin": {
"polkadot-js-vanitygen": "./runcli.mjs"
},
"dependencies": {
"@polkadot/util": "^11.1.3",
"@polkadot/util-crypto": "^11.1.3",
"@polkadot/util": "^12.0.1",
"@polkadot/util-crypto": "^12.0.1",
"tslib": "^2.5.0",
"yargs": "^17.7.1"
},
"devDependencies": {
"@types/node": "^18.15.11",
"@types/node": "^18.15.13",
"@types/yargs": "^17.0.24"
}
}
2 changes: 1 addition & 1 deletion packages/vanitygen/src/packageInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

// Do not edit, auto-generated by @polkadot/dev

export const packageInfo = { name: '@polkadot/vanitygen', path: 'auto', type: 'auto', version: '0.53.11' };
export const packageInfo = { name: '@polkadot/vanitygen', path: 'auto', type: 'auto', version: '0.54.0' };
Loading

0 comments on commit 710d150

Please sign in to comment.