Repository navigation
Commit 98864c6
authored
V4 (#1193)
* - remove `simple-git/promise` and associated `gitP` export
* - switch from yarn to pnpm
* - convert jest to vitest
* - upgrade biome
- apply formatting to "new" code
* - migrate types into `src`
- add vite build script
* - vite build for mjs / cjs outputs, reusing the `baseConfig` helper from the `@simple-git/` sub-packages.
- apply the `node:` schema for node specific imports
- generate types with `tsc`
* - apply lint across tests
* - apply import ordering and type import settings to more packages
* - update package scripts to use pnpm from yarn
* - add declaration maps
* - enforce the use of `GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS` environment variable to disable abbreviations in `git` commands
* - enforce the use of `GIT_TEST_DISALLOW_ABBREVIATED_OPTIONS` environment variable to disable abbreviations in `git` commands
* - split unit and integration tests as `projects` in vitest, apply module mocks only in unit tests.
* - use pnpm in the github actions
* - use `pnpm/setup` action in favour of `actions/setup-node`
* - use `pnpm/setup` action in favour of `actions/setup-node`
* - use `pnpm/setup` action in favour of `actions/setup-node`
- upgrade `actions/checkout`
* - update self-referential tests to import from root barrel file (argv-parser)
* - update self-referential tests to import from root barrel file (argv-parser)
* - update unit tests to be aware of the constant environment variable, and remove test asserting ability to use a default export on `simple-git`
* Lint
* Update unsafe spec - no longer viable to pwn with `--u`
* Use pnpm in build scripts
* - use `.ts` rather than `.d.ts` in source files
* - CI runs consumer tests outside of main test flow
- Remove duplication in consumer tests
- Remove babel configuration, obsolete following move to vitest
* - examples directory uses the named import
* - docs content uses the named import
* - add debug logging to the custom-binary plugin
- remove `console.warn` when permitting unsafe (configured through `unsafe.allowUnsafeCustomBinary`)
* - remove duplication in exported types
* - remove deprecated build tools
* - remove deprecated interfaces
* Update lock file
* - lint
* - path to windows test file
* - path to windows test file
* - path to windows test file
* - path to windows test file
* - path to windows test file
* - path to windows test file
* - path to windows test file
* - consumer tests allow rewriting lockfile before running
* - consumer tests allow rewriting lockfile before running
* - support `build:pkg` only modifying the `export` publish block, rather than full removal of `scripts` and `devDependencies`.
- `typescript-esm-consumer` package updated to build ESM JavaScript (includes type check) then run directly with node (includes validation of exported functionality).
* - add consumer tests asserting both TypeScript compilation and test running (directly via node to avoid any inline TS transpilation by TSX)
- removed obsolete block from biome config
* - apply config-only `build:pkg` switch to the github actions setup
* - Include `tar.command` to vulnerable config list
- `simple-git` depends on current workspace version rather than `^` version of arv-parser, avoids inconsistency in vulnerability detection expectations, noting an upgrade to argv-parser will require a new release of `simple-git`.
* - Add vulnerability test for use of `include.path`
* - Add option to `unsafe.allowAbbreviatedOptions`
* - Documentation for v4 release
* - Lint
* - Add `includeIf.<condition>.path` to the vulnerabilities list
* Add support for `input` plugin.
Closes #1178
* Create the `git.interpretTrailers` interface
Closes #11781 parent c427fba commit 98864c6
312 files changed
Lines changed: 5499 additions & 10833 deletions
File tree
- .changeset
- .github/workflows
- .yarn/releases
- devtools
- docs
- examples
- packages
- args-pathspec
- argv-parser
- src
- env
- vulnerabilities
- test
- babel-config
- test-es-module-consumer
- test-javascript-cjs-consumer
- test-javascript-consumer
- test-javascript-esm-consumer
- test-typescript-cjs-consumer
- test-types
- test-typescript-consumer
- test
- test-typescript-esm-consumer
- test-types
- test
- test-typescript-strict-cjs-consumer
- test-types
- test-typescript-strict-esm-consumer
- test-types
- test-utils
- src
- simple-git
- scripts
- src
- lib
- errors
- parsers
- plugins
- responses
- runners
- tasks
- types
- utils
- typings
- test
- integration
- plugins
- vulnerabilities
- unit
- __fixtures__
- push
- responses
- __mocks__
- plugins
- typings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | | - | |
| 25 | + | |
| 26 | + | |
27 | 27 | | |
28 | | - | |
29 | | - | |
| 28 | + | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | | - | |
| 32 | + | |
34 | 33 | | |
35 | 34 | | |
36 | 35 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 19 | + | |
| 20 | + | |
22 | 21 | | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
27 | 25 | | |
28 | 26 | | |
29 | 27 | | |
30 | 28 | | |
31 | | - | |
32 | | - | |
33 | | - | |
| 29 | + | |
34 | 30 | | |
35 | 31 | | |
36 | 32 | | |
37 | 33 | | |
38 | | - | |
39 | | - | |
40 | | - | |
| 34 | + | |
| 35 | + | |
41 | 36 | | |
42 | | - | |
43 | | - | |
44 | | - | |
45 | | - | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
46 | 40 | | |
47 | 41 | | |
48 | 42 | | |
49 | 43 | | |
50 | | - | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | | - | |
18 | | - | |
| 16 | + | |
| 17 | + | |
19 | 18 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
0 commit comments