umijs / plugins

🍣 The one-stop shop for official Umi plugins and presets.
347 stars 239 forks source link

由于本项目的依赖有点旧,让项目安装依赖的时候出现少量 deprecated #959

Open AkaraChen opened 10 months ago

AkaraChen commented 10 months ago
WARN  deprecated @formatjs/intl-utils@2.3.0: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package
 WARN  deprecated intl-messageformat-parser@3.6.4: We've written a new parser that's 6x faster and is backwards compatible. Please use @formatjs/icu-messageformat-parser
 WARN  deprecated @formatjs/intl-unified-numberformat@3.3.7: We have renamed the package to @formatjs/intl-numberformat
 WARN  deprecated @babel/plugin-proposal-class-properties@7.18.6: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-class-properties instead.
 WARN  deprecated @babel/plugin-proposal-object-rest-spread@7.20.7: This proposal has been merged to the ECMAScript standard and thus this plugin is no longer maintained. Please use @babel/plugin-transform-object-rest-spread instead.

经排查,主要需要升级的 package 主要有这些:

  1. react-intl,其底层依赖的 @formatjs/intl-utils@2.3.0 intl-messageformat-parser@3.6.4 改名了,所以原 package deprecated。
  2. styled-component,它依赖了 @babel/plugin-proposal-class-properties,现在项目内的 styled-component 还是 6.x 的 beta 版,看起来需要升级。

虽然这些信息并没有影响,但是我有点洁癖看着有些不爽,我愿意 PR 来解决这些问题。