Skip to content

Commit 19b238b

Browse files
committed
chore: bump deps and lint
1 parent a792d16 commit 19b238b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+2573
-2169
lines changed

crux-api/server/api/[domain]/crux/history.get.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import { defineCachedEventHandler } from '#imports'
12
import { getRouterParam } from 'h3'
23
import { fetchCrux } from '../../../app/services/crux'
3-
import { defineCachedEventHandler } from '#imports'
44

55
export default defineCachedEventHandler(async (event) => {
66
const domain = getRouterParam(event, 'domain', { decode: true })

crux-api/server/app/services/crux.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { useRuntimeConfig } from '#imports'
2+
import { $fetch } from 'ofetch'
13
import { withHttps, withTrailingSlash } from 'ufo'
24
import type { FetchError } from 'ofetch'
3-
import { $fetch } from 'ofetch'
4-
import { useRuntimeConfig } from '#imports'
55

66
const cwvKeys = [
77
'largest_contentful_paint',

docs/components/LighthouseThreeD.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
2-
import type { RendererPublicInterface } from 'troisjs'
3-
import { AmbientLight, Camera, FbxModel, PointLight, Renderer, Scene } from 'troisjs'
4-
import type { Group } from 'three'
52
import { useElementHover } from '@vueuse/core'
3+
import { AmbientLight, Camera, FbxModel, PointLight, Renderer, Scene } from 'troisjs'
64
import { ref } from 'vue'
5+
import type { Group } from 'three'
6+
import type { RendererPublicInterface } from 'troisjs'
77
88
const rendererC = ref()
99
const lighthouseRef = ref()

docs/components/OCodeBlock.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<script setup lang="ts">
2-
import type { BundledLanguage } from 'shiki'
3-
import { computed } from 'vue'
42
import { useClipboard } from '@vueuse/core'
3+
import { computed } from 'vue'
4+
import type { BundledLanguage } from 'shiki'
55
import { loadShiki, renderCodeHighlight } from '../composables/shiki'
66
77
const props = withDefaults(

docs/composables/shiki.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { BundledLanguage, Highlighter } from 'shiki'
1+
import { useColorMode } from '#imports'
22
import { getHighlighter } from 'shiki'
33
import { computed, ref, unref } from 'vue'
44
import type { MaybeRef } from '@vueuse/core'
5-
import { useColorMode } from '#imports'
5+
import type { BundledLanguage, Highlighter } from 'shiki'
66

77
export const shiki = ref<Highlighter>()
88

docs/nuxt.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,4 @@ export default defineNuxtConfig({
120120
},
121121

122122
compatibilityDate: '2024-07-15',
123-
})
123+
})

docs/package.json

+12-12
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88
"preview": "nuxi preview"
99
},
1010
"devDependencies": {
11-
"@iconify-json/carbon": "^1.1.36",
12-
"@iconify-json/heroicons": "^1.1.22",
13-
"@iconify-json/logos": "^1.1.43",
14-
"@iconify-json/noto": "^1.1.18",
15-
"@iconify-json/ph": "^1.1.13",
16-
"@iconify-json/simple-icons": "^1.1.109",
17-
"@nuxt/content": "^2.13.1",
11+
"@iconify-json/carbon": "^1.2.1",
12+
"@iconify-json/heroicons": "^1.2.0",
13+
"@iconify-json/logos": "^1.2.0",
14+
"@iconify-json/noto": "^1.2.0",
15+
"@iconify-json/ph": "^1.2.0",
16+
"@iconify-json/simple-icons": "^1.2.2",
17+
"@nuxt/content": "^2.13.2",
1818
"@nuxt/devtools": "1.3.9",
19-
"@nuxt/ui": "^2.17.0",
20-
"@nuxt/ui-pro": "^1.3.1",
19+
"@nuxt/ui": "^2.18.4",
20+
"@nuxt/ui-pro": "^1.4.1",
2121
"@nuxtjs/seo": "2.0.0-rc.12",
22-
"@vueuse/nuxt": "^10.11.0",
23-
"nuxt": "^3.12.3",
22+
"@vueuse/nuxt": "^11.0.3",
23+
"nuxt": "^3.13.1",
2424
"nuxt-icon": "^0.6.10",
2525
"nuxt-lego": "^0.0.14",
2626
"nuxt-lodash": "^2.5.3",
2727
"three": "0.138.3",
2828
"troisjs": "^0.3.4",
29-
"typescript": "^5.5.3"
29+
"typescript": "^5.6.2"
3030
}
3131
}

