Releases: teambit/bit
Releases · teambit/bit
v1.8.127
Improvements
bit compile
andbit watch
can generate types with--generate-types
flag (#9308, #9314, #9301)- Support syntax highlighting for
.vue
files (#9282) - Support passing arguments to app dev server on
bit run
with--args
option (eg--args="--a=1 --b=2"
) (#9216) - Component patterns support more complex selector on various commands (unlimited
AND
, multiple states and more) (#9235) bit stash
supports stashing new components with--include-new
(#9273)- New experimental commands:
- UI, CLI, error messages, outputs and various Dev-Ex improvements (#9297, #9217, #9311, #9275, #9260, #9293, #9283, #9245, #9291, #9238, #9302, #9288, #9248, #9294, #9284, #9241, #9316, #9250)
Bug Fixes
- Make sure component history does not contain redundant information (#9281)
- Fix an issue where dependencies marked as missing were not possible to be removed (#9265)
- Fix an issue where components marked as
local-only
where still printed in thesnapped
orpending
inbit status
(#9266) - Fix an issue where fork information is not available before trying to extract it (#9229)
- Fix an issue where in API-schema generation where functions weren't serialized correctly (#9258)
- Ignore cases
bit deps-set
used to self-apply or remove "self" as a dependency (#9237) - Fix an issue where duplications occurred on a components auto-generated
package.json
(#9240) - Fix an issue where during switching lanes with
bit switch
command, redundant components were re-written (#9318) - Fix an issue where during
bit import
env configuration was removed fromcomponent.json
(#9319) - Fix an issue where
bit install
crashed when it failed to delete unwanted items innode_modules
(#9224) - Fix an issue where
bit start
failed when the same env with several version was used in a workspace (#9244) - Fix an issue where
ComponentNotFound
error was thrown on new components in various cases (#9317) - Fix an issue where
.DS_Store
was added to components (#9313) - Fix an issue where renamed components were not deleted upon lane merge (#9307)
- Fix an issue where deleted components weren't reintroduced back into .bitmap after
bit reset
(#9300) - Fix an issue where
bit start
spinners abstracted errors (#9287) - Fix an error where outdated local index caused Bit to fail communicating with remote server (#9242)
Internal
- Update dependencies (#9299, #9227, #9310, #9298, #9222, #9315, #9246, #9220, #9243, #9259, #9270)
- Bit-Server improvements for IDE plugin (#9320, #9253, #9252, #9236, #9268, #9321, #9309, #9296, #9289, #9255, #9254, #9247, #9225, #9330, #9295, #9303, #9276, #9280, #9328)
- Refactor old code and cleanups (#9324, #9326, #9325, #9323, #9322, #9306, #9261, #9286)
- Avoid watching local-scope files on Windows (#9226)
- Improve merge between workspace/scope config and global Bit config (#9231, #9223)
- Ensure
package.json
is available in capsules root directory (#9329) - Improve error handling for aspect loading (#9263)
v1.8.68
Improvements
- Sort component IDs in
bit export
output, and introduce--verbose
option to show which versions exported (#9219) - Add additional examples to
bit env set --help
(#9212) - Automated API reference now shows complete signature of every API node including docs (#9206)
- Improve CSS/SASS/SCSS dependency detection to support
import ... as ...
and more (#9205) bit dependents
support--json
option to get easily parse output by another process (#9204)bit build | snap | tag
supports--skip-tasks
to skip any task from the build pipeline (#9196)bit test
exit with non-zero code when tester fails due to coverage (#9218)- Following commands and flags are no longer marked as experimental: (#9200)
bit fork --ast
bit scope fork --ast
bit rename --ast
bit scope rename --ast
- use AST to transform component instead of regular expressionsbit recover
- recover component(s) soft-deleted from the workspace, or a remote scopebit stash
- stash modified componentsbit mini-status
- light and fast variation ofbit status
bit dependencies --tree
- render dependencies as a tree, similar tonpm ls
.bit lane rename
- change the lane-name locallybit watch --check-types
- show errors/warnings for types duringbit watch
Bug Fixes
- Fix an issue where if compilers did side-effects during build pipeline on
package.json
, these changes would not be in the generatedpackage.json
(#9207) - Fix an issue where the component-preview-template from the env was not included for core-environments (#9215)
- Fix an issue where Bit tried to fetch local aspects from remote (#9208)
Internal
- Fix many linting issues (#9209)
- Remove
component.jsonc
files from some core components (#9211) - Update envs for core aspects (#9201)
- Update dependencies (#9199, #9195, #9184, #9180, #9182)
- Make the process of loading components and apps more robust (#9198, #9194)
- Improve Scope garbage collect (#9193, #9192, #9190, #9189)
- Add more APIs for VScode plugin to proxy for additional Bit commands (#9183)
v1.8.52
Improvements
- Improve various CLI outputs to improve dev-experience (#9175, #9171, #9167, #9114, #9161, #9131, #9132, #9170, #9096)
- Show dependents of a Lane in the component-drawer of the workspace and scope (#9151, #9154, #9152)
Performance
- Reduce memory usage during peer dependencies resolution (#9156)
Bug Fixes
- Fix an issue where modified components were rendered with opacity in the Bit dev-server (#9136)
- Fix an issue where user-bar and compositions got re-rendered on route change in the Bit dev-server (#9137)
- Fix an issue where
bit env replace
didn't work well when multiple versions of the same env is used for various components (#9174) - Fix an issue where link to line-of-code didn't scroll to selected line (#9160)
- Fix an issue where automated API-reference had a missing API in tagged exports (#9162)
- Fix an issue where Vite-generated previews didn't work well on windows (#9143)
- Fix an issue where
onLoad
event wasn't triggered on webpack compilation errors (#9109) - Fix an issue where after
bit new
an error about "missing tsconfig" appears (#9092)
Internal
- Additional APIs for the VScode-Bit-plugin (#9178, #9172, #9169, #9144, #9139, #9120, #9090, #9155, #9153, #9106, #9105, #9099, #9101, #9125, #9104, #9087, #9094, #9088)
- Various fixes for "env loading" process (#9165, #9128, #9130, #9134, #9138, #9111)
- Update dependencies (#9147, #9110, #9150, #9103, #9121, #9135, #9098)
- Remove
--lane-history
from being a feature flag, as it is now the default (#9095) - Introduce more strategies to avoid fast-forward on
bit snap
ortag
(#9159) - Add some documentation for
teambit.workspace/workspace-config-files
aspect (#9116) - Prepare the
onlyOverview
mode for component-docs (#9124, #9141, #9119, #9166) - Store generator service data for envs in their model (#9089)
- Fix types issues in config mutator (#9177)
- Add add webpack alias
@teambit/base-react.navigation.link
to ensure a single instance (#9113) - Gracefully handle missing compositions (#9093)
- Improve backwards compatibility for legacy Jest testers (#9115)
- Support HMR for legacy-react-apps when using "port-forwarding" (#9091)
- Support define the env type by a type member as well as name (#9085)
v1.8.20
New Features
- Introduce Local Only Component workspace feature (#9059, #9057)
- Mark any number of components as Local Only with the new
bit local-only set <component>
command - Local Only components allow you to avoid tagging/releasing specific components, even if they are modified, or their dependencies are modified.
- Scenario 1 - I have an app in the workspace, which I want to be able to
bit run
, but I don't want to trigger it's build, as I am focused only on the components, while the app itself will be built and released from a different workflow. - Scenario 2 - I want to have a small component in my workspace as a basic "consumer" for my other components, and I don't want it published, as it is a testing environment for me and not a reuseable asset.
- Mark any number of components as Local Only with the new
Improvements
- Jest upgraded from 26 to 29 for all core environments (#9015, #9052)
- Only relevant for teams who either directly use, or customize the following:
teambit.react/react
,teambit.harmony/node
,teambit.react/react-native
.
- Only relevant for teams who either directly use, or customize the following:
- Support
--update-snapshot
option forbit test
- Requires updating your env, or
@teambit/defender.jest-tester
and@teambit/vite.vitest-tester
plugins if you have a custom env (#9025)
- Requires updating your env, or
- Quick search (
cmd+k
) now supports opening links in new tabs and few more UX updates (#9054) - Workspace starter (
bit new
) now supports creating custom envs and new components that use the new custom envs (#9036) - Add tooltip with full filename in file tree (#9066)
- Add environments when initializing a workspace with
bit init --generator [envs]
option (#9064) - Add deprecation warning for teams using the Eslint/Prettier aspects directly and not through the designated plugins (#9050)
- Introduce
--force-ours
and--force-theirs
options forbit switch
to override files in the workspace instead of trying to merge (#9048) bit list
command marks deleted components, and also sorted alphabetically (#9042, #9041)
Performance
- Support SSR for the Bit UI during
bit start
(#8915) - Avoid adding apps to
workspace.jsonc
duringbit create
, as this is no longer needed (and impacts command load time) (#9061, #9037)
Bug Fixes
- Fix an issue where
bit create
for a component with existing name but different scope failed (#9082) - Fix an issue where
bit doctor
command exited upon any check failure (#9072) - Fix an issue where if a package is duplicate in runtime and dev and
bit deps remove --dev
was used, dependency wasn't removed (#9070) - Fix an issue where short-hash version was written to
.bitmap
instead of long-hash (#9067) - Fix an issue where tagging a pre-release allows for an illegal version name (#9063)
- Fix several issues in generating automated API References (#9062, #9060)
- Fix an issue where dependency version was not saved correctly (#9039)
- Fix an issue where
bit show
listed incorrect version whenbit deps set
was used (#9035) - Fix and issue where dependency installation on
bit switch --main
fails when app is configured inworkspace.jsonc
but not in.bitmap
(#9038)
Internal
v1.7.48
Improvements
- Block running the
build
process when component issue is detected, and print the issue (unless manually approved) (#9031)
Bug Fixes
- Fix an issue where Bit removed
types
entry inpackage.json
that an env defined (#9034) - Fix an issue where CSS/SCSS parsing silently fails and not returning list of dependencies (#9033)
- Fix an issue where imports with a pattern that returned an empty list resulted in stopping the entire import process (#9027)
- Fix an issue where API Reference tab wasn't able to render method schema for functions that return jsx (#9019)
- Fix OOM when
ArtifactStorageError
throws (#9014)
Internal
v1.7.41
Features
- Automatically install
peerDependencies
(#8954) - Quick search in component dev-server (
bit start
) - Mac:CMD+K
, Windows/Linux:CTRL+K
(#8964)
Improvements
- Add generators to a new workspace during initialization (example:
bit init --generator frontend.module-federation/envs/mf-react-env
) (#8963) - Use dedicated SCSS and SASS parsers for better static code analysis and dependency detection (#8973)
- Automated API Reference supports
@link
and alias for object binding nodes (#8969) bit status
warns about components that use deleted envs (#9009)bit merge
to support component patterns (#8990)- Various UI and CLI message and tooltip updates (#8962, #8959, #8974, #8975, #8967)
- Change the recommended node version to be >=20.0.0 (#8966)
Performance
- Speed up rendering the component graph on workspace (
bit start
) (#8978) - Update component loading flow to improve performance (#8970)
- Improve command bootstrap performance by making it unnecessary to add apps to
workspace.jsonc
(#8965) - Improved strategy for determining if a snap is a part of a lane (#8961)
Bug Fixes
- Fix an issue where the proxy agent didn't get the correct configuration (#8972)
- Fix an issue where during
bit install
, components that compiled to ESM didn't havetype:module
inpackage.json
(#9006) - Fix an issue where
bit delete
allowed deleting components frommain
, when on a lane (#9003) - Fix an issue where files that were removed from a component in a lane caused diverged lanes (#8976)
- Fix an issue where when a component was merged to lane in a different lane, it wasn't available when using
--head
(#8960)
Internal
- Export type for install result (#8947)
- Add a fallback for events in webpack config (#8993)
- Support component load options for component compilation API (#9007)
- Update dependency versions (#8953, #8952, #9004, #8977, #9008, #8951)
- Refactor legacy functionalities to components (#9001, #8999, #8998, #8997, #8995, #8996, #8992, #8994, #8991, #8988, #8989, #8987, #8984, #8986, #8985, #8983, #8982, #8981, #8979)
v1.7.17
Performance
- Improve
bit install
performance when Bit cache is warm (#8939)
Bug Fixes
- Fix an issue where username/password auth settings from
npmrc
weren't passed correctly to pnpm (#8950) - Fix an issue where building version history graph caused stack overflow (#8944)
- Fix an issue where times were printed to console during command execution (#8935)
- Fix an issue where after
bit create
an error about not findingtsconfig
appeared (#8931)
Internal
v1.7.3
New Features
bit completion
command to support autocomplete for component names, commands, sub-commands and flags (currently supported macos/linux) -bit completion >> ~/.zshrc
(#8888, #8898)- Ability to open component in the browser with
bit show COMPONENT-NAME --browser
(#8910) env.jsonc
supportsextends
option, to allow inheriting from anotherenv.jsonc
(#8896)bit status
warns if you have components depending on deprecated components another code-smell (#8854, #8882, #8891, #8892)- Ability to keep
LICENSE.md
file as part of a components (#8909) - Easy way to import and keep dependencies more up-to-date with
--dependencies-head
option forbit import
(#8920) - Checkout to an ancestor-x revision of a component with
head~x
(bit checkout head~2 COMPONENT
) (#8870) - Set a workspace name on initialization with
bit init --name NAME
(#8919)
Changes
- Upgrade to PNPM 9 (#8770, #8901, #8867, #8913, #8878, #8904, #8879, #8877, #8916)
- Add time when log is printed to the console (#8929)
- Make
bit status
output cleaner when there are many warnings and add--warnings
option to see verbose output (#8899) - Default to
defaultScope
fromworkspace.jsonc
for thebit scope fork
command (#8885) - Add a
-r
alias for--auto-merge-resolve
(#8862) - Auto generate local scope when needed (#8923)
- Improve outputs from
bit lane merge
around updating dependencies inworkspace.jsonc
(#8886)
Performance
Bug Fixes
- Show a descriptive error when running bit-scope commands outside a workspace (#8884)
- Fix an issue where
bit checkout
didn't respect--auto-merge-resolve
flag when findingworkspace.jsonc
conflicts (#8930) - Fix various issues with component comparison (#8874, #8865, #8869, #8864, #8858)
- Fix an issue where loading consumer-components failed when cache issues found (#8927)
- Fix an issue where
bit eject-conf
changed theenv-version
of a component (#8912) - Fix an issue where deps for generators weren't installed correctly (#8906)
- Fix an issue where
bit diff
didn't import missing objects (#8861) - Fix several inconsistencies around updating dependencies (#8903, #8883, #8872)
Internal
- Improve setting up a local dev-environment for Bit (#8928, #8922, #8905)
- Improve preview entries (#8911, #8691)
- Improve handling cache and memory store (#8902, #8780)
- Update version hash calculation (#8887)
- Add ability for some commands to skip the
loadAspects
step (#8849) - Improve support for ESM in core aspects (#8890, #8895)
- Commit back generated CLI Reference (#8863)
- Removed unused code paths (#8876, #8875, #8873)
- Move core implementations to external components (#8860, #8914)
- Vulnerability fixes (#8857, #8853, #8908)
- Fix flaky tests (#8893)
v1.6.157
New Features
- Introduce
bit unset-peer
to support undoing `bit set-peer (#8843) - Introduce
bit unuse
to remove a configured aspect fromworkspace.jsonc
(#8848)
Changes
bit status
to show all soft-tagged components in a dedicated category (#8835)- Add a new component-issue "Import From Directory" suggesting to import from specific files (instead from
./
) (#8806) - Support
.gitignore
file in the component root-dir to avoid adding specific files to a specific component (#8847) - Support
--range
flag forbit remove
andbit deprecate
to affect a range of versions (#8844) - Support a new flag
bit switch ... --head
to checkout to thehead
of a main or lane head once switched (#8851) - Support doing a lane merge in a new lane with
bit merge move
sub command (#8834)
Bug Fixes
- Support aliases on exported nodes in schema extractor (#8838)
- Fix an issue where it was not possible to
import org.scope/**
while in a lane (#8836) - Ensure aspects replaces properly in
workspace.jsonc
duringbit scope rename
(#8842) - Block from creating a component with the same name as the template name (#8831)
- Block removal of new aspects that are used by other components (#8830)
- Fix an issue where
bit remove
didn't remove envs fromworkspace.jsonc
(#8829) - Fix an issue where
bit checkout
didn't resetcomponent.json
if exists locally (#8826) - API Reference overview section design fixes (#8832)
Internal
v1.6.145
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 toworkspace.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)