Skip to content

Commit

Permalink
update to 0.2.8
Browse files Browse the repository at this point in the history
  • Loading branch information
RomeroYang committed Aug 3, 2021
1 parent 64f0f8a commit ffdf9b5
Show file tree
Hide file tree
Showing 11 changed files with 1,617 additions and 375 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ app.*.map.json
!/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages

js_api/node_modules/
js_api/dist/main.js.LICENSE.txt
js_as_extension/node_modules/
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
## [0.2.8] - 20210803

* bump polkadot-js/api v5.3.1
* update webpack 4.x -> 5.x

## [0.2.7] - 20210726

* fix parachain.queryAuctionWithWinners
Expand Down
2 changes: 1 addition & 1 deletion example/pubspec.lock
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ packages:
path: ".."
relative: true
source: path
version: "0.2.6"
version: "0.2.7"
process:
dependency: transitive
description:
Expand Down
7 changes: 2 additions & 5 deletions js_api/.babelrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
{
"presets": [
[ "@babel/preset-env", { "modules": false } ],
"@babel/preset-typescript"
]
"presets": [["@babel/preset-env", { "modules": false }], "@babel/preset-typescript"],
"plugins": ["@babel/plugin-transform-runtime"]
}

36 changes: 2 additions & 34 deletions js_api/dist/main.js

Large diffs are not rendered by default.

31 changes: 17 additions & 14 deletions js_api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@polkawallet/js-api",
"version": "0.2.2",
"version": "0.2.8",
"main": "index.js",
"license": "Apache-2.0",
"keywords": [
Expand All @@ -20,35 +20,38 @@
},
"scripts": {
"clean": "rm -rf dist/*",
"build": "webpack -p --mode production",
"build-dev": "webpack -d --mode development"
"build": "webpack --mode production",
"build-dev": "webpack --mode development"
},
"resolutions": {
"@polkadot/api": "^5.1.1"
"@polkadot/api": "^5.3.1"
},
"dependencies": {
"@polkadot/api": "^5.1.1",
"@polkadot/ui-shared": "0.84.1",
"@polkadot/extension-dapp": "^0.39.1",
"@polkadot/api": "^5.3.1",
"@polkadot/extension-dapp": "^0.39.2",
"@polkadot/ui-shared": "0.84.3",
"@walletconnect/client": "2.0.0-alpha.26",
"bn.js": "^5.1.2",
"oo7-substrate": "^0.8.0",
"process": "^0.11.10",
"secp256k1": "^3.8.0",
"typescript": "^4.1.3"
"typescript": "^4.3.5"
},
"devDependencies": {
"@babel/core": "^7.8.3",
"@babel/polyfill": "^7.8.3",
"@babel/preset-env": "^7.8.3",
"@babel/preset-typescript": "^7.10.4",
"@babel/core": "^7.14.8",
"@babel/plugin-transform-runtime": "^7.14.5",
"@babel/preset-env": "^7.14.8",
"@babel/preset-typescript": "^7.14.5",
"@webpack-cli/info": "^0.2.0",
"@webpack-cli/init": "^0.3.0",
"babel-loader": "^8.0.6",
"crypto-browserify": "^3.12.0",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.9.0",
"eslint-plugin-prettier": "^3.1.2",
"prettier": "^1.19.1",
"webpack": "^4.41.5",
"webpack-cli": "^3.3.10"
"stream-browserify": "^3.0.0",
"webpack": "^5.42.0",
"webpack-cli": "^4.7.2"
}
}
2 changes: 1 addition & 1 deletion js_api/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import "@babel/polyfill";
// import "@babel/polyfill";
import { WsProvider, ApiPromise } from "@polkadot/api";
import { subscribeMessage, getNetworkConst, getNetworkProperties } from "./service/setting";
import keyring from "./service/keyring";
Expand Down
7 changes: 7 additions & 0 deletions js_api/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const path = require("path");
const webpack = require("webpack");

const config = {
entry: "./src/index.ts",
Expand All @@ -8,7 +9,13 @@ const config = {
},
resolve: {
extensions: [".ts", ".js", ".mjs", ".json"],
fallback: { crypto: require.resolve("crypto-browserify"), stream: require.resolve("stream-browserify") },
},
plugins: [
new webpack.ProvidePlugin({
process: "process/browser.js",
}),
],
module: {
rules: [
{
Expand Down
Loading

0 comments on commit ffdf9b5

Please sign in to comment.