-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update non-major-dev-dependencies #367
Conversation
e5e734e
to
7424637
Compare
e4a4f31
to
f4c1ac5
Compare
@@ -57,12 +57,7 @@ | |||
"@total-typescript/ts-reset": "^0.5.1", | |||
"@types/jest": "^29.5.12", | |||
"@types/lodash": "^4.17.7", | |||
"@types/node": "^20.14.14", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've removed the ESLint dependencies because they should be downloaded by installing the @api3/commons-eslint package. This doesn't seem to break anything so I think it's fine.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except CI failed linting 🙁 Looks to because of new jest formatting rules in v28.8.0 of eslint-plugin-jest
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since all the new rules referenced above were all fixable with --fix
I went ahead and applied those, but I imagine we'd have to apply the fix for every repo we have, so we could also decide to disable padding-around-all
upstream in our eslint-plugin-commons
.
50d9f5d
to
b7d8e4d
Compare
else resolve(result); | ||
}); | ||
}), | ||
(async (): Promise<Awaited<ReturnType<typeof processBatch>>> => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made these changes in response to an issue caused by upgrading @total-typescript/ts-reset from version 0.5.1 to 0.6.1, which resulted in TypeScript compilation errors. The update introduced stricter type-checking that required a more explicit approach to handling types and promises.
This immediately invoked function approach also improves code readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
TBH: I'm not a huge fan of IIFE in regards to readability.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. So, would you prefer to use previous approach or do you have better suggestion on this? I can change this.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nah, I think it's not worth to change this. I think I'd prefer the previous approach (but not sure what was the TS issue there).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mostly wanted express my opinion on that.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but not sure what was the TS issue there
The error was for this part:
error: src/update-feeds-loops/update-feeds-loops.ts:230:45 - error TS2349: This expression is not callable.
Each member of the union type '{ <TResult1 = { signedApiUrlsFromConfig: string[]; signedApiUrlsFromContract: string[]; beaconIds: 0x${string}[]; successCount: number; errorCount: number; }, TResult2 = never>(onfulfilled?: ((value: { signedApiUrlsFromConfig: string[]; signedApiUrlsFromContract: string[]; beaconIds: 0x${string}[]; successCount:...' has signatures, but none of those signatures are compatible with each other.
230 return processFirstBatchPromise.then((result) => {
~~~~
src/update-feeds-loops/update-feeds-loops.ts:230:51 - error TS7006: Parameter 'result' implicitly has an 'any' type.
230 return processFirstBatchPromise.then((result) => {
~~~~~~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mhh, strange. Just from the looks of it I don't know what is wrong. But I think you're solution is good OK, so wouldn't bother investigating further.
@@ -183,7 +183,7 @@ export const runUpdateFeeds = async (providerName: string, chain: Chain, chainId | |||
provider, | |||
chainId, | |||
firstBatchBlockNumber | |||
).catch((error) => error); | |||
).catch((error: any) => error); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In new version 0.6.1 of @total-typescript/ts-reset
, catch resolves output as unknown rather than any.
This PR contains the following updates:
^3.0.6
->^3.0.8
^0.5.1
->^0.6.1
^20.14.14
->^20.16.3
^2.29.1
->^2.30.0
^28.7.0
->^28.8.2
^2.22.8
->^2.22.10
^9.1.4
->^9.1.5
^29.2.4
->^29.2.5
Release Notes
nomicfoundation/hardhat (@nomicfoundation/hardhat-ethers)
v3.0.8
Compare Source
A small bug fix release to fix the Hardhat peer dependency entry in the published
package.json
that was corrupted by pnpm in the previous release.Changes
efa905d
: Fix for corrupted Hardhat peer dependency version from pnpm.v3.0.7
Compare Source
A small bug fix release to help when running against Erigon where the
eth_accounts
RPC call is deprecated.Changes
93b30d5
: Fix forgetSigners
against networks whereeth_accounts
is deprecated.total-typescript/ts-reset (@total-typescript/ts-reset)
v0.6.1
Patch Changes
757be40
: Fixed a bug where creating an empty map would no longer infer types correctly.v0.6.0
Minor Changes
6574858
: Added a rule,/map-constructor
, to defaultMap
toMap<unknown, unknown>
when no arguments are passed to the constructor.Before, you'd get
any
for both key and value types. Now, the result ofMap.get
isunknown
instead ofany
:This now is part of the recommended rules.
5bf3a15
: Added a rule,/promise-catch
, to change thecatch
method to takeunknown
instead ofany
as an argument.Patch Changes
53cee4f
: author: @none23Fixed a bug where running .filter on a union of arrays would not work.
import-js/eslint-plugin-import (eslint-plugin-import)
v2.30.0
Compare Source
Added
dynamic-import-chunkname
]: addallowEmpty
option to allow empty leading comments ([#2942], thanks [@JiangWeixian])dynamic-import-chunkname
]: Allow empty chunk name when webpackMode: 'eager' is set; add suggestions to remove name in eager mode ([#3004], thanks [@amsardesai])no-unused-modules
]: AddignoreUnusedTypeExports
option ([#3011], thanks [@silverwind])Fixed
no-extraneous-dependencies
]: allow wrong path ([#3012], thanks [@chabb])no-cycle
]: use scc algorithm to optimize ([#2998], thanks [@soryy708])no-duplicates
]: Removing duplicates breaks in TypeScript ([#3033], thanks [@yesl-kim])newline-after-import
]: fix considerComments option when require ([#2952], thanks [@developer-bandi])order
]: do not compare first path segment for relative paths ([#2682]) ([#2885], thanks [@mihkeleidast])Changed
no-extraneous-dependencies
: Make glob pattern description more explicit ([#2944], thanks [@mulztob])no-unused-modules
]: add console message to help debug [#2866]ExportMap
: make procedures static instead of monkeypatching exportmap ([#2982], thanks [@soryy708])ExportMap
: separate ExportMap instance from its builder logic ([#2985], thanks [@soryy708])order
: Add a quick note on how unbound imports and --fix ([#2640], thanks [@minervabot])exportMapBuilder
: avoid hoisting ([#2989], thanks [@soryy708])ExportMap
: extract "builder" logic to separate files ([#2991], thanks [@soryy708])order
]: update the description of thepathGroupsExcludedImportTypes
option ([#3036], thanks [@liby])jest-community/eslint-plugin-jest (eslint-plugin-jest)
v28.8.2
Compare Source
Performance Improvements
v28.8.1
Compare Source
Bug Fixes
v28.8.0
Compare Source
Features
eslint-plugin-jest-formatting
(#1563) (74078ee)nomiclabs/hardhat (hardhat)
v2.22.10
: Hardhat v2.22.10Compare Source
This is a small bug fix release to improve
debug
logs during Hardhat Network initialization.Changes
409e99f
: Fixeddebug
logs in Hardhat Network initialization process.46cd7a1
: Removed the experimentalAddHardhatNetworkMessageTraceHook APIv2.22.9
: Hardhat v2.22.9Compare Source
This is a small bug fix release remove a warning message against the local Hardhat node when deploying with Hardhat Ignition.
Changes
6771f00
: Do not sendhttp_setLedgerOutputEnabled
messages beyond the HTTP Provider to prevent unwanted warnings in the logs of the local hardhat nodetypicode/husky (husky)
v9.1.5
Compare Source
kulshekhar/ts-jest (ts-jest)
v29.2.5
Compare Source
Configuration
📅 Schedule: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR was generated by Mend Renovate. View the repository job log.