Skip to content

Commit

Permalink
chore: upgrading all dependencies to latest version (FuelLabs#543)
Browse files Browse the repository at this point in the history
  • Loading branch information
arboleya authored Oct 24, 2022
1 parent ba004ff commit fecd78b
Show file tree
Hide file tree
Showing 29 changed files with 1,365 additions and 1,349 deletions.
24 changes: 24 additions & 0 deletions .changeset/calm-spies-impress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"@fuel-ts/abi-coder": patch
"@fuel-ts/address": patch
"@fuel-ts/contract": patch
"@fuel-ts/example-contract": patch
"forc-bin": patch
"fuelchain": patch
"fuels": patch
"@fuel-ts/hasher": patch
"@fuel-ts/hdwallet": patch
"@fuel-ts/keystore": patch
"@fuel-ts/math": patch
"@fuel-ts/merkle-shared": patch
"@fuel-ts/mnemonic": patch
"@fuel-ts/predicate": patch
"@fuel-ts/providers": patch
"@fuel-ts/script": patch
"@fuel-ts/signer": patch
"@fuel-ts/transactions": patch
"typechain-target-fuels": patch
"@fuel-ts/wallet": patch
---

Updating all libraries to their latest version
24 changes: 24 additions & 0 deletions .changeset/smart-jeans-tickle.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
"@fuel-ts/abi-coder": patch
"@fuel-ts/address": patch
"@fuel-ts/contract": patch
"@fuel-ts/example-contract": patch
"forc-bin": patch
"fuelchain": patch
"fuels": patch
"@fuel-ts/hasher": patch
"@fuel-ts/hdwallet": patch
"@fuel-ts/keystore": patch
"@fuel-ts/math": patch
"@fuel-ts/merkle-shared": patch
"@fuel-ts/mnemonic": patch
"@fuel-ts/predicate": patch
"@fuel-ts/providers": patch
"@fuel-ts/script": patch
"@fuel-ts/signer": patch
"@fuel-ts/transactions": patch
"typechain-target-fuels": patch
"@fuel-ts/wallet": patch
---

Upgrading outdated dependencies to latest version
2 changes: 1 addition & 1 deletion .github/actions/ci-setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ runs:
- name: Cache PNPM modules
uses: actions/cache@v3
with:
path: ~/.local/share/pnpm/store/v3
path: ~/.local/share/pnpm/store/v4
key: ${{ runner.os }}-node-${{ inputs.node-version }}-pnpm-${{ inputs.pnpm-version }}-lock-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -138,4 +138,7 @@ Forc.lock

# Ignore forc builds
**/out/debug
**/test-predicate-*/index.ts
**/test-predicate-*/index.ts

# Ignore [local] history directory (VsCode extension)
.history
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,51 +40,51 @@
},
"homepage": "https://github.com/FuelLabs/fuels-ts#readme",
"devDependencies": {
"@changesets/changelog-github": "^0.4.5",
"@changesets/cli": "^2.23.0",
"@ethersproject/bytes": "^5.6.1",
"@changesets/changelog-github": "^0.4.7",
"@changesets/cli": "^2.25.0",
"@ethersproject/bytes": "^5.7.0",
"@jest/types": "28.1.0",
"@types/jest": "27.5.1",
"@types/node": "^14",
"@types/node-fetch": "2",
"@types/node": "^14.18.32",
"@types/node-fetch": "^2.6.2",
"@types/shelljs": "^0.8.11",
"@types/web": "^0.0.65",
"@typescript-eslint/eslint-plugin": "^5.6.0",
"@typescript-eslint/parser": "^5.6.0",
"@typescript-eslint/eslint-plugin": "^5.40.1",
"@typescript-eslint/parser": "^5.40.1",
"conventional-changelog-angular": "^5.0.13",
"dotenv": "^9.0.2",
"eslint": "^8.4.1",
"eslint": "^8.26.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^16.1.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-airbnb-typescript": "^16.2.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-jsdoc": "^37.2.0",
"eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.27.1",
"eslint-plugin-react-hooks": "^4.3.0",
"eslint-plugin-tsdoc": "^0.2.14",
"ethers": "^5.6.5",
"forc-bin": "workspace:*",
"eslint-plugin-import": "^2.26.0",
"eslint-plugin-jsdoc": "^37.9.7",
"eslint-plugin-jsx-a11y": "^6.6.1",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-react": "^7.31.10",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"ethers": "^5.7.2",
"jest": "28.1.0",
"markdownlint": "^0.23.1",
"markdownlint-cli": "^0.27.1",
"node-fetch": "2",
"node-fetch": "^2.6.7",
"npm-run-all": "^4.1.5",
"open": "^8.4.0",
"prettier": "^2.5.1",
"prettier": "^2.7.1",
"shelljs": "^0.8.5",
"ts-generator": "^0.1.1",
"ts-jest": "28.0.2",
"ts-node": "^10.7.0",
"tsup": "^5.12.6",
"turbo": "^1.2.6",
"typedoc": "0.23.0",
"ts-node": "^10.9.1",
"tsup": "^5.12.9",
"turbo": "^1.6.1",
"typedoc": "^0.23.18",
"typedoc-just-the-docs-theme": "^0.0.1",
"typedoc-monorepo-link-types": "^0.0.4",
"typedoc-plugin-markdown": "3.11.12",
"typedoc-plugin-markdown": "^3.13.6",
"typedoc-plugin-sourcefile-url": "^1.0.6",
"typescript": "^4.5.2"
"typescript": "^4.8.4"
}
}
18 changes: 9 additions & 9 deletions packages/abi-coder/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/abi": "^5.4.1",
"@ethersproject/bignumber": "^5.6.2",
"@ethersproject/bytes": "^5.4.0",
"@ethersproject/logger": "^5.4.1",
"@ethersproject/properties": "^5.6.0",
"@ethersproject/sha2": "^5.4.0",
"@ethersproject/strings": "^5.4.0",
"@fuel-ts/math": "workspace:*",
"type-fest": "^2.12.2"
"@ethersproject/abi": "^5.7.0",
"@ethersproject/bignumber": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/logger": "^5.7.0",
"@ethersproject/properties": "^5.7.0",
"@ethersproject/sha2": "^5.7.0",
"@ethersproject/strings": "^5.7.0",
"@fuel-ts/math": "workspace:0.17.0",
"type-fest": "^3.1.0"
},
"scripts": {
"build": "tsup --dts --env.BUILD_VERSION $BUILD_VERSION"
Expand Down
6 changes: 3 additions & 3 deletions packages/address/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.4.0",
"@ethersproject/logger": "^5.4.1",
"@ethersproject/sha2": "^5.5.0",
"@fuel-ts/constants": "workspace:*",
"@fuel-ts/interfaces": "workspace:*",
"@fuel-ts/keystore": "workspace:*",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/logger": "^5.7.0",
"@ethersproject/sha2": "^5.7.0",
"bech32": "^2.0.0"
},
"devDependencies": {
Expand Down
6 changes: 3 additions & 3 deletions packages/contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@
},
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/logger": "^5.5.0",
"@ethersproject/sha2": "^5.6.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/logger": "^5.7.0",
"@ethersproject/sha2": "^5.7.0",
"@fuel-ts/abi-coder": "workspace:*",
"@fuel-ts/address": "workspace:*",
"@fuel-ts/math": "workspace:*",
Expand Down
8 changes: 4 additions & 4 deletions packages/example-contract/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@
},
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.5.0",
"@fuel-ts/wallet": "workspace:*",
"fuels": "workspace:*"
"fuels": "workspace:*",
"@ethersproject/bytes": "^5.7.0"
},
"devDependencies": {
"forc-bin": "workspace:*",
"prettier": "^2.4.1",
"fuelchain": "workspace:*",
"typescript": "^4.5.2"
"prettier": "^2.7.1",
"typescript": "^4.8.4"
}
}
5 changes: 4 additions & 1 deletion packages/forc-bin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@
"bin": {
"forc": "./forc.js"
},
"config": {
"forcVersion": "0.26.0"
},
"dependencies": {
"node-fetch": "2",
"node-fetch": "^2.6.7",
"shelljs": "^0.8.5"
}
}
4 changes: 2 additions & 2 deletions packages/forc-bin/src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ import { getCurrentVersion, getPkgPlatform } from './shared';

