-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
fix: node.js の punycode モジュールが使用されている場所がある問題 #15248
base: develop
Are you sure you want to change the base?
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #15248 +/- ##
========================================
Coverage 40.31% 40.32%
========================================
Files 1564 1564
Lines 198083 198084 +1
Branches 3837 3840 +3
========================================
+ Hits 79863 79870 +7
+ Misses 117617 117611 -6
Partials 603 603 ☔ View full report in Codecov by Sentry. |
おお・・・? |
|
importすべきはesmoduleな |
|
このPRによるapi.jsonの差分 |
mathiasbynens/punycode.js#142 とりあえず .mjs を作る PR 投げたけど、 backend で punycode 使ってるの utility service だけなので、別のAPI叩くようにしたほうが良さそう。 |
backendではpunycode.jsを使わずnode:urlを使うことにしました |
どうにかchecks通った(chromaticは原因なんだろ) |
結局のところ、当方で使用している punycode パッケージを変更しても、どこかで参照されているため警告メッセージは消えません。
また、import 文で |
ありがとうございます。 warningが残る問題については依存関係の問題ですが、grepした限りだと tough-cookie@2.5.0 tr46@0.0.3 uri-js@4.4.1 psl@1.9.0 whatwg-url@5.0.0 が使用していたため、これらの関連パッケージの方を調査しますが、とりあえずmisskeyから使用をなくすことに価値はあると思います
以下調査結果 pslについては更新すれば良いかもしれない(psl@1.10.0で修正を試みている模様) |
4.2.1 is not usable because of infinitered/nsfwjs#904
IDK why DOMWindow['document'] fails, but might be related to tsc internal complexity limit
依存関係をいい感じにして改善しました。
|
c25078a
to
f8e3db9
Compare
What
Fixing #15246 but not closing since some dependency still uses
ついでに今後の事故をなくすため lint を追加しました。
Why
Warningがうるさい。
多分モジュールがnodejsから削除されたら静になるけどまだそうならないので
Additional info (optional)
CHANGELOGなくても良い機がする
Checklist