From f11dcb10dd373f57fab9b748b882ff67adc5c08b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 17 Jan 2025 17:49:29 -0500 Subject: [PATCH] Update dependency typescript to v5 (#231) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Eric Lau --- packages/core-cairo/CHANGELOG.md | 4 ++++ packages/core-cairo/package.json | 2 +- packages/core/CHANGELOG.md | 5 ++++- packages/core/package.json | 2 +- packages/ui/package.json | 2 +- packages/ui/src/post-message.ts | 2 +- tsconfig.base.json | 1 - yarn.lock | 8 ++++---- 8 files changed, 16 insertions(+), 10 deletions(-) diff --git a/packages/core-cairo/CHANGELOG.md b/packages/core-cairo/CHANGELOG.md index 58675b08..9de11ba8 100644 --- a/packages/core-cairo/CHANGELOG.md +++ b/packages/core-cairo/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## Unreleased + +- Update to use TypeScript v5. ([#231](https://github.com/OpenZeppelin/contracts-wizard/pull/231)) + ## 0.21.0 (2025-01-13) - Add Vesting tab. ([#425](https://github.com/OpenZeppelin/contracts-wizard/pull/425)) diff --git a/packages/core-cairo/package.json b/packages/core-cairo/package.json index 1c85b0bf..0d495562 100644 --- a/packages/core-cairo/package.json +++ b/packages/core-cairo/package.json @@ -29,7 +29,7 @@ "ava": "^6.0.0", "rimraf": "^5.0.0", "ts-node": "^10.4.0", - "typescript": "^4.9.0", + "typescript": "^5.0.0", "semver": "^7.6.0" }, "dependencies": { diff --git a/packages/core/CHANGELOG.md b/packages/core/CHANGELOG.md index 62462f58..56ccc1cc 100644 --- a/packages/core/CHANGELOG.md +++ b/packages/core/CHANGELOG.md @@ -2,7 +2,10 @@ ## Unreleased -- Update Contracts Wizard license to AGPLv3. ([#424](https://github.com/OpenZeppelin/contracts-wizard/pull/424)) +- Update to use TypeScript v5. ([#231](https://github.com/OpenZeppelin/contracts-wizard/pull/231)) + +- **Breaking changes**: + - Update Contracts Wizard license to AGPLv3. ([#424](https://github.com/OpenZeppelin/contracts-wizard/pull/424)) ## 0.4.6 (2024-11-20) diff --git a/packages/core/package.json b/packages/core/package.json index c410d8d9..dddd1955 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -35,7 +35,7 @@ "semver": "^7.6.0", "solidity-ast": "^0.4.18", "ts-node": "^10.4.0", - "typescript": "^4.9.0" + "typescript": "^5.0.0" }, "dependencies": { "array.prototype.flatmap": "^1.2.4" diff --git a/packages/ui/package.json b/packages/ui/package.json index 096bdea6..4a713898 100644 --- a/packages/ui/package.json +++ b/packages/ui/package.json @@ -33,7 +33,7 @@ "svelte-preprocess": "^5.0.0", "tailwindcss": "^3.0.15", "tslib": "^2.0.0", - "typescript": "^4.9.0" + "typescript": "^5.0.0" }, "dependencies": { "file-saver": "^2.0.5", diff --git a/packages/ui/src/post-message.ts b/packages/ui/src/post-message.ts index 63d09897..d621a705 100644 --- a/packages/ui/src/post-message.ts +++ b/packages/ui/src/post-message.ts @@ -1,4 +1,4 @@ -import { SolcInputSources } from '@openzeppelin/wizard/get-imports'; +import type { SolcInputSources } from '@openzeppelin/wizard/get-imports'; export type Message = ResizeMessage | TabChangeMessage | UnsupportedVersionMessage | DefenderDeployMessage; diff --git a/tsconfig.base.json b/tsconfig.base.json index e063fe37..8a049330 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -8,7 +8,6 @@ "resolveJsonModule": true, "lib": ["es2019", "es2019.array"], "forceConsistentCasingInFileNames": true, - "importsNotUsedAsValues": "error", "isolatedModules": true }, "ts-node": { diff --git a/yarn.lock b/yarn.lock index 30df9c08..ff0e078d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5605,10 +5605,10 @@ typed-array-length@^1.0.6: is-typed-array "^1.1.13" possible-typed-array-names "^1.0.0" -typescript@^4.9.0: - version "4.9.5" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.9.5.tgz#095979f9bcc0d09da324d58d03ce8f8374cbe65a" - integrity sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g== +typescript@^5.0.0: + version "5.7.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.7.3.tgz#919b44a7dbb8583a9b856d162be24a54bf80073e" + integrity sha512-84MVSjMEHP+FQRPy3pX9sTVV/INIex71s9TL2Gm5FG/WG1SqXeKyZ0k7/blY/4FdOzI12CBy1vGc4og/eus0fw== typescript@^5.0.3: version "5.6.3"