isomorphic-git 1.18.1 → 1.19.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
@@ -346,6 +346,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds
346
346
  <tr>
347
347
  <td align="center"><a href="https://github.com/seanpoulter"><img src="https://avatars.githubusercontent.com/u/2585460?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Sean Poulter</b></sub></a><br /><a href="#maintenance-seanpoulter" title="Maintenance">🚧</a></td>
348
348
  <td align="center"><a href="https://github.com/araknast"><img src="https://avatars.githubusercontent.com/u/84164531?v=4?s=60" width="60px;" alt=""/><br /><sub><b>araknast</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=araknast" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=araknast" title="Tests">⚠️</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=araknast" title="Documentation">📖</a></td>
349
+ <td align="center"><a href="https://github.com/rraab-dev"><img src="https://avatars.githubusercontent.com/u/53948988?v=4?s=60" width="60px;" alt=""/><br /><sub><b>Rafael Raab</b></sub></a><br /><a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=rraab-dev" title="Code">💻</a> <a href="https://github.com/isomorphic-git/isomorphic-git/commits?author=rraab-dev" title="Documentation">📖</a></td>
349
350
  </tr>
350
351
  </table>
351
352
 
@@ -1,8 +1,8 @@
1
1
  [
2
2
  "Chrome Headless 79.0.3945.0 (Linux x86_64)",
3
- "Firefox 100.0 (Ubuntu 0.0.0)",
4
- "Chrome 100.0.4896.127 (Android 10)",
3
+ "Firefox 102.0 (Ubuntu 0.0.0)",
5
4
  "Edge 79.0.309.65 (Windows 10)",
6
- "Mobile Safari 13.0 (iOS 13.0)",
7
- "Safari 13.1 (Mac OS 10.15.4)"
5
+ "Chrome 100.0.4896.127 (Android 10)",
6
+ "Safari 13.1 (Mac OS 10.15.4)",
7
+ "Mobile Safari 13.0 (iOS 13.0)"
8
8
  ]
