Skip to content

Commit

Permalink
feat: upgrade to ky@1 and remove ky-universal (#267)
Browse files Browse the repository at this point in the history
  • Loading branch information
wopian authored Sep 21, 2023
1 parent 6f70033 commit 323408a
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:

env:
FORCE_COLOR: true
NODE_VERSION: 18
NODE_VERSION: 20

jobs:
deploy:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
FORCE_COLOR: true
NODE_VERSION: 18
NODE_VERSION: 20

jobs:
setup:
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@
"discord.js": "14.13.0",
"dotenv": "16.3.1",
"knex": "2.5.1",
"ky": "0.33.3",
"ky-universal": "0.12.0",
"ky": "1.0.1",
"mysql2": "3.6.1",
"winston": "3.10.0",
"winston-daily-rotate-file": "4.7.1"
Expand Down
12 changes: 7 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/components/embeds/user/records.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {
UserRanking
} from '@zeepkist/gtr-api'
import { CommandInteraction, EmbedBuilder } from 'discord.js'
import { HTTPError } from 'ky-universal'
import { HTTPError } from 'ky'

import { formatOrdinal, log } from '../../../utils/index.js'
import { listRecords } from '../../lists/listRecords.js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/embeds/user/stats.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import {
UserRanking
} from '@zeepkist/gtr-api'
import { CommandInteraction, EmbedBuilder } from 'discord.js'
import { HTTPError } from 'ky-universal'
import { HTTPError } from 'ky'

import {
formatOrdinal,
Expand Down
2 changes: 1 addition & 1 deletion src/components/embeds/userEmbed.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
EmbedBuilder,
User as DiscordUser
} from 'discord.js'
import { HTTPError } from 'ky-universal'
import { HTTPError } from 'ky'

import { STEAM_URL, ZEEPKIST_URL } from '../../constants.js'
import { getPlayerSummaries } from '../../services/steam.js'
Expand Down
2 changes: 1 addition & 1 deletion src/services/github.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ky from 'ky-universal'
import ky from 'ky'

import { GITHUB_API_URL } from '../constants.js'
import { GitHubRelease } from '../models/github.js'
Expand Down
2 changes: 1 addition & 1 deletion src/services/steam.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import ky from 'ky-universal'
import ky from 'ky'

import { STEAM_API_URL } from '../constants.js'
import { PlayerSummmary } from '../models/steam.js'
Expand Down

0 comments on commit 323408a

Please sign in to comment.