Skip to content
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

Release v2.36.0 #4778

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Release v2.36.0 #4778

merged 1 commit into from
Oct 12, 2023

Conversation

caohuilin
Copy link
Member

@caohuilin caohuilin commented Oct 11, 2023

What's Changed

New Features 🎉

Bug Fixes 🐞

Docs update 📄

Other Changes

更新内容

新特性 🎉

Bug 修复 🐞

文档更新 📄

其他变更

  1. support buildConfig.tsconfig, refine the scenarios for custom tsconfig, so replace dts.tsconfigPath with this.
  2. disable buildConfig.transformLodash by default:
    This optimisation was introduced in version 2.22.0 to reduce code size by modularising lodash import, but it may also cause some compatibility issues, so in version 2.32.0 a new transformLodash configuration has been added to manually disable this optimisation. In this version, this optimisation is turned off by default, and lodash is not processed separately by default.
  3. only use swc transform when enable transformImport, transformLodash or externalHelpers.
    swc conversion was introduced in version 2.16.0, but the implementation still has some problems, such as format cjs does not have "Annotate the CommonJS export names for ESM import in node", sourceType commonjs support is poor, etc. In this version, swc conversion is no longer used in full, and all kinds of limitations and judgements are removed, and only swc is used as a supplement to some features.
  4. remove unuse dependecies and improve code quality.
  5. support debug mode to print debug logs.
  6. fix some css module bugs.
  7. support buildConfig.jsx: preserve .
  8. support glob input in js and dts generator.
  9. support banner and footer.
    refactor(module-tools):
  10. 将 libuild 合入模块工程,添加 buildConfig.hooks,支持 load, transform 和 renderChunk 钩子。
  11. 支持 buildConfig.tsconfig 配置,用来完善自定义 tsconfig 的场景,请用它来替换 dts.tsconfigPath
  12. 默认禁用 buildConfig.transformLodash:
    此优化是由 2.22.0 版本引入,通过模块化 lodash 的导入从而减小代码体积,但这也可能导致一些兼容性问题,因此在 2.32.0 版本新增了 transformLodash 配置,可以手动关闭此优化。在此版本,默认关闭此优化,默认不对 lodash 作单独的处理。
  13. 只有在开启 transformImport, transformLodash 或 externalHelpers 时才使用 swc 转换。
    swc 转换是在 2.16.0 版本引入,但实现仍存在一些问题,例如 format cjs 没有 “Annotate the CommonJS export names for ESM import in node”,sourceType commonjs 支持不佳等等,在此版本,不再全量使用 swc 转换,移除各种限制和判断,只使用 swc 作为部分功能的补充。
  14. 移除未使用的依赖并提升代码质量。
  15. 支持 debug 模式打印调试日志。
  16. 修复一些 css module 问题。
  17. 支持 buildConfig.jsx: preserve 选项。
  18. 支持 glob 模式输入在 js 和 dts 生成器中。
  19. 支持 banner 和 footer 配置。 由 @10Derozan 实现, 详情可查看 refactor(module-tools): merge libuild to module tools and redesign the hooks #4651

@changeset-bot
Copy link

changeset-bot bot commented Oct 11, 2023

⚠️ No Changeset found

Latest commit: cf0cb94

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@codecov
Copy link

codecov bot commented Oct 11, 2023

Codecov Report

All modified lines are covered by tests ✅

Comparison is base (99693f0) 57.59% compared to head (cf0cb94) 51.18%.
Report is 1252 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4778      +/-   ##
==========================================
- Coverage   57.59%   51.18%   -6.42%     
==========================================
  Files         672      680       +8     
  Lines       17794    18965    +1171     
  Branches     3876     4379     +503     
==========================================
- Hits        10249     9707     -542     
- Misses       6934     8528    +1594     
- Partials      611      730     +119     

see 498 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GiveMe-A-Name GiveMe-A-Name merged commit 1563e63 into main Oct 12, 2023
10 checks passed
@GiveMe-A-Name GiveMe-A-Name deleted the release-v2.36.0 branch October 12, 2023 03:16
9aoy pushed a commit that referenced this pull request Oct 23, 2023
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants