Skip to content

Releases: teambit/bit

v1.2.0

08 Oct 18:42
Compare
Choose a tag to compare

IMPORTANT UPGRADE NOTE

This changes .bitmap contents. Once you run a command with this version in any workspace, the contents of .bitmap will change.
The update is backwards compatible - if some team members use older release of Bit, they can still operate in the workspace.
Please make sure to commit the .bitmap changes.

New Features

  • Experimental - Support having multiple components with the same name but different scope in the same workspace (bit config set allow-same-name true) (#7897)
  • Experimental - Support linking of peer-dependencies for bit link --target with the new --peer option (#7990)

Changes

  • Add a warning when tagging on main without --build (#7991)
  • Prints an output to the terminal with link to remote build task, if relevant (#8002)
  • Add outdir to tsconfig to better handle it for ws-config write (#7987)

Bug Fixes

  • Fix an issue where lane gets exported after lane rename (#8007)
  • Fix file-history to be compared against parent, not previous snap (#8008)
  • Fix an issue where extensions generated in old Bit version got duplicated (#7992)
  • Fix an issue where defaultScope was missing in .bitmap entries (#8005)

Internal

  • During tag or snap, clear status-cache when a component is modified (#8003)
  • Support ignorePackageManifest option to the pnpm package manager aspect (#8001)
  • Support extracting schema for react components without props (#7996)
  • Replace ShowDoctorError with BitError (#7995)
  • Support caching of the lock file only for scope aspects capsules (#7994)

v1.1.0

02 Oct 07:43
Compare
Choose a tag to compare

New Features

  • Select internal files or dirs to avoid tracking by adding a .bitignore file within component directory (#7967)
  • Test all local components with new bit test --unmodified option (#7847)
  • Ability to only update lock-file with bit install --lockfile-only, without re-installing node_modules directory (#7926)

Changes

  • bit update updates components according to their compatible versions from workspace.jsonc or from package.json (#7809)
  • Improve automated API reference, including custom highlighting, re-export of types and support links to external packages (#7977 #7981 #7976 #7975 #7966 #7969 #7965 #7951 #7914)
  • Allow envs to register multiple app types (#7970)

Performance

  • Improve loading speed of component overview by lazy load monaco editor (#7921)

Bug Fixes

Internal

  • Add new empty state integration slot to component docs overview (#7963)
  • Update dependencies (#7930 #7931 #7962)
  • Move components to be dependencies (#7982)
  • Use latest main aspect location when searching for aspects to load (#7956)
  • Remove legacy js-doc parser when extracting doc description (#7943)
  • Work toward allowing multiple components with same name, but of different scopes (#7960)
  • Move the check for missing-dist from onLoad slot to status and snap/tag only (#7974)
  • Improve ArtifactDefinition API by deprecating the confusing props: directories, rootDir and dirPrefix (#7973)
  • Remove legacy sass loader syntax (~) (#7925)
  • Support exporting only the head tag, not all history (#7954)
  • Remove currentLaneId from cache when running in a workspace (#7944)

v1.0.0

20 Sep 12:42
Compare
Choose a tag to compare

Breaking changes between 1.0.0 and previous versions

These are the major changes coming to version 1.0.0 and how to adapt them to your workflow.

  • Default registry for dependency resolution changed for teams using bit.cloud. Starting from version 1.0.0, dependencies will be resolved from node-registry.bit.cloud instead of node.bit.cloud. You will need to delete your lockfile for this to take effect. node.bit.cloud is still supported, but we recommend migrating to node-registry.bit.cloud.
  • Remote builds turned "on" by default. This change comes to integrate your workspaces with RippleCI. We urge you to take a look at this flow.
    • If your automation flow uses bit tag --soft and bit tag --persist combo, it is still supported and you do not need to make any changes.
    • If you run your tag or snap fully from your local, you will need to add the --build flag to your syntax, or set bit config set force_local_build true for Bit's local config.

Please read more about these changes in Bit's announcement post for RippleCI on our blog.

Changes

  • Set remote build to true to build on Ripple (#7859)
  • Set new registry by default (node-registry.bit.cloud) (#7870)
  • Skip validating any component issues for components marked to be deleted (#7896)
  • Remove versions from lockfile of envs from the current workspace (#7888)
  • update command to support multiple, comma-separated patterns (#7881)
  • Removed teambit.workspace/variants from base workspace.jsonc template (#7879)
  • Removed outdated video from tests blank state screen (#7893)

Performance

  • Update pnpm to a newest version that leverages worker threads (#7875)

Bug Fixes

  • Re-render bit start when component ID changes, to update according to the current workspace state (#7895)
  • Prefer versions in .bitmap to be tags, if possible (#7891)
  • Fix issues causing Yarn to fail when configured for bit install (#7887)
  • Fix an issue where packages containing hard links failed to extract (#7882)
  • Fix links in the component tree where namespace and name are identical (#7861)
  • Fix an issue where forked components ported "rename" information from the original component (#7867)
  • Improve examples in update's --help output (#7803)
  • Fix links to docs from .bitmap (#7869)
  • Fix cases where bit start was not open on default browser (#7899)
  • Fix a case where previous env was set for a forked component (#7918)
  • Fix an issue where generated package.json was in a broken state (#7919)
  • Add more descriptive error when there is no scope available on tag (#7912)
  • Improve error message when a component template was not found (#7886)
  • Stop the checkout if some components failed (#7904)
  • Fix issue where a Vue workspace failed to generate (#7894)

Internal

  • Reduce the amount of paths ws-config write targets to write config files (#7865)
  • Write to fs-cache gracefully (#7883)
  • Preserve pnpm stack-trace when re-throwing errors from Bit (#7889)
  • Allow passing metadata from the previous build to the deploy pipeline (#7874)
  • Update dependencies (#7878)
  • Add additional metadata for API transformer and schemas (#7472)
  • Use forked @teambit/chokidar and switch back to FsEvents (#7915)
  • Fix a case where yarn's peerDeps were not set as deps for Bit (#7909)
  • Remove @types/webpack-dev-server (#7911)
  • Update @babel/preset-react and @babel/preset-typesscript (#7908)
  • Replace deprecated babel plugins with new ones + minor deps updates (#7905)

v0.2.51

13 Sep 08:22
Compare
Choose a tag to compare

Changes

  • Remove versions from lockfile of envs from the current workspace (#7888)
  • Skip checking for component issues for components marked to be deleted (#7896)
  • update command to support multiple, comma separated patterns (#7881)
  • Removed teambit.workspace/variants from base workspace.jsonc template (#7879)
  • Removed outdated video from tests blank state screen (#7893)

Performance

  • Update pnpm to the newest version that leverages worker threads (#7875)

Bug Fixes

  • Re-render bit start when component ID changes, to update according to the current workspace state (#7895)
  • Fix cases where bit start was not open on default browser (#7899)
  • Fix issues causing Yarn to fail when configured for bit install (#7887)
  • Prefer versions in .bitmap to be tags, if possible (#7891)
  • Fix an issue where packages containing hard links failed to extract (#7882)
  • Fix links in the component tree where namespace and name are identical (#7861)
  • Fix an issue where forked components ported "rename" information from the original component (#7867)
  • Improve outputs in various commands (#7803 #7869)

Internal

  • Reduce the amount of paths ws-config write targets to write config files (#7865)
  • Write to fs-cache gracefully (#7883)
  • Preserve pnpm stack-trace when re-throwing errors from Bit (#7889)
  • Allow passing metadata from the previous build to the deploy pipeline (#7874)
  • Update dependencies (#7878)

v0.2.40

03 Sep 13:45
Compare
Choose a tag to compare

New Features

  • Streamline component removal flow with a dedicated bit delete command (#7807)
  • Automate re-align IDE type checking, lint and formatting with Bit components during bit create (#7808)

Changes

  • Avoid running pipelines on deleted components (#7792)
  • CLI output improvements for better DX (#7851 #7846 #7735 #7793 #7789 #7827 #7842 #7813 #7802 #7786)
  • Add support for component patterns for bit update and --major | --minor | --patch options (#7783)
  • Scope name is now optional for lane and component renames (default to current scope or lane) (#7853)
  • AST based code transformation (for rename, refactor and fork) is now experimental (#7836)
  • Update component and workspace generator to support generics, enhanced templates and more (#7804 #7829)
  • Add a basic workspace starter for nodejs development (#7831)
  • Make build context optional for deploy task (#7850)
  • Allow extending Component Preview to pass component docs from outside (#7805)
  • Base workspace.jsonc supports new mechanism for env loading (#7801)
  • Support setting a cloud-domain during bit login (#7812)

Performance

  • Improve scanning components directories in the workspace by ignoring node-modules directories (#7832)
  • Avoid importing history of irrelevant lanes (#7849)

Bug Fixes

  • UI Fixes (#7835 #7848 #7833 #7830 #7818 #7736)
  • Various fixes for merging lanes corner cases (#7858 #7837 #7816 #7791 #7845 #7834 #7790)
  • Fixed issue where a second compile needed after bit install (#7857)
  • Fixed an issue where you have to run bit checkout head twice when head-snap wasn't available (#7844)
  • Fixed an issue where scope rename tried to rename envs without needing to (#7824)
  • Fix out-of-memory errors when exporting huge amounts of components and versions (#7796)
  • Fix an issue where version was required for compiling a specific component (#7795)
  • Fix Maximum call stack size exceeded when calculating component dependency graph (#7794)
  • Fix links from the base workspace.jsonc template (#7800)
  • Import missing components needed for diff command, instead of failing (#7787)
  • Fix an issue where switching lanes from different scopes didn't import from the target scope (#7814)
  • Do not pack internal Bit files and folders by mistake by adding them to capsule's .npmignore (#7817)
  • Fixed an issue where Bit tried to fetch new, un-exported, lanes (#7854)
  • Fixed an issue where creating of multiple components led to conflicting target paths (#7821)

Internal

  • Update dependencies (#7856 #7782)
  • Add programmatic API for creating/switching lanes (#7838)
  • Reconfigure bit-watcher to have a single target (workspace), not many (each component-dir) (#7862 #7828)
  • Add option to remove some outputs from pnpm (#7826)
  • Replace pnpm with npm for packing components to packages (#7825)
  • Limit capsule creation parallelism to 50 (#7819)
  • New API slot to register function before CLI exits commands (#7811)
  • Set correct node versions in docker file (#7799)
  • New API slot to register a capsule transfer function (#7798)
  • Improve visual version history graph by adding --mark option for various cases to make it easy to debug complex scenarios (#7815)
  • Don't link root components to files in .bit_roots (#7810)
  • Re-link core-aspects to capsules when CACHE_CAPSULES is set (#7788)
  • Ensure component aspect state is always up to date for components (#7806)
  • Support managed paths in webpack dev-server (#7713)
  • Add route to express middleware interface (#7841)
  • Update local VersionHistory for component-object during export (#7822)

v0.2.24

14 Aug 09:00
Compare
Choose a tag to compare

New Features

  • New command bit deps usage to find components that use the given dependency (#7737)
  • bit update supports passing glob patterns of components and semver to update (#7746, #7755, #7757)

Changes

  • Improve outputs for various commands (#7766, #7729, #7719, #7740)
  • Add "merge strategy" support for bitmap merge driver (#7754)
  • Enable running snap and tag with --ignore-build-errors and --disable-snap-pipeline | --disable-tag-pipeline (#7727)
  • Add "merge strategy" support for Lane merge (#7768)
  • Run ws-config write as part of bit new (#7661)
  • Improve error when snapping/tagging a dependency from another lane to suggest solutions (#7728)
  • Support a new component-issue of RemovedDependencies during bit status (#7767)
  • Align "remove component" from lane flow to be similar to "deprecate" (#7774)

Performance

  • Improve build | tag | snap performance by skipping installing dependencies of envs (#7748)

Bug fixes

  • Fallback to fetch component history from server in cases it was missing (#7777)
  • Solved an issue where JSX tags in MDX caused lint to fail (#7762)
  • Better handling complex lane merges (#7775, #7730, #7760, #7759, #7381, #7769, #7742, #7734, 7738, #7731, #7778, #7764, #7706)
  • Several bit rename fixes (#7758, #7726, #7720)
  • Solved an issue where bit update tried to update versions for non-exported components (#7772)
  • Do not re-link local components on repeat install (#7743, #7665)
  • Solved an issue where rename of an env didn't change env for their dependents (#7733)
  • UI Fixes (#7739, #7732)
  • Solved an issue where a "recovered" component was still marked as "removed" (#7724)
  • Better handling for deduping peer dependencies when rootComponents are used (#7710)

Internal

v0.2.23 - DEPRECATED

14 Aug 09:29
Compare
Choose a tag to compare

DEPRECATED
Use version 0.2.24 instead

v0.2.14

30 Jul 12:20
Compare
Choose a tag to compare

New Features

  • Introduce a new command to abort the last lane merge lane merge-abort (#7670 #7698)

Changes

  • Build pipeline replace now adds a task if not exist (#7695)
  • Improve diff status for test files (#7686)

Performance

  • Avoid loading all components for compilation, until needed (#7690)
  • Add components in lane to local cache (#7674)
  • Remove a recursive call during "component loading" (#7673)

Bug Fixes

  • Fixes for watching file changes on Windows (#7677 #7711 #7708)
  • Fix ws-config to better support windows file paths format (#7663)
  • Fixes issues for bit new where starter contains many components and envs (#7707 7700)
  • Fixes an issue where an App deploy task didn't get full context from build task (#7709)
  • Fixes several cases when snapping components in lanes (#7705 #7699)
  • Fix an issue where during bit merge configuration wasn't passing correctly (#7704)
  • Fix several --rename and --refactor edge cases (#7678 #7701)
  • Ensure the link from "component drawer" targets the exact component name (#7668)
  • Fix an issue where sometimes envs trigger a warning on missing tsconfig.jsonc (#7669)

Internal

  • Update dependencies (#7687 #7660 #7662 #7656)
  • Support argument description when generating CLI reference (#7685)
  • Rebuild local component index upon clearing scope cache (#7688)

v0.2.3

17 Jul 10:34
Compare
Choose a tag to compare

New features

  • New command bit revert to revert a component that is currently in a lane back to main (#7649)
  • Ability to solve merge conflicts for .bitmap files with a bit git sub commands to help with git integrations (#7597)
  • Ability to set env and config during bit fork (#7589)

Changes

Performance

  • Performance improvements when merging and dealing with lanes with many components and long history graphs (#7584)

Bug fixes

  • Fixed an issue where components that were marked to be removed got added to a lane (#7648)
  • Fixed an issue where modify component-env blocked operations (#7647)
  • Fixed an issue where sometimes Bit export throws missing data error (#7598)
  • Fixed an issue where core aspects weren't always linked (#7583)
  • Downgrade Yarn to the last stable version because RC versions are not stable (#7645)

Internal

  • Update dependencies to fit node 18 and up (#7624 #7607 #7604 #7600 #7602 #7601 #7595)
  • Change configuration for various components (#7636 #7621 #7625 #7622 #7633)
  • Update pnpm version (#7578)
  • Compiler transpile function to by async (#7537)
  • Update schema extractor to use AST transform (#7632)
  • Various upgrades to bit start dev server proxy (#7605 #7576)
  • Expose the device used by the user to improve mobile friendly-ness (#7577)
  • ws-config config writers are now managed by individual envs (#7637)
  • update '@teambit/mdx.ui.mdx-scope-context' to '0.0.498' in mdx env (#7654)

v0.1.74

25 Jun 10:13
Compare
Choose a tag to compare

New Features

  • Support passing port to bit run from terminal (#7530)
  • Get quick information only on modified and new components - bit ms bit mini-status (#7567)
  • Easily remove component from lane - bit lane remove-comp (#7558 #7539 #7571 #7511)

Changes

  • Understand more dependency sources in bit deps debug ("env", "auto" and "config") (#7561 #7552)
  • Print bit version during bit sign command (#7517)
  • New alias --template for new and create commands (#7532)

Bug Fixes

  • Various terminal outputs and UI fixes (#7564 #7566 #7525 #7550 #7535 #7545 #7529)
  • Fix a case where bit update crashed when there's nothing to update (#7546)
  • Fix a case where bit checkout latest wasn't moving to latest when component has no semver (#7551)
  • Fix cases where schema extractor didn't provide API references (#7533 #7560 #7522)
  • Fix a case where bit install didn't resolve env correctly when setting a snap (#7521)
  • Fix cases where react was resolved from Bit's webpack alias instead of the env (#7519)

Internal

  • Improve handling of custom capsule directory location (#7543 #7544 #7542 #7540 #7555 #7531 #7547 #7246 #7554 #7520)
  • Update dependencies (#7569 #7527 #7559)
  • Move diff command to component-compare aspect (#7570)
  • Add context to fork & import functions (#7553)
  • Support async generateFiles method for template generators (#7557)
  • Set issues aspect as optional (#7549)
  • Support a hosted component-importer service (#7538)
  • Limit merge lane concurrency to 50 components (#7562)
  • De-duplicate MissingPackagesDependenciesOnFs during bit install (#7523)
  • Load @teambit/harmony config from browser.window if possible (#7516)
  • Support excludeLinksFromLockfile and lockfileOnly for pnpm aspect (#7518 #7548)