Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump dev (w/ Node 16+ only) #1813

Merged
merged 3 commits into from
Apr 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Changes:
- Adjust `isCodec` helper with closer API alignment
- Initial steps to multi-language bip39 support
- Upgrade dependencies to latest stable versions
- Drop support for Node 14 (EOL 30 Apr 2023)


## 11.1.3 Apr 1, 2023
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@
"test:one": "polkadot-dev-run-test --env browser"
},
"devDependencies": {
"@polkadot/dev": "^0.72.46",
"@types/node": "^18.15.12"
"@polkadot/dev": "^0.73.1",
"@types/node": "^18.15.13"
},
"resolutions": {
"typescript": "^5.0.4"
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-ledger-transports/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/common/issues",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/hw-ledger-transports#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/hw-ledger/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"author": "Jaco Greeff <jacogr@gmail.com>",
"bugs": "https://github.com/polkadot-js/common/issues",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/hw-ledger#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/keyring/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "Keyring management",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/keyring#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/networks/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A list of all available Substrate networks and their applicable prefixes",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/networks#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/util-crypto/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A collection of useful crypto utilities for @polkadot",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util-crypto#readme",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/util-crypto/src/key/extractSuri.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// Copyright 2017-2023 @polkadot/util-crypto authors & contributors
// SPDX-License-Identifier: Apache-2.0

import { DeriveJunction } from './DeriveJunction.js';
import type { DeriveJunction } from './DeriveJunction.js';

import { keyExtractPath } from './extractPath.js';

export interface ExtractResult {
Expand Down
2 changes: 1 addition & 1 deletion packages/util-crypto/src/key/fromPath.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// SPDX-License-Identifier: Apache-2.0

import type { Keypair, KeypairType } from '../types.js';
import type { DeriveJunction } from './DeriveJunction.js';

import { DeriveJunction } from './DeriveJunction.js';
import { keyHdkdEcdsa } from './hdkdEcdsa.js';
import { keyHdkdEd25519 } from './hdkdEd25519.js';
import { keyHdkdSr25519 } from './hdkdSr25519.js';
Expand Down
3 changes: 1 addition & 2 deletions packages/util-crypto/src/key/hdkdDerive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
// SPDX-License-Identifier: Apache-2.0

import type { Keypair } from '../types.js';

import { DeriveJunction } from './DeriveJunction.js';
import type { DeriveJunction } from './DeriveJunction.js';

export function createSeedDeriveFn (fromSeed: (seed: Uint8Array) => Keypair, derive: (seed: Uint8Array, chainCode: Uint8Array) => Uint8Array): (keypair: Keypair, junction: DeriveJunction) => Keypair {
return (keypair: Keypair, { chainCode, isHard }: DeriveJunction): Keypair => {
Expand Down
2 changes: 1 addition & 1 deletion packages/util-crypto/src/key/hdkdSr25519.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
// SPDX-License-Identifier: Apache-2.0

import type { Keypair } from '../types.js';
import type { DeriveJunction } from './DeriveJunction.js';

import { sr25519DeriveHard } from '../sr25519/deriveHard.js';
import { sr25519DeriveSoft } from '../sr25519/deriveSoft.js';
import { DeriveJunction } from './DeriveJunction.js';

export function keyHdkdSr25519 (keypair: Keypair, { chainCode, isSoft }: DeriveJunction): Keypair {
return isSoft
Expand Down
2 changes: 1 addition & 1 deletion packages/util/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A collection of useful utilities for @polkadot",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/util#readme",
"license": "Apache-2.0",
Expand Down
3 changes: 2 additions & 1 deletion packages/util/src/bn/min.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
// Copyright 2017-2023 @polkadot/util authors & contributors
// SPDX-License-Identifier: Apache-2.0

import type { BN } from './bn.js';

import { createCmp } from '../bi/helpers.js';
import { BN } from './bn.js';

/**
* @name bnMax
Expand Down
2 changes: 1 addition & 1 deletion packages/x-bigint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A cross-environment BigInt replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-bigint#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-bundle/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A bundler helper",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-bundle#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A cross-environment fetch replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-fetch#readme",
"license": "Apache-2.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/x-global/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A cross-environment global replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-global#readme",
"license": "Apache-2.0",
Expand Down
5 changes: 1 addition & 4 deletions packages/x-randomvalues/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A cross-environment window.crypto.getRandomValues replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-randomvalues#readme",
"license": "Apache-2.0",
Expand All @@ -30,8 +30,5 @@
},
"peerDependencies": {
"@polkadot/util": "11.1.4-16-x"
},
"denoDependencies": {
"crypto": "std@0.161.0/node/crypto.ts"
}
}
2 changes: 1 addition & 1 deletion packages/x-randomvalues/src/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/x-randomvalues authors & contributors
// SPDX-License-Identifier: Apache-2.0

import crypto from 'crypto';
import crypto from 'node:crypto';

export { packageInfo } from './packageInfo.js';

Expand Down
5 changes: 1 addition & 4 deletions packages/x-textdecoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A TextDecoder replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textdecoder#readme",
"license": "Apache-2.0",
Expand All @@ -22,8 +22,5 @@
"dependencies": {
"@polkadot/x-global": "11.1.4-16-x",
"tslib": "^2.5.0"
},
"denoDependencies": {
"util": "std@0.161.0/node/util.ts"
}
}
2 changes: 1 addition & 1 deletion packages/x-textdecoder/src/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0

import util from 'util';
import util from 'node:util';

import { extractGlobal } from '@polkadot/x-global';

Expand Down
5 changes: 1 addition & 4 deletions packages/x-textencoder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A TextDecoder replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-textencoder#readme",
"license": "Apache-2.0",
Expand All @@ -22,8 +22,5 @@
"dependencies": {
"@polkadot/x-global": "11.1.4-16-x",
"tslib": "^2.5.0"
},
"denoDependencies": {
"util": "std@0.161.0/node/util.ts"
}
}
2 changes: 1 addition & 1 deletion packages/x-textencoder/src/node.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// Copyright 2017-2023 @polkadot/x-textencoder authors & contributors
// SPDX-License-Identifier: Apache-2.0

import util from 'util';
import util from 'node:util';

import { extractGlobal } from '@polkadot/x-global';

Expand Down
2 changes: 1 addition & 1 deletion packages/x-ws/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"bugs": "https://github.com/polkadot-js/common/issues",
"description": "A cross-environment WebSocket replacement",
"engines": {
"node": ">=14"
"node": ">=16"
},
"homepage": "https://github.com/polkadot-js/common/tree/master/packages/x-ws#readme",
"license": "Apache-2.0",
Expand Down
Loading