Skip to content

[JSライブラリ] 前の日付入力で使われていたmoment.js除去 OW-2549 #2156

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

Merged
merged 5 commits into from
Apr 3, 2025

Conversation

akagane99
Copy link
Contributor

@akagane99 akagane99 commented Apr 2, 2025

概要

  • 前の日付入力で使われていたmoment.js(moment moment-timezone)を除去しました。
  • 新着情報のJSで moment.js を使って日付フォーマットを出力していた箇所は、自作の日付フォーマットjsに切替えました。

npmライブラリ 更新コマンド

npm uninstall moment moment-timezone

# ライブラリの最新化
npm update

# app.js, app.cssの最新化
npm run prod

コマンド実行結果

root@580f4f913c01:/var/www/html/connect-cms# npm uninstall moment moment-timezone

removed 2 packages, and audited 791 packages in 2s

116 packages are looking for funding
  run `npm fund` for details

3 vulnerabilities (1 low, 2 moderate)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.


root@580f4f913c01:/var/www/html/connect-cms# npm update

up to date, audited 791 packages in 17s

116 packages are looking for funding
  run `npm fund` for details

3 vulnerabilities (1 low, 2 moderate)

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.


root@580f4f913c01:/var/www/html/connect-cms# npm run prod

> prod
> npm run production


> production
> mix --production


 Mix █████████████████████████ done (99%) plugins 
 BuildCallbackPlugin

 Mix
  Compiled successfully in 7.09s

                         
   Laravel Mix v6.0.49   
                         

 Compiled Successfully in 6983ms
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┬──────────┐
                                                                                                                                           File  Size     
├────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┼──────────┤
                                                                                                                                     /js/app.js  513 KiB  
                                                                                                                         /js/app.js.LICENSE.txt  2.7 KiB  
                                                                                                                                    css/app.css  285 KiB  
                                               fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.ttf?1815e00441357e01619e5793e1caa78a  206 KiB  
                                             fonts/vendor/@fortawesome/fontawesome-free/webfa-brands-400.woff2?c210719e60948b211a1260f79812efe5  116 KiB  
                                              fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.ttf?914997e1bdfc990d0897cdaba877a0b3  66.5 KiB 
                                            fonts/vendor/@fortawesome/fontawesome-free/webfa-regular-400.woff2?89999bdf5d835c0120257222e5568fec  24.9 KiB 
                                                fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.ttf?2582b0e4bcf85eceead0de3fd9035c90  416 KiB  
                                              fonts/vendor/@fortawesome/fontawesome-free/webfa-solid-900.woff2?2463b90d9a316e4e5294e6706b6a7a72  155 KiB  
                                                                                                                                      js/707.js  19.1 KiB 
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┴──────────┘
webpack compiled successfully

github actionsで簡易テスト

→ エラーなし

レビュー完了希望日

なし

関連Pull requests/Issues

参考

影響範囲

Moment.js

Moment.js | Docs

(機械翻訳) 現在、Momentはメンテナンスモードのレガシープロジェクトとして一般的に考えられています。それは死んでいませんが、確かに行われています。

ほとんどの場合、新しいプロジェクトにはモーメントを選択しないでください。

DB変更の有無

なし

チェックリスト

@akagane99 akagane99 self-assigned this Apr 2, 2025
@akagane99 akagane99 added the developer update 開発者向けの更新 label Apr 2, 2025
@akagane99 akagane99 changed the title Moment [JSライブラリ] 前の日付入力で使われていたmoment.js除去 Apr 2, 2025
@akagane99 akagane99 changed the title [JSライブラリ] 前の日付入力で使われていたmoment.js除去 [JSライブラリ] 前の日付入力で使われていたmoment.js除去 OW-2549 Apr 2, 2025
@akagane99 akagane99 marked this pull request as ready for review April 2, 2025 11:00
@akagane99 akagane99 merged commit fe40d26 into master Apr 3, 2025
4 checks passed
@akagane99 akagane99 deleted the moment branch April 3, 2025 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
developer update 開発者向けの更新
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant