Skip to content

Releases: teambit/bit

v14.1.0

01 May 13:35
Compare
Choose a tag to compare

New

Changes

  • moving Bit configuration to package.json.
  • improve performance of bit import by reducing memory consumption and using more cache
  • reintroduce -c alias for --no-cache flag in bit build command
  • improve authentication error message to clearly indicate the various strategies failures
  • add authentication fallback to ssh-key in case the ssh-agent is enabled but failed to authenticate
  • avoid installing "undefined" npm package when importing authored components
  • improve Bit load time by changing bit-javascript to use lazy loading
  • remove dependencies property from workspace bit.json.
  • improve bit show to display class properties
  • replace the cache mechanism from roadrunner to v8-compile-cache

Bug fixes

  • fix "EMFILE: too many open files" and "JavaScript heap out of memory" errors on bit import
  • fix output for bit list -j (remove chalk characters and improve format)
  • avoid reporting errors on components with dynamic import statements (#1554)
  • fix tagging imported components to not loose package.json properties
  • fix symlink generation when a binary file is required from another file within the same component using custom resolve module
  • fix bit status to not show the component as modified when dependencies have different order
  • show a descriptive error when user try to export components with private dependencies to collection under another owner
  • show a descriptive error when a version object is missing

Experimental

  • bit doctor command and APIs to run diagnosis on a workspace

v14.0.6

16 Apr 11:47
Compare
Choose a tag to compare
  • fix symlink to binary (or unsupported) files dependencies when installed via npm and have dists
  • fix dependencies version resolution from package.json to support versions with a range

v14.0.5

07 Apr 13:27
Compare
Choose a tag to compare
  • fix remove command to not delete dependencies files from the scope as they might belong to other components
  • fix symlink to binary (or unsupported) files dependencies when installed via npm

v14.0.4

18 Mar 16:20
Compare
Choose a tag to compare
  • replace default bitsrc.io domain to bit.dev

v14.0.3

12 Mar 16:29
Compare
Choose a tag to compare
  • fix importing components when one file is a prefix of the other in the same directory

v14.0.2

10 Mar 15:00
Compare
Choose a tag to compare
  • prevent bit init from initialize a non-empty scope when .bitmap was deleted unless --force is used
  • improve bit tag performance by decreasing hook logging
  • validate paths properties of the workspace bit.json
  • enable print log messages that start with a specific string to the console by prefixing the command with BIT_LOG=str
  • improve error message when adding files outside the workspace
  • show a descriptive error when npm 5.0.0 fails with --json flag
  • fix errors "EISDIR" and "EEXIST" when generating links and files steps on each other
  • fix links of exported components to node_modules for author when a file is not linkable to generate a symlink instead
  • recognize scoped packages that were newly introduced to imported components
  • fix error "consumer.loadComponentFromModel, version is missing from the id"
  • enable removing a component that its workspace and scope representations are not in sync
  • fix "error: Could not stat (filename) No such file or directory" when bit-checkout updates multiple files
  • fix "JavaScript heap out of memory" when loading a large amount of components

v14.0.1

24 Feb 12:54
Compare
Choose a tag to compare
  • show an error when deleting a global remote without --global flag
  • show an error when deleting a non-exist remote
  • enable custom resolve of aliases to symlink packages (bit-javascript)
  • fix error "toAbsolutePath expects relative path"
  • improve errors stack-trace readability
  • index scope components to improve memory consumption and performance
  • extract docs from non-tests files only
  • fix bit show --remote --json to not crash when a component has a compiler
  • fix bit checkout to update bit.json with the checked out version
  • fix "Maximum call stack" error when resolving js files after css files (bit-javascript)
  • fix bit checkout --all to write the correct data when some components are also dependencies of others
  • fix bit checkout to install dependencies as packages when applicable
  • fix bit remove --remote to show the dependents correctly
  • hide component internal structure diff upon bit diff unless --verbose flag is used
  • implement postinstall symlink generation for cases when custom-resolve modules is used with unsupported file (such as binary files)
  • fix parsing .tsx files (bit-javascript)

v14.0.0 - Discovery

04 Feb 03:47
Compare
Choose a tag to compare

Summary

Bit’s v14 is released side-by-side with the release of the v2 for bitsrc.io, Bit’s component community hub. New features for bitsrc.io v2 are announced in Bit’s Blog.

With over 65 new features, changes and bug fixes, v14 is Bit’s largest and richest release to date. V14 is focused on increased stability, agility and performance. It is is fully backwards compatible, and provides a faster and smoother workflow with improved compatibility throughout the ecosystem.

Here are some of v14's highlights:

  • Improved performance for tracking, versioning and exporting components by up to 700%.
  • Dozens of bug fixes (~70% of open issues).
  • New commands watch and eject.
  • Dynamic namespaces support.
  • Improved VueJS support.
  • Improved CSS support.
  • Auto generated documentation for React.

New

  • New bit watch command for building components upon file modifications.
  • New bit eject for removing local components and installing them as packages by an NPM client
  • Support dynamic namespaces (replaced the namespace/name format with a dynamic name that can have multiple slashes to indicate a hierarchical namespace).
  • Support components with binary files (or non-supported extensions) as the only files.
  • Support ids with wildcards (e.g. bit tag "utils/*") for the following commands: tag, untag, remove, untrack, checkout, merge, diff and export.
  • Support mix syntax of typescript and javascript inside .ts file
  • Added react docs parsing to extract the description of the properties correctly.
  • Support flow types in react doc generation.
  • Support Vue files with typescript.
  • Support configuring Git executable path.
  • Support the new jsx syntax changes by Babel.
  • Support print multiple external (build / test) errors.
  • Support adding the project package.json file to a component.
  • Support import ~ from a local (authored) file to an imported sass component.
  • Add programmatic API for add multiple components.
  • Set the only dist file as main file in package.json (in case there is only one).
  • Allow removing a component when it is invalid.

Changes

  • Improved performance for tracking, versioning and exporting components by up to 700%.
  • CSS parser replaced for better import syntax support.
  • Improve auto-tag mechanism to tag not only the dependents but also the dependents of the dependents and so on.
  • Changed --include-unmodified to --all.
  • Replace caporal package with commander for security reasons.
  • Better error when a component was tagged without its dependencies.
  • Make bit version command faster and support both bit -v and bit -V to get bit version.
  • Update tty-table, flow-coverage-report and mocha-appveyor-reporter for security reasons.
  • Improve exception handling for old clients connecting to a newer server.
  • Shorten the generated component ID to the minimum possible.
  • Return status code 1 when bit test has failing tests.
  • Suppress an exception of directory-is-empty when adding multiple components and some of them are empty, show a warning instead.
  • Improve "missing a main file" error when adding multiple components to print the problematic components.
  • Improve performance by caching objects after loading them.
  • Fix ci-update command with component version number.
  • Fix bit status to not throw an exception for invalid components.
  • Change --conf on bit import to be a path to the config dir.
  • Replace the deprecated typescript-eslint-parser with @typescript-eslint/typescript-estree

Bug fixes

  • Fix link files generated to a package when it should point to an internal file of the package.
  • Fix parsing React docs to show the @example tag.
  • Fix running bit link from an inner directory for author.
  • Fix ampersand and minus signs causing parse error in css files.
  • Fix bit add to add the correct letter case even when --main or --test flags entered with incorrect case.
  • Fix errors when component files require each other using module path.
  • Fix dev-dependency that requires prod-dependency to include the dependency in the flattenedDevDependencies array.
  • Do not delete isolated environment when running ci-update with keep flag and it throws exception.
  • Fix import of components with circular dependencies.
  • Fix link content generation for authored components on bit install.
  • Fix bug with bit show when the remote component has config file.
  • Fix context for testers during ci-update.
  • Fix missing context in getDynamicPackageDependencies.
  • Fix bug with bit show when scope path provided.
  • Fix errors "JavaScript heap out of memory" and "Error: EMFILE: too many open files" when exporting a huge number of components.
  • Fix error "link-generation: failed finding .. in the dependencies array" when a dependency has a devDependency installed as a component.
  • Improve the stability of bit export --eject and provide some kind of rollback in case of failure.
  • Fix bit-remove to delete authored component files when removing an authored component from an inner directory.

v13.0.4

24 Jul 10:07
Compare
Choose a tag to compare

New

  • send component origin repo in headers

Changes

  • improve bit test to run tests not only on new and modified components but also on auto-tag pending components

Bug fixes

  • fix bit import of a component with authored dependencies
  • generate npm links for Vue packages correctly without adding .vue extension to the package
  • fix bit add to not throw an error for imported components when mainFile is a relative path to consumer
  • fix error "Cannot read property 'missing' of undefined" when a dependency of dependency has parsing errors (bit-javascript)

v13.0.3

12 Jul 09:39
Compare
Choose a tag to compare

Bug fixes

  • fix link files generation to support the plugin "add-module-export" of babel compiler
  • fix error "Cannot read property push of undefined" when a dependent has parsing error (bit-javascript)
  • avoid parsing unsupported dependencies files (bit-javascript)