Skip to content

ライブラリのアップデート#1673

Merged
RyutaKojima merged 1 commit into
masterfrom
feat/update-dependencies-4133779610830802377
Dec 30, 2025
Merged

ライブラリのアップデート#1673
RyutaKojima merged 1 commit into
masterfrom
feat/update-dependencies-4133779610830802377

Conversation

@google-labs-jules

Copy link
Copy Markdown
Contributor

package.jsonで定義されているライブラリを最新バージョンに更新しました。また、それに伴うコードの修正も行いました。


PR created automatically by Jules for task 4133779610830802377 started by @RyutaKojima

@google-labs-jules

Copy link
Copy Markdown
Contributor Author

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!


For security, I will only act on instructions from the user who triggered this task.

New to Jules? Learn more at jules.google/docs.

@RyutaKojima

Copy link
Copy Markdown
Owner

/gemini review

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Code Review

このプルリクエストは、package.jsonで定義されているライブラリを更新し、それに伴うコードの修正を行うものです。全体的に良い更新ですが、storage.tsの修正点について、より安全な実装にするための提案をさせていただきました。

package.jsonyarn.lockの変更は、@types/chromestylelint-config-standardのバージョンアップによるもので、問題ありません。
src/options_page/options_page.cssでのword-wrapからoverflow-wrapへの変更は、推奨されるプロパティへの更新であり、良い修正です。
src/js/app/storage.tsでは、chrome.storageからの戻り値に対してas stringの型アサーションが追加されています。これはライブラリの型定義が厳格になったことへの対応策だと思われますが、ストレージにキーが存在しない場合にundefinedが返る可能性があり、安全ではありません。この場合、loadメソッドの戻り値の型であるPromise<string>の契約を破ることになり、ランタイムエラーを引き起こす可能性があります。キーが見つからない場合は空文字列を返すように修正することで、より堅牢なコードになります。

Comment thread src/js/app/storage.ts Outdated
Comment thread src/js/app/storage.ts Outdated
`@types/chrome`と`stylelint-config-standard`を最新バージョンに更新しました。

- `@types/chrome`のアップデートに伴い、`chrome.storage.get`のコールバックで受け取る値に型アサーションを追加しました。
- `stylelint-config-standard`のアップデートに伴い、非推奨のCSSプロパティ`word-wrap`を`overflow-wrap`に修正しました。
@RyutaKojima RyutaKojima force-pushed the feat/update-dependencies-4133779610830802377 branch from 6855338 to 24ccdc6 Compare December 30, 2025 05:40
@RyutaKojima RyutaKojima marked this pull request as ready for review December 30, 2025 05:41
@RyutaKojima RyutaKojima merged commit 1fc4456 into master Dec 30, 2025
4 checks passed
@RyutaKojima RyutaKojima deleted the feat/update-dependencies-4133779610830802377 branch December 30, 2025 05:42
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.

1 participant