Skip to content

Commit

Permalink
feat(dependencies): update astro and dev dependencies to latest versions
Browse files Browse the repository at this point in the history
Updated Astro and its related plugins, along with various dev dependencies including Vitest, ESLint, and others to their latest versions for improved stability and compatibility. Removed unused files and references in `src/tests/providers` and `src/env.d.ts`.
  • Loading branch information
everton-dgn committed Jan 26, 2025
1 parent 4cb1de6 commit fca69f7
Show file tree
Hide file tree
Showing 10 changed files with 1,205 additions and 1,219 deletions.
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,63 +31,63 @@
},
"type": "module",
"dependencies": {
"@astrojs/solid-js": "4.4.3",
"@fontsource/poppins": "5.1.0",
"astro": "4.16.13",
"@astrojs/solid-js": "5.0.4",
"@fontsource/poppins": "5.1.1",
"astro": "5.1.9",
"clsx": "2.1.1",
"solid-js": "1.9.3"
"solid-js": "1.9.4"
},
"devDependencies": {
"@astrojs/check": "0.9.4",
"@astrojs/rss": "4.0.9",
"@astrojs/rss": "4.0.11",
"@astrojs/sitemap": "3.2.1",
"@astrojs/ts-plugin": "1.10.4",
"@commitlint/cli": "19.5.0",
"@commitlint/config-conventional": "19.5.0",
"@playwright/test": "1.48.2",
"@commitlint/cli": "19.6.1",
"@commitlint/config-conventional": "19.6.0",
"@playwright/test": "1.50.0",
"@semantic-release/commit-analyzer": "13.0.0",
"@semantic-release/git": "10.0.1",
"@semantic-release/github": "10.1.7",
"@semantic-release/npm": "12.0.1",
"@solidjs/testing-library": "0.8.10",
"@testing-library/dom": "10.4.0",
"@testing-library/jest-dom": "6.6.3",
"@testing-library/user-event": "14.5.2",
"@testing-library/user-event": "14.6.1",
"@types/jsdom-global": "3.0.7",
"@types/node": "22.9.0",
"@types/node": "22.10.10",
"@typescript-eslint/eslint-plugin": "7.16.1",
"@typescript-eslint/parser": "7.16.1",
"@vitest/coverage-v8": "2.1.5",
"@vitest/ui": "2.1.5",
"astro-eslint-parser": "1.1.0",
"@vitest/coverage-v8": "3.0.4",
"@vitest/ui": "3.0.4",
"astro-eslint-parser": "1.2.1",
"cssnano": "7.0.6",
"dotenv": "16.4.5",
"dotenv": "16.4.7",
"eslint": "8.57.0",
"eslint-config-love": "47.0.0",
"eslint-config-prettier": "9.1.0",
"eslint-import-resolver-typescript": "3.6.3",
"eslint-plugin-astro": "1.3.1",
"postcss-preset-env": "10.1.1",
"eslint-plugin-import": "2.31.0",
"eslint-plugin-import-helpers": "2.0.1",
"eslint-plugin-jest": "28.9.0",
"eslint-plugin-import-helpers": "2.0.0",
"eslint-plugin-jest": "28.11.0",
"eslint-plugin-jest-dom": "5.5.0",
"eslint-plugin-jsx-a11y": "6.10.2",
"eslint-plugin-n": "17.13.2",
"eslint-plugin-n": "17.15.1",
"eslint-plugin-playwright": "2.0.1",
"eslint-plugin-prettier": "5.2.1",
"eslint-plugin-promise": "7.1.0",
"eslint-plugin-solid": "0.14.4",
"eslint-plugin-prettier": "5.2.3",
"eslint-plugin-promise": "6.0.0",
"eslint-plugin-solid": "0.14.5",
"eslint-plugin-testing-library": "6.4.0",
"jsdom": "25.0.1",
"jsdom": "26.0.0",
"jsdom-global": "3.0.2",
"lefthook": "1.8.2",
"postcss": "8.4.49",
"lefthook": "1.10.10",
"postcss": "8.5.1",
"postcss-import": "16.1.0",
"postcss-preset-env": "10.1.3",
"prettier": "3.3.3",
"prettier-plugin-astro": "0.14.1",
"semantic-release": "24.1.0",
"typescript": "5.6.3",
"vitest": "2.1.5"
"typescript": "5.5.4",
"vitest": "3.0.4"
}
}
2 changes: 1 addition & 1 deletion src/components/atoms/Button/__tests__/Button.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoot } from 'solid-js'

import { screen } from '@solidjs/testing-library'
import { event } from 'tests/utils'
import { renderWithProviders } from 'tests/providers'
import { renderWithProviders } from 'tests/providers/component'

import { Button } from '..'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { createRoot } from 'solid-js'

import { screen } from '@solidjs/testing-library'
import { event } from 'tests/utils'
import { renderWithProviders } from 'tests/providers'
import { renderWithProviders } from 'tests/providers/component'

import { CounterButton } from '..'

Expand Down
4 changes: 2 additions & 2 deletions src/components/layouts/RootLayout/RootLayout.astro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
import { ViewTransitions } from 'astro:transitions'
import { ClientRouter } from 'astro:transitions'
import { MainProvider } from 'components/providers/MainProvider'
Expand Down Expand Up @@ -28,7 +28,7 @@ const { title, description } = Astro.props
<meta name="generator" content={Astro.generator} />
<meta name="description" content={description} />
<title>{title}</title>
<ViewTransitions fallback="animate" />
<ClientRouter fallback="animate" />
</head>
<body>
<MainProvider>
Expand Down
2 changes: 0 additions & 2 deletions src/env.d.ts

This file was deleted.

2 changes: 1 addition & 1 deletion src/hooks/useCount/__tests__/useCount.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { useCount } from '..'

import { renderHooksProvider } from 'tests/providers'
import { renderHooksProvider } from 'tests/providers/hook'

describe('[Hook] useCount', () => {
it('should increment when call count', async () => {
Expand Down
2 changes: 0 additions & 2 deletions src/tests/providers/index.ts

This file was deleted.

3 changes: 2 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@
"src/**/*.tsx",
"src/**/*.astro",
"./vitest.setup.ts",
"src/@types/**/*.d.ts"
"src/@types/**/*.d.ts",
".astro/types.d.ts",
],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion vitest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const config = getViteConfig({
globals: true,
passWithNoTests: true,
setupFiles: ['./vitest.setup.ts'],
testTransformMode: { web: ['/.tsx?$/'] },
testTransformMode: { web: ['\\.tsx?$'] },
include: ['src/**/__tests__/*.test.{ts,tsx}'],
exclude: ['**/node_modules/**', '**/playwright/**'],
pool: 'forks',
Expand Down
Loading

0 comments on commit fca69f7

Please sign in to comment.