What's New in Bit? November 20, 2023

ed
eden-e5 months ago

Weekly release notes v1.3.24

Run bvm upgrade to get the latest stable version of Bit. See Install experimental releases to try out the latest experimental features.

New and improved


Identify which components use a dependency

You can now see which components use a specific dependency. This is useful when you want to know which components are affected by a bug in a dependency, or which components use a specific version of a dependency.

Run the bit why command with the component ID or package name of the dependency you want to check:

$bit
Copiedcopy
See command synopsis

The output lists the components that use the dependency, as well as the path to the component directory of dependent components maintained in the workspace:

Legend: production dependency, optional only, dev only

/path/to/component/diretory/of/dependent/component

dependencies:
teambit.docs/docs/getting-started/create-components 0.1.1 └── teambit.community/ui/text-tooltip 0.0.11

Specify a version to look for a specific version of the dependency. For example bit why @teambit/community.ui.text-tooltip@0.0.3.

#7959

Read more about internal changes, bug fixes, and performance improvements

Read the release log here

Demos, tools and docs

Locally link Bit components to non-Bit projects

Bit enables you to test locally maintained components in a non-Bit project by generating symlinks to them, from your project's node_modules directory.

For example, the following command generates symlinks to Bit components from the current Bit workspace to the node_modules directory of 'my-non-bit-project':

$bit
Copiedcopy
See command synopsis

To learn more read the Linking workspaces docs.

Better support for your CI system

We've created a suite of scripts to help you integrate Bit with your existing CI system. You can suggest new component versions on a separate git branch, build and test them in isolation, make them available for consumption for other projects in a temporary Bit lane, and release them only when the branch is merged to master.

Angular v17 support

The default Angular env now supports Angular v17!

You can create a new workspace with Angular v17 by using the following command:

$bit
Copiedcopy
See command synopsis

If you were using the default Angular env and want to continue using v16, you can replace it with:

$bit
Copiedcopy
See command synopsis

Lit v3 support

We've updated our lit env to lit v3.

If you're using a custom env that extends the lit base env, run the following to update it to the latest version of the lit base env:

$bit
Copiedcopy
See command synopsis

If your components use the base lit env directly then run the following to update to the latest version of the lit base env:

$bit
Copiedcopy
See command synopsis

The bulk of changes in v3 are internal to lit, so it's a relatively non-breaking new version and most lit components wont need to be changed at all after upgrading. If you run into issues after the upgrade please check the lit v3 release notes above and/or get in touch with bit.