-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update all projects dependencies (#1775)
* Update all projects dependencies ## Project - Remove `@babel/core` - Remove `@babel/preset-env` - Remove `@babel/preset-typescript` - `eslint` - Fix [`@typescript-eslint/no-this-alias`](https://typescript-eslint.io/rules/no-this-alias/) lint rule - Fix [`unicorn/prefer-node-protocol`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md) lint rule (add `node:` prefix for built-in modules) - Move `.eslintignore` inside config with `ignorePatterns` - Update config annotations - Use `ESLINT_USE_FLAT_CONFIG=false` in `pnpm` scripts ## `cli` - Add `node:` prefix for built-in modules (e.g. `node:fs`) - Remove `dockerode` - Remove `tern` - Upgrade `moduleResolution` to `bundler`, `module` to `ESNext` and `target` to `ESNext` making it an ESM module - `binary-install-raw` - Replace with `binary-install` - `chokidar` - Import type `FSWatcher` as namespace no longer available - Remove `await` for `onTrigger` as it's no longer async - `http-ipfs-client` - Migrate from `http-ipfs-client` to `kubo-rpc-client` with dynamic import as it's ESM only[^1] - Make `createCompiler` async due to dynamic import - `immutable` - `Map([ [ 'k', 'v' ] ])` or `Map({ k: 'v' })` instead of `Map.of`[^2] - Replace `immutable.Collection<ProtocolName, string[]>` with `immutable.Collection<ProtocolName, immutable.List<string>>` - `js-yaml` - Replace `safe*` variants with `load`/`loadall`/`dump`[^3] - `oclif/core` - Use `gluegun.prompt` instead of `ux.prompt`[^4] - Fix `prompt` variable assignments from object destructuring (thanks @YaroShkvorets) - Migrate to ESM[^5] - `sync-request` - Replace with async `fetch` call[^6] - Make `generateTypes` async and update NEAR test snapshot - `vitest` - Remove `concurrent` for tests using the file system - `web3-eth-abi` - Import `decodeLogs` method directly as there is no more default export - `yaml` - Remove `strOptions`[^7] ## `ts` - Remove `common/eager_offset.ts` - `assemblyscript/asc` - Use `assemblyscript/asc` as import - `asc.main` no longer as callback for error, uses stderr and is async[^8] - Remove `asc.ready`[^9] - Remove `ascMain` in `package.json`[^10] - Replace `Promise.allSettled` with for loop in tests for resolving WASM generation promises in sequence (prevent WASM file corruption since they use same file `outputWasmPath`). - Silence warning 235 on compilation about exports[^11] ## `website` - Fix `eslint` config ## Examples - `ethereum-basic-event-handlers` - Fix `chai` max version to `4.x.x` as `chai 5.x.x` is ESM and `hardhat` doesn't support ESM Typescript projects yet[^12] - Rename `ethers.BaseContract.address` to `ethers.BaseContract.target` - Remove `@nomiclabs/hardhat-ethers` - Remove `@nomiclabs/hardhat-etherscan` - Remove `@typechain/ethers-v5` - Remove `@typechain/hardhat` - Remove `ethers` - Remove `hardhat-gas-reporter` - Remove `solidity-coverage` - Remove `typechain` [^1]: ipfs/helia#157 [^2]: https://github.com/immutable-js/immutable-js/blob/b3a1c9f13880048d744366ae561c39a34b26190a/CHANGELOG.md#breaking-changes [^3]: https://github.com/nodeca/js-yaml/blob/0d3ca7a27b03a6c974790a30a89e456007d62976/migrate_v3_to_v4.md#safeload-safeloadall-safedump--load-loadall-dump [^4]: oclif/core#999 [^5]: https://oclif.io/docs/esm/ [^6]: https://www.npmjs.com/package/sync-request [^7]: eemeli/yaml#235 [^8]: https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.20.0 [^9]: https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.20.0 [^10]: https://github.com/AssemblyScript/assemblyscript/releases/tag/v0.20.0 [^11]: AssemblyScript/assemblyscript#2277 [^12]: https://hardhat.org/hardhat-runner/docs/advanced/using-esm#esm-and-typescript-projects --------- Co-authored-by: YaroShkvorets <[email protected]>
- Loading branch information
1 parent
7d18704
commit 7faa309
Showing
160 changed files
with
9,937 additions
and
19,287 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'@graphprotocol/graph-cli': minor | ||
'@graphprotocol/graph-ts': minor | ||
--- | ||
|
||
Update all dependencies |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -82,4 +82,4 @@ tmp | |
|
||
*.wasm | ||
|
||
.idea | ||
.idea |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
"@theguild/prettier-config" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
import path from 'node:path'; | ||
import { fileURLToPath } from 'node:url'; | ||
import { FlatCompat } from '@eslint/eslintrc'; | ||
import js from '@eslint/js'; | ||
|
||
// needed to extend the guild config | ||
const __filename = fileURLToPath(import.meta.url); | ||
const __dirname = path.dirname(__filename); | ||
const compat = new FlatCompat({ | ||
baseDirectory: __dirname, | ||
recommendedConfig: js.configs.recommended, | ||
allConfig: js.configs.all, | ||
}); | ||
|
||
export default [ | ||
{ | ||
ignores: [ | ||
'**/dist', | ||
'packages/cli/tests/cli/validation', | ||
'packages/ts/test/', | ||
'**/examples', | ||
'**/vitest.config.ts', | ||
], | ||
}, | ||
...compat.extends('@theguild'), | ||
{ | ||
rules: { | ||
'import/extensions': 'off', | ||
'unicorn/no-array-push-push': 'off', | ||
'import/no-default-export': 'off', | ||
'@typescript-eslint/no-explicit-any': 'off', | ||
eqeqeq: 'off', | ||
'@typescript-eslint/no-unused-vars': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['packages/ts/**'], | ||
|
||
rules: { | ||
'@typescript-eslint/no-namespace': 'off', | ||
'sonarjs/no-inverted-boolean-check': 'off', | ||
}, | ||
}, | ||
{ | ||
files: ['packages/cli/**'], | ||
|
||
rules: { | ||
'no-restricted-imports': [ | ||
'error', | ||
{ | ||
patterns: [ | ||
{ | ||
group: ['@whatwg-node/fetch'], | ||
message: 'Please use `fetch` from `./packages/cli/src/fetch.ts`.', | ||
}, | ||
], | ||
}, | ||
], | ||
}, | ||
}, | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.