v13.0.0
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
tosuppress-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
andbit import --path
when running from an inner directory bit init
now recreates the scope.json if it does not exist