Skip to content

Releases: teambit/bit

v14.2.4

14 Aug 09:33
Compare
Choose a tag to compare

New

  • #1867 apply workspace overrides config on imported components
  • #1863 allow excluding components from overrides rules
  • #1865 allow adding package.json props via overrides
  • #1837 enable executing commands on remote components outside of bit-workspace
  • #913 add new flags to bit init -c|--compiler, -t|--tester, -d|--default-directory, -p|--package-manager
  • #1889 auto add @types/package-name to the dependencies of TS components
  • added no_warnings config to eliminate some warnings from being written to the stdout

Changes

  • remove Angular dependencies from bit-javascript, instead, use TS compiler to parse Angular Decorators
  • #1892 deprecating bit list --bare and replace with bit list --raw
  • #1774 improve access errors and warn when sudo is used
  • change shortcut flag to bit init standalone from t to T

Bug fixes

  • safer access to bit global config
  • #1903 fix importing dependents to not override dependencies
  • fix capsule to respect the override property of vinyl files
  • #1925 update bit-javascript to fix Angular non-relative paths from decorators

Experimental

  • #1885 introduce new flags --dependents and --dependencies for bit show to display them all recursively
  • #1908 new bit init interactive
    Collapse

v14.2.3

28 Jul 10:23
Compare
Choose a tag to compare
  • #1714 auto recognize mainFile when a file added with the same name as its dir
  • #1683 introduce --namespace flag for bit list to support namespaces with wildcards
  • #1727 prevent saving objects that link to invalid objects
  • #1856 fix links deletion from node_modules after installing packages by a compiler on a capsule
  • #1710 improve performance of importing an entire collection

v14.2.2

24 Jul 14:55
Compare
Choose a tag to compare

New

  • add workspacePath and bitmapFileName to post-add hook invocation

Changes

  • improve bit watch to watch directories instead of only files to support addition / deletion
  • #1634 improve the output of bit watch

Bug fixes

  • fix "Cannot read property 'push' of undefined" error upon bit status
  • build only the component of the modified/added/removed file upon bit watch
  • #1668 bug fix - bit watch doesn't update files

v14.2.1

21 Jul 14:01
Compare
Choose a tag to compare
  • fix "Cannot read property 'length' of undefined" error upon bit status
  • fix error "unable to link" upon bit build when dist is outside the components dir
  • #1705 preserve newline type of package.json and add a newline at the end (same as NPM does)

v14.2.0

18 Jul 13:57
Compare
Choose a tag to compare

Bit is now available to install as a binary with all dependencies. This is the prefer method to install Bit, as it is bundled with its runtime. Note that when you install with npm / yarn Bit only supports node < 8.12.0.

New

  • Support packaging bit-bin into a binary file according to the OS by running npm run pkg
  • Enable compilers and testers to isolate components using capsule.
  • add --no-cache flag to bit ci-update command
  • #1762 allow compilers to add properties to package.json file.
  • #1770 modify dependency links for compilers that bundle them.
  • #1663 Support toposort order when compiling components.
  • #1808 Adding dist-path-template as a package.json value, which gets replaced with the calculated dist path upon import.
  • Generate index.d.ts file for node_modules links generated for typescript's custom-resolve-modules.
  • Add a custom entry point file for Angular components
  • Support providing different main-file for dists by a compiler
  • Support identify angular dependencies

Changes

  • fix require statements to an internal package file to not include extensions if they're [.js, .ts, .tsx, .jsx]
  • #1792 don't generate entry-point files for nested dependencies when their package.json is written
  • change dependency links generated when dependencies are saved as components to be module paths and not relative paths

