Skip to content

Commit 591952e

Browse files
committed
chore: upgrade deps
1 parent f4e91f5 commit 591952e

File tree

70 files changed

+201
-201
lines changed

Some content is hidden

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

70 files changed

+201
-201
lines changed

bun.lockb

203 KB
Binary file not shown.

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -44,30 +44,30 @@
4444
"commit-msg": "bun run commitlint --edit $1"
4545
},
4646
"dependencies": {
47-
"@hono/node-server": "^1.9.1",
48-
"@hono/zod-openapi": "^0.9.10",
49-
"@hono/zod-validator": "^0.2.1",
50-
"@scalar/hono-api-reference": "^0.4.22",
51-
"hono": "^4.1.5",
47+
"@hono/node-server": "^1.12.0",
48+
"@hono/zod-openapi": "^0.15.1",
49+
"@hono/zod-validator": "^0.2.2",
50+
"@scalar/hono-api-reference": "^0.5.129",
51+
"hono": "^4.5.3",
5252
"node-forge": "^1.3.1",
53-
"zod": "^3.22.4"
53+
"zod": "^3.23.8"
5454
},
5555
"devDependencies": {
56-
"@commitlint/cli": "^19.2.1",
57-
"@commitlint/config-conventional": "^19.1.0",
58-
"@kolhe/eslint-config": "2.1.0",
59-
"@types/bun": "^1.0.12",
60-
"@types/node": "^20.12.2",
56+
"@commitlint/cli": "^19.3.0",
57+
"@commitlint/config-conventional": "^19.2.2",
58+
"@kolhe/eslint-config": "2.2.2",
59+
"@types/bun": "^1.1.6",
60+
"@types/node": "^22.1.0",
6161
"@types/node-forge": "^1.3.11",
62-
"@vitest/coverage-v8": "^1.4.0",
63-
"@vitest/ui": "^1.4.0",
62+
"@vitest/coverage-v8": "^2.0.5",
63+
"@vitest/ui": "^2.0.5",
6464
"changelogen": "^0.5.5",
65-
"eslint": "^8.57.0",
66-
"eslint-plugin-prettier": "^5.1.3",
67-
"prettier": "^3.2.5",
65+
"eslint": "^9.8.0",
66+
"eslint-plugin-prettier": "^5.2.1",
67+
"prettier": "^3.3.3",
6868
"simple-git-hooks": "^2.11.1",
69-
"tsc-alias": "^1.8.8",
70-
"typescript": "^5.4.3",
71-
"vitest": "^1.4.0"
69+
"tsc-alias": "^1.8.10",
70+
"typescript": "^5.5.4",
71+
"vitest": "^2.0.5"
7272
}
7373
}

src/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { OpenAPIHono } from '@hono/zod-openapi'
2+
import { apiReference } from '@scalar/hono-api-reference'
13
import { logger } from 'hono/logger'
24
import { prettyJSON } from 'hono/pretty-json'
3-
import { apiReference } from '@scalar/hono-api-reference'
4-
import { OpenAPIHono } from '@hono/zod-openapi'
55
import { Home } from './pages/home'
66
import type { Routes } from '#common/types'
77
import type { HTTPException } from 'hono/http-exception'

src/modules/albums/controllers/album.controller.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import type { z } from 'zod'
31
import { AlbumModel } from '#modules/albums/models'
42
import { AlbumController } from '#modules/index'
3+
import { beforeAll, describe, expect, it } from 'vitest'
4+
import type { z } from 'zod'
55

