fix: node.js の punycode モジュールが使用されている場所がある問題#15248
fix: node.js の punycode モジュールが使用されている場所がある問題#15248mi-gh-maintainer[bot] merged 14 commits intomisskey-dev:developfrom
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## develop #15248 +/- ##
===========================================
- Coverage 41.12% 39.39% -1.74%
===========================================
Files 1572 1568 -4
Lines 204875 199065 -5810
Branches 3679 3646 -33
===========================================
- Hits 84259 78416 -5843
- Misses 120009 120075 +66
+ Partials 607 574 -33 ☔ 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
|
Thank you 🙏 |
* fix: punycode.js が使用されていない場所がある問題 * fix: use punycode/punycode.js on backend * fix: use punycode/punycode.es6.js on backend * fix: d.ts missing declare keyword * chore: don't use punycode.js on backend * update pnpm-lock.yaml * chore: remove punycode.d.ts * chore: use punycode.js instead of punycode npm package * chore: bump psl to 1.15.0 * chore: bump nsfwjs to 4.2.0 4.2.1 is not usable because of infinitered/nsfwjs#904 * chore: prevent loading node-fetch from tensorflow * chore: DOMWindow['document'] => Document IDK why DOMWindow['document'] fails, but might be related to tsc internal complexity limit * fix: disable --trace-deprecation --------- Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
What
Fixing #15246 but not closing since some dependency still uses
ついでに今後の事故をなくすため lint を追加しました。
Why
Warningがうるさい。
多分モジュールがnodejsから削除されたら静になるけどまだそうならないので
Additional info (optional)
CHANGELOGなくても良い機がする
Checklist