Bug fixes

  • #1817 fix ComponentNotFound error when tagging after export, tag and untag for author using compiler that builds dependencies.
  • #1810 avoid generating link files with .ts, .jsx and .tsx inside node_modules.
  • #1807 fix resolution of dependency when 2 files require it and one of them using alias
  • #1796 fix dependency resolution when 2 files of component import different things from a file of another component
  • #1779 update bit-javascript to prioritize custom-resolve settings
  • avoid generating duplicate require statements within dependency links files of ES6
  • update bit-javascript to fix finding tsconfig.json for Angular projects
  • #1750 improve the output to clarify when a dependency package is missing
  • #1752 fix dependency links generation when originally there were multiple link files
  • fix directory flag of bit ci-update command
  • fix installation errors on Windows related to posix package by replacing it with uid-number
  • #1734 fix error "unable to add the file ..." when the require statement was of . or .. as the only string

Experimental

  • add post-add hook
  • add option to isolate component into "capsule" via bit isolate command

Internal

  • update execa to v2.0.3
  • upgrade to babel 7

v14.1.4-dev.12

18 Jul 11:18
Compare
Choose a tag to compare
v14.1.4-dev.12 Pre-release
Pre-release
  • update bit-javascript to fix finding tsconfig.json for Angular projects
  • change the minimum node supported to v8.12.0 instead of v8.0.0, to be compatible with execa

v14.1.4-dev.6

04 Jul 09:33
Compare
Choose a tag to compare
v14.1.4-dev.6 Pre-release
Pre-release
  • add a custom entry point file for Angular components
  • #1750 improve the output to clarify when a dependency package is missing
  • #1752 fix dependency links generation when originally there were multiple link files

v14.1.3

06 Jun 10:04
Compare
Choose a tag to compare

Bug fixes

  • #1708 support require with apostrophes
  • #1698 fix dependency version resolution when imported component requires authored component
  • #1702 fix error "failed adding a symlink into DataToPersist, src is empty"
  • #1699 fix config.get is not a function

v14.1.2

02 Jun 18:39
Compare
Choose a tag to compare

New

  • introduce a new command bit undeprecate to revert deprecation of components
  • introduce a new flag --machine-name for bit login to help CI servers keep their token not revoked
  • support bit import with wildcards to import an entire scope or particular namespace(s)
  • support changing the log to json format by running bit config set log_json_format true
  • add bit version validation to bit doctor command
  • add validation for npm executable on bit doctor
  • add validation for yarn executable on bit doctor

Changes

  • sort .bitmap component ids alphabetically to reduce chances for git conflicts (#1671)
  • #1627 improve bit tag output
  • add a suggestion to run bit doctor on various errors
  • avoid generating links of devDependencies when installing component as packages (#1614)
  • add metadata to bit doctor output
  • update bit add help message with instructions for using glob patterns with --tests
  • rewrite dependencies when installed as components even when exist to rebuild their dist directory

Bug fixes

  • #1665 fix resolve-modules prefix with Tilda
  • improve sync between .bitmap file and the local store, see #1543 for complete use cases
  • fix bit remove and bit eject to delete the dist directory when located outside the components dir
  • fix bit eject to support component custom npm registry scope
  • fix generated package.json when dist is outside the components dir to point the main to the dist file (#1648)
  • ignore import/require statements from CDN (HTTP/HTTPS)
  • avoid generating package.json inside node_modules for an author when one of the component files is package.json
  • preserve indentation of package.json files and default to 2 spaces, similar to NPM (#1630)
  • show a descriptive error when the dist directory configured to be outside the components dir and is missing files

v14.1.1

16 May 15:46
Compare
Choose a tag to compare

Bug fixes

  • fix bit build to not generate index.js files when package.json file already exists
  • prevent overwriting author files by not writing auto-generated content on symlink files (#1628)
  • avoid changing the local version of a component to the latest when exporting an older version
  • fix post-receive-hook to send all exported versions and not only the latest
  • fix dependency resolution to identify link (proxy) files correctly
  • fix bit status to not show a component as modified after tag when the version is modified in the dependent package.json
  • fix "npm ERR! enoent ENOENT" errors when importing/installing multiple components
  • fix dependency value in the dependent package.json to include the path when importing them both in the same command
  • fix "EEXIST: file already exists" error when running bit link or bit install and the dist is outside the component directory
  • fix bit add to ignore directories when their files are added (#1406)