Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
RenanLorijola committed Oct 29, 2023
1 parent 290f5e8 commit 19ea72b
Show file tree
Hide file tree
Showing 12 changed files with 2,225 additions and 2,416 deletions.
50 changes: 23 additions & 27 deletions apps/container/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,36 @@
"lint:fix": "vue-cli-service lint --fix"
},
"dependencies": {
"@amcharts/amcharts5": "^5.4.1",
"@mdi/font": "^7.2.96",
"@tanstack/query-core": "^5.0.0-rc.4",
"@tanstack/vue-query": "5.0.0-rc.4",
"@types/react": "^18.2.24",
"@types/react-dom": "^18.2.8",
"axios": "^1.5.1",
"core-js": "3.32.2",
"element-plus": "2.3.14",
"msw": "^1.3.2",
"@amcharts/amcharts5": "^5.5.2",
"@mdi/font": "^7.3.67",
"@tanstack/query-core": "^5.0.5",
"@tanstack/vue-query": "5.4.1",
"axios": "^1.6.0",
"core-js": "3.33.1",
"element-plus": "2.4.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"services": "*",
"stores": "*",
"utils": "*",
"vue": "3.3.4",
"dayjs": "^1.11.9",
"vue": "3.3.7",
"dayjs": "^1.11.10",
"lodash.debounce": "^4.0.8",
"vue-router": "4.2.5",
"vue-zustand": "^0.6.0",
"vuetify": "3.3.20",
"vuetify": "3.3.23",
"highcharts": "^11.1.0",
"highcharts-vue": "^1.4.3"
},
"devDependencies": {
"@babel/plugin-transform-private-methods": "^7.22.5",
"@babel/preset-env": "^7.22.20",
"@testing-library/jest-dom": "^6.1.3",
"@babel/preset-env": "^7.23.2",
"@testing-library/jest-dom": "^6.1.4",
"@testing-library/user-event": "^14.5.1",
"@testing-library/vue": "^7.0.0",
"@types/lodash.debounce": "^4.0.7",
"@typescript-eslint/eslint-plugin": "6.7.4",
"@typescript-eslint/parser": "6.7.4",
"@types/lodash.debounce": "^4.0.8",
"@typescript-eslint/eslint-plugin": "6.9.0",
"@typescript-eslint/parser": "6.9.0",
"@vitejs/plugin-vue": "^4.4.0",
"@vitest/coverage-v8": "^0.34.6",
"@vue/cli-plugin-babel": "5.0.8",
Expand All @@ -55,19 +52,18 @@
"@vue/cli-service": "5.0.8",
"@vue/eslint-config-typescript": "12.0.0",
"@vue/test-utils": "2.4.1",
"eslint": "8.50.0",
"eslint-config-prettier": "9.0.0",
"eslint-plugin-prettier": "5.0.0",
"eslint-plugin-vue": "9.17.0",
"eslint-plugin-vue": "9.18.1",
"husky": "8.0.3",
"jsdom": "^22.1.0",
"lint-staged": "14.0.1",
"prettier": "3.0.3",
"sass": "1.68.0",
"sass-loader": "13.3.2",
"lint-staged": "15.0.2",
"typescript": "5.2.2",
"vitest": "^0.34.6",
"types": "*"
"msw": "^2.0.1",
"sass": "1.69.5",
"sass-loader": "13.3.2",
"types": "*",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14"
},
"gitHooks": {
"pre-commit": "lint-staged"
Expand Down
10 changes: 3 additions & 7 deletions apps/container/src/mocks/handlers.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
import { rest } from 'msw';
import { http, HttpResponse } from 'msw';
import { user } from './users';
import { enrollments } from './enrollments';

const baseUrl = 'https://api.ufabcnext.com/v1';

export const handlers = [
rest.get(`${baseUrl}/users/info`, (req, res, ctx) =>
res(ctx.status(200), ctx.json(user)),
),
rest.get(`${baseUrl}/enrollments`, (req, res, ctx) =>
res(ctx.status(200), ctx.json(enrollments)),
),
http.get(`${baseUrl}/users/info`, () => HttpResponse.json(user)),
http.get(`${baseUrl}/enrollments`, () => HttpResponse.json(enrollments)),
];
34 changes: 6 additions & 28 deletions apps/container/src/views/History/HistoryView.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
import { HistoryView } from '.';
import { enrollments } from '@/mocks/enrollments';
import { server } from '@/mocks/server';
import { rest } from 'msw';
import { http, HttpResponse } from 'msw';

describe('<CenteredLoading />', () => {
test('render a loading before show subjects table', async () => {
Expand All @@ -19,11 +19,7 @@ describe('<CenteredLoading />', () => {
expect(screen.getByText(/disciplinas cursadas/i)).toBeInTheDocument();
});
test('show install extension warning if 0 enrollments', async () => {
server.use(
rest.get(`*/enrollments`, (_req, res, ctx) =>
res(ctx.status(200), ctx.json([])),
),
);
server.use(http.get(`*/enrollments`, () => HttpResponse.json([])));
render(HistoryView);
expect(screen.getByLabelText('Carregando')).toBeInTheDocument();
expect(
Expand All @@ -32,22 +28,17 @@ describe('<CenteredLoading />', () => {
});
test('show install extension warning if only 1 enrollment', async () => {
server.use(
rest.get(`*/enrollments`, (_req, res, ctx) =>
res(ctx.status(200), ctx.json([enrollments[0]])),
),
http.get(`*/enrollments`, () => HttpResponse.json([enrollments[0]])),
);
render(HistoryView);
expect(screen.getByLabelText('Carregando')).toBeInTheDocument();
expect(await screen.findByText(/disciplina cursada/i)).toBeInTheDocument();
});
test('show alert error if only one 5xx request happens', async () => {
test('show alert error if 5xx request happens', async () => {
server.use(
rest.get(`*/users/info`, (_req, res, ctx) => res(ctx.status(500))),
http.get(`*/users/info`, () => HttpResponse.json(null, { status: 500 })),
);
render(HistoryView, {
// disable retry

});
render(HistoryView);
expect(
await screen.findByText(enrollments[0].disciplina),
).toBeInTheDocument();
Expand All @@ -57,19 +48,6 @@ describe('<CenteredLoading />', () => {
),
).toBeInTheDocument();
});
test('show alert errors if 5xx request happens', async () => {
server.use(
rest.get(`*/enrollments`, (_req, res, ctx) => res(ctx.status(500))),
rest.get(`*/users/info`, (_req, res, ctx) => res(ctx.status(500))),
);
render(HistoryView);
await waitForElementToBeRemoved(screen.queryByLabelText('Carregando'));
expect(
await screen.findAllByText(
/Não foi possível buscar as informações, tente novamente mais tarde/i,
),
).toHaveLength(2);
});
test('open extension dialog when click on extension button then close it', async () => {
const user = userEvent.setup();

Expand Down
24 changes: 11 additions & 13 deletions apps/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,21 @@
"lint:fix": "eslint . --fix"
},
"devDependencies": {
"@babel/core": "^7.22.9",
"@babel/preset-env": "^7.22.9",
"@babel/preset-react": "^7.22.5",
"@types/node": "^20.4.7",
"@types/react": "^18.2.18",
"@types/react-dom": "^18.2.7",
"@babel/core": "^7.23.2",
"@babel/preset-env": "^7.23.2",
"@babel/preset-react": "^7.22.15",
"@types/node": "^20.8.9",
"@types/react": "^18.2.33",
"@types/react-dom": "^18.2.14",
"babel-loader": "^9.1.3",
"css-loader": "^6.8.1",
"eslint": "^8.46.0",
"eslint-config-custom": "*",
"eslint-config-react-ts": "*",
"html-webpack-plugin": "^5.5.3",
"prettier": "^3.0.1",
"react-dom": "^18.2.0",
"ts-loader": "^9.4.4",
"typescript": "^5.1.6",
"webpack": "^5.88.2",
"ts-loader": "^9.5.0",
"typescript": "^5.2.2",
"webpack": "^5.89.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.1"
},
Expand All @@ -35,10 +33,10 @@
},
"engineStrict": true,
"dependencies": {
"@tanstack/react-query": "5.0.0-beta.35",
"@tanstack/react-query": "5.0.5",
"react": "^18.2.0",
"store": "*",
"services": "*",
"zustand": "^4.4.0"
"zustand": "^4.4.4"
}
}
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
"test": "turbo run test"
},
"devDependencies": {
"eslint": "^8.46.0",
"eslint": "^8.52.0",
"eslint-config-custom": "*",
"prettier": "^3.0.0",
"turbo": "1.10.12",
"@commitlint/cli": "17.6.7",
"@commitlint/config-conventional": "17.6.7"
"prettier": "^3.0.3",
"turbo": "1.10.16",
"@commitlint/cli": "18.2.0",
"@commitlint/config-conventional": "18.1.0"
},
"name": "ufabc-next-web",
"packageManager": "[email protected]",
Expand Down
4 changes: 2 additions & 2 deletions packages/eslint-config-custom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"eslint-config-prettier": "^8.10.0",
"eslint-config-turbo": "^1.10.12"
"eslint-config-prettier": "^9.0.0",
"eslint-config-turbo": "^1.10.16"
},
"publishConfig": {
"access": "public"
Expand Down
8 changes: 4 additions & 4 deletions packages/eslint-config-react-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"main": "index.js",
"license": "MIT",
"dependencies": {
"eslint-import-resolver-typescript": "^3.5.5",
"eslint-plugin-import": "^2.28.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-simple-import-sort": "^10.0.0",
"eslint-plugin-unused-imports": "^3.0.0"
Expand Down
2 changes: 1 addition & 1 deletion packages/services/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"eslint-config-custom": "*",
"eslint-config-react-ts": "*",
"tsconfig": "*",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"dependencies": {
"stores": "*",
Expand Down
4 changes: 2 additions & 2 deletions packages/stores/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
"eslint-config-custom": "*",
"eslint-config-react-ts": "*",
"tsconfig": "*",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"dependencies": {
"zustand": "^4.4.0"
"zustand": "^4.4.4"
}
}
2 changes: 1 addition & 1 deletion packages/types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@
"eslint-config-custom": "*",
"eslint-config-react-ts": "*",
"tsconfig": "*",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
}
}
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"eslint-config-custom": "*",
"eslint-config-react-ts": "*",
"tsconfig": "*",
"typescript": "^5.1.6"
"typescript": "^5.2.2"
},
"dependencies": {
"types": "*"
Expand Down
Loading

0 comments on commit 19ea72b

Please sign in to comment.