fix(create-frontend): pin jQuery to 3.7.1 for basercms4 projects#901
Open
teppei-d wants to merge 1 commit into
Open
fix(create-frontend): pin jQuery to 3.7.1 for basercms4 projects#901teppei-d wants to merge 1 commit into
teppei-d wants to merge 1 commit into
Conversation
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
yusasa16
approved these changes
May 29, 2026
arktds
reviewed
May 29, 2026
| delete pkg.devDependencies['@burger-editor/local']; | ||
| pkg.dependencies['@burger-editor/css'] = '2'; | ||
| pkg.dependencies['jquery'] = 'latest'; | ||
| pkg.dependencies['jquery'] = '3.7.1'; // jQuery 4系で削除されたAPIとの互換性のため3系の最新版を利用 |
Collaborator
There was a problem hiding this comment.
3.7.1 に固定しなければいけない理由をもう少し具体的にコメントで残したほうがいいかなと思いました!
互換性がないコードは isFunction() だけでしょうか?
それらの互換性がない関数はどのファイルが実行していますか?colorbox?だけ?
Collaborator
Author
There was a problem hiding this comment.
@arktds
はい。デモページでエラーになっていたのはisFunction()だけでした。 原因は bge_functions.min.js → jquery.colorbox-min.js の流れで、colorbox が jQuery 4.0 で削除された$.isFunction()に依存しているためです。
以下のようにコメントを修正予定ですがいかがでしょうか?
// colorbox が jQuery 4.0 で削除された $.isFunction() に依存するため 3.x 最新版(3.7.1)に固定
YusukeHirao
approved these changes
May 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
背景
plopfile.jsでjquery: 'latest'と指定していたため、2026年1月リリースの jQuery 4.0.0 が取得されていた。jQuery 4.0 では
$.isFunction()をはじめとする非推奨 API が完全削除されており(Upgrade Guide)、colorbox などの依存プラグインが動作しない状態になっていた。変更内容
pkg.dependencies['jquery'] = 'latest'→'3.7.1'に固定(jQuery 3系最新版)jqueryが3.7.1であることを検証するテストを追加動作確認
jQuery 3.7.1 を適用した環境で、動作しなくなっていたスライドショーが正常に動作することを確認済み。
🤖 Generated with Claude Code