Bit v13.0.0 Release Notes

Release Date: 2018-06-18 // about 4 years ago
  • Summary

    With over 35 new features, changes and bug fixes, Bit's v13 is focused on increased stability with over 20 bug fixes and support for common workflows including webpack resolve, tsconfig resolving, Vue resolve alias (Vue Webpack template) , Babel module resolver etc. Here are some of v13's highlights.

    • โž• add ability to configure custom module resolution in Bit (paths and aliases), to support absolute import statements for projects that use similar features using Webpack, Typescript, Babel, Vue alias etc. PR-#980, #852, #865, #869
    • ๐Ÿ›  over 20 bug fixes including max call stack, import of binary files and more.
    • ๐Ÿ”จ environments transformed and refactored to act as native Bit extensions. PR-#931
    • ๐Ÿ‘Œ support "export X from Y" syntax of ES6 without importing X first. PR-#981
    • ๐Ÿ‘Œ support mixed mode of common-js and ES6. PR-#1036
    • ๐Ÿ‘Œ support Installing Bit using NPM using sudo. commit.
    • introducing new flags for bit init including --reset and --reset-hard. PR-#1012

    As a reminder, we're switching to major versions to indicate that we, like many others, have been using Bit in production for a long time. v13 follows the previous v0.12 and looking forward we'll continue to follow semver like we've done since 2016.

    ๐Ÿ†• New

    • โž• add ability to configure custom module resolution in Bit (paths and aliases), to support absolute import statements for projects that use similar features using Webpack, Typescript, Babel, etc.
    • ๐Ÿ‘Œ support "export X from Y" syntax of ES6 without importing X first.
    • ๐Ÿ”จ environments transformed and refactored to act as native Bit extensions
    • introduce a new flag bit init --reset-hard to delete Bit files in order to start with a clean workspace
    • introduce a new flag bit init --reset to recreate bit.json and .bitmap files in case they are corrupted
    • โž• add fork level to the bit test command
    • โœ… inject dist dir to node_path variable during test process in order for the author to tag and test custom-resolved components
    • โž• added missing programmatic flags for bit isolate cmd
    • ๐Ÿ‘Œ support mixed mode of common-js and ES6 ("require" and "import" together)
    • ๐Ÿ“ฆ recognize packages required from d.ts files

    ๐Ÿ”„ Changes

    • โœ‚ remove alias t from bit test command (conflicts with tag command)
    • do not override existing bit.json on bit init
    • ๐Ÿ’ป rename no-launch-browser to suppress-browser-launch in bit login flag
    • ๐Ÿ”– version validation during bit tag

    ๐Ÿ› Bug fixes

    • ๐Ÿ›  fix import of binary files
    • ๐Ÿ›  fix error "Maximum call stack size exceeded" when tagging or building a large file
    • ๐Ÿ– handle bit diff for local components without specifying a scope
    • โœ… backward compatibility for components with environments with latest version
    • ๐Ÿ‘‰ show dependent component id when trying to install missing environment
    • prevent overriding local tags from remote components upon import
    • throw an error when auto tag components have a newer version
    • โšก๏ธ after auto-tagging a component with a pending update it no longer becomes modified
    • ๐Ÿ‘Œ support for running bit log on local components without specifying scope name
    • ๐Ÿ– handle adding the same file with different letter cases (uppercase/lowercase)
    • ๐Ÿ‘Œ improve environments error handling
    • ๐Ÿ‘Œ support bit move and bit import --path when running from an inner directory
    • bit init now recreates the scope.json if it does not exist