Skip to content

Releases: huozhi/bunchee

v5.0.0-beta.1

03 Mar 23:35
Compare
Choose a tag to compare
v5.0.0-beta.1 Pre-release
Pre-release

Feature

Changes

Breaking change

  • Deprecate wildcard exports. See #469

Full Changelog: v4.4.8...v5.0.0-beta.1

v4.4.8

18 Feb 00:07
Compare
Choose a tag to compare

Patches

Full Changelog: v4.4.7...v4.4.8

v4.4.7

17 Feb 20:43
Compare
Choose a tag to compare

Patches

  • fix: generate cjs extension chunk when the entry is cjs by @huozhi in #451

Misc

Full Changelog: v4.4.6...v4.4.7

v4.4.6

17 Feb 20:42
Compare
Choose a tag to compare

Patches

  • fix: algorithm for determine the end of build in watch mode by @nnecec in #438
  • Fix: set preserveSymlinks to false for types generation by @huozhi in #447
  • Fix lint for string exports by @huozhi in #448

Full Changelog: v4.4.5...v4.4.6

v4.4.5

04 Feb 21:09
Compare
Choose a tag to compare

Patches

Drop the @rollup/plugin-esm-shim plugin and rewrite one with AST parsing, this avoids lots of issues that with current rollup esm shim plugin.

Full Changelog: v4.4.4...v4.4.5

v4.4.4

04 Feb 21:08
Compare
Choose a tag to compare

Patches

Misc

Full Changelog: v4.4.3...v4.4.4

v4.4.3

28 Jan 00:13
Compare
Choose a tag to compare

Patches & Improvements

  • Update dependencies and dev deps by @huozhi in #430
  • Replace EdgeRuntime for edge build by @huozhi in #432
  • feat: print end status in watch mode by @nnecec in #408
  • enhance: dont delete dir if it is cwd by @huozhi in #433
  • Fix: build in monorepo with composite but incremental disabled by @huozhi in #434

Full Changelog: v4.4.2...v4.4.3

v4.4.2

25 Jan 22:39
Compare
Choose a tag to compare

Patches

This release fixes some important issues when users are suffering with ts module resolving with multiple exports when modules resolution set to "node". Previously we're doing import like <pkg>/<module> that supports "bundler" module resolution for ts types.
Now we're changing to relative imports which will import the correct path for both CJS and ESM.

  • Generate relative path for types by @huozhi in #426
  • Fix dev and prod convention missing output by @huozhi in #428

Full Changelog: v4.4.1...v4.4.2

v4.4.1

17 Jan 20:28
Compare
Choose a tag to compare

Patches

Improve the stablility of the features we have in 4.4

New Contributors

Full Changelog: v4.4.0...v4.4.1

v4.4.0

14 Jan 19:43
Compare
Choose a tag to compare

Hello, a beautiful weekend with few amazing contributions from community! We shipped a load of DX improvments this time for y'all and also few bug fixes!

Highlights in 4.4

Lint your package.json before build, give you better exports

⚠️ Cannot export `require` field with .js or .mjs extension in ESM package, only .cjs extensions are allowed
⚠️   ./dist/index.js
⚠️ Cannot export `import` field with .cjs extension in ESM package, only .js and .mjs extensions are allowed
⚠️   ./dist/foo.cjs

Clean your dist folder before building

If you dont want to auto clean build bundles, just use --no-clean option

bunchee --no-clean # clean is by default

development and production export conditions

src/index.js can be injected with NODE_ENV based on the export conditon when using development or production

{
   "exports": {
      "development":  "./dist/index.development.js",
      "production":  "./dist/index.production.js",
   }
}

Other Improvements

  • will be auto injected with its corresponding process.env.NODE_ENV
  • Auto generate tsconfig.json for you in build if you don't have any
  • Robust CSS minification

Feature

  • feat: auto clean dist folder before build by @nnecec in #369
  • feat: auto inject env for development and production condition by @huozhi in #396
  • Auto generate tsconfig.json for ts project by @huozhi in #399
  • Lint package configuration by @huozhi in #401
  • Use clean-css for css minification by @huozhi in #403

Patches

New Contributors

Full Changelog: v4.3.4...v4.4.0