Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): remove query-string #1381

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore(deps): remove query-string #1381

wants to merge 1 commit into from

Conversation

xnv
Copy link
Member

@xnv xnv commented Aug 6, 2024

掲題どおり。

#1320 のビルドエラーを解消するために query-string の依存を除き、URLSearchParams に移行します。変更後、Mac Chrome/Firefox/Safari 上で、akashic serve の ?mode=replay&replayTargetTime=10000&paused=1 オプションが機能することを確認しています。

urlWithQuery = `${url}?${queryString.stringify(params)}`;
}
const response = await fetchWithTimeout(urlWithQuery);
export const get = async<T>(url: string): Promise<T> => {
Copy link
Member Author

@xnv xnv Aug 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

URLSearchParams で対応できるのですが、よく見ると利用箇所がなく、動作確認のしようもないので削除してしまいます。必要になった時に実装する想定です。del と ApiRequestMock の方も同様に削除。

@xnv xnv requested review from ShinobuTakahashi and yu-ogi August 6, 2024 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants