cdk-common 2.0.275 → 2.0.277

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/assert",
3
- "version": "2.43.1",
3
+ "version": "2.44.0",
4
4
  "description": "An assertion library for use with CDK Apps",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -34,21 +34,21 @@
34
34
  },
35
35
  "license": "Apache-2.0",
36
36
  "devDependencies": {
37
- "@aws-cdk/assert-internal": "2.43.1",
38
- "@aws-cdk/cdk-build-tools": "2.43.1",
39
- "@aws-cdk/pkglint": "2.43.1",
37
+ "@aws-cdk/assert-internal": "2.44.0",
38
+ "@aws-cdk/cdk-build-tools": "2.44.0",
39
+ "@aws-cdk/pkglint": "2.44.0",
40
40
  "@types/jest": "^27.5.2",
41
- "aws-cdk-lib": "2.43.1",
42
- "aws-cdk-migration": "2.43.1",
41
+ "aws-cdk-lib": "2.44.0",
42
+ "aws-cdk-migration": "2.44.0",
43
43
  "constructs": "^10.0.0",
44
44
  "jest": "^27.3.1",
45
45
  "ts-jest": "^27.1.5"
46
46
  },
47
47
  "dependencies": {
48
- "@aws-cdk/cloudformation-diff": "2.43.1"
48
+ "@aws-cdk/cloudformation-diff": "2.44.0"
49
49
  },
50
50
  "peerDependencies": {
51
- "aws-cdk-lib": "^2.43.1",
51
+ "aws-cdk-lib": "^2.44.0",
52
52
  "constructs": "^10.0.0",
53
53
  "jest": ">=26.6.3"
54
54
  },
@@ -3,6 +3,32 @@
3
3
  ## New Resource Types
4
4
 
5
5
 
6
+ ## Attribute Changes
7
+
8
+ * AWS::Redshift::ClusterSubnetGroup ClusterSubnetGroupName (__added__)
9
+
10
+ ## Property Changes
11
+
12
+ * AWS::Glue::Job ExecutionClass (__added__)
13
+ * AWS::Glue::Job NonOverridableArguments (__added__)
14
+ * AWS::Glue::Trigger EventBatchingCondition (__added__)
15
+ * AWS::Glue::Trigger Type.UpdateType (__changed__)
16
+ * Old: Mutable
17
+ * New: Immutable
18
+ * AWS::Glue::Workflow MaxConcurrentRuns (__added__)
19
+ * AWS::Redshift::ClusterSubnetGroup SubnetIds.DuplicatesAllowed (__deleted__)
20
+ * AWS::Redshift::ClusterSubnetGroup Tags.DuplicatesAllowed (__deleted__)
21
+
22
+ ## Property Type Changes
23
+
24
+ * AWS::Glue::Trigger.EventBatchingCondition (__added__)
25
+
26
+
27
+ # CloudFormation Resource Specification v89.0.0
28
+
29
+ ## New Resource Types
30
+
31
+
6
32
  ## Attribute Changes
7
33
 
8
34
  * AWS::EC2::VPNConnection Documentation (__changed__)
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-cdk/cfnspec",
3
3
  "description": "The CloudFormation resource specification used by @aws-cdk packages",