docs/pages/[...slug].vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
2-
import { withoutTrailingSlash } from 'ufo'
32
import { findPageHeadline, mapContentNavigation } from '#imports'
3+
import { withoutTrailingSlash } from 'ufo'
44
55
const route = useRoute()
66

package.json

+7-7
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"type": "module",
44
"version": "0.13.2",
55
"private": true,
6-
"packageManager": "pnpm@9.5.0",
6+
"packageManager": "pnpm@9.10.0",
77
"license": "MIT",
88
"scripts": {
99
"cli": "JITI_ESM_RESOLVE=1 node packages/cli/dist/cli.mjs",
@@ -22,13 +22,13 @@
2222
"docs:serve": "npm -C docs run serve"
2323
},
2424
"devDependencies": {
25-
"@antfu/eslint-config": "2.19.0",
26-
"bumpp": "^9.4.1",
27-
"eslint": "^9.7.0",
28-
"typescript": "5.3.3",
25+
"@antfu/eslint-config": "3.5.0",
26+
"bumpp": "^9.5.2",
27+
"eslint": "^9.10.0",
28+
"typescript": "5.6.2",
2929
"unbuild": "^2.0.0",
30-
"vite": "^5.3.3",
31-
"vitest": "^2.0.2"
30+
"vite": "^5.4.3",
31+
"vitest": "^2.0.5"
3232
},
3333
"pnpm": {
3434
"packageExtensions": {

packages/cli/src/ci.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
import type { UserConfig } from '@unlighthouse/core'
2-
import fs from 'fs-extra'
31
import { createUnlighthouse, generateClient, useLogger, useUnlighthouse } from '@unlighthouse/core'
2+
import fs from 'fs-extra'
43
import { relative } from 'pathe'
54
import { isCI } from 'std-env'
6-
import { handleError } from './errors'
7-
import type { CiOptions } from './types'
8-
import { pickOptions, validateHost, validateOptions } from './util'
5+
import type { UserConfig } from '@unlighthouse/core'
96
import createCli from './createCli'
7+
import { handleError } from './errors'
108
import { generateReportPayload, outputReport } from './reporters'
9+
import { pickOptions, validateHost, validateOptions } from './util'
1110
import type { ReporterConfig } from './reporters/types'
11+
import type { CiOptions } from './types'
1212

1313
async function run() {
1414
const startTime = new Date()

packages/cli/src/cli.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import { createUnlighthouse, useLogger } from '@unlighthouse/core'
22
import { createServer } from '@unlighthouse/server'
33
import open from 'better-opn'
4+
import createCli from './createCli'
45
import { pickOptions, validateHost, validateOptions } from './util'
56
import type { CliOptions } from './types'
6-
import createCli from './createCli'
77

88
const cli = createCli()
99

packages/cli/src/reporters/csvExpanded.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { get } from 'lodash-es'
2-
import type { UnlighthouseRouteReport } from '../types'
32
import { csvSimpleFormat } from './csvSimple'
3+
import type { UnlighthouseRouteReport } from '../types'
44
import type { ReporterConfig } from './types'
55

66
export function reportCSVExpanded(reports: UnlighthouseRouteReport[], { columns }: ReporterConfig): string {

packages/cli/src/reporters/index.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import { join } from 'node:path'
22
import fse from 'fs-extra'
33
import type { ResolvedUserConfig, UnlighthouseRouteReport } from '@unlighthouse/core'
4-
import { reportJsonSimple } from './jsonSimple'
5-
import { reportJsonExpanded } from './jsonExpanded'
6-
import type { ReportJsonExpanded, ReportJsonSimple, ReporterConfig } from './types'
7-
import { reportCSVSimple } from './csvSimple'
84
import { reportCSVExpanded } from './csvExpanded'
5+
import { reportCSVSimple } from './csvSimple'
6+
import { reportJsonExpanded } from './jsonExpanded'
7+
import { reportJsonSimple } from './jsonSimple'
98
import { reportLighthouseServer } from './lighthouseServer'
9+
import type { ReporterConfig, ReportJsonExpanded, ReportJsonSimple } from './types'
1010

1111
export function generateReportPayload(reporter: 'lighthouseServer', reports: UnlighthouseRouteReport[], config?: ReporterConfig): Promise<void>
1212
export function generateReportPayload(reporter: 'jsonExpanded', reports: UnlighthouseRouteReport[]): ReportJsonExpanded

packages/cli/src/reporters/lighthouseServer.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ import {
1010
getExternalBuildUrl,
1111
} from '@lhci/utils/src/build-context.js'
1212
import fs from 'fs-extra'
13-
import type { UnlighthouseRouteReport } from '../types'
1413
import { handleError } from '../errors'
14+
import type { UnlighthouseRouteReport } from '../types'
1515
import type { ReporterConfig } from './types'
1616

1717
export async function reportLighthouseServer(

packages/cli/src/util.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { URL } from 'node:url'
2-
import type { ResolvedUserConfig, UserConfig } from '@unlighthouse/core'
3-
import { pick } from 'lodash-es'
4-
import { defu } from 'defu'
52
import { fetchUrlRaw, normaliseHost, useLogger } from '@unlighthouse/core'
3+
import { defu } from 'defu'
4+
import { pick } from 'lodash-es'
5+
import type { ResolvedUserConfig, UserConfig } from '@unlighthouse/core'
66
import { handleError } from './errors'
77
import type { CiOptions, CliOptions } from './types'
88

packages/cli/test/csv-reports.test.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { describe, expect, it } from 'vitest'
2-
import type { UnlighthouseRouteReport } from '../src/types'
3-
import { generateReportPayload } from '../src/reporters'
42
import { DefaultColumns } from '../../core/src/constants'
3+
import { generateReportPayload } from '../src/reporters'
54
import _lighthouseReport from './__fixtures__/lighthouseReport.mjs'
5+
import type { UnlighthouseRouteReport } from '../src/types'
66

77
const lighthouseReport = _lighthouseReport as any as UnlighthouseRouteReport[]
88

packages/cli/test/json-reports.test.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { describe, expect, it } from 'vitest'
2-
import type { UnlighthouseRouteReport } from '../src/types'
32
import { generateReportPayload } from '../src/reporters'
43
import _lighthouseReport from './__fixtures__/lighthouseReport.mjs'
4+
import type { UnlighthouseRouteReport } from '../src/types'
55

66
const lighthouseReport = _lighthouseReport as any as UnlighthouseRouteReport[]
77

packages/cli/test/lighthouseServer-reports.test.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import { describe, expect, it, vi } from 'vitest'
2-
import fs from 'fs-extra'
31
import ApiClient from '@lhci/utils/src/api-client.js'
4-
import type { UnlighthouseRouteReport } from '../src/types'
2+
import fs from 'fs-extra'
3+
import { describe, expect, it, vi } from 'vitest'
54
import { generateReportPayload } from '../src/reporters'
65
import _lighthouseReport from './__fixtures__/lighthouseReport.mjs'
6+
import type { UnlighthouseRouteReport } from '../src/types'
77

88
const lighthouseReport = _lighthouseReport as any as UnlighthouseRouteReport[]
99

packages/client/components/Crux/Graph/CruxGraphCls.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
2-
import { createChart } from 'lightweight-charts'
32
import dayjs from 'dayjs'
3+
import { createChart } from 'lightweight-charts'
44
import { isDark } from '../../../logic'
55
import { useHumanFriendlyNumber } from '../../../logic/formatting'
66

packages/client/components/Crux/Graph/CruxGraphInp.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
2-
import { createChart } from 'lightweight-charts'
32
import dayjs from 'dayjs'
3+
import { createChart } from 'lightweight-charts'
44
import { isDark } from '../../../logic'
55
import { useHumanMs } from '../../../logic/formatting'
66

packages/client/components/Crux/Graph/CruxGraphLcp.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
2-
import { createChart } from 'lightweight-charts'
32
import dayjs from 'dayjs'
3+
import { createChart } from 'lightweight-charts'
44
import { isDark } from '../../../logic'
55
import { useHumanMs } from '../../../logic/formatting'
66

packages/client/components/LighthouseThreeD.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
<script setup lang="ts">
2-
import type { RendererPublicInterface } from 'troisjs'
3-
import { AmbientLight, Camera, FbxModel, PointLight, Renderer, Scene } from 'troisjs'
4-
import type { Group } from 'three'
52
import { useElementHover } from '@vueuse/core'
3+
import { AmbientLight, Camera, FbxModel, PointLight, Renderer, Scene } from 'troisjs'
64
import { ref } from 'vue'
5+
import type { Group } from 'three'
6+
import type { RendererPublicInterface } from 'troisjs'
77
import { basePath, scanMeta } from '../logic'
88
99
const rendererC = ref()

packages/client/components/Results/ResultsCell.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script lang="ts" setup>
2-
import type { UnlighthouseColumn, UnlighthouseRouteReport } from '@unlighthouse/core'
32
import { get } from 'lodash-es'
3+
import type { UnlighthouseColumn, UnlighthouseRouteReport } from '@unlighthouse/core'
44
55
const props = defineProps<{
66
report: UnlighthouseRouteReport

packages/client/logic/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
export * from './actions/rescanSite'
12
export * from './dark'
2-
export * from './state'
3+
export * from './fetch'
34
export * from './search'
5+
export * from './state'
46
export * from './static'
57
export * from './util'
6-
export * from './fetch'
7-
export * from './actions/rescanSite'

packages/client/logic/search.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { useStorage } from '@vueuse/core'
2-
import { computed } from 'vue'
32
import Fuse from 'fuse.js'
43
import { get, isEmpty, orderBy } from 'lodash-es'
4+
import { computed } from 'vue'
55
import type { UnlighthouseRouteReport, UnlighthouseTaskStatus } from '@unlighthouse/core'
66
import { unlighthouseReports } from './state'
77
import { columns, groupRoutesKey } from './static'

packages/client/logic/state.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1+
import { sum } from 'lodash-es'
12
import { computed, reactive } from 'vue'
23
import type { NormalisedRoute, ScanMeta, UnlighthouseRouteReport } from '@unlighthouse/core'
3-
import { sum } from 'lodash-es'
44
import CellRouteName from '../components/Cell/CellRouteName.vue'
5-
import CellScoresOverview from '../components/Cell/CellScoresOverview.vue'
65
import CellScoreSingle from '../components/Cell/CellScoreSingle.vue'
7-
import { categories, columns, isStatic, wsUrl } from './static'
8-
import { sorting } from './search'
6+
import CellScoresOverview from '../components/Cell/CellScoresOverview.vue'
97
import { useFetch } from './fetch'
8+
import { sorting } from './search'
9+
import { categories, columns, isStatic, wsUrl } from './static'
1010

1111
export const activeTab = ref(0)
1212

packages/client/logic/static.ts

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
// pull out client accessible options
2+
import MdiAccessibility from '~icons/mdi/accessibility'
3+
import MdiCellphone from '~icons/mdi/cellphone'
4+
import MdiSpeedometer from '~icons/mdi/speedometer'
5+
import MdiThumbUp from '~icons/mdi/thumb-up'
6+
import MdiViewDashboard from '~icons/mdi/view-dashboard'
7+
import MdiWeb from '~icons/mdi/web'
8+
import MdiWorld from '~icons/mdi/world'
29
import { startCase } from 'lodash-es'
310
import { $URL } from 'ufo'
4-
import CellNetworkRequests from '../components/Cell/CellNetworkRequests.vue'
5-
import CellImageIssues from '../components/Cell/CellImageIssues.vue'
611
import CellColorContrast from '../components/Cell/CellColorContrast.vue'
7-
import CellMetaDescription from '../components/Cell/CellMetaDescription.vue'
12+
import CellImage from '../components/Cell/CellImage.vue'
13+
import CellImageIssues from '../components/Cell/CellImageIssues.vue'
814
import CellIndexable from '../components/Cell/CellIndexable.vue'
15+
import CellLargestContentfulPaint from '../components/Cell/CellLargestContentfulPaint.vue'
16+
import CellLayoutShift from '../components/Cell/CellLayoutShift.vue'
17+
import CellMetaDescription from '../components/Cell/CellMetaDescription.vue'
18+
import CellNetworkRequests from '../components/Cell/CellNetworkRequests.vue'
919
import CellScreenshotThumbnails from '../components/Cell/CellScreenshotThumbnails.vue'
10-
import CellImage from '../components/Cell/CellImage.vue'
1120
import CellTapTargets from '../components/Cell/CellTapTargets.vue'
1221
import CellWebVitals from '../components/Cell/CellWebVitals.vue'
13-
import CellLargestContentfulPaint from '../components/Cell/CellLargestContentfulPaint.vue'
14-
import CellLayoutShift from '../components/Cell/CellLayoutShift.vue'
15-
import MdiViewDashboard from '~icons/mdi/view-dashboard'
16-
import MdiSpeedometer from '~icons/mdi/speedometer'
17-
import MdiAccessibility from '~icons/mdi/accessibility'
18-
import MdiThumbUp from '~icons/mdi/thumb-up'
19-
import MdiWeb from '~icons/mdi/web'
20-
import MdiCellphone from '~icons/mdi/cellphone'
21-
import MdiWorld from '~icons/mdi/world'
2222

2323
const {
2424
options: {
@@ -41,7 +41,7 @@ const {
4141

4242
export const isStatic = window.__unlighthouse_static
4343

44-
export { wsUrl, basePath, dynamicSampling, apiUrl, groupRoutesKey, lighthouseOptions, throttle, device }
44+
export { apiUrl, basePath, device, dynamicSampling, groupRoutesKey, lighthouseOptions, throttle, wsUrl }
4545

4646
export const website = new $URL(site).origin
4747

0 commit comments

Comments
 (0)