package/index.cjs CHANGED
@@ -6983,8 +6983,8 @@ function filterCapabilities(server, client) {
6983
6983
 
6984
6984
  const pkg = {
6985
6985
  name: 'isomorphic-git',
6986
- version: '1.18.1',
6987
- agent: 'git/isomorphic-git@1.18.1',
6986
+ version: '1.19.0',
6987
+ agent: 'git/isomorphic-git@1.19.0',
6988
6988
  };
6989
6989
 
6990
6990
  class FIFO {
@@ -8606,7 +8606,7 @@ async function mergeTree({
8606
8606
  theirName,
8607
8607
  mergeDriver,
8608
8608
  }).then(r => {
8609
- cleanMerge = r.cleanMerge;
8609
+ cleanMerge = cleanMerge && r.cleanMerge;
8610
8610
  unmergedFiles.push(filepath);
8611
8611
  return r.mergeResult
8612
8612
  })
@@ -8948,6 +8948,8 @@ async function _merge({
8948
8948
  * @param {string} [args.url]
8949
8949
  * @param {string} [args.remote]
8950
8950
  * @param {string} [args.remoteRef]
8951
+ * @param {boolean} [args.prune]
8952
+ * @param {boolean} [args.pruneTags]
8951
8953
  * @param {string} [args.corsProxy]
8952
8954
  * @param {boolean} args.singleBranch
8953
8955
  * @param {boolean} args.fastForward
@@ -8983,6 +8985,8 @@ async function _pull({
8983
8985
  url,
8984
8986
  remote,
8985
8987
  remoteRef,
8988
+ prune,
8989
+ pruneTags,
8986
8990
  fastForward,
8987
8991
  fastForwardOnly,
8988
8992
  corsProxy,
@@ -9020,6 +9024,8 @@ async function _pull({
9020
9024
  remoteRef,
9021
9025
  singleBranch,
9022
9026
  headers,
9027
+ prune,
9028
+ pruneTags,
9023
9029
  });
9024
9030
  // Merge the remote tracking branch into the local one.
9025
9031
  await _merge({
@@ -9185,8 +9191,8 @@ async function fastForward({
9185
9191
  * @param {boolean} [args.relative = false] - Changes the meaning of `depth` to be measured from the current shallow depth rather than from the branch tip.
9186
9192
  * @param {Date} [args.since] - Only fetch commits created after the given date. Mutually exclusive with `depth`.
9187
9193
  * @param {string[]} [args.exclude = []] - A list of branches or tags. Instructs the remote server not to send us any commits reachable from these refs.
9188
- * @param {boolean} [args.prune] - Delete local remote-tracking branches that are not present on the remote
9189
- * @param {boolean} [args.pruneTags] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
9194
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
9195
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
9190
9196
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
9191
9197
  * @param {Object<string, string>} [args.headers] - Additional headers to include in HTTP requests, similar to git's `extraHeader` config
9192
9198
  * @param {object} [args.cache] - a [cache](cache.md) object
@@ -11342,6 +11348,8 @@ async function packObjects({
11342
11348
  * @param {string} [args.url] - (Added in 1.1.0) The URL of the remote repository. The default is the value set in the git config for that remote.
11343
11349
  * @param {string} [args.remote] - (Added in 1.1.0) If URL is not specified, determines which remote to use.
11344
11350
  * @param {string} [args.remoteRef] - (Added in 1.1.0) The name of the branch on the remote to fetch. By default this is the configured remote tracking branch.
11351
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
11352
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
11345
11353
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
11346
11354
  * @param {boolean} [args.singleBranch = false] - Instead of the default behavior of fetching all the branches, only fetch a single branch.
11347
11355
  * @param {boolean} [args.fastForward = true] - If false, only create merge commits.
@@ -11387,6 +11395,8 @@ async function pull({
11387
11395
  url,
11388
11396
  remote,
11389
11397
  remoteRef,
11398
+ prune = false,
11399
+ pruneTags = false,
11390
11400
  fastForward = true,
11391
11401
  fastForwardOnly = false,
11392
11402
  corsProxy,
@@ -11437,6 +11447,8 @@ async function pull({
11437
11447
  author,
11438
11448
  committer,
11439
11449
  signingKey,
11450
+ prune,
11451
+ pruneTags,
11440
11452
  })
11441
11453
  } catch (err) {
11442
11454
  err.caller = 'git.pull';
package/index.d.ts CHANGED
@@ -1406,8 +1406,8 @@ export function fastForward({ fs, http, onProgress, onMessage, onAuth, onAuthSuc
1406
1406
  * @param {boolean} [args.relative = false] - Changes the meaning of `depth` to be measured from the current shallow depth rather than from the branch tip.
1407
1407
  * @param {Date} [args.since] - Only fetch commits created after the given date. Mutually exclusive with `depth`.
1408
1408
  * @param {string[]} [args.exclude = []] - A list of branches or tags. Instructs the remote server not to send us any commits reachable from these refs.
1409
- * @param {boolean} [args.prune] - Delete local remote-tracking branches that are not present on the remote
1410
- * @param {boolean} [args.pruneTags] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
1409
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
1410
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
1411
1411
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
1412
1412
  * @param {Object<string, string>} [args.headers] - Additional headers to include in HTTP requests, similar to git's `extraHeader` config
1413
1413
  * @param {object} [args.cache] - a [cache](cache.md) object
@@ -2279,6 +2279,8 @@ export function packObjects({ fs, dir, gitdir, oids, write, cache, }: {
2279
2279
  * @param {string} [args.url] - (Added in 1.1.0) The URL of the remote repository. The default is the value set in the git config for that remote.
2280
2280
  * @param {string} [args.remote] - (Added in 1.1.0) If URL is not specified, determines which remote to use.
2281
2281
  * @param {string} [args.remoteRef] - (Added in 1.1.0) The name of the branch on the remote to fetch. By default this is the configured remote tracking branch.
2282
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
2283
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
2282
2284
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
2283
2285
  * @param {boolean} [args.singleBranch = false] - Instead of the default behavior of fetching all the branches, only fetch a single branch.
2284
2286
  * @param {boolean} [args.fastForward = true] - If false, only create merge commits.
@@ -2310,7 +2312,7 @@ export function packObjects({ fs, dir, gitdir, oids, write, cache, }: {
2310
2312
  * console.log('done')
2311
2313
  *
2312
2314
  */
2313
- export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSuccess, onAuthFailure, dir, gitdir, ref, url, remote, remoteRef, fastForward, fastForwardOnly, corsProxy, singleBranch, headers, author: _author, committer: _committer, signingKey, cache, }: {
2315
+ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSuccess, onAuthFailure, dir, gitdir, ref, url, remote, remoteRef, prune, pruneTags, fastForward, fastForwardOnly, corsProxy, singleBranch, headers, author: _author, committer: _committer, signingKey, cache, }: {
2314
2316
  fs: CallbackFsClient | PromiseFsClient;
2315
2317
  http: HttpClient;
2316
2318
  onProgress?: ProgressCallback;
@@ -2324,6 +2326,8 @@ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSucce
2324
2326
  url?: string;
2325
2327
  remote?: string;
2326
2328
  remoteRef?: string;
2329
+ prune?: boolean;
2330
+ pruneTags?: boolean;
2327
2331
  corsProxy?: string;
2328
2332
  singleBranch?: boolean;
2329
2333
  fastForward?: boolean;
package/index.js CHANGED
@@ -6977,8 +6977,8 @@ function filterCapabilities(server, client) {
6977
6977
 
6978
6978
  const pkg = {
6979
6979
  name: 'isomorphic-git',
6980
- version: '1.18.1',
6981
- agent: 'git/isomorphic-git@1.18.1',
6980
+ version: '1.19.0',
6981
+ agent: 'git/isomorphic-git@1.19.0',
6982
6982
  };
6983
6983
 
6984
6984
  class FIFO {
@@ -8600,7 +8600,7 @@ async function mergeTree({
8600
8600
  theirName,
8601
8601
  mergeDriver,
8602
8602
  }).then(r => {
8603
- cleanMerge = r.cleanMerge;
8603
+ cleanMerge = cleanMerge && r.cleanMerge;
8604
8604
  unmergedFiles.push(filepath);
8605
8605
  return r.mergeResult
8606
8606
  })
@@ -8942,6 +8942,8 @@ async function _merge({
8942
8942
  * @param {string} [args.url]
8943
8943
  * @param {string} [args.remote]
8944
8944
  * @param {string} [args.remoteRef]
8945
+ * @param {boolean} [args.prune]
8946
+ * @param {boolean} [args.pruneTags]
8945
8947
  * @param {string} [args.corsProxy]
8946
8948
  * @param {boolean} args.singleBranch
8947
8949
  * @param {boolean} args.fastForward
@@ -8977,6 +8979,8 @@ async function _pull({
8977
8979
  url,
8978
8980
  remote,
8979
8981
  remoteRef,
8982
+ prune,
8983
+ pruneTags,
8980
8984
  fastForward,
8981
8985
  fastForwardOnly,
8982
8986
  corsProxy,
@@ -9014,6 +9018,8 @@ async function _pull({
9014
9018
  remoteRef,
9015
9019
  singleBranch,
9016
9020
  headers,
9021
+ prune,
9022
+ pruneTags,
9017
9023
  });
9018
9024
  // Merge the remote tracking branch into the local one.
9019
9025
  await _merge({
@@ -9179,8 +9185,8 @@ async function fastForward({
9179
9185
  * @param {boolean} [args.relative = false] - Changes the meaning of `depth` to be measured from the current shallow depth rather than from the branch tip.
9180
9186
  * @param {Date} [args.since] - Only fetch commits created after the given date. Mutually exclusive with `depth`.
9181
9187
  * @param {string[]} [args.exclude = []] - A list of branches or tags. Instructs the remote server not to send us any commits reachable from these refs.
9182
- * @param {boolean} [args.prune] - Delete local remote-tracking branches that are not present on the remote
9183
- * @param {boolean} [args.pruneTags] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
9188
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
9189
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
9184
9190
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
9185
9191
  * @param {Object<string, string>} [args.headers] - Additional headers to include in HTTP requests, similar to git's `extraHeader` config
9186
9192
  * @param {object} [args.cache] - a [cache](cache.md) object
@@ -11336,6 +11342,8 @@ async function packObjects({
11336
11342
  * @param {string} [args.url] - (Added in 1.1.0) The URL of the remote repository. The default is the value set in the git config for that remote.
11337
11343
  * @param {string} [args.remote] - (Added in 1.1.0) If URL is not specified, determines which remote to use.
11338
11344
  * @param {string} [args.remoteRef] - (Added in 1.1.0) The name of the branch on the remote to fetch. By default this is the configured remote tracking branch.
11345
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
11346
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
11339
11347
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
11340
11348
  * @param {boolean} [args.singleBranch = false] - Instead of the default behavior of fetching all the branches, only fetch a single branch.
11341
11349
  * @param {boolean} [args.fastForward = true] - If false, only create merge commits.
@@ -11381,6 +11389,8 @@ async function pull({
11381
11389
  url,
11382
11390
  remote,
11383
11391
  remoteRef,
11392
+ prune = false,
11393
+ pruneTags = false,
11384
11394
  fastForward = true,
11385
11395
  fastForwardOnly = false,
11386
11396
  corsProxy,
@@ -11431,6 +11441,8 @@ async function pull({
11431
11441
  author,
11432
11442
  committer,
11433
11443
  signingKey,
11444
+ prune,
11445
+ pruneTags,
11434
11446
  })
11435
11447
  } catch (err) {
11436
11448
  err.caller = 'git.pull';
@@ -1406,8 +1406,8 @@ export function fastForward({ fs, http, onProgress, onMessage, onAuth, onAuthSuc
1406
1406
  * @param {boolean} [args.relative = false] - Changes the meaning of `depth` to be measured from the current shallow depth rather than from the branch tip.
1407
1407
  * @param {Date} [args.since] - Only fetch commits created after the given date. Mutually exclusive with `depth`.
1408
1408
  * @param {string[]} [args.exclude = []] - A list of branches or tags. Instructs the remote server not to send us any commits reachable from these refs.
1409
- * @param {boolean} [args.prune] - Delete local remote-tracking branches that are not present on the remote
1410
- * @param {boolean} [args.pruneTags] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
1409
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
1410
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
1411
1411
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
1412
1412
  * @param {Object<string, string>} [args.headers] - Additional headers to include in HTTP requests, similar to git's `extraHeader` config
1413
1413
  * @param {object} [args.cache] - a [cache](cache.md) object
@@ -2279,6 +2279,8 @@ export function packObjects({ fs, dir, gitdir, oids, write, cache, }: {
2279
2279
  * @param {string} [args.url] - (Added in 1.1.0) The URL of the remote repository. The default is the value set in the git config for that remote.
2280
2280
  * @param {string} [args.remote] - (Added in 1.1.0) If URL is not specified, determines which remote to use.
2281
2281
  * @param {string} [args.remoteRef] - (Added in 1.1.0) The name of the branch on the remote to fetch. By default this is the configured remote tracking branch.
2282
+ * @param {boolean} [args.prune = false] - Delete local remote-tracking branches that are not present on the remote
2283
+ * @param {boolean} [args.pruneTags = false] - Prune local tags that don’t exist on the remote, and force-update those tags that differ
2282
2284
  * @param {string} [args.corsProxy] - Optional [CORS proxy](https://www.npmjs.com/%40isomorphic-git/cors-proxy). Overrides value in repo config.
2283
2285
  * @param {boolean} [args.singleBranch = false] - Instead of the default behavior of fetching all the branches, only fetch a single branch.
2284
2286
  * @param {boolean} [args.fastForward = true] - If false, only create merge commits.
@@ -2310,7 +2312,7 @@ export function packObjects({ fs, dir, gitdir, oids, write, cache, }: {
2310
2312
  * console.log('done')
2311
2313
  *
2312
2314
  */
2313
- export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSuccess, onAuthFailure, dir, gitdir, ref, url, remote, remoteRef, fastForward, fastForwardOnly, corsProxy, singleBranch, headers, author: _author, committer: _committer, signingKey, cache, }: {
2315
+ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSuccess, onAuthFailure, dir, gitdir, ref, url, remote, remoteRef, prune, pruneTags, fastForward, fastForwardOnly, corsProxy, singleBranch, headers, author: _author, committer: _committer, signingKey, cache, }: {
2314
2316
  fs: CallbackFsClient | PromiseFsClient;
2315
2317
  http: HttpClient;
2316
2318
  onProgress?: ProgressCallback;
@@ -2324,6 +2326,8 @@ export function pull({ fs: _fs, http, onProgress, onMessage, onAuth, onAuthSucce
2324
2326
  url?: string;
2325
2327
  remote?: string;
2326
2328
  remoteRef?: string;
2329
+ prune?: boolean;
2330
+ pruneTags?: boolean;
2327
2331
  corsProxy?: string;
2328
2332
  singleBranch?: boolean;
2329
2333
  fastForward?: boolean;