4
- "version": "2.43.1",
4
+ "version": "2.44.0",
5
5
  "scripts": {
6
6
  "update": "cdk-build && /bin/bash build-tools/update.sh && /bin/bash build-tools/update-cfnlint.sh",
7
7
  "update-metrics": "/bin/bash build-tools/update-metrics.sh",
@@ -30,8 +30,8 @@
30
30
  "main": "lib/index.js",
31
31
  "types": "lib/index.d.ts",
32
32
  "devDependencies": {
33
- "@aws-cdk/cdk-build-tools": "2.43.1",
34
- "@aws-cdk/pkglint": "2.43.1",
33
+ "@aws-cdk/cdk-build-tools": "2.44.0",
34
+ "@aws-cdk/pkglint": "2.44.0",
35
35
  "@types/fs-extra": "^8.1.2",
36
36
  "@types/jest": "^27.5.2",
37
37
  "@types/md5": "^2.3.2",
@@ -1,5 +1,5 @@
1
1
  {
2
- "Fingerprint": "64dfbc8a7fd4d4cdc0b43a2b0d99eb20",
2
+ "Fingerprint": "7d393703bcf4a71367ac7b234e2184e2",
3
3
  "PropertyTypes": {
4
4
  "AWS::ACMPCA::Certificate.ApiPassthrough": {
5
5
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-acmpca-certificate-apipassthrough.html",
@@ -38239,6 +38239,23 @@
38239
38239
  }
38240
38240
  }
38241
38241
  },
38242
+ "AWS::Glue::Trigger.EventBatchingCondition": {
38243
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-eventbatchingcondition.html",
38244
+ "Properties": {
38245
+ "BatchSize": {
38246
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-eventbatchingcondition.html#cfn-glue-trigger-eventbatchingcondition-batchsize",
38247
+ "PrimitiveType": "Integer",
38248
+ "Required": true,
38249
+ "UpdateType": "Mutable"
38250
+ },
38251
+ "BatchWindow": {
38252
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-eventbatchingcondition.html#cfn-glue-trigger-eventbatchingcondition-batchwindow",
38253
+ "PrimitiveType": "Integer",
38254
+ "Required": false,
38255
+ "UpdateType": "Mutable"
38256
+ }
38257
+ }
38258
+ },
38242
38259
  "AWS::Glue::Trigger.NotificationProperty": {
38243
38260
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-glue-trigger-notificationproperty.html",
38244
38261
  "Properties": {
@@ -104067,6 +104084,12 @@
104067
104084
  "Required": false,
104068
104085
  "UpdateType": "Mutable"
104069
104086
  },
104087
+ "ExecutionClass": {
104088
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-executionclass",
104089
+ "PrimitiveType": "String",
104090
+ "Required": false,
104091
+ "UpdateType": "Mutable"
104092
+ },
104070
104093
  "ExecutionProperty": {
104071
104094
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-executionproperty",
104072
104095
  "Required": false,
@@ -104103,6 +104126,12 @@
104103
104126
  "Required": false,
104104
104127
  "UpdateType": "Immutable"
104105
104128
  },
104129
+ "NonOverridableArguments": {
104130
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-nonoverridablearguments",
104131
+ "PrimitiveType": "Json",
104132
+ "Required": false,
104133
+ "UpdateType": "Mutable"
104134
+ },
104106
104135
  "NotificationProperty": {
104107
104136
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-job.html#cfn-glue-job-notificationproperty",
104108
104137
  "Required": false,
@@ -104451,6 +104480,12 @@
104451
104480
  "Required": false,
104452
104481
  "UpdateType": "Mutable"
104453
104482
  },
104483
+ "EventBatchingCondition": {
104484
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-eventbatchingcondition",
104485
+ "Required": false,
104486
+ "Type": "EventBatchingCondition",
104487
+ "UpdateType": "Mutable"
104488
+ },
104454
104489
  "Name": {
104455
104490
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-name",
104456
104491
  "PrimitiveType": "String",
@@ -104485,7 +104520,7 @@
104485
104520
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-type",
104486
104521
  "PrimitiveType": "String",
104487
104522
  "Required": true,
104488
- "UpdateType": "Mutable"
104523
+ "UpdateType": "Immutable"
104489
104524
  },
104490
104525
  "WorkflowName": {
104491
104526
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-trigger.html#cfn-glue-trigger-workflowname",
@@ -104510,6 +104545,12 @@
104510
104545
  "Required": false,
104511
104546
  "UpdateType": "Mutable"
104512
104547
  },
104548
+ "MaxConcurrentRuns": {
104549
+ "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-maxconcurrentruns",
104550
+ "PrimitiveType": "Integer",
104551
+ "Required": false,
104552
+ "UpdateType": "Mutable"
104553
+ },
104513
104554
  "Name": {
104514
104555
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-glue-workflow.html#cfn-glue-workflow-name",
104515
104556
  "PrimitiveType": "String",
@@ -120563,6 +120604,11 @@
120563
120604
  }
120564
120605
  },
120565
120606
  "AWS::Redshift::ClusterSubnetGroup": {
120607
+ "Attributes": {
120608
+ "ClusterSubnetGroupName": {
120609
+ "PrimitiveType": "String"
120610
+ }
120611
+ },
120566
120612
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html",
120567
120613
  "Properties": {
120568
120614
  "Description": {
@@ -120573,7 +120619,6 @@
120573
120619
  },
120574
120620
  "SubnetIds": {
120575
120621
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-subnetids",
120576
- "DuplicatesAllowed": true,
120577
120622
  "PrimitiveItemType": "String",
120578
120623
  "Required": true,
120579
120624
  "Type": "List",
@@ -120581,7 +120626,6 @@
120581
120626
  },
120582
120627
  "Tags": {
120583
120628
  "Documentation": "http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-redshift-clustersubnetgroup.html#cfn-redshift-clustersubnetgroup-tags",
120584
- "DuplicatesAllowed": true,
120585
120629
  "ItemType": "Tag",
120586
120630
  "Required": false,
120587
120631
  "Type": "List",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-cdk/cloudformation-diff",
3
- "version": "2.43.1",
3
+ "version": "2.44.0",
4
4
  "description": "Utilities to diff CDK stacks against CloudFormation templates",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -23,7 +23,7 @@
23
23
  },
24
24
  "license": "Apache-2.0",
25
25
  "dependencies": {
26
- "@aws-cdk/cfnspec": "2.43.1",
26
+ "@aws-cdk/cfnspec": "2.44.0",
27
27
  "@types/node": "^14.18.29",
28
28
  "chalk": "^4",
29
29
  "diff": "^5.1.0",
@@ -32,8 +32,8 @@
32
32
  "table": "^6.8.0"
33
33
  },
34
34
  "devDependencies": {
35
- "@aws-cdk/cdk-build-tools": "2.43.1",
36
- "@aws-cdk/pkglint": "2.43.1",
35
+ "@aws-cdk/cdk-build-tools": "2.44.0",
36
+ "@aws-cdk/pkglint": "2.44.0",
37
37
  "@types/jest": "^27.5.2",
38
38
  "@types/string-width": "^4.0.1",
39
39
  "fast-check": "^2.25.0",
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 26 Sep 2022 19:33:03 GMT
11
+ * Last updated: Sun, 02 Oct 2022 19:33:03 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 18.7
1
+ // Type definitions for non-npm package Node.js 18.8
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -131,6 +131,17 @@ declare module 'net' {
131
131
  * @return The socket itself.
132
132
  */
133
133
  pause(): this;
134
+ /**
135
+ * Close the TCP connection by sending an RST packet and destroy the stream.
136
+ * If this TCP socket is in connecting status, it will send an RST packet
137
+ * and destroy this TCP socket once it is connected. Otherwise, it will call
138
+ * `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. If this is not a TCP socket
139
+ * (for example, a pipe), calling this method will immediately throw
140
+ * an `ERR_INVALID_HANDLE_TYPE` Error.
141
+ * @since v18.3.0
142
+ * @return The socket itself.
143
+ */
144
+ resetAndDestroy(): this;
134
145
  /**
135
146
  * Resumes reading after a call to `socket.pause()`.
136
147
  * @return The socket itself.
@@ -266,6 +277,11 @@ declare module 'net' {
266
277
  * @since v0.9.6
267
278
  */
268
279
  readonly localPort?: number;
280
+ /**
281
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
282
+ * @since v18.8.0
283
+ */
284
+ readonly localFamily?: string;
269
285
  /**
270
286
  * This property represents the state of the connection as a string.
271
287
  * @see {https://nodejs.org/api/net.html#socketreadystate}
@@ -315,7 +331,8 @@ declare module 'net' {
315
331
  * 5. end
316
332
  * 6. error
317
333
  * 7. lookup
318
- * 8. timeout
334
+ * 8. ready
335
+ * 9. timeout
319
336
  */
320
337
  addListener(event: string, listener: (...args: any[]) => void): this;
321
338
  addListener(event: 'close', listener: (hadError: boolean) => void): this;
@@ -422,6 +439,14 @@ declare module 'net' {
422
439
  */
423
440
  keepAliveInitialDelay?: number | undefined;
424
441
  }
442
+ interface DropArgument {
443
+ localAddress?: string;
444
+ localPort?: number;
445
+ localFamily?: string;
446
+ remoteAddress?: string;
447
+ remotePort?: number;
448
+ remoteFamily?: string;
449
+ }
425
450
  /**
426
451
  * This class is used to create a TCP or `IPC` server.
427
452
  * @since v0.1.90
@@ -558,37 +583,44 @@ declare module 'net' {
558
583
  * 2. connection
559
584
  * 3. error
560
585
  * 4. listening
586
+ * 5. drop
561
587
  */
562
588
  addListener(event: string, listener: (...args: any[]) => void): this;
563
589
  addListener(event: 'close', listener: () => void): this;
564
590
  addListener(event: 'connection', listener: (socket: Socket) => void): this;
565
591
  addListener(event: 'error', listener: (err: Error) => void): this;
566
592
  addListener(event: 'listening', listener: () => void): this;
593
+ addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
567
594
  emit(event: string | symbol, ...args: any[]): boolean;
568
595
  emit(event: 'close'): boolean;
569
596
  emit(event: 'connection', socket: Socket): boolean;
570
597
  emit(event: 'error', err: Error): boolean;
571
598
  emit(event: 'listening'): boolean;
599
+ emit(event: 'drop', data?: DropArgument): boolean;
572
600
  on(event: string, listener: (...args: any[]) => void): this;
573
601
  on(event: 'close', listener: () => void): this;
574
602
  on(event: 'connection', listener: (socket: Socket) => void): this;
575
603
  on(event: 'error', listener: (err: Error) => void): this;
576
604
  on(event: 'listening', listener: () => void): this;
605
+ on(event: 'drop', listener: (data?: DropArgument) => void): this;
577
606
  once(event: string, listener: (...args: any[]) => void): this;
578
607
  once(event: 'close', listener: () => void): this;
579
608
  once(event: 'connection', listener: (socket: Socket) => void): this;
580
609
  once(event: 'error', listener: (err: Error) => void): this;
581
610
  once(event: 'listening', listener: () => void): this;
611
+ once(event: 'drop', listener: (data?: DropArgument) => void): this;
582
612
  prependListener(event: string, listener: (...args: any[]) => void): this;
583
613
  prependListener(event: 'close', listener: () => void): this;
584
614
  prependListener(event: 'connection', listener: (socket: Socket) => void): this;
585
615
  prependListener(event: 'error', listener: (err: Error) => void): this;
586
616
  prependListener(event: 'listening', listener: () => void): this;
617
+ prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
587
618
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
588
619
  prependOnceListener(event: 'close', listener: () => void): this;
589
620
  prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
590
621
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
591
622
  prependOnceListener(event: 'listening', listener: () => void): this;
623
+ prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
592
624
  }
593
625
  type IPVersion = 'ipv4' | 'ipv6';
594
626
  /**
@@ -814,7 +846,6 @@ declare module 'net' {
814
846
  class SocketAddress {
815
847
  constructor(options: SocketAddressInitOptions);
816
848
  /**
817
- * Either \`'ipv4'\` or \`'ipv6'\`.
818
849
  * @since v15.14.0, v14.18.0
819
850
  */
820
851
  readonly address: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.23",
3
+ "version": "18.8.0",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "24d6e2b547c899309701e1e64ad11f0255c46a6f27da723607d3d1505e43d8da",
230
+ "typesPublisherContentHash": "54f0b73dedc6d751a0945c330043a807365cb735a3530635a46ca3432f8b140e",
231
231
  "typeScriptVersion": "4.1"
232
232
  }
@@ -131,6 +131,17 @@ declare module 'net' {
131
131
  * @return The socket itself.
132
132
  */
133
133
  pause(): this;
134
+ /**
135
+ * Close the TCP connection by sending an RST packet and destroy the stream.
136
+ * If this TCP socket is in connecting status, it will send an RST packet
137
+ * and destroy this TCP socket once it is connected. Otherwise, it will call
138
+ * `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. If this is not a TCP socket
139
+ * (for example, a pipe), calling this method will immediately throw
140
+ * an `ERR_INVALID_HANDLE_TYPE` Error.
141
+ * @since v18.3.0
142
+ * @return The socket itself.
143
+ */
144
+ resetAndDestroy(): this;
134
145
  /**
135
146
  * Resumes reading after a call to `socket.pause()`.
136
147
  * @return The socket itself.
@@ -266,6 +277,11 @@ declare module 'net' {
266
277
  * @since v0.9.6
267
278
  */
268
279
  readonly localPort?: number;
280
+ /**
281
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
282
+ * @since v18.8.0
283
+ */
284
+ readonly localFamily?: string;
269
285
  /**
270
286
  * This property represents the state of the connection as a string.
271
287
  * @see {https://nodejs.org/api/net.html#socketreadystate}
@@ -315,7 +331,8 @@ declare module 'net' {
315
331
  * 5. end
316
332
  * 6. error
317
333
  * 7. lookup
318
- * 8. timeout
334
+ * 8. ready
335
+ * 9. timeout
319
336
  */
320
337
  addListener(event: string, listener: (...args: any[]) => void): this;
321
338
  addListener(event: 'close', listener: (hadError: boolean) => void): this;
@@ -422,6 +439,14 @@ declare module 'net' {
422
439
  */
423
440
  keepAliveInitialDelay?: number | undefined;
424
441
  }
442
+ interface DropArgument {
443
+ localAddress?: string;
444
+ localPort?: number;
445
+ localFamily?: string;
446
+ remoteAddress?: string;
447
+ remotePort?: number;
448
+ remoteFamily?: string;
449
+ }
425
450
  /**
426
451
  * This class is used to create a TCP or `IPC` server.
427
452
  * @since v0.1.90
@@ -558,37 +583,44 @@ declare module 'net' {
558
583
  * 2. connection
559
584
  * 3. error
560
585
  * 4. listening
586
+ * 5. drop
561
587
  */
562
588
  addListener(event: string, listener: (...args: any[]) => void): this;
563
589
  addListener(event: 'close', listener: () => void): this;
564
590
  addListener(event: 'connection', listener: (socket: Socket) => void): this;
565
591
  addListener(event: 'error', listener: (err: Error) => void): this;
566
592
  addListener(event: 'listening', listener: () => void): this;
593
+ addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
567
594
  emit(event: string | symbol, ...args: any[]): boolean;
568
595
  emit(event: 'close'): boolean;
569
596
  emit(event: 'connection', socket: Socket): boolean;
570
597
  emit(event: 'error', err: Error): boolean;
571
598
  emit(event: 'listening'): boolean;
599
+ emit(event: 'drop', data?: DropArgument): boolean;
572
600
  on(event: string, listener: (...args: any[]) => void): this;
573
601
  on(event: 'close', listener: () => void): this;
574
602
  on(event: 'connection', listener: (socket: Socket) => void): this;
575
603
  on(event: 'error', listener: (err: Error) => void): this;
576
604
  on(event: 'listening', listener: () => void): this;
605
+ on(event: 'drop', listener: (data?: DropArgument) => void): this;
577
606
  once(event: string, listener: (...args: any[]) => void): this;
578
607
  once(event: 'close', listener: () => void): this;
579
608
  once(event: 'connection', listener: (socket: Socket) => void): this;
580
609
  once(event: 'error', listener: (err: Error) => void): this;
581
610
  once(event: 'listening', listener: () => void): this;
611
+ once(event: 'drop', listener: (data?: DropArgument) => void): this;
582
612
  prependListener(event: string, listener: (...args: any[]) => void): this;
583
613
  prependListener(event: 'close', listener: () => void): this;
584
614
  prependListener(event: 'connection', listener: (socket: Socket) => void): this;
585
615
  prependListener(event: 'error', listener: (err: Error) => void): this;
586
616
  prependListener(event: 'listening', listener: () => void): this;
617
+ prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
587
618
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
588
619
  prependOnceListener(event: 'close', listener: () => void): this;
589
620
  prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
590
621
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
591
622
  prependOnceListener(event: 'listening', listener: () => void): this;
623
+ prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
592
624
  }
593
625
  type IPVersion = 'ipv4' | 'ipv6';
594
626
  /**
@@ -814,7 +846,6 @@ declare module 'net' {
814
846
  class SocketAddress {
815
847
  constructor(options: SocketAddressInitOptions);
816
848
  /**
817
- * Either \`'ipv4'\` or \`'ipv6'\`.
818
849
  * @since v15.14.0, v14.18.0
819
850
  */
820
851
  readonly address: string;
@@ -8,7 +8,7 @@ This package contains type definitions for Node.js (https://nodejs.org/).
8
8
  Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node.
9
9
 
10
10
  ### Additional Details
11
- * Last updated: Mon, 26 Sep 2022 19:33:03 GMT
11
+ * Last updated: Sun, 02 Oct 2022 19:33:03 GMT
12
12
  * Dependencies: none
13
13
  * Global values: `AbortController`, `AbortSignal`, `__dirname`, `__filename`, `console`, `exports`, `gc`, `global`, `module`, `process`, `require`, `structuredClone`
14
14
 
@@ -1,4 +1,4 @@
1
- // Type definitions for non-npm package Node.js 18.7
1
+ // Type definitions for non-npm package Node.js 18.8
2
2
  // Project: https://nodejs.org/
3
3
  // Definitions by: Microsoft TypeScript <https://github.com/Microsoft>
4
4
  // DefinitelyTyped <https://github.com/DefinitelyTyped>
@@ -131,6 +131,17 @@ declare module 'net' {
131
131
  * @return The socket itself.
132
132
  */
133
133
  pause(): this;
134
+ /**
135
+ * Close the TCP connection by sending an RST packet and destroy the stream.
136
+ * If this TCP socket is in connecting status, it will send an RST packet
137
+ * and destroy this TCP socket once it is connected. Otherwise, it will call
138
+ * `socket.destroy` with an `ERR_SOCKET_CLOSED` Error. If this is not a TCP socket
139
+ * (for example, a pipe), calling this method will immediately throw
140
+ * an `ERR_INVALID_HANDLE_TYPE` Error.
141
+ * @since v18.3.0
142
+ * @return The socket itself.
143
+ */
144
+ resetAndDestroy(): this;
134
145
  /**
135
146
  * Resumes reading after a call to `socket.pause()`.
136
147
  * @return The socket itself.
@@ -266,6 +277,11 @@ declare module 'net' {
266
277
  * @since v0.9.6
267
278
  */
268
279
  readonly localPort?: number;
280
+ /**
281
+ * The string representation of the local IP family. `'IPv4'` or `'IPv6'`.
282
+ * @since v18.8.0
283
+ */
284
+ readonly localFamily?: string;
269
285
  /**
270
286
  * This property represents the state of the connection as a string.
271
287
  * @see {https://nodejs.org/api/net.html#socketreadystate}
@@ -315,7 +331,8 @@ declare module 'net' {
315
331
  * 5. end
316
332
  * 6. error
317
333
  * 7. lookup
318
- * 8. timeout
334
+ * 8. ready
335
+ * 9. timeout
319
336
  */
320
337
  addListener(event: string, listener: (...args: any[]) => void): this;
321
338
  addListener(event: 'close', listener: (hadError: boolean) => void): this;
@@ -422,6 +439,14 @@ declare module 'net' {
422
439
  */
423
440
  keepAliveInitialDelay?: number | undefined;
424
441
  }
442
+ interface DropArgument {
443
+ localAddress?: string;
444
+ localPort?: number;
445
+ localFamily?: string;
446
+ remoteAddress?: string;
447
+ remotePort?: number;
448
+ remoteFamily?: string;
449
+ }
425
450
  /**
426
451
  * This class is used to create a TCP or `IPC` server.
427
452
  * @since v0.1.90
@@ -558,37 +583,44 @@ declare module 'net' {
558
583
  * 2. connection
559
584
  * 3. error
560
585
  * 4. listening
586
+ * 5. drop
561
587
  */
562
588
  addListener(event: string, listener: (...args: any[]) => void): this;
563
589
  addListener(event: 'close', listener: () => void): this;
564
590
  addListener(event: 'connection', listener: (socket: Socket) => void): this;
565
591
  addListener(event: 'error', listener: (err: Error) => void): this;
566
592
  addListener(event: 'listening', listener: () => void): this;
593
+ addListener(event: 'drop', listener: (data?: DropArgument) => void): this;
567
594
  emit(event: string | symbol, ...args: any[]): boolean;
568
595
  emit(event: 'close'): boolean;
569
596
  emit(event: 'connection', socket: Socket): boolean;
570
597
  emit(event: 'error', err: Error): boolean;
571
598
  emit(event: 'listening'): boolean;
599
+ emit(event: 'drop', data?: DropArgument): boolean;
572
600
  on(event: string, listener: (...args: any[]) => void): this;
573
601
  on(event: 'close', listener: () => void): this;
574
602
  on(event: 'connection', listener: (socket: Socket) => void): this;
575
603
  on(event: 'error', listener: (err: Error) => void): this;
576
604
  on(event: 'listening', listener: () => void): this;
605
+ on(event: 'drop', listener: (data?: DropArgument) => void): this;
577
606
  once(event: string, listener: (...args: any[]) => void): this;
578
607
  once(event: 'close', listener: () => void): this;
579
608
  once(event: 'connection', listener: (socket: Socket) => void): this;
580
609
  once(event: 'error', listener: (err: Error) => void): this;
581
610
  once(event: 'listening', listener: () => void): this;
611
+ once(event: 'drop', listener: (data?: DropArgument) => void): this;
582
612
  prependListener(event: string, listener: (...args: any[]) => void): this;
583
613
  prependListener(event: 'close', listener: () => void): this;
584
614
  prependListener(event: 'connection', listener: (socket: Socket) => void): this;
585
615
  prependListener(event: 'error', listener: (err: Error) => void): this;
586
616
  prependListener(event: 'listening', listener: () => void): this;
617
+ prependListener(event: 'drop', listener: (data?: DropArgument) => void): this;
587
618
  prependOnceListener(event: string, listener: (...args: any[]) => void): this;
588
619
  prependOnceListener(event: 'close', listener: () => void): this;
589
620
  prependOnceListener(event: 'connection', listener: (socket: Socket) => void): this;
590
621
  prependOnceListener(event: 'error', listener: (err: Error) => void): this;
591
622
  prependOnceListener(event: 'listening', listener: () => void): this;
623
+ prependOnceListener(event: 'drop', listener: (data?: DropArgument) => void): this;
592
624
  }
593
625
  type IPVersion = 'ipv4' | 'ipv6';
594
626
  /**
@@ -814,7 +846,6 @@ declare module 'net' {
814
846
  class SocketAddress {
815
847
  constructor(options: SocketAddressInitOptions);
816
848
  /**
817
- * Either \`'ipv4'\` or \`'ipv6'\`.
818
849
  * @since v15.14.0, v14.18.0
819
850
  */
820
851
  readonly address: string;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "18.7.23",
3
+ "version": "18.8.0",
4
4
  "description": "TypeScript definitions for Node.js",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -227,6 +227,6 @@
227
227
  },
228
228
  "scripts": {},
229
229
  "dependencies": {},
230
- "typesPublisherContentHash": "24d6e2b547c899309701e1e64ad11f0255c46a6f27da723607d3d1505e43d8da",
230
+ "typesPublisherContentHash": "54f0b73dedc6d751a0945c330043a807365cb735a3530635a46ca3432f8b140e",
231
231
  "typeScriptVersion": "4.1"
232
232
  }