Skip to content

Releases: teambit/bit

v1.6.145

24 Apr 15:14
Compare
Choose a tag to compare

New Features

  • Introduce a new command bit lane eject to remove the component from lane and install the component as a dependency (#8819, #8820)

Changes

  • Add scope name validations when creating a new lane (#8811)

Bug Fixes

  • Fix preview fixes introduced by moving to @pnpm/node-fetch (#8808, #8822)
  • Fix an issue where there is more than one terminal spinner with the same name (#8824)
  • Fix an issue where lane merge added a package with the same name to workspace.jsonc (#8817)
  • Fix an issue when an env was renamed, the generator entry for it in workspace.jsonc remained (#8813)
  • Avoid replacing end-of-line character on Windows, keep them as got them from Prettier. (#8810)
  • Fix an issue where component compare didn't show previous version (#8809)

v1.6.140

21 Apr 15:23
Compare
Choose a tag to compare

New Features

  • New --import for bit watch to update the workspace when git pull changed the .bitmap file (#8795, #8803, #8798)
  • New flags for bit build --rewrite and --reinstall to use in conjunction with --reuse-capsules for better debugging for build pipelines (#8779)
  • Support a root-level .bitignore file (#8781)

Changes

  • React, Node and Symphony templates default to ESM
  • Improve logging of stack trace of errors thrown by build tasks (#8783)
  • Improve various CLI end terminal outputs (#8784)
  • Rename --merge to --auto-merge-resolve to be aligned with other commands (#8782)

Performance

Bug Fixes

  • Fix an issue where bit config set network.ca didn't work for communication with scope APIs (#8801, #8790)
  • Fix an issue where bit init didn't add a workspace.jsonc (#8800)
  • Fix an issue where remote registry throws an error but the version was actually published (#8789)
  • Fix an issue where component checked out to main version when importing with wildcards on lane (#8788)
  • Fix an issue where component preview loaded indefinitely instead of presenting an error (#8778)
  • Fix an issue where external envs didn't load correctly from global scope (#8786)
  • Ensure the correct version of the env is set for generated components (#8787)

Internal

  • Change loadLane to return undefined instead of null if not exists (#8805)
  • Fix flaky test "optional dependencies - affect capsule" (#8794)

v1.6.126

14 Apr 12:59
Compare
Choose a tag to compare

New Features

  • Set BIT_DISABLE_CONSOLE=true BIT_DISABLE_SPINNER=true to get more focused CI logs (#8765)
  • bit login --refresh-token to generate a new token, instead of bit logout && bit login, also added prompt when running bit login when token is already set (#8760, #8758)

Changes

  • Improve CLI and terminal outputs (#8764, #8740, #8739, #8718, #8720, #8751)
  • Enforce cases where component should import it's own files, not it's module (for example, for component @teambit/design.button use import { Button } from "./button" instead of import { Button } from "@teambit/design.button") (#8757)
  • Component dependencies in workspace.jsonc entries to update during bit import (#8761)

Performance

  • 50% faster compile step during bit build when using @teambit/typescript.typescript-compiler@^2.0.27 (#8755, #8773, #8774)
  • bit compile and bit link are about 60% faster, each (#8734)
  • Tarball from bit doctor --archive is much smaller (#8767)
  • Improve "component loading" slightly (#8752)
  • Cache modules manifest (#8736)

Bug Fixes

  • Fixed an issue where Webpack on windows failed during preview because not finding all assets for bundle size calculation (#8785)
  • Fixed a bug where existing the compile step during bit build (Ctrl+C) didn't work (#8775)
  • Ensure network settings passed correctly to pnpm (#8772)
  • Fix an issue where bit login happens before loading of any aspects or components, so user doesn't hit 404 error (#8750)
  • Fix an issue where using package name for commands where component was private failed (#8748)
  • Various fixes for ensuring dependency management is more deterministic (#8754, #8768, #8741, #8746, #8737 )
  • Fixed an issue where bit status warned about circular dependencies even after issue resolved (#8735)

Internal

  • Update compilation for core Bit aspects (#8769, #8776, #8745, #8730, #8697, #8756)
  • Update many e2e tests (#8749, #8732)
  • Remove some legacy code (#8742, #8747)
  • Eject core code to external components (#8762)
  • Fix setup scripts on Windows (#8727)
  • Improve how Bit finds the instance of "component-issue" (#8777)
  • Report config.user_name during package installation (#8759)
  • Refactor some code paths (#8600, #8731)

v1.6.106

31 Mar 09:32
Compare
Choose a tag to compare

New Features

  • Introduce bit version-history command to get complete component history in Directed Acyclic Graph (#8712, #8714, #8717)

Changes

  • bit create supports --force param for forcefully generate a component when directory already there (#8708)
  • bit scope rename command renames full directory path unless --preserve flag used (#8704)
  • Improve error messages and terminal outputs (#8705, #8698, #8726, #8706, #8699, #8701, #8703)
  • bit npmrc generate to fetch username from cloud instead of global config, if possible (#8725)
  • Allow skipping updating or generating npmrc on bit login (#8724)
  • Testers now support testing with source files, as an alternative to compiled (#8723)

Performance

  • Improve bit compile performance by calculating distDirs once per component (#8728)

Bug Fixes

  • Fixed an issue where bit lint would run on un-modified components (#8709)
  • Ensure @teambit/legacy will not be installed as a dependency (#8694)
  • Fixed an issue where bit env set would try and set a component as env (#8696)
  • Fixed an issue where scope fork was disabled when file system paths in workspace were conflicting (#8700)

Internal

  • Update dependencies (#8722, #8721)
  • Refactor handling of linter and prettier aspects (#8719, #8711, #8707)
  • Fix tests for optional dependencies (#8713)
  • New onCommandStartSlot (#8695)

v1.6.95

20 Mar 16:28
Compare
Choose a tag to compare

Changes

  • Update dependency versions in workspace.jsonc according to semver ranges during bit import (#8686)

Bug Fixes

  • Fix a case where a component was not marked set an optional peer dependency (#8688)
  • Improve outputs and terminal messages (#8673, #8678, #8684)
  • Fix an issue where some build tasks silently didn't run (#8679)

Internal

  • Temporarily rollback auto installation of peer dependencies, to overcome mixup of Typescript versions (#8693)
  • Move some functions to new components (#8689)
  • Remove unwanted deps (#8687)
  • Add missing dependencies to package.json (#8680, #8682)
  • Add a new API to getCurrentSnap() for the Component object (#8677)

v1.6.90

17 Mar 11:14
Compare
Choose a tag to compare

Changes

  • bit doctor supports --include-node-modules and --exclude-local-scope (#8670)
  • bit start has a new set of outputs, removing the ink library (#8641, #8630)

Performance

  • Improve managing of component version history (#8612)

Bug Fixes

  • Fix and improve many CLI outputs and messages (#8618, #8674, #8672, #8633, #8631, #8636, #8642, #8622)
  • Fix an issue where import dependents didn't get all dependency paths (#8669)
  • Fix an issue where changing peerDependencies rules caused a change to lockfile (#8668)
  • Fix the width of component size tooltip (#8659)
  • Fix an issue where dependency on a semver pre-release was not saved with exact version (#8662)
  • Fix an issue where during tag or snap didn't import VersionHistory if ParentNotFound error occurred (#8664, #8663)
  • Fix an issue where merging lanes caused explicitly added dependencies were removed from the merged outcome (#8665)
  • Do not allow running bit init --refer-scope within a sub-directory of a workspace (#8634)

Internal

v1.6.73

03 Mar 12:55
Compare
Choose a tag to compare

New Features

  • Navigate from components to their dependencies from the code viewer (#8556)
  • Mark a component to be a peerDependency when installed to a workspace with bit set-peer <comp> [range] (#8591, #8561)
  • Introduce "--skip-tasks" flag to filter out specific tasks from a build pipeline (#8611)

Changes

Performance

  • Avoid calculating whether a component ID belong to a lane if all objects exist (#8607)

Bug Fixes

  • Fix various bugs in @exports for automated API schema; remove duplicate values and allow more types of nodes to export (#8552, #8553)
  • Remove redundant dependencies from basic starter workspace policy (#8555)
  • Fix output when importing artifacts from a lane (#8545)
  • Fix and issue where after creating a component an error message for tsconfig not found appeared (#8562)
  • Fix an issue where comparing for modifications was against the head of the lane, not what is current in workspace (#8554)
  • Fix an issue where components marked as peerDependencies are missing many "component dependencies" features, like being presented on the dependency graph, and not triggering auto-tag (#6375)
  • During update-dependents ensure dependency versions are set according to the lane (#8566)
  • Fix an issue where peerDependencies changes weren't listed on bit diff (#8586)
  • Fix an issue where EOF char showed as change in bit diff (#8610)
  • Fix an issue where prints to terminal on windows lost pretty colors (#8601)
  • Enable running bit move after manually moving a component on the file system (#8599)
  • Sort list of dependencies by name (#8594)
  • Fix an issue where snap-hash wasn't converted to semver before checking for workspace.jsonc conflicts (#8590)
  • Convert mainFile to linux format before saving into component objects (#8608)

Internal

v1.6.62

19 Feb 10:00
Compare
Choose a tag to compare

New Features

  • Generate ~/.npmrc file for logged in user (#8525, #8523, #8514, #8521)
    • New command bit npmrc generate to populate the .npmrc file according to remotes (with ability to --dry-run)
    • Generate .npmrc during bit login
  • Add decorator support for automated API reference (#8517)
  • Ability to deprecate past versions (including ranges) of components (#8522)
  • bit import --dependents to import a selected "path" of dependents from a source component to all its dependents in your workspace (#8505)

Changes

  • Configuration to disable generating component's API schema (#8506)
  • Bit update should default to update dependencies to latest, unless --semver option used (#8453)
  • bit rename to mark old name as deleted instead of deprecated (#8518)

Performance

  • Use cache to calculate dependency graph in a Scope (#8529)

Bug Fixes

  • bit lane merge to handle a case when a component was locally deleted (#8524)
  • Fix a bug where app artifacts weren't saved correctly on Windows (#8504)
  • Improve CLI error messages (#8519, #8530)
  • Fix an issue when navigating between composition of a specific version and it's code-behind (#8510)
  • Fix component rename on fork by forward AST options flag when refactoring variables and classes (#8509)
  • Fix an issue where bit deps get --tree didn't work when cyclic deps found (#8528)
  • Fix an issue where bit deps get didn't include deleted components (#8526)

Internal

  • Remove dead code (#8513)
  • Make ignore-issues param for tag or snap mandatory, if any particular issue found (#8512)
  • Improve aspect-loading when testing the Bit core codebase (#8516, #8515)
  • Prepare for automated peerDependency installation in capsules (#8527, #8450, #8537)

v1.6.52

06 Feb 19:48
Compare
Choose a tag to compare

Bug Fixes

  • Fix issue where bit start failed to handle null for the new Developer Dropdown (#8499)
  • Fix an issue where variables and class names weren't renamed correctly on bit new (#8501)

v1.6.50

05 Feb 18:16
386ac61
Compare
Choose a tag to compare

New Features

  • Introduce new Lane History to log changes of multiple components (#8381, #8370, #8383)
    • bit lane history command to inspect and control history of changes
    • bit lane checkout to "jump" back in time to a state of a lane
    • bit lane revert to revert implementation of all components in the last to a previous state (they will be modified)
  • Introduce ability to mark dependencies as optional (#8169, #8290)
  • Introduce new Developer Dropdown for bit start; allow log-in through the UI, include more links to docs, resources and more (#8376, #8158, #8457)

Changes

  • Support managing multiple lanes with the same name (and different scopes) in the same workspace (#8419, #8389)
  • Merging from main includes components that are not in the lane, but in the workspace (#8279)
  • Shorthand version for bit install --add-missing-deps with bit install -a (#8379)
  • Additional merge strategies for components and lanes (#8397, #8418, #8414, #8393, #8425)
  • Improve basic generators section in workspace.jsonc to simplify comment-in/out of basic generators (#8284)
  • scope rename command to support renaming exported components (#8456)
  • Add a warning during bit status where a component refers to its own package name (#8442)
  • Commands now support specifying package names instead of component-ids (#8427)
  • New option for rename command - --delete to mark the old name to be deleted (#8446)
  • Support component patterns for format, lint and diff commands (#8447, #8445, #8359)
  • Support --skipDependencyInstallation for bit eject (#8390)

Performance

Bug Fixes

  • Fix CLI outputs to improve DX and readability of messages (#8416, #8413, #8340, #8294, #7936, #8032, #8288, #8334, #8333, #8280, #8437)
  • Fix a bug where modified dependencies weren't showed in the UI (#8384)
  • Fix an issue where navigating between previews of the same component failed (#8367)
  • When forking components, their dependencies should have a semver pre-fix in workspae.jsonc (#8430)
  • Various fixes for Lane and merge conflict management (#8337, #8317, #8316, #8292, #8368, #8380)
  • Better handle network glitches by better configuring retries (#8305)
  • Fix an issue where Bit tried to delete files from non-existing components (#8421)
  • Fix routing issues for components with the same name and different scopes in the same bit start app (#8404)
  • Fix an issue where artifacts weren't available as part of the context for application deployment (#8400)
  • Ensure workspace-aspect-config values remain when running bit init --default-scope MY-SCOPE (#8299)
  • Fix an issue where component IDs left in workspace.jsonc after bit remove of that component (#8356)
  • Fixed a bug where link to highlighted line in a non-main version wasn't routing correctly (#8282)
  • Fix an issue where bit deps set is not the top priority for dependency version management (#8287)
  • Do not throw an error when there are no components to diff (#8332)
  • Fix an issue whereLanes Overview and didn't have live rendering (#8354)
  • install should prefer root policy versions for root node_modules installation (#8449)
  • Fix an issue where jest-tester did not return the test results on Windows (#8441)
  • Fix an issue where bit start threw a "duplicate render keys" error (#8460)
  • Fix reset to remove component from lane if the reset was to main and not exist on remote-lane (#8454)

Internal