Skip to content

upgrade all dependencies to latest version #4081

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

Open
wants to merge 80 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 62 commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
581cffd
enable workflows
0oM4R Apr 16, 2025
ef3c4fc
Development audit gridclient (#4062)
0oM4R Apr 22, 2025
5e8d6a8
audit: lerna
0oM4R Apr 22, 2025
b233419
audit: rmb peer server
0oM4R Apr 22, 2025
afdab34
audit: rmb peer client
0oM4R Apr 22, 2025
50062d4
audit:
0oM4R Apr 22, 2025
8fd9c22
audit: types
0oM4R Apr 22, 2025
48be246
Merge branch 'development' of github.com:threefoldtech/tfgrid-sdk-ts …
0oM4R Apr 29, 2025
c1bf062
add stellar sdk to playground
0oM4R Apr 29, 2025
5aa666e
fix playground build
0oM4R Apr 29, 2025
52f96cd
fix stellar sdk upgrde
0oM4R Apr 30, 2025
b5c5ffc
audit graphql client
0oM4R Apr 30, 2025
3a9e85a
audit: upgrade tfchain client deps
0oM4R Apr 30, 2025
6ef32e3
audit: upgrade rmb direct client
0oM4R Apr 30, 2025
74d3d62
audit: fix rmb direct client build
0oM4R Apr 30, 2025
583db85
audit monitoring package
0oM4R Apr 30, 2025
f7a0b5e
update tfchain types
0oM4R Apr 30, 2025
286b02d
audit: stats
0oM4R Apr 30, 2025
e9d7f4e
audit: grid client
0oM4R Apr 30, 2025
8139928
audit http and rmb servers
0oM4R Apr 30, 2025
dd57943
fix playground build
0oM4R Apr 30, 2025
b3f0076
audit(playground): update core deps and fix the related breaking changes
0oM4R May 1, 2025
81b87f0
audit(playground): update build deps and fix the related breaking cha…
0oM4R May 1, 2025
986019d
audit(playground): update build deps and fix the related breaking cha…
0oM4R May 1, 2025
59dc941
audit(playground): update utils, fix related breaking changes
0oM4R May 1, 2025
f268b93
downgrade await lock
0oM4R May 1, 2025
502c29a
restore ruleReturn
0oM4R May 1, 2025
8833469
audit(playground): update remaining deps and fix related breaking cha…
0oM4R May 1, 2025
78c4a46
audit(playground): fix vuetify theme issue
0oM4R May 4, 2025
8eceda4
audit(root): eslint
0oM4R May 4, 2025
f8284c8
eslint upgrade: add new config file
0oM4R May 4, 2025
6df90c2
audit all
0oM4R May 4, 2025
5eb14bc
workflow: use node 20
0oM4R May 4, 2025
cfc3f37
workflows:
0oM4R May 4, 2025
97c3323
remove the old eslint config file
0oM4R May 4, 2025
d246287
audit: remove unused svelte3 eslint plugin
0oM4R May 4, 2025
f43433e
restore git config in gridproxy
0oM4R May 4, 2025
b71ba37
gridclient: fix assigne mycelium to plain text
0oM4R May 5, 2025
c1128c3
Downgrage ESM only packages to support CJS
0oM4R May 5, 2025
7205a2b
TMP force ts ignore
0oM4R May 5, 2025
e62bc68
Merge branch 'development' of github.com:threefoldtech/tfgrid-sdk-ts …
0oM4R May 5, 2025
5be57ea
eslint: fix codacy warnings
0oM4R May 5, 2025
266c718
husky: remove depricated DEPRECATED line
0oM4R May 5, 2025
593b131
eslint: fix codacy warnings
0oM4R May 5, 2025
e749dd6
k8s: fix mycelium assigning issue
0oM4R May 6, 2025
4f77835
mycelium: fix assigning issue
0oM4R May 6, 2025
f424c99
Workloads: add __type property for class serialization and deserializ…
0oM4R May 6, 2025
a2c2c1f
Tests[Workload]:
0oM4R May 6, 2025
fb69de0
Zlogs[workload]: add is string validation
0oM4R May 6, 2025
0ddf02a
Tests[zmachine]: fix class validation issue
0oM4R May 6, 2025
52512fe
Tests[zmachine-light]: fix class validation issue
0oM4R May 6, 2025
7baa6d9
Workloads: remove readonly from __type to be deletable
0oM4R May 6, 2025
54a897f
Deployment: handle class-transformer's discriminator
0oM4R May 6, 2025
48c160d
playground: update skip ts check comment
0oM4R May 7, 2025
43535a6
Tests[Workloads]: remove the deprecated PublicIPV4 tests, and keep th…
0oM4R May 7, 2025
10ea3f3
Merge branch 'development' of github.com:threefoldtech/tfgrid-sdk-ts …
0oM4R May 7, 2025
07edc2f
Husky: remove deprecated install command
0oM4R May 8, 2025
9aac858
update yarn.lock
0oM4R May 11, 2025
d292c43
merge release
0oM4R May 11, 2025
eda079e
merge development
0oM4R May 11, 2025
aa8efc1
merge development
0oM4R May 12, 2025
f78e380
merge development
0oM4R May 18, 2025
f409eab
update workflow and readme to use node 22 lts
0oM4R May 19, 2025
7526d0d
add --transpileOnly to ts-node commands to reduce script run time
0oM4R May 19, 2025
100592e
remove nodeDetails eslint changes
0oM4R May 20, 2025
a8e41fa
remove add_ip eslint changes
0oM4R May 20, 2025
8d42b8f
remove TfFilter eslint changes
0oM4R May 20, 2025
2acab00
remove tfDomainName eslint changes
0oM4R May 20, 2025
0d0f32f
remove create_farm eslint changes
0oM4R May 20, 2025
c45d9f3
remove user_farms eslint changes
0oM4R May 20, 2025
14fa4a3
remove unused vars, added a rule to warn
0oM4R May 20, 2025
8d424c5
merge development
0oM4R May 20, 2025
03ee93a
Chore(Logger): log warnings into console not into logger in dev mode …
0oM4R May 20, 2025
016e75f
Fix(Stellar): update the import in validators
0oM4R May 21, 2025
ef6c34d
fix: add type assertion and null checks for stellar account balances …
0oM4R May 21, 2025
2a4e606
merge development
0oM4R May 22, 2025
371029a
Merge branch 'development' of github.com:threefoldtech/tfgrid-sdk-ts …
0oM4R May 22, 2025
b7383ef
remove solutions view eslint changes
0oM4R May 22, 2025
6be3ff9
remove contracts view eslint changes
0oM4R May 22, 2025
01363a4
remove tests eslint changes
0oM4R May 22, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
70 changes: 0 additions & 70 deletions .eslintrc.json

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,17 @@ on:
push:
branches:
- development
- development_2.7

pull_request:
branches:
- development
- development_2.7

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/grid_client_nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,10 @@ jobs:
with:
ref: refs/tags/v2.6.3

- name: Set up node 18
- name: Set up node 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "yarn"

- name: Install deps
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/grid_client_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up node version
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "yarn"
- name: Install Yggdrasil and Add Peers
run: |
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,18 +7,16 @@ on:
push:
branches:
- development
- development_2.7
pull_request:
branches:
- development
- development_2.7

jobs:
lint:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/mass_deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
- uses: actions/checkout@v4
with:
ref: refs/tags/v2.7.0-rc1
- name: Set up node 18
- name: Set up node 20
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: "yarn"

- name: Install deps
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/playground_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ on:
push:
branches:
- development
- development_2.7
paths:
- "packages/playground/**"
pull_request:
branches:
- development
- development_2.7
paths:
- "packages/playground/**"

Expand All @@ -24,7 +22,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/playground_cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ on:
push:
branches:
- development
- development_2.7
paths:
- "packages/playground/**"
workflow_dispatch:
Expand All @@ -25,7 +24,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/playground_selenium.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Node install
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
- name: Yarn install
run: yarn install
- name: Lerna Build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/stats_build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ name: Stats Build

on:
push:
branches: [development, development_2.7]
branches: [development]
paths:
- "packages/stats/**"
pull_request:
branches: [development, development_2.7]
branches: [development]
paths:
- "packages/stats/**"

Expand All @@ -20,7 +20,7 @@ jobs:

strategy:
matrix:
node-version: [18.x]
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/yarn_audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,9 @@ on:
push:
branches:
- development
- development_2.7
pull_request:
branches:
- development
- development_2.7

jobs:
audit-and-open-issue:
Expand Down
3 changes: 0 additions & 3 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
95 changes: 95 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
import tseslint from "typescript-eslint";
import pluginVue from "eslint-plugin-vue";
import prettierPlugin from "eslint-plugin-prettier";
import simpleImportSort from "eslint-plugin-simple-import-sort";
import globals from "globals";

import { defineConfigWithVueTs, vueTsConfigs } from "@vue/eslint-config-typescript";

// This returns an ARRAY of config objects optimized for Vue+TS
const vueTsGeneratedConfigs = defineConfigWithVueTs(pluginVue.configs["flat/recommended"], vueTsConfigs.recommended, {
rules: {
"@typescript-eslint/no-explicit-any": "warn",
"vue/multi-word-component-names": "warn",
"vue/no-v-text-v-html-on-component": "off",
"@typescript-eslint/no-unused-expressions": "warn",
"@typescript-eslint/no-unused-vars": `warn`,
"@typescript-eslint/no-duplicate-enum-values": "warn",
"vue/no-dupe-keys": "warn",
},
});

// Ensure Vue config is applied last and only to .vue files
const vueConfig = vueTsGeneratedConfigs.map(config => ({
...config,
files: ["**/*.vue"],
}));

export default [
{
ignores: [
".yarn/**",
"**/node_modules/**",
"**/dist/**",
"**/docs/**",
"/packages/rmb_direct_client/lib/types/lib/**",
"packages/stats/public/build/*",
"*.config.*",
"*global.css",
],
},
{
files: ["**/*.{js,ts,tsx}"],
languageOptions: {
ecmaVersion: 2021,
sourceType: "module",
parser: tseslint.parser,
globals: {
// Use a clean copy of globals to avoid any with whitespace
...Object.fromEntries(
Object.entries({
...globals.browser,
...globals.es2021,
...globals.node,
}).map(([key, value]) => [key.trim(), value]),
),
},
},
plugins: {
"@typescript-eslint": tseslint.plugin,
prettier: prettierPlugin,
"simple-import-sort": simpleImportSort,
},
rules: {
...tseslint.configs.eslintRecommended.rules,

"no-console": "off",
"prettier/prettier": "warn",
"simple-import-sort/imports": "warn",

"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"prefer-spread": "warn",
"@typescript-eslint/no-restricted-types": [
"warn",
{
types: {
"{}": "Use `unknown` instead.",
"Function": "Use specific function types instead.",
"Object": "Use `Record<string, unknown>` or specific object types instead.",
"String": "Use `string` instead.",
"Number": "Use `number` instead.",
"Boolean": "Use `boolean` instead.",
},
},
],
"@typescript-eslint/no-empty-object-type": "warn",
"@typescript-eslint/no-unsafe-function-type": "warn",
"@typescript-eslint/no-wrapper-object-types": "warn",
},
},
...vueConfig,
];
38 changes: 18 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,31 +5,29 @@
"packages/*"
],
"devDependencies": {
"@typescript-eslint/eslint-plugin": "^5.58.0",
"@typescript-eslint/parser": "^5.57.0",
"@vue/eslint-config-typescript": "^11.0.2",
"cypress": "^13.1.0",
"eslint": "^8.37.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-cypress": "^2.13.2",
"eslint-plugin-prettier": "^4.2.1",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-svelte3": "^4.0.0",
"eslint-plugin-vue": "^9.10.0",
"husky": "^8.0.3",
"lerna": "8.0.0",
"lint-staged": "^13.2.0",
"prettier": "^2.8.7",
"prettier-plugin-svelte": "^2.10.0"
"@typescript-eslint/eslint-plugin": "^8.31.1",
"@typescript-eslint/parser": "^8.31.1",
"@vue/eslint-config-typescript": "^14.5.0",
"eslint": "^9.26.0",
"eslint-config-prettier": "^10.1.2",
"eslint-plugin-cypress": "^4.3.0",
"eslint-plugin-prettier": "^5.3.1",
"eslint-plugin-simple-import-sort": "^12.1.1",
"eslint-plugin-vue": "^10.1.0",
"husky": "^9.1.7",
"lerna": "8.2.2",
"lint-staged": "^15.5.1",
"prettier": "^3.5.3",
"prettier-plugin-svelte": "^3.3.3"
},
"scripts": {
"prepare": "husky install",
"lint": "eslint -c .eslintrc.json . --fix",
"check-eslint": "eslint -c .eslintrc.json .",
"prepare": "husky",
"lint": "eslint . --fix",
"check-eslint": "eslint .",
"check-prettier": "prettier .prettierrc ."
},
"lint-staged": {
"*.{js,jsx,ts,tsx,css,scss,svelte,vue}": "eslint -c .eslintrc.json --fix",
"*.{js,jsx,ts,tsx,css,scss,svelte,vue}": "eslint --fix",
"*.{js,ts,css,scss,md,svelte,vue,yaml}": "prettier .prettierrc --write"
}
}
Loading
Loading