66
describe('AlbumController', () => {
77
let albumController: AlbumController

src/modules/albums/controllers/album.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { OpenAPIHono, createRoute, z } from '@hono/zod-openapi'
2-
import type { Routes } from '#common/types'
3-
import { AlbumService } from '#modules/albums/services'
1+
import { createRoute, OpenAPIHono, z } from '@hono/zod-openapi'
42
import { AlbumModel } from '#modules/albums/models'
3+
import { AlbumService } from '#modules/albums/services'
4+
import type { Routes } from '#common/types'
55

66
export class AlbumController implements Routes {
77
public controller: OpenAPIHono

src/modules/albums/helpers/album.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
2-
import type { z } from 'zod'
3-
import { createSongPayload } from '#modules/songs/helpers'
41
import { createImageLinks } from '#common/helpers'
52
import { createArtistMapPayload } from '#modules/artists/helpers'
3+
import { createSongPayload } from '#modules/songs/helpers'
4+
import type { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
5+
import type { z } from 'zod'
66

77
export const createAlbumPayload = (album: z.infer<typeof AlbumAPIResponseModel>): z.infer<typeof AlbumModel> => ({
88
id: album.id,

src/modules/albums/models/album.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { z } from 'zod'
21
import { DownloadLinkModel } from '#common/models'
32
import { SongAPIResponseModel, SongModel } from '#modules/songs/models'
3+
import { z } from 'zod'
44

55
export const AlbumAPIResponseModel = z.object({
66
id: z.string(),

src/modules/albums/use-cases/get-album-by-id/get-album-by-id.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetAlbumByIdUseCase } from '#modules/albums/use-cases'
31
import { AlbumModel } from '#modules/albums/models'
2+
import { GetAlbumByIdUseCase } from '#modules/albums/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetAlbumById', () => {
66
let getAlbumByIdUseCase: GetAlbumByIdUseCase

src/modules/albums/use-cases/get-album-by-id/get-album-by-id.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Endpoints } from '#common/constants'
2+
import { useFetch } from '#common/helpers'
3+
import { createAlbumPayload } from '#modules/albums/helpers'
14
import { HTTPException } from 'hono/http-exception'
2-
import type { z } from 'zod'
35
import type { IUseCase } from '#common/types'
46
import type { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
5-
import { createAlbumPayload } from '#modules/albums/helpers'
6-
import { useFetch } from '#common/helpers'
7-
import { Endpoints } from '#common/constants'
7+
import type { z } from 'zod'
88

99
export class GetAlbumByIdUseCase implements IUseCase<string, z.infer<typeof AlbumModel>> {
1010
constructor() {}

src/modules/albums/use-cases/get-album-by-link/get-album-by-link.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetAlbumByLinkUseCase } from '#modules/albums/use-cases'
31
import { AlbumModel } from '#modules/albums/models'
2+
import { GetAlbumByLinkUseCase } from '#modules/albums/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetAlbumByLink', () => {
66
let getAlbumByLinkUseCase: GetAlbumByLinkUseCase

src/modules/albums/use-cases/get-album-by-link/get-album-by-link.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Endpoints } from '#common/constants'
2+
import { useFetch } from '#common/helpers'
3+
import { createAlbumPayload } from '#modules/albums/helpers'
14
import { HTTPException } from 'hono/http-exception'
5+
import type { IUseCase } from '#common/types'
26
import type { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
37
import type { z } from 'zod'
4-
import type { IUseCase } from '#common/types'
5-
import { createAlbumPayload } from '#modules/albums/helpers'
6-
import { useFetch } from '#common/helpers'
7-
import { Endpoints } from '#common/constants'
88

99
export class GetAlbumByLinkUseCase implements IUseCase<string, z.infer<typeof AlbumModel>> {
1010
constructor() {}

src/modules/artists/controllers/artist.controller.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import type { z } from 'zod'
31
import { ArtistModel } from '#modules/artists/models'
42
import { ArtistController } from '#modules/index'
3+
import { beforeAll, describe, expect, it } from 'vitest'
4+
import type { z } from 'zod'
55

66
describe('ArtistController', () => {
77
let artistController: ArtistController

src/modules/artists/controllers/artist.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { OpenAPIHono, createRoute } from '@hono/zod-openapi'
2-
import { z } from 'zod'
3-
import type { Routes } from '#common/types'
1+
import { createRoute, OpenAPIHono } from '@hono/zod-openapi'
42
import { ArtistAlbumModel, ArtistModel, ArtistSongModel } from '#modules/artists/models'
53
import { ArtistService } from '#modules/artists/services'
4+
import { z } from 'zod'
5+
import type { Routes } from '#common/types'
66

77
export class ArtistController implements Routes {
88
public controller: OpenAPIHono

src/modules/artists/helpers/artist.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1+
import { createImageLinks } from '#common/helpers'
2+
import { createAlbumPayload } from '#modules/albums/helpers'
3+
import { createSongPayload } from '#modules/songs/helpers'
14
import type {
25
ArtistAPIResponseModel,
36
ArtistMapAPIResponseModel,
47
ArtistMapModel,
58
ArtistModel
69
} from '#modules/artists/models'
710
import type { z } from 'zod'
8-
import { createSongPayload } from '#modules/songs/helpers'
9-
import { createAlbumPayload } from '#modules/albums/helpers'
10-
import { createImageLinks } from '#common/helpers'
1111

1212
export const createArtistPayload = (artist: z.infer<typeof ArtistAPIResponseModel>): z.infer<typeof ArtistModel> => ({
1313
id: artist.artistId || artist.id,

src/modules/artists/models/artist-album.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { z } from 'zod'
21
import { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
2+
import { z } from 'zod'
33

44
export const ArtistAlbumAPIResponseModel = z.object({
55
artistId: z.string(),

src/modules/artists/models/artist-map.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { z } from 'zod'
21
import { DownloadLinkModel } from '#common/models'
2+
import { z } from 'zod'
33

44
export const ArtistMapAPIResponseModel = z.object({
55
id: z.string(),

src/modules/artists/models/artist-song.model.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { z } from 'zod'
21
import { SongAPIResponseModel, SongModel } from '#modules/songs/models'
2+
import { z } from 'zod'
33

44
export const ArtistSongAPIResponseModel = z.object({
55
artistId: z.string(),

src/modules/artists/models/artist.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { z } from 'zod'
1+
import { DownloadLinkModel } from '#common/models'
22
import { AlbumAPIResponseModel, AlbumModel } from '#modules/albums/models'
33
import { SongAPIResponseModel, SongModel } from '#modules/songs/models'
4-
import { DownloadLinkModel } from '#common/models'
4+
import { z } from 'zod'
55

66
export const ArtistAPIResponseModel = z
77
.object({

src/modules/artists/services/artist.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import {
2-
type GetArtistAlbumsArgs,
32
GetArtistAlbumsUseCase,
4-
type GetArtistByIdArgs,
53
GetArtistByIdUseCase,
6-
type GetArtistByLinkArgs,
74
GetArtistByLinkUseCase,
8-
type GetArtistSongsArgs,
9-
GetArtistSongsUseCase
5+
GetArtistSongsUseCase,
6+
type GetArtistAlbumsArgs,
7+
type GetArtistByIdArgs,
8+
type GetArtistByLinkArgs,
9+
type GetArtistSongsArgs
1010
} from '#modules/artists/use-cases'
1111

1212
export class ArtistService {

src/modules/artists/use-cases/get-artist-albums/get-artist-albums.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetArtistAlbumsUseCase } from '#modules/artists/use-cases'
31
import { ArtistAlbumModel } from '#modules/artists/models'
2+
import { GetArtistAlbumsUseCase } from '#modules/artists/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetArtistAlbums', () => {
66
let getArtistAlbumsUseCase: GetArtistAlbumsUseCase

src/modules/artists/use-cases/get-artist-albums/get-artist-albums.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Endpoints } from '#common/constants'
2+
import { useFetch } from '#common/helpers'
3+
import { createAlbumPayload } from '#modules/albums/helpers'
14
import { HTTPException } from 'hono/http-exception'
2-
import type { z } from 'zod'
35
import type { IUseCase } from '#common/types'
46
import type { ArtistAlbumAPIResponseModel, ArtistAlbumModel } from '#modules/artists/models'
5-
import { createAlbumPayload } from '#modules/albums/helpers'
6-
import { useFetch } from '#common/helpers'
7-
import { Endpoints } from '#common/constants'
7+
import type { z } from 'zod'
88

99
export interface GetArtistAlbumsArgs {
1010
artistId: string

src/modules/artists/use-cases/get-artist-by-id/get-artist-artist-by-id.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetArtistByIdUseCase } from '#modules/artists/use-cases'
31
import { ArtistModel } from '#modules/artists/models'
2+
import { GetArtistByIdUseCase } from '#modules/artists/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetArtistById', () => {
66
let getArtistByIdUseCase: GetArtistByIdUseCase

src/modules/artists/use-cases/get-artist-by-id/get-artist-by-id.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Endpoints } from '#common/constants'
2+
import { useFetch } from '#common/helpers'
3+
import { createArtistPayload } from '#modules/artists/helpers'
14
import { HTTPException } from 'hono/http-exception'
2-
import type { z } from 'zod'
35
import type { IUseCase } from '#common/types'
46
import type { ArtistAPIResponseModel, ArtistModel } from '#modules/artists/models'
5-
import { createArtistPayload } from '#modules/artists/helpers'
6-
import { Endpoints } from '#common/constants'
7-
import { useFetch } from '#common/helpers'
7+
import type { z } from 'zod'
88

99
export interface GetArtistByIdArgs {
1010
artistId: string

src/modules/artists/use-cases/get-artist-by-link/get-artist-by-link.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetArtistByLinkUseCase } from '#modules/artists/use-cases'
31
import { ArtistModel } from '#modules/artists/models'
2+
import { GetArtistByLinkUseCase } from '#modules/artists/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetArtistByLink', () => {
66
let getArtistByLinkUseCase: GetArtistByLinkUseCase

src/modules/artists/use-cases/get-artist-by-link/get-artist-by-link.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
import { HTTPException } from 'hono/http-exception'
2-
import type { z } from 'zod'
3-
import type { IUseCase } from '#common/types'
4-
import type { ArtistAPIResponseModel, ArtistModel } from '#modules/artists/models'
51
import { Endpoints } from '#common/constants'
62
import { useFetch } from '#common/helpers'
73
import { createArtistPayload } from '#modules/artists/helpers'
4+
import { HTTPException } from 'hono/http-exception'
5+
import type { IUseCase } from '#common/types'
6+
import type { ArtistAPIResponseModel, ArtistModel } from '#modules/artists/models'
7+
import type { z } from 'zod'
88

99
export interface GetArtistByLinkArgs {
1010
token: string

src/modules/artists/use-cases/get-artist-songs/get-artist-songs.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetArtistSongsUseCase } from '#modules/artists/use-cases'
31
import { ArtistSongModel } from '#modules/artists/models'
2+
import { GetArtistSongsUseCase } from '#modules/artists/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetArtistSongs', () => {
66
let getArtistSongsUseCase: GetArtistSongsUseCase

src/modules/artists/use-cases/get-artist-songs/get-artist-songs.use-case.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1+
import { Endpoints } from '#common/constants'
2+
import { useFetch } from '#common/helpers'
3+
import { createSongPayload } from '#modules/songs/helpers'
14
import { HTTPException } from 'hono/http-exception'
2-
import type { z } from 'zod'
35
import type { IUseCase } from '#common/types'
46
import type { ArtistSongAPIResponseModel, ArtistSongModel } from '#modules/artists/models'
5-
import { createSongPayload } from '#modules/songs/helpers'
6-
import { useFetch } from '#common/helpers'
7-
import { Endpoints } from '#common/constants'
7+
import type { z } from 'zod'
88

99
export interface GetArtistSongsArgs {
1010
artistId: string

src/modules/playlists/controllers/playlist.controller.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1+
import { PlaylistController } from '#modules/playlists/controllers'
2+
import { PlaylistModel } from '#modules/playlists/models'
13
import { beforeAll, describe, expect, it } from 'vitest'
24
import type { z } from 'zod'
3-
import { PlaylistModel } from '#modules/playlists/models'
4-
import { PlaylistController } from '#modules/playlists/controllers'
55

66
describe('PlaylistController', () => {
77
let playlistController: PlaylistController

src/modules/playlists/controllers/playlist.controller.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { OpenAPIHono, createRoute, z } from '@hono/zod-openapi'
2-
import type { Routes } from '#common/types'
3-
import { PlaylistService } from '#modules/playlists/services'
1+
import { createRoute, OpenAPIHono, z } from '@hono/zod-openapi'
42
import { PlaylistModel } from '#modules/playlists/models'
3+
import { PlaylistService } from '#modules/playlists/services'
4+
import type { Routes } from '#common/types'
55

66
export class PlaylistController implements Routes {
77
public controller: OpenAPIHono

src/modules/playlists/helpers/playlist.helper.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { z } from 'zod'
2-
import type { PlaylistAPIResponseModel, PlaylistModel } from '#modules/playlists/models'
3-
import { createSongPayload } from '#modules/songs/helpers'
41
import { createImageLinks } from '#common/helpers'
52
import { createArtistMapPayload } from '#modules/artists/helpers'
3+
import { createSongPayload } from '#modules/songs/helpers'
4+
import type { PlaylistAPIResponseModel, PlaylistModel } from '#modules/playlists/models'
5+
import type { z } from 'zod'
66

77
export const createPlaylistPayload = (
88
playlist: z.infer<typeof PlaylistAPIResponseModel>

src/modules/playlists/models/playlist.model.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
import { z } from 'zod'
21
import { DownloadLinkModel } from '#common/models'
3-
import { SongAPIResponseModel, SongModel } from '#modules/songs/models'
42
import { ArtistMapModel } from '#modules/artists/models'
3+
import { SongAPIResponseModel, SongModel } from '#modules/songs/models'
4+
import { z } from 'zod'
55

66
export const PlaylistAPIResponseModel = z
77
.object({

src/modules/playlists/services/playlist.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import {
2-
type GetPlaylistByIdArgs,
32
GetPlaylistByIdUseCase,
4-
type GetPlaylistByLinkArgs,
5-
GetPlaylistByLinkUseCase
3+
GetPlaylistByLinkUseCase,
4+
type GetPlaylistByIdArgs,
5+
type GetPlaylistByLinkArgs
66
} from '#modules/playlists/use-cases'
77

88
export class PlaylistService {

src/modules/playlists/use-cases/get-playlist-by-id/get-playlist-by-id.use-case.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import { beforeAll, describe, expect, it } from 'vitest'
2-
import { GetPlaylistByIdUseCase } from '#modules/playlists/use-cases'
31
import { PlaylistModel } from '#modules/playlists/models'
2+
import { GetPlaylistByIdUseCase } from '#modules/playlists/use-cases'
3+
import { beforeAll, describe, expect, it } from 'vitest'
44

55
describe('GetAlbumById', () => {
66
let getPlaylistByIdUseCase: GetPlaylistByIdUseCase

0 commit comments

Comments
 (0)