docker-delta 4.0.0 → 4.0.1

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.
@@ -1,3 +1,15 @@
1
+ - commits:
2
+ - subject: Update dockerode and docker-toolbelt
3
+ hash: 079d87ec2e0077aa84fe3ed1abd512a90ab6081e
4
+ body: |
5
+ Update dockerode to v4 and docker-toolbelt to v6
6
+ footer:
7
+ Change-type: patch
8
+ change-type: patch
9
+ author: Felipe Lalanne
10
+ version: 4.0.1
11
+ title: ""
12
+ date: 2024-04-25T02:58:50.950Z
1
13
  - commits:
2
14
  - subject: Use `stream.promises.pipeline` rather than manual `pipe` and promise
3
15
  wrapping
@@ -37,7 +49,7 @@
37
49
  author: Pagan Gazzard
38
50
  version: 4.0.0
39
51
  title: ""
40
- date: 2023-11-22T13:25:36.013Z
52
+ date: 2023-11-22T15:46:29.569Z
41
53
  - commits:
42
54
  - subject: Update chai-events
43
55
  hash: 194c92365ee19f92f67aa056a86ed50e2cccfe1e
@@ -356,13 +368,16 @@
356
368
  When calling ps.waitAsync for a child process ps that has already
357
369
  exited, the 'exit' event would
358
370
 
359
- not be fired again, so the promise would never resolve. This patch adds handlers for the 'exit'
371
+ not be fired again, so the promise would never resolve. This patch adds
372
+ handlers for the 'exit'
360
373
 
361
- and 'error' events as soon as the process is spawned, so that waitAsync can check if the process
374
+ and 'error' events as soon as the process is spawned, so that waitAsync
375
+ can check if the process
362
376
 
363
377
  has already exited and handle this situation properly.
364
378
 
365
- This bug would cause applyDelta to occasionally hang because rsync had exited before waitAsync was called.
379
+ This bug would cause applyDelta to occasionally hang because rsync had
380
+ exited before waitAsync was called.
366
381
  footers:
367
382
  change-type: patch
368
383
  signed-off-by: Pablo Carranza Velez <pablo@resin.io>
@@ -388,7 +403,10 @@
388
403
  body: >-
389
404
  This makes sure we correctly track and forward rsync’s exit status.
390
405
 
391
- The issue we’re working around here is rsync’s stdin pipe closing without failure even if there’s an error from rsync. So we make sure to always poll rsync once that the pipe has closed and determine the exit status and forward appropriately.
406
+ The issue we’re working around here is rsync’s stdin pipe closing
407
+ without failure even if there’s an error from rsync. So we make sure to
408
+ always poll rsync once that the pipe has closed and determine the exit
409
+ status and forward appropriately.
392
410
  footers:
393
411
  change-type: patch
394
412
  hash: a8c2cff583562066598cb52e7fb883ef9985c3da
package/CHANGELOG.md CHANGED
@@ -4,6 +4,11 @@ All notable changes to this project will be documented in this file
4
4
  automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5
5
  This project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
+ # v4.0.1
8
+ ## (2024-04-25)
9
+
10
+ * Update dockerode and docker-toolbelt [Felipe Lalanne]
11
+
7
12
  # v4.0.0
8
13
  ## (2023-11-22)
9
14
 
package/lib/utils.ts CHANGED
@@ -1,9 +1,5 @@
1
- import {
2
- spawn as $spawn,
3
- execSync,
4
- ChildProcess,
5
- SpawnOptions,
6
- } from 'node:child_process';
1
+ import type { ChildProcess, SpawnOptions } from 'node:child_process';
2
+ import { spawn as $spawn, execSync } from 'node:child_process';
7
3
 
