isomorphic-git 1.28.0 → 1.29.0

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 CHANGED
@@ -183,6 +183,7 @@ unless there is a major version bump.
183
183
  - [listBranches](https://isomorphic-git.github.io/docs/listBranches.html)
184
184
  - [listFiles](https://isomorphic-git.github.io/docs/listFiles.html)
185
185
  - [listNotes](https://isomorphic-git.github.io/docs/listNotes.html)
186
+ - [listRefs](https://isomorphic-git.github.io/docs/listRefs.html)
186
187
  - [listRemotes](https://isomorphic-git.github.io/docs/listRemotes.html)
187
188
  - [listServerRefs](https://isomorphic-git.github.io/docs/listServerRefs.html)
188
189
  - [listTags](https://isomorphic-git.github.io/docs/listTags.html)
@@ -380,6 +381,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
380
381
  <td align="center"><a href="https://github.com/gilisho"><img src="https://avatars.githubusercontent.com/u/40733156?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Gili Shohat</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=gilisho" title="Tests">⚠️</a></td>
381
382
  <td align="center"><a href="https://github.com/hhourani27"><img src="https://avatars.githubusercontent.com/u/61935766?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Habib</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=hhourani27" title="Tests">⚠️</a></td>
382
383
  <td align="center"><a href="https://github.com/Vinzent03"><img src="https://avatars.githubusercontent.com/u/63981639?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Vinzent</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=Vinzent03" title="Code">💻</a></td>
384
+ <td align="center"><a href="https://github.com/LokiMidgard"><img src="https://avatars.githubusercontent.com/u/389101?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Patrick Kranz</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=LokiMidgard" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=LokiMidgard" title="Documentation">📖</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=LokiMidgard" title="Tests">⚠️</a></td>
383
385
  </tr>
384
386
  </table>
385
387
 
@@ -1,12 +1,11 @@
1
1
  [
2
2
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
- "Firefox 132.0 (Ubuntu 0.0.0)",
3
+ "X Firefox 132.0 (Ubuntu 0.0.0)",
4
4
  "X Chrome 128.0.0.0 (Android 10)",
5
5
  "Edge 79.0.309.65 (Windows 10)",
6
- "Safari 13.1 (Mac OS 10.15.4)",
7
6
  "Mobile Safari 13.0 (iOS 13.0)",
7
+ "Safari 13.1 (Mac OS 10.15.4)",
8
8
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
9
- "X Chrome 128.0.0.0 (Android 10)",
10
- "Chrome Headless 79.0.3945.0 (Linux x86_64)",
9
+ "Firefox 132.0 (Ubuntu 0.0.0)",
11
10
  "Chrome 128.0.0.0 (Android 10)"
12
11
  ]
package/index.cjs CHANGED
@@ -7605,8 +7605,8 @@ function filterCapabilities(server, client) {
7605
7605
 
7606
7606
  const pkg = {
7607
7607
  name: 'isomorphic-git',
7608
- version: '1.28.0',
7609
- agent: 'git/isomorphic-git@1.28.0',
7608
+ version: '1.29.0',
7609
+ agent: 'git/isomorphic-git@1.29.0',
7610
7610
  };
7611
7611
 
7612
7612
  class FIFO {
@@ -11070,6 +11070,40 @@ async function listNotes({
11070
11070
 
11071
11071
  // @ts-check
11072
11072
 
11073
+ /**
11074
+ * List refs
11075
+ *
11076
+ * @param {object} args
11077
+ * @param {FsClient} args.fs - a file system client
11078
+ * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
11079
+ * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
11080
+ * @param {string} [args.filepath] - [required] The refs path to list
11081
+ *
11082
+ * @returns {Promise<Array<string>>} Resolves successfully with an array of ref names below the supplied `filepath`
11083
+ *
11084
+ * @example
11085
+ * let refs = await git.listRefs({ fs, dir: '/tutorial', filepath: 'refs/heads' })
11086
+ * console.log(refs)
11087
+ *
11088
+ */
11089
+ async function listRefs({
11090
+ fs,
11091
+ dir,
11092
+ gitdir = pathBrowserify.join(dir, '.git'),
11093
+ filepath,
11094
+ }) {
11095
+ try {
11096
+ assertParameter('fs', fs);
11097
+ assertParameter('gitdir', gitdir);
11098
+ return GitRefManager.listRefs({ fs: new FileSystem(fs), gitdir, filepath })
11099
+ } catch (err) {
11100
+ err.caller = 'git.listRefs';
11101
+ throw err
11102
+ }
11103
+ }
11104
+
11105
+ // @ts-check
11106
+
11073
11107
  /**
11074
11108
  * @param {object} args
11075
11109
  * @param {import('../models/FileSystem.js').FileSystem} args.fs
@@ -16056,6 +16090,7 @@ var index = {
16056
16090
  listBranches,
16057
16091
  listFiles,
16058
16092
  listNotes,
16093
+ listRefs,
16059
16094
  listRemotes,
16060
16095
  listServerRefs,
16061
16096
  listTags,
@@ -16127,6 +16162,7 @@ exports.isIgnored = isIgnored;
16127
16162
  exports.listBranches = listBranches;
16128
16163
  exports.listFiles = listFiles;
16129
16164
  exports.listNotes = listNotes;
16165
+ exports.listRefs = listRefs;
16130
16166
  exports.listRemotes = listRemotes;
16131
16167
  exports.listServerRefs = listServerRefs;
16132
16168
  exports.listTags = listTags;
package/index.d.ts CHANGED
@@ -732,6 +732,7 @@ declare namespace index {
732
732
  export { listBranches };
733
733
  export { listFiles };
734
734
  export { listNotes };
735
+ export { listRefs };
735
736
  export { listRemotes };
736
737
  export { listServerRefs };
737
738
  export { listTags };
@@ -1993,6 +1994,28 @@ export function listNotes({ fs, dir, gitdir, ref, cache, }: {
1993
1994
  target: string;
1994
1995
  note: string;
1995
1996
  }[]>;
1997
+ /**
1998
+ * List refs
1999
+ *
2000
+ * @param {object} args
2001
+ * @param {FsClient} args.fs - a file system client
2002
+ * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
2003
+ * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
2004
+ * @param {string} [args.filepath] - [required] The refs path to list
2005
+ *
2006
+ * @returns {Promise<Array<string>>} Resolves successfully with an array of ref names below the supplied `filepath`
2007
+ *
2008
+ * @example
2009
+ * let refs = await git.listRefs({ fs, dir: '/tutorial', filepath: 'refs/heads' })
2010
+ * console.log(refs)
2011
+ *
2012
+ */
2013
+ export function listRefs({ fs, dir, gitdir, filepath, }: {
2014
+ fs: CallbackFsClient | PromiseFsClient;
2015
+ dir?: string;
2016
+ gitdir?: string;
2017
+ filepath?: string;
2018
+ }): Promise<string[]>;
1996
2019
  /**
1997
2020
  * List remotes
1998
2021
  *
package/index.js CHANGED
@@ -7599,8 +7599,8 @@ function filterCapabilities(server, client) {
7599
7599
 
7600
7600
  const pkg = {
7601
7601
  name: 'isomorphic-git',
7602
- version: '1.28.0',
7603
- agent: 'git/isomorphic-git@1.28.0',
7602
+ version: '1.29.0',
7603
+ agent: 'git/isomorphic-git@1.29.0',
7604
7604
  };
7605
7605
 
7606
7606
  class FIFO {
@@ -11064,6 +11064,40 @@ async function listNotes({
11064
11064
 
11065
11065
  // @ts-check
11066
11066
 
11067
+ /**
11068
+ * List refs
11069
+ *
11070
+ * @param {object} args
11071
+ * @param {FsClient} args.fs - a file system client
11072
+ * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
11073
+ * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
11074
+ * @param {string} [args.filepath] - [required] The refs path to list
11075
+ *
11076
+ * @returns {Promise<Array<string>>} Resolves successfully with an array of ref names below the supplied `filepath`
11077
+ *
11078
+ * @example
11079
+ * let refs = await git.listRefs({ fs, dir: '/tutorial', filepath: 'refs/heads' })
11080
+ * console.log(refs)
11081
+ *
11082
+ */
11083
+ async function listRefs({
11084
+ fs,
11085
+ dir,
11086
+ gitdir = join(dir, '.git'),
11087
+ filepath,
11088
+ }) {
11089
+ try {
11090
+ assertParameter('fs', fs);
11091
+ assertParameter('gitdir', gitdir);
11092
+ return GitRefManager.listRefs({ fs: new FileSystem(fs), gitdir, filepath })
11093
+ } catch (err) {
11094
+ err.caller = 'git.listRefs';
11095
+ throw err
11096
+ }
11097
+ }
11098
+
11099
+ // @ts-check
11100
+
11067
11101
  /**
11068
11102
  * @param {object} args
11069
11103
  * @param {import('../models/FileSystem.js').FileSystem} args.fs
@@ -16050,6 +16084,7 @@ var index = {
16050
16084
  listBranches,
16051
16085
  listFiles,
16052
16086
  listNotes,
16087
+ listRefs,
16053
16088
  listRemotes,
16054
16089
  listServerRefs,
16055
16090
  listTags,
@@ -16085,4 +16120,4 @@ var index = {
16085
16120
  };
16086
16121
 
16087
16122
  export default index;
16088
- export { Errors, STAGE, TREE, WORKDIR, abortMerge, add, addNote, addRemote, annotatedTag, branch, checkout, clone, commit, currentBranch, deleteBranch, deleteRef, deleteRemote, deleteTag, expandOid, expandRef, fastForward, fetch, findMergeBase, findRoot, getConfig, getConfigAll, getRemoteInfo, getRemoteInfo2, hashBlob, indexPack, init, isDescendent, isIgnored, listBranches, listFiles, listNotes, listRemotes, listServerRefs, listTags, log, merge, packObjects, pull, push, readBlob, readCommit, readNote, readObject, readTag, readTree, remove, removeNote, renameBranch, resetIndex, resolveRef, setConfig, stash, status, statusMatrix, tag, updateIndex, version, walk, writeBlob, writeCommit, writeObject, writeRef, writeTag, writeTree };
16123
+ export { Errors, STAGE, TREE, WORKDIR, abortMerge, add, addNote, addRemote, annotatedTag, branch, checkout, clone, commit, currentBranch, deleteBranch, deleteRef, deleteRemote, deleteTag, expandOid, expandRef, fastForward, fetch, findMergeBase, findRoot, getConfig, getConfigAll, getRemoteInfo, getRemoteInfo2, hashBlob, indexPack, init, isDescendent, isIgnored, listBranches, listFiles, listNotes, listRefs, listRemotes, listServerRefs, listTags, log, merge, packObjects, pull, push, readBlob, readCommit, readNote, readObject, readTag, readTree, remove, removeNote, renameBranch, resetIndex, resolveRef, setConfig, stash, status, statusMatrix, tag, updateIndex, version, walk, writeBlob, writeCommit, writeObject, writeRef, writeTag, writeTree };
@@ -732,6 +732,7 @@ declare namespace index {
732
732
  export { listBranches };
733
733
  export { listFiles };
734
734
  export { listNotes };
735
+ export { listRefs };
735
736
  export { listRemotes };
736
737
  export { listServerRefs };
737
738
  export { listTags };
@@ -1993,6 +1994,28 @@ export function listNotes({ fs, dir, gitdir, ref, cache, }: {
1993
1994
  target: string;
1994
1995
  note: string;
1995
1996
  }[]>;
1997
+ /**
1998
+ * List refs
1999
+ *
2000
+ * @param {object} args
2001
+ * @param {FsClient} args.fs - a file system client
2002
+ * @param {string} [args.dir] - The [working tree](dir-vs-gitdir.md) directory path
2003
+ * @param {string} [args.gitdir=join(dir,'.git')] - [required] The [git directory](dir-vs-gitdir.md) path
2004
+ * @param {string} [args.filepath] - [required] The refs path to list
2005
+ *
2006
+ * @returns {Promise<Array<string>>} Resolves successfully with an array of ref names below the supplied `filepath`
2007
+ *
2008
+ * @example
2009
+ * let refs = await git.listRefs({ fs, dir: '/tutorial', filepath: 'refs/heads' })
2010
+ * console.log(refs)
2011
+ *
2012
+ */
2013
+ export function listRefs({ fs, dir, gitdir, filepath, }: {
2014
+ fs: CallbackFsClient | PromiseFsClient;
2015
+ dir?: string;
2016
+ gitdir?: string;
2017
+ filepath?: string;
2018
+ }): Promise<string[]>;
1996
2019
  /**
1997
2020
  * List remotes
1998
2021
  *