just-git 1.2.11 → 1.2.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +341 -335
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
[](https://www.npmjs.com/package/just-git)
|
|
5
5
|
[](https://bundlejs.com/?q=just-git)
|
|
6
6
|
|
|
7
|
-
Pure TypeScript git implementation. Zero dependencies.
|
|
7
|
+
Pure TypeScript git implementation. Zero dependencies. 35 commands. Works in Node, Bun, Deno, Cloudflare Workers, and the browser. [Tested against real git](docs/TESTING.md) across more than a million randomized operations.
|
|
8
8
|
|
|
9
9
|
Two entry points: a **virtual filesystem client** for sandboxed environments (pairs with [just-bash](https://github.com/vercel-labs/just-bash), or use standalone), and an **[embeddable git server](docs/SERVER.md)** that any standard `git` client can clone, fetch, and push to.
|
|
10
10
|
|
|
@@ -108,7 +108,7 @@ See [REPO.md](docs/REPO.md) for the full API, the `GitRepo` interface, and the h
|
|
|
108
108
|
|
|
109
109
|
## Commands
|
|
110
110
|
|
|
111
|
-
|
|
111
|
+
35 commands: `init`, `clone`, `fetch`, `push`, `pull`, `add`, `rm`, `mv`, `commit`, `status`, `log`, `show`, `diff`, `grep`, `blame`, `branch`, `tag`, `checkout`, `switch`, `restore`, `reset`, `merge`, `rebase`, `cherry-pick`, `revert`, `stash`, `remote`, `config`, `bisect`, `clean`, `reflog`, `gc`, `repack`, `rev-parse`, `ls-files`. Each implements a subset of real git's flags; see [CLI.md](docs/CLI.md) for details.
|
|
112
112
|
|
|
113
113
|
### Transport
|
|
114
114
|
|
package/dist/index.d.ts
CHANGED
|
@@ -23,7 +23,7 @@ interface CommandContext {
|
|
|
23
23
|
signal?: AbortSignal;
|
|
24
24
|
}
|
|
25
25
|
/** Git subcommand name. Used with {@link GitOptions.disabled} to block specific commands. */
|
|
26
|
-
type GitCommandName = "init" | "clone" | "fetch" | "pull" | "push" | "add" | "blame" | "commit" | "status" | "log" | "branch" | "tag" | "checkout" | "diff" | "reset" | "merge" | "cherry-pick" | "revert" | "rebase" | "mv" | "rm" | "remote" | "config" | "show" | "stash" | "rev-parse" | "ls-files" | "clean" | "switch" | "restore" | "reflog" | "repack" | "gc" | "bisect";
|
|
26
|
+
type GitCommandName = "init" | "clone" | "fetch" | "pull" | "push" | "add" | "blame" | "commit" | "status" | "log" | "branch" | "tag" | "checkout" | "diff" | "reset" | "merge" | "cherry-pick" | "revert" | "rebase" | "mv" | "rm" | "remote" | "config" | "show" | "stash" | "rev-parse" | "ls-files" | "clean" | "switch" | "restore" | "reflog" | "repack" | "gc" | "bisect" | "grep";
|
|
27
27
|
/**
|
|
28
28
|
* Configuration for a {@link Git} instance.
|
|
29
29
|
*
|