This commit is contained in:
Jaco Greeff
2020-02-15 10:42:04 +01:00
committed by GitHub
parent 59c9bbec25
commit b2d0c437be
9 changed files with 45 additions and 34 deletions

4
.gitignore vendored
View File

@@ -13,6 +13,10 @@ tmp/
.env.test.local
.env.production.local
.npmrc
.pnp.*
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
cc-test-reporter
lerna-debug.log*
npm-debug.log*

View File

@@ -1,67 +1,71 @@
# 0.20.1
# 1.0.1 Feb 15, 2020
- No functionality changes from 0.20.1. The interfaces here are stable in the current iteration.
# 0.20.1 Jan 30, 2020
- Pull in schnorrkel 0.8.5 for full Substrate 2.x compatibility
# 0.14.1
# 0.14.1 Sep 09, 2019
- No functionality changes at all, everything done is "under the hood" to give the codebase better maintainability
# 0.13.1
# 0.13.1 Jul 20, 2019
- Added an asm.js fallback which is active for React Native via the `"react-native"` entry in `package.json`. Ensure that you run the build step with the `NODE_OPTIONS=--max_old_space_size=8192` flags, since the asm.js bundle is large. (For RN the full command would therefore be `NODE_OPTIONS=--max_old_space_size=8192 npm start`)
# 0.12.1
# 0.12.1 Jul 17, 2019
- Remove deprecated `@polkadot/wasm-schnorrkel` & `@polkadot/wasm-dalek-ed25519` source (all combined in `@polkadot/wasm-crypto`, was kept for historical purposes)
- Security dependency bumps
- Updated Rust `hex-literal` for recent versions of the compiler (used in tests only)
# 0.11.1
# 0.11.1 May 31, 2019
- Security dependency bumps
# 0.10.1
# 0.10.1 May 09, 2019
- w3f/schnorrkel updated to 0.1.1 as per substrate
- Added known subkey signature test (Rust & JS)
# 0.9.1
# 0.9.1 Apr 29, 2019
- Dependency bumps
# 0.8.1
# 0.8.1 Mar 31, 2019
- Pull ed25519 & sr25519 into `@polkadot/wasm-crypto` as well (smaller final size)
- Disable build/publish of `wasm-dalek-ed25519` & `wasm-schnorrkel`
- Improve error messaging, instead of `__wasm_malloc of null`
# 0.7.1
# 0.7.1 Mar 30, 2019
- Fix build scripts to properly attach errors in the log (dropped in 0.6.1)
# 0.6.1
# 0.6.1 Mar 27, 2019
- Log init errors for both non-WebAssembly usage as well as WebAssembly errors
# 0.5.1
# 0.5.1 Mar 23, 2019
- Add password argument to bip39ToSeed
# 0.4.1
# 0.4.1 Mar 23, 2019
- Add bip39ToSeed
# 0.3.1
# 0.3.1 Mar 23, 2019
- Add wasm-dalek-ed25519 for all used crypto there
- Add keccak256
- Try secp256k1 (bloating code, not used atm)
# 0.2.1
# 0.2.1 Mar 20, 2019
- Add basic crypto functions, creation of wasm-crypto package
- blake2, bip39, sha2, xxhash
# 0.1.1
# 0.1.1 Mar 18, 2019
- Initial release

View File

@@ -1,3 +1 @@
module.exports = {
extends: '@polkadot/dev/config/babel'
};
module.exports = require('@polkadot/dev/config/babel');

View File

@@ -7,5 +7,6 @@ module.exports = Object.assign({}, config, {
},
modulePathIgnorePatterns: [
'<rootDir>/packages/wasm-schnorrkel/build'
]
],
resolver: './jest.resolver.js'
});

12
jest.resolver.js Normal file
View File

@@ -0,0 +1,12 @@
// Copyright 2017-2020 @polkadot/util authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
// eslint-disable-next-line @typescript-eslint/no-var-requires
const path = require('path');
module.exports = function resolver (file, config) {
return file.includes('package.json')
? path.join(config.basedir.replace('/src', '/'), file)
: config.defaultResolver(file, config);
};

View File

@@ -9,5 +9,5 @@
"packages": [
"packages/*"
],
"version": "0.20.1"
"version": "1.0.0"
}

View File

@@ -21,7 +21,7 @@
"devDependencies": {
"@babel/core": "^7.8.3",
"@polkadot/dev": "^0.40.16",
"@polkadot/util": "^2.3.0-beta.5",
"@polkadot/util": "^2.3.0-beta.6",
"override-require": "^1.1.1"
}
}

View File

@@ -1,6 +1,6 @@
{
"name": "@polkadot/wasm-crypto",
"version": "0.20.1",
"version": "1.0.0",
"author": "Jaco Greeff <jacogr@gmail.com>",
"files": [
"crypto-polyfill.js",

View File

@@ -2144,13 +2144,12 @@
webpack-cli "^3.3.11"
yargs "^15.1.0"
"@polkadot/util@^2.3.0-beta.5":
version "2.3.0-beta.5"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.3.0-beta.5.tgz#32b097a75dc64ed6b003093fab275a066c08eb86"
integrity sha512-9VOjeaoeWjfqLGvWZvW2UW4yVl6S+87Zec1H1Uj6+Ucc2Szv1AMgkNhuCkgsfILZ05D5aCS/mNPeAl7z6bGPpg==
"@polkadot/util@^2.3.0-beta.6":
version "2.3.0-beta.6"
resolved "https://registry.yarnpkg.com/@polkadot/util/-/util-2.3.0-beta.6.tgz#a1ac033990ac4fdc1049697411879b9f9ca1489e"
integrity sha512-mEFyEou98vBrNHKMUvHmNcHG9PK+4CWYzKAyu9nM6BidM9J82vYILIfyN8SvESUKPH7Xa+ILVD1v0/7o4PZmkg==
dependencies:
"@babel/runtime" "^7.8.4"
"@types/bn.js" "^4.11.6"
bn.js "^5.1.1"
camelcase "^5.3.1"
chalk "^3.0.0"
@@ -2209,13 +2208,6 @@
dependencies:
"@babel/types" "^7.3.0"
"@types/bn.js@^4.11.6":
version "4.11.6"
resolved "https://registry.yarnpkg.com/@types/bn.js/-/bn.js-4.11.6.tgz#c306c70d9358aaea33cd4eda092a742b9505967c"
integrity sha512-pqr857jrp2kPuO9uRjZ3PwnJTjoQy+fcdxvBTvHm6dkmEL9q+hDD/2j/0ELOBPtPnS8LjCX0gI9nbl8lVkadpg==
dependencies:
"@types/node" "*"
"@types/color-name@^1.1.1":
version "1.1.1"
resolved "https://registry.yarnpkg.com/@types/color-name/-/color-name-1.1.1.tgz#1c1261bbeaa10a8055bbc5d8ab84b7b2afc846a0"