Adjust spec with references (not able to bump ts 5 as of yet) (#9190)

* Bump to TS 5.0

* Revert TS bump (needs investigation)
This commit is contained in:
Jaco 2023-03-17 08:34:43 +02:00 committed by GitHub
parent f1f2365f1d
commit 2422145a24
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
30 changed files with 83 additions and 30 deletions

View File

@ -68,7 +68,7 @@
"devDependencies": {
"@crustio/crust-pin": "^1.0.0",
"@pinata/sdk": "^2.1.0",
"@polkadot/dev": "^0.72.1",
"@polkadot/dev": "^0.72.9",
"@types/chart.js": "^2.9.37",
"@types/file-saver": "^2.0.5",
"@types/react-beautiful-dnd": "^13.1.3",

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import spec from './spec/index.js';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import fs from 'node:fs';
import { objectSpread } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { assert, isString } from '@polkadot/util';
import { WebSocket } from '@polkadot/x-ws';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { strict as assert } from 'node:assert';
import { isNumber, isString } from '@polkadot/util';

View File

@ -15,7 +15,7 @@
"sideEffects": false,
"version": "0.124.2-161-x",
"dependencies": {
"@polkadot/dev": "^0.72.1",
"@polkadot/dev": "^0.72.9",
"@polkadot/react-components": "^0.124.2-161-x",
"electron-log": "^5.0.0-beta.16",
"electron-updater": "^5.3.0"

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import type { KeyringJson } from '@polkadot/ui-keyring/types';
import * as tmp from 'tmp';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/apps authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import type { KeyringJson } from '@polkadot/ui-keyring/types';
import { RemoteElectronStore } from './remote-electron-store.js';

View File

@ -18,7 +18,7 @@
"dependencies": {
"@polkadot/apps-config": "^0.124.2-161-x",
"@polkadot/apps-routing": "^0.124.2-161-x",
"@polkadot/dev": "^0.72.1",
"@polkadot/dev": "^0.72.9",
"@polkadot/react-api": "^0.124.2-161-x",
"@polkadot/react-components": "^0.124.2-161-x",
"@polkadot/react-hooks": "^0.124.2-161-x",

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/page-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { fireEvent, screen, within } from '@testing-library/react';
import { POLKADOT_GENESIS } from '@polkadot/apps-config';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import '@polkadot/react-components/i18n';
import { fireEvent, render, waitForElementToBeRemoved } from '@testing-library/react';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/page-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { fireEvent, screen, waitFor, within } from '@testing-library/react';
import i18next from '@polkadot/react-components/i18n';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/page-accounts authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { fireEvent, screen, waitForElementToBeRemoved } from '@testing-library/react';
import i18next from '@polkadot/react-components/i18n';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/page-accounts authors & contributors
// Copyright 2017-2023 @polkadot/page-addresses authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { screen } from '@testing-library/react';
import i18next from '@polkadot/react-components/i18n';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-alliance authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { Metadata, TypeRegistry } from '@polkadot/types';
import substrate from '@polkadot/types-support/metadata/static-substrate';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import '@polkadot/react-components/i18n';
import { render } from '@testing-library/react';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import type { SubmittableExtrinsic } from '@polkadot/api/types';
import type { DeriveCollectiveProposal } from '@polkadot/api-derive/types';
import type { BountyIndex, BountyStatus } from '@polkadot/types/interfaces';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { TypeRegistry } from '@polkadot/types/create';
import { BN } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { createAugmentedApi } from '@polkadot/test-support/api/index';
import { BountyFactory } from '@polkadot/test-support/creation/bounties/bountyFactory';
import { BN } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { TypeRegistry } from '@polkadot/types/create';
import { getBountyStatus } from './getBountyStatus.js';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { TypeRegistry } from '@polkadot/types/create';
import { BN } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { truncateTitle } from './stringHelpers.js';
describe('Truncate title', () => {

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { hexToU8a } from '@polkadot/util';
import { publicToAddr, recoverFromJSON } from './util.js';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-democracy authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { calcPassing } from '@polkadot/api-derive/democracy/util';
import { TypeRegistry } from '@polkadot/types/create';
import { BN } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-referenda authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import type { PalletReferendaCurve } from '@polkadot/types/lookup';
import type { BN } from '@polkadot/util';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/react-api authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import fs from 'fs';
import path from 'path';
import process from 'process';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/app-bounties authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import React, { Suspense } from 'react';
import { ThemeProvider } from 'styled-components';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { fireEvent, render, screen, waitFor } from '@testing-library/react';
import React, { Suspense } from 'react';
import { ThemeProvider } from 'styled-components';

View File

@ -1,6 +1,8 @@
// Copyright 2017-2023 @polkadot/react-components authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@polkadot/dev-test/globals" />
import { stringify } from '@polkadot/util';
import { getMemoValue, isDifferent } from './useMemoValue.js';

View File

@ -1722,7 +1722,7 @@ __metadata:
version: 0.0.0-use.local
resolution: "@polkadot/apps-electron@workspace:packages/apps-electron"
dependencies:
"@polkadot/dev": ^0.72.1
"@polkadot/dev": ^0.72.9
"@polkadot/react-components": ^0.124.2-161-x
"@types/react-dom": ^18.0.11
"@types/tmp": ^0.2.3
@ -1748,7 +1748,7 @@ __metadata:
dependencies:
"@polkadot/apps-config": ^0.124.2-161-x
"@polkadot/apps-routing": ^0.124.2-161-x
"@polkadot/dev": ^0.72.1
"@polkadot/dev": ^0.72.9
"@polkadot/react-api": ^0.124.2-161-x
"@polkadot/react-components": ^0.124.2-161-x
"@polkadot/react-hooks": ^0.124.2-161-x
@ -1776,32 +1776,34 @@ __metadata:
languageName: unknown
linkType: soft
"@polkadot/dev-test@npm:^0.72.1":
version: 0.72.1
resolution: "@polkadot/dev-test@npm:0.72.1"
"@polkadot/dev-test@npm:^0.72.9":
version: 0.72.9
resolution: "@polkadot/dev-test@npm:0.72.9"
dependencies:
jsdom: ^21.1.1
tslib: ^2.5.0
checksum: ff0fbb8c082f9bdee3e5708287337cdc2f2c2ade92bdcc8ff5910a2d764c40b044e363de92e4079173927c2b15f4af9137e50e9f07b944d51c3fd3764dca84d2
checksum: 8bbd4d5417cdc6ed1ca65af5bc8ec5ff6b26f172e02392cf627efc5093a49e9b6cb58f534fed9c8a997d07d69f1173b382f80210ff0bd4cfb8cbc9306e78180d
languageName: node
linkType: hard
"@polkadot/dev-ts@npm:^0.72.1":
version: 0.72.1
resolution: "@polkadot/dev-ts@npm:0.72.1"
"@polkadot/dev-ts@npm:^0.72.9":
version: 0.72.9
resolution: "@polkadot/dev-ts@npm:0.72.9"
dependencies:
json5: ^2.2.3
tslib: ^2.5.0
typescript: ^4.9.5
checksum: 89d716117904072309fea9662c9e2f8bd0cb06becc2909b613a342141fc32f8ea64ff43ee6c35f8d6b39cf5e4f568cad449d41b491eec5602fd5b3aa58033e97
typescript: ^5.0.2
checksum: 40756eb32e7e72bd16a1d009ac9e11a0fe513df696ff90552af2ac2cea81d60b084015300d39e85e3006678533779ac03b174623f39f745a1b767cf08167ee49
languageName: node
linkType: hard
"@polkadot/dev@npm:^0.72.1":
version: 0.72.1
resolution: "@polkadot/dev@npm:0.72.1"
"@polkadot/dev@npm:^0.72.9":
version: 0.72.9
resolution: "@polkadot/dev@npm:0.72.9"
dependencies:
"@eslint/js": ^8.36.0
"@polkadot/dev-test": ^0.72.1
"@polkadot/dev-ts": ^0.72.1
"@polkadot/dev-test": ^0.72.9
"@polkadot/dev-ts": ^0.72.9
"@rollup/plugin-alias": ^4.0.3
"@rollup/plugin-commonjs": ^24.0.1
"@rollup/plugin-dynamic-import-vars": ^2.0.3
@ -1827,14 +1829,13 @@ __metadata:
eslint-plugin-sort-destructure-keys: ^1.5.0
gh-pages: ^5.0.0
gh-release: ^7.0.2
jsdom: ^21.1.1
madge: ^6.0.0
rollup: ^3.19.1
rollup-plugin-cleanup: ^3.2.1
tap-parser: ^12.0.1
tslib: ^2.5.0
typescript: ^4.9.5
webpack: ^5.76.1
typescript: ^5.0.2
webpack: ^5.76.2
webpack-cli: ^5.0.1
webpack-dev-server: ^4.12.0
webpack-merge: ^5.8.0
@ -1864,7 +1865,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: 55a396d13dc032d8f77c41e2e3857266e364bad99567bed9d209c0f6563052925624326c36a771cbf32ccd6b315039fc318a54da2b932dbbe57034089c798422
checksum: da6e188058e31d8eb11e8547a4e75ae391b6620ce102f9c640c3acf70173c0d8b9f1e5ee0028858e37600575500d753436b5fd583493a14bedabb27f258f692d
languageName: node
linkType: hard
@ -11359,7 +11360,7 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"json5@npm:^2.2.0, json5@npm:^2.2.2":
"json5@npm:^2.2.0, json5@npm:^2.2.2, json5@npm:^2.2.3":
version: 2.2.3
resolution: "json5@npm:2.2.3"
bin:
@ -13714,7 +13715,7 @@ fsevents@~2.3.2:
dependencies:
"@crustio/crust-pin": ^1.0.0
"@pinata/sdk": ^2.1.0
"@polkadot/dev": ^0.72.1
"@polkadot/dev": ^0.72.9
"@types/chart.js": ^2.9.37
"@types/file-saver": ^2.0.5
"@types/react-beautiful-dnd": ^13.1.3
@ -18144,9 +18145,9 @@ fsevents@~2.3.2:
languageName: node
linkType: hard
"webpack@npm:^5.76.1":
version: 5.76.1
resolution: "webpack@npm:5.76.1"
"webpack@npm:^5.76.2":
version: 5.76.2
resolution: "webpack@npm:5.76.2"
dependencies:
"@types/eslint-scope": ^3.7.3
"@types/estree": ^0.0.51
@ -18177,7 +18178,7 @@ fsevents@~2.3.2:
optional: true
bin:
webpack: bin/webpack.js
checksum: b01fe0bc2dbca0e10d290ddb0bf81e807a031de48028176e2b21afd696b4d3f25ab9accdad888ef4a1f7c7f4d41f13d5bf2395b7653fdf3e5e3dafa54e56dab2
checksum: 86db98299a175c371031449c26077e87b33acd8f45de7f7945ed4b9b37c8ca11bc5169af9c44743efccd4d55e08042a3aa3a3bc42aff831309a0821ffbcd395e
languageName: node
linkType: hard