UNPKG

workspace-tools

Version:

A collection of tools that are useful in a git-controlled monorepo that is managed by one of these tools:

599 lines (300 loc) 10.6 kB
# Change Log - workspace-tools This log was last generated on Tue, 20 Sep 2022 18:54:55 GMT and should not be manually modified. <!-- Start content --> ## 0.28.1 Tue, 20 Sep 2022 18:54:55 GMT ### Patches - Add GIT_DEBUG environment variable (elcraig@microsoft.com) ## 0.28.0 Tue, 20 Sep 2022 08:01:43 GMT ### Minor changes - Expose createDependencyMap (erenmurat@microsoft.com) ## 0.27.0 Fri, 16 Sep 2022 23:24:41 GMT ### Minor changes - BREAKING CHANGE: `searchUp` now returns the full path to the item, not its parent directory. This only affects consumers that are directly using `searchUp`. (elcraig@microsoft.com) ## 0.26.6 Fri, 16 Sep 2022 23:00:36 GMT ### Patches - Replace read-yaml-file with js-yaml (elcraig@microsoft.com) ## 0.26.5 Thu, 15 Sep 2022 23:30:21 GMT ### Patches - Update dependency git-url-parse to v13 (email not defined) ## 0.26.4 Thu, 15 Sep 2022 08:01:32 GMT ### Patches - Exclude test helpers from published package (elcraig@microsoft.com) ## 0.26.3 Fri, 12 Aug 2022 05:32:10 GMT ### Patches - Fix listAllTrackedFiles if there are no tracked files' (elcraig@microsoft.com) ## 0.26.2 Fri, 12 Aug 2022 01:57:26 GMT ### Patches - Add cleanup functions for addGitObserver (elcraig@microsoft.com) ## 0.26.1 Mon, 08 Aug 2022 22:44:02 GMT ### Patches - Add missing type exports (elcraig@microsoft.com) ## 0.26.0 Thu, 04 Aug 2022 21:47:46 GMT ### Minor changes - Use ES2019 output (compatible with Node 14) (elcraig@microsoft.com) ### Patches - Gracefully handle not having a package.json at git root (boabdelm@microsoft.com) ## 0.25.4 Thu, 04 Aug 2022 08:01:48 GMT ### Patches - Switch from multimatch to micromatch (elcraig@microsoft.com) ## 0.25.3 Wed, 03 Aug 2022 08:01:34 GMT ### Patches - Simplify createPackageGraph and getPackageDependencies (elcraig@microsoft.com) - Update find-up to v5 (elcraig@microsoft.com) ## 0.25.2 Tue, 02 Aug 2022 23:03:14 GMT ### Patches - Add fs-extra to devDependencies and remove non-dev usage (elcraig@microsoft.com) ## 0.25.1 Thu, 21 Jul 2022 21:21:48 GMT ### Patches - Use git ls-files for checkUntrackedFiles (dannyfritz@gmail.com) ## 0.25.0 Thu, 21 Jul 2022 21:11:11 GMT ### Minor changes - BREAKING CHANGE: Improve detection of git root and throw if not found (dlannoye@microsoft.com) ## 0.24.0 Wed, 20 Jul 2022 22:31:31 GMT ### Minor changes - Make getDefaultRemote properly handle more combinations of URL formats, and add more logging to encourage defining the `repository` property in package.json for more accurate detection (elcraig@microsoft.com) ## 0.23.3 Fri, 15 Jul 2022 07:09:50 GMT ### Patches - change the api to be restored to have getDependentMap (actually gets dependencies) (ken@gizzar.com) ## 0.23.2 Fri, 15 Jul 2022 05:05:48 GMT ### Patches - fixing the dependent map results (ken@gizzar.com) ## 0.23.1 Fri, 15 Jul 2022 03:59:39 GMT ### Patches - fixing the missing getDependentMap API that lage uses (ken@gizzar.com) ## 0.23.0 Thu, 14 Jul 2022 17:22:35 GMT ### Minor changes - refactoring and cleaning up the createPackageGraph API to make it not repeat edges (kchau@microsoft.com) ## 0.22.0 Wed, 13 Jul 2022 20:42:07 GMT ### Minor changes - Update git-url-parse (includes [possible breaking changes](https://github.com/IonicaBizau/git-url-parse/releases/tag/12.0.0)) (elcraig@microsoft.com) ### Patches - Remove unneeded files from published package (elcraig@microsoft.com) ## 0.21.0 Fri, 01 Jul 2022 14:56:01 GMT ### Minor changes - adds a package graph implementation (ken@gizzar.com) ## 0.20.0 Thu, 23 Jun 2022 20:24:15 GMT ### Minor changes - BREAKING: Remove getChangePath because it's specific to beachball and should be defined there (elcraig@microsoft.com) ## 0.19.4 Thu, 23 Jun 2022 19:53:03 GMT ### Patches - Add findProjectRoot path helper (elcraig@microsoft.com) ## 0.19.3 Thu, 23 Jun 2022 19:10:04 GMT ### Patches - Move typedoc to devDependencies (elcraig@microsoft.com) ## 0.19.2 Thu, 23 Jun 2022 18:52:05 GMT ### Patches - Allow full spawnSync options for git methods (elcraig@microsoft.com) ## 0.19.1 Fri, 03 Jun 2022 16:57:07 GMT ### Patches - properly split git status --short output (nickykalu@microsoft.com) ## 0.19.0 Thu, 05 May 2022 19:40:25 GMT ### Minor changes - adds a new API to allow retrieving a list of packages affected by files and also by git ref range (kchau@microsoft.com) ## 0.18.4 Wed, 20 Apr 2022 16:49:02 GMT ### Patches - fixes a potential security issue where fetch --upload-pack can allow for command injection (kchau@microsoft.com) ## 0.18.3 Sat, 09 Apr 2022 15:51:14 GMT ### Patches - Fix Rush not being detected correctly. When Rush is set up to use Yarn or pnpm, the lock file for the latter are found first. (4123478+tido64@users.noreply.github.com) ## 0.18.2 Fri, 07 Jan 2022 18:15:36 GMT ### Patches - Makes the output of parseLockFile for npm v7+ lock file compatible with queryLockFile. (riacarmin@microsoft.com) ## 0.18.1 Fri, 07 Jan 2022 17:07:22 GMT ### Patches - bump ts to 4.5 and fixed typing issues with caught errors as unknown (kchau@microsoft.com) ## 0.18.0 Fri, 07 Jan 2022 00:04:32 GMT ### Minor changes - speed up workspace-tools - reducing weight and adding caches - lazy load pkg mgr helpers (kchau@microsoft.com) ## 0.17.0 Thu, 02 Dec 2021 17:11:12 GMT ### Minor changes - Implements NPM workspaces support to parseLockFile utility. (riacarmin@microsoft.com) ## 0.16.2 Thu, 03 Jun 2021 20:23:22 GMT ### Patches - get the right default remote branch (kchau@microsoft.com) ## 0.16.1 Thu, 27 May 2021 20:04:05 GMT ### Patches - getting rid of console logs from the library (kchau@microsoft.com) ## 0.16.0 Tue, 25 May 2021 21:47:27 GMT ### Minor changes - Fix #24: Add support for different upstream branches (dannyvv@microsoft.com) ## 0.15.1 Wed, 19 May 2021 21:05:10 GMT ### Patches - slimming down pnpm lockfile parsing (kchau@microsoft.com) ## 0.15.0 Fri, 23 Apr 2021 23:35:26 GMT ### Minor changes - fixes the checkchange command; support lerna (previous checkin) (kchau@microsoft.com) ## 0.14.1 Fri, 23 Apr 2021 23:03:54 GMT ### Patches - move lockfile implementations behind a lazy load in lockfile.ts (kchau@microsoft.com) ## 0.14.0 Mon, 12 Apr 2021 16:25:24 GMT ### Minor changes - feat: Only include HEAD commits in 'recent commits' (asgramme@microsoft.com) ## 0.13.0 Mon, 12 Apr 2021 05:59:38 GMT ### Minor changes - Add support for more commit command options (nickykalu@microsoft.com) ## 0.12.3 Tue, 23 Feb 2021 20:08:54 GMT ### Patches - fixing up the rush package detection code (kchau@microsoft.com) ## 0.12.2 Tue, 16 Feb 2021 23:49:29 GMT ### Patches - fetchRemote() fix to be more specific if branch is provided (kchau@microsoft.com) ## 0.12.1 Tue, 16 Feb 2021 23:13:38 GMT ### Patches - adding back the maxbuffer options to git - got lost in translation (kchau@microsoft.com) ## 0.12.0 Tue, 16 Feb 2021 22:41:15 GMT ### Minor changes - adding missing git functions into workspace-tools from beachball repo (kchau@microsoft.com) ## 0.11.0 Wed, 27 Jan 2021 20:58:49 GMT ### Minor changes - Adding NPM 7 Workspaces implementation. (fecamina@microsoft.com) ## 0.10.3 Tue, 26 Jan 2021 09:28:35 GMT ### Patches - fix: Detect changed package(s) in nested monorepo (oliver.kuruma@gmail.com) ## 0.10.2 Mon, 30 Nov 2020 18:53:38 GMT ### Patches - Allow a much bigger buffer for getting changed packages (kchau@microsoft.com) ## 0.10.1 Mon, 19 Oct 2020 20:24:42 GMT ### Patches - replaced matcher with multimatch (kchau@microsoft.com) ## 0.10.0 Mon, 12 Oct 2020 16:27:40 GMT ### Minor changes - Introduce getWorkspaceRoot() (bewegger@microsoft.com) ## 0.9.8 Tue, 15 Sep 2020 17:45:13 GMT ### Patches - added repository information in package.json (david@lannoye.net) ## 0.9.7 Tue, 15 Sep 2020 17:40:30 GMT ### Patches - support scoped package matches to match regardless of scopes (kchau@microsoft.com) ## 0.9.6 Thu, 10 Sep 2020 23:43:54 GMT ### Patches - no more requires (kchau@microsoft.com) ## 0.9.5 Thu, 10 Sep 2020 23:36:23 GMT ### Patches - do not do dynamic require (kchau@microsoft.com) ## 0.9.4 Mon, 31 Aug 2020 23:19:25 GMT ### Patches - add extended-info to getPackageInfos (kchau@microsoft.com) ## 0.9.3 Wed, 19 Aug 2020 23:27:31 GMT ### Patches - fixes the case where deps with no dependencies are not added the edges in the subgraph calculation (kchau@microsoft.com) ## 0.9.2 Wed, 19 Aug 2020 22:44:02 GMT ### Patches - adding subgraph support get transitive consumer (kchau@microsoft.com) ## 0.9.1 Sun, 09 Aug 2020 03:46:17 GMT ### Patches - handle nested change detection (kchau@microsoft.com) ## 0.9.0 Fri, 17 Jul 2020 19:16:04 GMT ### Minor changes - Add a new env variable to allow one to pick the preferred workspace manager (kchau@microsoft.com) ## 0.8.0 Fri, 19 Jun 2020 17:53:56 GMT ### Minor changes - adding getTransitiveProviders and renamed getTransitiveDependencies to getTransitiveConsumers (kchau@microsoft.com) ## 0.7.6 Tue, 26 May 2020 16:55:44 GMT ### Patches - fixes an issue with globby so that workspaces matches are found correctly (kchau@microsoft.com) ## 0.7.5 Mon, 25 May 2020 18:15:11 GMT ### Patches - speeding up getRushWorkspaces by skipping the slow rush config reader by a simple json reader (kchau@microsoft.com) ## 0.7.4 Sat, 23 May 2020 22:54:25 GMT ### Patches - adding unstaged changes in the changed packges (kchau@microsoft.com) ## 0.7.3 Sat, 23 May 2020 19:57:45 GMT ### Patches - Adding a getChangedPackages() function (#1) (kchau@microsoft.com) ## 0.4.0 Fri, 15 May 2020 18:10:15 GMT ### Minor changes - Integrating additional workspace utilities from the backfill package (kchau@microsoft.com) ## 0.3.3 Wed, 13 May 2020 00:54:54 GMT ### Patches - Merge branch 'master' of https://github.com/kenotron/workspace-tools (kchau@microsoft.com) ## 0.3.2 Wed, 13 May 2020 00:52:56 GMT ### Patches - using matcher instead of multimatch for the scope (kchau@microsoft.com) ## 0.3.1 Tue, 12 May 2020 16:43:14 GMT ### Patches - expose depedent map (kchau@microsoft.com) ## 0.3.0 Tue, 12 May 2020 01:25:52 GMT ### Minor changes - includes the scoped packages functions (kchau@microsoft.com) ## 0.2.1 Tue, 12 May 2020 01:00:31 GMT ### Patches - fix the typing pointer (kchau@microsoft.com) ## 0.2.0 Tue, 12 May 2020 00:58:34 GMT ### Minor changes - adds declaration (kchau@microsoft.com) ## 0.1.1 Tue, 12 May 2020 00:55:50 GMT ### Patches - caching graph (kchau@microsoft.com)