(async () => {
const pkgPlatform = getPkgPlatform();
const pkgVersion = await getCurrentVersion();
const forcVersion = await getCurrentVersion();
const pkgName = `forc-binaries-${pkgPlatform}.tar.gz`;
const pkgUrl = `https://github.com/FuelLabs/sway/releases/download/v${pkgVersion}/${pkgName}`;
const pkgUrl = `https://github.com/FuelLabs/sway/releases/download/v${forcVersion}/${pkgName}`;
const pkgPath = path.join(__dirname, pkgName);
const binDir = path.join(__dirname, '../');

Expand Down
11 changes: 7 additions & 4 deletions packages/forc-bin/src/shared.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,18 @@ export const getPkgPlatform = () => {
};

const pkgJsonPath = path.join(__dirname, '../package.json');

export const getCurrentVersion = async () => {
const pkgJson = await fs.readFile(pkgJsonPath, 'utf8');
const version = JSON.parse(pkgJson).version;
return version;
const { forcVersion } = JSON.parse(pkgJson).config;
return forcVersion;
};

export const setCurrentVersion = async (version: string) => {
const pkgJson = await fs.readFile(pkgJsonPath, 'utf8');
const wrap = (v: string) => `"version": "${v}",`;
const { forcVersion } = JSON.parse(pkgJson).config;
const wrap = (v: string) => `"forcVersion": "${v}",`;
// Do a text replacement to not break the formatting
const content = pkgJson.replace(wrap(JSON.parse(pkgJson).version), wrap(version));
const content = pkgJson.replace(wrap(forcVersion), wrap(version));
await fs.writeFile(pkgJsonPath, content);
};
36 changes: 18 additions & 18 deletions packages/fuelchain/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,28 +22,28 @@
"post-build": "ts-node scripts/post-build"
},
"dependencies": {
"@types/prettier": "^2.1.1",
"debug": "^4.3.1",
"fs-extra": "^7.0.0",
"glob": "7.1.7",
"@types/prettier": "^2.7.1",
"debug": "^4.3.4",
"fs-extra": "^10.1.0",
"glob": "8.0.3",
"js-sha3": "^0.8.0",
"lodash": "^4.17.15",
"lodash": "^4.17.21",
"mkdirp": "^1.0.4",
"ts-command-line-args": "^2.2.0",
"prettier": "^2.3.1",
"ts-essentials": "^7.0.1"
"prettier": "^2.7.1",
"ts-command-line-args": "^2.3.1",
"ts-essentials": "^9.3.0"
},
"devDependencies": {
"@types/bluebird": "^3.5.18",
"@types/command-line-args": "^4.0.2",
"@types/debug": "^4.1.5",
"@types/fs-extra": "^5.0.4",
"@types/glob": "^5.0.35",
"@types/lodash": "^4.14.139",
"@types/mkdirp": "^1.0.1",
"@types/node": "^14",
"bluebird": "^3.5.1",
"coveralls": "^3.0.2"
"@types/bluebird": "^3.5.37",
"@types/command-line-args": "^5.2.0",
"@types/debug": "^4.1.7",
"@types/fs-extra": "^9.0.13",
"@types/glob": "^8.0.0",
"@types/lodash": "^4.14.186",
"@types/mkdirp": "^1.0.2",
"@types/node": "^18.11.4",
"bluebird": "^3.7.2",
"coveralls": "^3.1.1"
},
"peerDependencies": {
"typescript": "^4.5.2"
Expand Down
2 changes: 1 addition & 1 deletion packages/fuels/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.6.0",
"@ethersproject/bytes": "^5.7.0",
"@fuel-ts/abi-coder": "workspace:*",
"@fuel-ts/address": "workspace:*",
"@fuel-ts/constants": "workspace:*",
Expand Down
6 changes: 3 additions & 3 deletions packages/hasher/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/sha2": "^5.5.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/sha2": "^5.7.0",
"@fuel-ts/constants": "workspace:*",
"@fuel-ts/math": "workspace:*",
"@fuel-ts/providers": "workspace:*",
Expand All @@ -32,7 +32,7 @@
},
"devDependencies": {
"@fuel-ts/testcases": "workspace:*",
"@types/lodash.clonedeep": "^4.5.6"
"@types/lodash.clonedeep": "^4.5.7"
},
"scripts": {
"build": "tsup --dts"
Expand Down
6 changes: 3 additions & 3 deletions packages/hdwallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/basex": "^5.5.0",
"@ethersproject/bytes": "^5.5.0",
"@ethersproject/sha2": "^5.5.0",
"@ethersproject/basex": "^5.7.0",
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/sha2": "^5.7.0",
"@fuel-ts/math": "workspace:*",
"@fuel-ts/mnemonic": "workspace:*",
"@fuel-ts/signer": "workspace:*"
Expand Down
4 changes: 2 additions & 2 deletions packages/keystore/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.6.1",
"@ethersproject/pbkdf2": "^5.6.0"
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/pbkdf2": "^5.7.0"
},
"scripts": {
"build": "tsup --dts"
Expand Down
2 changes: 1 addition & 1 deletion packages/math/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"build": "tsup --dts"
},
"dependencies": {
"@types/bn.js": "^5.1.0",
"@types/bn.js": "^5.1.1",
"bn.js": "^5.2.1"
}
}
4 changes: 2 additions & 2 deletions packages/merkle-shared/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
],
"license": "Apache-2.0",
"dependencies": {
"@ethersproject/bytes": "^5.4.0",
"@ethersproject/sha2": "^5.4.0"
"@ethersproject/bytes": "^5.7.0",
"@ethersproject/sha2": "^5.7.0"
},
"scripts": {
"build": "tsup --dts"
Expand Down
Loading

0 comments on commit fecd78b

Please sign in to comment.