Skip to content

Releases: web-infra-dev/rslib

v0.6.8

30 Apr 10:59
5cb5936
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.6.7...v0.6.8

v0.6.7

23 Apr 03:45
e427222
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

Full Changelog: v0.6.6...v0.6.7

v0.6.6

22 Apr 13:41
c3f7a7f
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

Full Changelog: v0.6.5...v0.6.6

v0.6.5

18 Apr 11:55
738ecaf
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Other Changes

Full Changelog: v0.6.4...v0.6.5

v0.6.4

17 Apr 11:42
424d744
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

  • fix(dts): explicit error for @microsoft/api-extractor is required by @fi3ework in #930

Other Changes

Full Changelog: v0.6.3...v0.6.4

v0.6.3

14 Apr 06:20
a4f226a
Compare
Choose a tag to compare

What's Changed

Performance 🚀

Bug Fixes 🐞

Other Changes

New Contributors

Full Changelog: v0.6.2...v0.6.3

v0.6.2

08 Apr 12:59
90d1104
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Document 📖

Other Changes

Full Changelog: v0.6.1...v0.6.2

v0.6.1

31 Mar 09:41
ca03721
Compare
Choose a tag to compare

What's Changed

New Features 🎉

Other Changes

Full Changelog: v0.6.0...v0.6.1

v0.6.0

27 Mar 06:57
73d3bd1
Compare
Choose a tag to compare

Highlights ✨

This release brings exciting new features and improvements to Rslib:

  • New default library type for CJS: Rslib changes the default value of output.library.type for CJS from commonjs to commonjs-static. Now, individual exports will be set as properties on module.exports and the output can be statically analyzable, thus named exports are importable into ESM via Node.js. This is useful when source code is written in ESM and the output should be compatible with both CJS and ESM. (#819)

    Named exports are importable into ESM via Node.js

    • Input:
    export function doSomething() {}
    • Output:
    function doSomething() {}
    // …
    exports.doSomething = __webpack_exports__.doSomething;
    • Consumption (CJS):
    const { doSomething } = require('./output.cjs'); // doSomething => [Function: doSomething]
    • Consumption (ESM):
    import { doSomething } from './output.cjs'; // doSomething => [Function: doSomething]
  • Show code frame for type errors: Rslib now shows full context and code frame of tsc diagnostics in the terminal when generating declaration files. This makes it easier to understand and fix issues in the source code. (#847)

    image

What's Changed

New Features 🎉

  • feat!: change to commonjs-static library type of commonjs format by @fi3ework in #819

Bug Fixes 🐞

Document 📖

Other Changes

New Contributors

Full Changelog: v0.5.5...v0.6.0

v0.5.5

20 Mar 07:11
0a04981
Compare
Choose a tag to compare

What's Changed

Bug Fixes 🐞

Document 📖

Other Changes

  • test: refactor some style tests by @Timeless0911 in #837
  • chore(deps): update @rsbuild/core to v1.2.18 and fix snapshots by @chenjiahan in #839
  • chore(deps): update all patch dependencies by @renovate in #834
  • chore(deps): update Rsbuild to v1.2.19 by @chenjiahan in #845
  • chore(deps): update dependency @microsoft/api-extractor to ^7.52.1 by @renovate in #850
  • chore(deps): update dependency @module-federation/enhanced to ^0.11.0 by @renovate in #851
  • chore(deps): update dependency @module-federation/rsbuild-plugin to ^0.11.0 by @renovate in #852
  • chore(workflow): let renovate pin GitHub Action digests by @chenjiahan in #853
  • test: add cssModules namedExport test case by @SoonIter in #854
  • chore(deps): pin dependencies by @renovate in #855
  • test: fix unstable build --watch test by @Timeless0911 in #858
  • refactor: optimize dts logs and show codeblocks of tsc diagnostics by @Timeless0911 in #847
  • chore(deps): update all patch dependencies by @renovate in #849
  • chore(deps): update dependency nx to ^20.6.2 by @renovate in #863
  • chore(deps): update dependency babel-plugin-polyfill-corejs3 to ^0.12.0 by @renovate in #862
  • Release v0.5.5 by @Timeless0911 in #864

New Contributors

Full Changelog: v0.5.4...v0.5.5