8
4
  interface ProcessStatus {
9
5
  exited: boolean;
@@ -1,17 +1,12 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import stream from 'node:stream';
3
4
  import type Dockerode from 'dockerode';
4
5
  export declare const createDelta: (docker: Dockerode, srcImage: string, destImage: string, v2?: boolean, { log, ioTimeout, }?: {
5
- log?: {
6
- (...data: any[]): void;
7
- (message?: any, ...optionalParams: any[]): void;
8
- } | undefined;
9
- ioTimeout?: number | undefined;
6
+ log?: typeof console.log;
7
+ ioTimeout?: number;
10
8
  }) => stream.PassThrough;
11
9
  export declare const applyDelta: (docker: Dockerode, srcImage: string, { log, timeout, }?: {
12
- log?: {
13
- (...data: any[]): void;
14
- (message?: any, ...optionalParams: any[]): void;
15
- } | undefined;
16
- timeout?: number | undefined;
10
+ log?: typeof console.log;
11
+ timeout?: number;
17
12
  }) => stream.PassThrough;
package/out/rsync.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  /// <reference types="node" />
2
+ /// <reference types="node" />
2
3
  import fs from 'node:fs';
3
4
  import { spawn } from './utils';
4
- export declare const createRsyncStream: (src: string, dest: string, ioTimeout: number, log: {
5
- (...data: any[]): void;
6
- (message?: any, ...optionalParams: any[]): void;
7
- }) => Promise<[ReturnType<typeof spawn>, fs.ReadStream]>;
5
+ export declare const createRsyncStream: (src: string, dest: string, ioTimeout: number, log: typeof console.log) => Promise<[ReturnType<typeof spawn>, fs.ReadStream]>;
package/out/utils.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  /// <reference types="node" />
3
- import { ChildProcess, SpawnOptions } from 'node:child_process';
3
+ import type { ChildProcess, SpawnOptions } from 'node:child_process';
4
4
  export declare const spawn: (cmd: string, args?: readonly string[], opts?: SpawnOptions) => ChildProcess & {
5
5
  waitAsync: () => Promise<void>;
6
6
  };
package/out/utils.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.js","sourceRoot":"","sources":["../lib/utils.ts"],"names":[],"mappings":";;;AAAA,2DAK4B;AAS5B,KAAK,UAAU,YAAY,CAC1B,GAAW,EACX,EAAgB,EAChB,MAAqB;IAErB,MAAM,IAAI,OAAO,CAAO,UAAU,OAAO,EAAE,MAAM;QAChD,SAAS,UAAU,CAAC,IAAa,EAAE,MAAe;YACjD,IAAI,IAAI,KAAK,CAAC,EAAE,CAAC;gBAChB,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,CAC1B,IAAI,KAAK,CAAC,GAAG,GAAG,iBAAiB,GAAG,IAAI,GAAG,WAAW,GAAG,MAAM,CAAC,EAChE;oBACC,IAAI,EAAE,IAAI;oBACV,MAAM,EAAE,MAAM;iBACd,CACD,CAAC;gBACF,MAAM,CAAC,KAAK,CAAC,CAAC;YACf,CAAC;iBAAM,CAAC;gBACP,OAAO,EAAE,CAAC;YACX,CAAC;QACF,CAAC;QACD,IAAI,MAAM,C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B,EAAE;IAEvB,MAAM,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,IAAA,0BAAM,EAAC,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC,EAAE;QACjD,SAAS,EAAE,KAAK;YACf,MAAM,YAAY,CAAC,GAAG,EAAE,EAAE,EAAE,aAAa,CAAC,CAAC;QAC5C,CAAC;KACD,CAAC,CAAC;IACH,MAAM,aAAa,GAAkB;QACpC,MAAM,EAAE,KAAK;KACb,CAAC;IACF,EAAE,CAAC,EAAE,CAAC,OAAO,EAAE,UAAU,CAAC;QACzB,aAAa,CAAC,KAAK,GAAG,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;IACH,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,IAAI,EAAE,MAAM;QACnC,aAAa,CAAC,MAAM,GAAG,IAAI,CAAC;QAC5B,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;YAClB,aAAa,CAAC,IAAI,GAAG,IAAI,CAAC;QAC3B,CAAC;QACD,IAAI,MAAM,IAAI,IAAI,EAAE,CAAC;YACpB,aAAa,CAAC,MAAM,GAAG,MAAM,CAAC;QAC/B,CAAC;IACF,CAAC,CAAC,CAAC;IACH,OAAO,EAAE,CAAC;AACX,CAAC,CAAC;AA1BW,QAAA,KAAK,SA0BhB;AAEK,MAAM,UAAU,GAAG,UAAU,QAAgB;IACnD,OAAO,IAAA,6BAAQ,EAAC,iBAAiB,GAAG,QAAQ,CAAC,CAAC;AAC/C,CAAC,CAAC;AAFW,QAAA,UAAU,cAErB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "docker-delta",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Generate binary filesystem diffs between docker images to speed up distribution",
5
5
  "main": "out/docker-delta",
6
6
  "scripts": {
@@ -28,12 +28,12 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "bluebird": "^3.7.2",
31
- "docker-toolbelt": "^5.0.3",
32
- "dockerode": "^3.3.5",
31
+ "docker-toolbelt": "^6.0.2",
32
+ "dockerode": "^4.0.2",
33
33
  "tmp-promise": "^3.0.3",
34
34
  "typed-error": "^3.2.2"
35
35
  },
36
36
  "versionist": {
37
- "publishedAt": "2023-11-22T13:25:36.138Z"
37
+ "publishedAt": "2024-04-25T02:58:51.038Z"
38
38
  }
39
39
  }