From 319f33bec1ee53a94871beff69d692bf7d17190c Mon Sep 17 00:00:00 2001 From: Jaco Date: Wed, 16 Aug 2023 11:14:44 +0300 Subject: [PATCH] Bump dev (#534) * Bump dev * Adjust linting --- .prettierrc.cjs | 2 +- eslint.config.js | 2 +- package.json | 2 +- packages/wasm-bridge/src/init.ts | 2 +- scripts/pack-wasm-base.mjs | 11 ++++++----- yarn.lock | 30 +++++++++++++++--------------- 6 files changed, 25 insertions(+), 24 deletions(-) diff --git a/.prettierrc.cjs b/.prettierrc.cjs index 41a46231..3de25717 100644 --- a/.prettierrc.cjs +++ b/.prettierrc.cjs @@ -1,4 +1,4 @@ -// Copyright 2017-2023 @polkadot/dev authors & contributors +// Copyright 2017-2023 @polkadot/wasm-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 module.exports = require('@polkadot/dev/config/prettier.cjs'); diff --git a/eslint.config.js b/eslint.config.js index 0a4bd513..64590511 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,4 +1,4 @@ -// Copyright 2017-2023 @polkadot/dev authors & contributors +// Copyright 2017-2023 @polkadot/wasm-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import baseConfig from '@polkadot/dev/config/eslint'; diff --git a/package.json b/package.json index 30645fb6..9bdb695c 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "test:wasm-crypto:rust": "cd packages/wasm-crypto && RUST_BACKTRACE=full cargo test --release -- --test-threads=1 --nocapture" }, "devDependencies": { - "@polkadot/dev": "^0.76.13", + "@polkadot/dev": "^0.76.14", "@polkadot/util": "^12.3.2", "@polkadot/x-randomvalues": "^12.3.2", "@types/node": "^20.5.0", diff --git a/packages/wasm-bridge/src/init.ts b/packages/wasm-bridge/src/init.ts index 2af17505..1205799c 100644 --- a/packages/wasm-bridge/src/init.ts +++ b/packages/wasm-bridge/src/init.ts @@ -1,4 +1,4 @@ -// Copyright 2019-2023 @polkadot/wasm-bundle authors & contributors +// Copyright 2019-2023 @polkadot/wasm-bridge authors & contributors // SPDX-License-Identifier: Apache-2.0 import type { InitFn, InitPromise, InitResult, WasmBaseInstance, WasmImports } from './types.js'; diff --git a/scripts/pack-wasm-base.mjs b/scripts/pack-wasm-base.mjs index 07be14a8..cda3a668 100755 --- a/scripts/pack-wasm-base.mjs +++ b/scripts/pack-wasm-base.mjs @@ -1,4 +1,4 @@ -// Copyright 2019-2023 @polkadot/wasm authors & contributors +// Copyright 2019-2023 @polkadot/wasm-crypto authors & contributors // SPDX-License-Identifier: Apache-2.0 import { zlibSync } from 'fflate/node'; @@ -6,11 +6,12 @@ import fs from 'node:fs'; import { formatNumber } from '@polkadot/util'; -const DIR_DENO = `./${process.env.PKG_NAME}-wasm/build-deno/deno`; -const DIR_CJS = `./${process.env.PKG_NAME}-wasm/build/cjs`; -const HDR = `// Copyright 2019-${new Date().getFullYear()} @polkadot/${process.env.PKG_NAME}-wasm authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Generated as part of the build, do not edit\n`; +const PKG_NAME = process.env['PKG_NAME']; +const DIR_DENO = `./${PKG_NAME}-wasm/build-deno/deno`; +const DIR_CJS = `./${PKG_NAME}-wasm/build/cjs`; +const HDR = `// Copyright 2019-${new Date().getFullYear()} @polkadot/${PKG_NAME}-wasm authors & contributors\n// SPDX-License-Identifier: Apache-2.0\n\n// Generated as part of the build, do not edit\n`; -const data = fs.readFileSync(`./${process.env.PKG_NAME}/build-wasm/wasm_opt.wasm`); +const data = fs.readFileSync(`./${PKG_NAME}/build-wasm/wasm_opt.wasm`); const compressed = Buffer.from(zlibSync(data, { level: 9 })); const base64 = compressed.toString('base64'); diff --git a/yarn.lock b/yarn.lock index a431fbe6..ebcdd9b2 100644 --- a/yarn.lock +++ b/yarn.lock @@ -357,34 +357,34 @@ __metadata: languageName: node linkType: hard -"@polkadot/dev-test@npm:^0.76.13": - version: 0.76.13 - resolution: "@polkadot/dev-test@npm:0.76.13" +"@polkadot/dev-test@npm:^0.76.14": + version: 0.76.14 + resolution: "@polkadot/dev-test@npm:0.76.14" dependencies: jsdom: ^22.1.0 tslib: ^2.6.1 - checksum: dbf2925eea37980ec59b9c49936eae4f38987d6685977428d2897818d3c37f3eb43aa856e5da983f1f15a124b1ad951a950c6fcaa0f93463407803ac508d6892 + checksum: 90865d39f1076ed857f15a5b1d30d69cf405cf3656e0ec536b24c23764f9e8b155efb6f694bf682942614c5cd3234ed3c7a5e8bf05c7bba3b415c558b366dc8c languageName: node linkType: hard -"@polkadot/dev-ts@npm:^0.76.13": - version: 0.76.13 - resolution: "@polkadot/dev-ts@npm:0.76.13" +"@polkadot/dev-ts@npm:^0.76.14": + version: 0.76.14 + resolution: "@polkadot/dev-ts@npm:0.76.14" dependencies: json5: ^2.2.3 tslib: ^2.6.1 typescript: ^5.1.6 - checksum: 9dc8b8bd69522139041f29dd90bbe6ab51c12bbcdf35d6000e7c9c849d82df1d2b1af13c575ff147d9da255d962cd0ac16051118b16f63bb89ce20c49e6ebb19 + checksum: e22db62808ccda3d002ff2c1b798982309900304ae7aee1547f27fc80ab0cf807ecc63782e2a20ed17937365a418da71f22ca784d1909929d8509a9d79a7fddd languageName: node linkType: hard -"@polkadot/dev@npm:^0.76.13": - version: 0.76.13 - resolution: "@polkadot/dev@npm:0.76.13" +"@polkadot/dev@npm:^0.76.14": + version: 0.76.14 + resolution: "@polkadot/dev@npm:0.76.14" dependencies: "@eslint/js": ^8.47.0 - "@polkadot/dev-test": ^0.76.13 - "@polkadot/dev-ts": ^0.76.13 + "@polkadot/dev-test": ^0.76.14 + "@polkadot/dev-ts": ^0.76.14 "@rollup/plugin-alias": ^5.0.0 "@rollup/plugin-commonjs": ^25.0.4 "@rollup/plugin-dynamic-import-vars": ^2.0.5 @@ -449,7 +449,7 @@ __metadata: polkadot-exec-rollup: scripts/polkadot-exec-rollup.mjs polkadot-exec-tsc: scripts/polkadot-exec-tsc.mjs polkadot-exec-webpack: scripts/polkadot-exec-webpack.mjs - checksum: f4233444ecf0c5f8227a0de3a0d78bc350c2d4195b6cf32af9cdb7fcb197676f3b77ebb6de63b93b60ccedd4d3020366a0fca1118f160bdf302ae0bd75f4eeb4 + checksum: 05d8f61a8c7e855061f2849fdbc512b3caad4ba455f7e692656b572d39ef824724131c909856924409f46fde2f9db136763ec030c7cd076ea5cee341d086c07c languageName: node linkType: hard @@ -7210,7 +7210,7 @@ fsevents@~2.3.2: version: 0.0.0-use.local resolution: "root-workspace-0b6124@workspace:." dependencies: - "@polkadot/dev": ^0.76.13 + "@polkadot/dev": ^0.76.14 "@polkadot/util": ^12.3.2 "@polkadot/x-randomvalues": ^12.3.2 "@types/node": ^20.5.0