aws-delivlib 15.0.4 → 15.0.6

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.
@@ -52,7 +52,7 @@
52
52
  "@types/changelog-parser@^2.8.1": "https://registry.yarnpkg.com/@types/changelog-parser/-/changelog-parser-2.8.4.tgz#45d70417e742ac3bc6bef3786aa453e1f1d63ecc",
53
53
  "@types/jsonwebtoken@^9.0.0": "https://registry.yarnpkg.com/@types/jsonwebtoken/-/jsonwebtoken-9.0.9.tgz#a4c3a446c0ebaaf467a58398382616f416345fb3",
54
54
  "@types/ms@*": "https://registry.yarnpkg.com/@types/ms/-/ms-2.1.0.tgz#052aa67a48eccc4309d7f0191b7e41434b90bb78",
55
- "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.15.26.tgz#01ea4427edeaf205cd18ebdb93db2708d5301f05",
55
+ "@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-22.15.29.tgz#c75999124a8224a3f79dd8b6ccfb37d74098f678",
56
56
  "@types/node@^14": "https://registry.yarnpkg.com/@types/node/-/node-14.18.63.tgz#1788fa8da838dbb5f9ea994b834278205db6ca2b",
57
57
  "aggregate-error@^3.1.0": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
58
58
  "before-after-hook@^2.2.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c",
@@ -8,7 +8,7 @@ This package contains type definitions for node (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: Thu, 29 May 2025 23:02:21 GMT
11
+ * Last updated: Fri, 30 May 2025 18:40:02 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -297,7 +297,12 @@ declare module "diagnostics_channel" {
297
297
  * @param thisArg The receiver to be used for the function call.
298
298
  * @param args Optional arguments to pass to the function.
299
299
  */
300
- runStores(): void;
300
+ runStores<ThisArg = any, Args extends any[] = any[], Result = any>(
301
+ context: ContextType,
302
+ fn: (this: ThisArg, ...args: Args) => Result,
303
+ thisArg?: ThisArg,
304
+ ...args: Args
305
+ ): Result;
301
306
  }
302
307
  interface TracingChannelSubscribers<ContextType extends object> {
303
308
  start: (message: ContextType) => void;
@@ -441,12 +446,12 @@ declare module "diagnostics_channel" {
441
446
  * @param args Optional arguments to pass to the function
442
447
  * @return The return value of the given function
443
448
  */
444
- traceSync<ThisArg = any, Args extends any[] = any[]>(
445
- fn: (this: ThisArg, ...args: Args) => any,
449
+ traceSync<ThisArg = any, Args extends any[] = any[], Result = any>(
450
+ fn: (this: ThisArg, ...args: Args) => Result,
446
451
  context?: ContextType,
447
452
  thisArg?: ThisArg,
448
453
  ...args: Args
449
- ): void;
454
+ ): Result;
450
455
  /**
451
456
  * Trace a promise-returning function call. This will always produce a `start event` and `end event` around the synchronous portion of the
452
457
  * function execution, and will produce an `asyncStart event` and `asyncEnd event` when a promise continuation is reached. It may also
@@ -476,12 +481,12 @@ declare module "diagnostics_channel" {
476
481
  * @param args Optional arguments to pass to the function
477
482
  * @return Chained from promise returned by the given function
478
483
  */
479
- tracePromise<ThisArg = any, Args extends any[] = any[]>(
480
- fn: (this: ThisArg, ...args: Args) => Promise<any>,
484
+ tracePromise<ThisArg = any, Args extends any[] = any[], Result = any>(
485
+ fn: (this: ThisArg, ...args: Args) => Promise<Result>,
481
486
  context?: ContextType,
482
487
  thisArg?: ThisArg,
483
488
  ...args: Args
484
- ): void;
489
+ ): Promise<Result>;
485
490
  /**
486
491
  * Trace a callback-receiving function call. This will always produce a `start event` and `end event` around the synchronous portion of the
487
492
  * function execution, and will produce a `asyncStart event` and `asyncEnd event` around the callback execution. It may also produce an `error event` if the given function throws an error or
@@ -540,13 +545,13 @@ declare module "diagnostics_channel" {
540
545
  * @param args Optional arguments to pass to the function
541
546
  * @return The return value of the given function
542
547
  */
543
- traceCallback<Fn extends (this: any, ...args: any[]) => any>(
544
- fn: Fn,
548
+ traceCallback<ThisArg = any, Args extends any[] = any[], Result = any>(
549
+ fn: (this: ThisArg, ...args: Args) => Result,
545
550
  position?: number,
546
551
  context?: ContextType,
547
- thisArg?: any,
548
- ...args: Parameters<Fn>
549
- ): void;
552
+ thisArg?: ThisArg,
553
+ ...args: Args
554
+ ): Result;
550
555
  /**
551
556
  * `true` if any of the individual channels has a subscriber, `false` if not.
552
557
  *
@@ -266,11 +266,6 @@ declare global {
266
266
 
267
267
  // Global DOM types
268
268
 
269
- function structuredClone<T>(
270
- value: T,
271
- transfer?: { transfer: ReadonlyArray<import("worker_threads").TransferListItem> },
272
- ): T;
273
-
274
269
  interface DOMException extends _DOMException {}
275
270
  var DOMException: typeof globalThis extends { onmessage: any; DOMException: infer T } ? T
276
271
  : NodeDOMExceptionConstructor;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@types/node",
3
- "version": "22.15.26",
3
+ "version": "22.15.29",
4
4
  "description": "TypeScript definitions for node",
5
5
  "homepage": "https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node",
6
6
  "license": "MIT",
@@ -220,6 +220,6 @@
220
220
  "undici-types": "~6.21.0"
221
221
  },
222
222
  "peerDependencies": {},
223
- "typesPublisherContentHash": "396d40f2ce0ddd8afa08e7ce4e4629ae9b67d6c511d0f44b0d0e511763140857",
223
+ "typesPublisherContentHash": "98b7a6aabffc6588a0865305b51b9dd48e81a270354b592630e8d37772f1f57a",
224
224
  "typeScriptVersion": "5.1"
225
225
  }
@@ -56,6 +56,11 @@ declare module "vm" {
56
56
  */
57
57
  columnOffset?: number | undefined;
58
58
  }
59
+ type DynamicModuleLoader<T> = (
60
+ specifier: string,
61
+ referrer: T,
62
+ importAttributes: ImportAttributes,
63
+ ) => Module | Promise<Module>;
59
64
  interface ScriptOptions extends BaseOptions {
60
65
  /**
61
66
  * Provides an optional data with V8's code cache data for the supplied source.
@@ -69,7 +74,7 @@ declare module "vm" {
69
74
  * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
70
75
  */
71
76
  importModuleDynamically?:
72
- | ((specifier: string, script: Script, importAttributes: ImportAttributes) => Module | Promise<Module>)
77
+ | DynamicModuleLoader<Script>
73
78
  | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
74
79
  | undefined;
75
80
  }
@@ -114,14 +119,30 @@ declare module "vm" {
114
119
  * Provides an optional data with V8's code cache data for the supplied source.
115
120
  */
116
121
  cachedData?: ScriptOptions["cachedData"] | undefined;
117
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
122
+ /**
123
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
124
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
125
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
126
+ */
127
+ importModuleDynamically?:
128
+ | DynamicModuleLoader<Script>
129
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
130
+ | undefined;
118
131
  }
119
132
  interface RunningCodeInNewContextOptions extends RunningScriptInNewContextOptions {
120
133
  /**
121
134
  * Provides an optional data with V8's code cache data for the supplied source.
122
135
  */
123
136
  cachedData?: ScriptOptions["cachedData"] | undefined;
124
- importModuleDynamically?: ScriptOptions["importModuleDynamically"];
137
+ /**
138
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
139
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
140
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
141
+ */
142
+ importModuleDynamically?:
143
+ | DynamicModuleLoader<Script>
144
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
145
+ | undefined;
125
146
  }
126
147
  interface CompileFunctionOptions extends BaseOptions {
127
148
  /**
@@ -141,6 +162,15 @@ declare module "vm" {
141
162
  * An array containing a collection of context extensions (objects wrapping the current scope) to be applied while compiling
142
163
  */
143
164
  contextExtensions?: Object[] | undefined;
165
+ /**
166
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
167
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
168
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
169
+ */
170
+ importModuleDynamically?:
171
+ | DynamicModuleLoader<ReturnType<typeof compileFunction>>
172
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
173
+ | undefined;
144
174
  }
145
175
  interface CreateContextOptions {
146
176
  /**
@@ -175,6 +205,15 @@ declare module "vm" {
175
205
  * If set to `afterEvaluate`, microtasks will be run immediately after the script has run.
176
206
  */
177
207
  microtaskMode?: "afterEvaluate" | undefined;
208
+ /**
209
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
210
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
211
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
212
+ */
213
+ importModuleDynamically?:
214
+ | DynamicModuleLoader<Context>
215
+ | typeof constants.USE_MAIN_CONTEXT_DEFAULT_LOADER
216
+ | undefined;
178
217
  }
179
218
  type MeasureMemoryMode = "summary" | "detailed";
180
219
  interface MeasureMemoryOptions {
@@ -865,13 +904,12 @@ declare module "vm" {
865
904
  * Called during evaluation of this module to initialize the `import.meta`.
866
905
  */
867
906
  initializeImportMeta?: ((meta: ImportMeta, module: SourceTextModule) => void) | undefined;
868
- importModuleDynamically?:
869
- | ((
870
- specifier: string,
871
- referrer: SourceTextModule,
872
- importAttributes: ImportAttributes,
873
- ) => Module | Promise<Module>)
874
- | undefined;
907
+ /**
908
+ * Used to specify how the modules should be loaded during the evaluation of this script when `import()` is called. This option is
909
+ * part of the experimental modules API. We do not recommend using it in a production environment. For detailed information, see
910
+ * [Support of dynamic `import()` in compilation APIs](https://nodejs.org/docs/latest-v22.x/api/vm.html#support-of-dynamic-import-in-compilation-apis).
911
+ */
912
+ importModuleDynamically?: DynamicModuleLoader<SourceTextModule> | undefined;
875
913
  }
876
914
  /**
877
915
  * This feature is only available with the `--experimental-vm-modules` command
@@ -52,14 +52,13 @@
52
52
  * @see [source](https://github.com/nodejs/node/blob/v22.x/lib/worker_threads.js)
53
53
  */
54
54
  declare module "worker_threads" {
55
- import { Blob } from "node:buffer";
56
55
  import { Context } from "node:vm";
57
56
  import { EventEmitter } from "node:events";
58
57
  import { EventLoopUtilityFunction } from "node:perf_hooks";
59
58
  import { FileHandle } from "node:fs/promises";
60
59
  import { Readable, Writable } from "node:stream";
60
+ import { ReadableStream, TransformStream, WritableStream } from "node:stream/web";
61
61
  import { URL } from "node:url";
62
- import { X509Certificate } from "node:crypto";
63
62
  const isInternalThread: boolean;
64
63
  const isMainThread: boolean;
65
64
  const parentPort: null | MessagePort;
@@ -89,7 +88,17 @@ declare module "worker_threads" {
89
88
  interface WorkerPerformance {
90
89
  eventLoopUtilization: EventLoopUtilityFunction;
91
90
  }
92
- type TransferListItem = ArrayBuffer | MessagePort | FileHandle | X509Certificate | Blob;
91
+ type Transferable =
92
+ | ArrayBuffer
93
+ | MessagePort
94
+ | AbortSignal
95
+ | FileHandle
96
+ | ReadableStream
97
+ | WritableStream
98
+ | TransformStream;
99
+ /** @deprecated Use `import { Transferable } from "node:worker_threads"` instead. */
100
+ // TODO: remove in a future major @types/node version.
101
+ type TransferListItem = Transferable;
93
102
  /**
94
103
  * Instances of the `worker.MessagePort` class represent one end of an
95
104
  * asynchronous, two-way communications channel. It can be used to transfer
@@ -174,7 +183,7 @@ declare module "worker_threads" {
174
183
  * behind this API, see the `serialization API of the node:v8 module`.
175
184
  * @since v10.5.0
176
185
  */
177
- postMessage(value: any, transferList?: readonly TransferListItem[]): void;
186
+ postMessage(value: any, transferList?: readonly Transferable[]): void;
178
187
  /**
179
188
  * Opposite of `unref()`. Calling `ref()` on a previously `unref()`ed port does _not_ let the program exit if it's the only active handle left (the default
180
189
  * behavior). If the port is `ref()`ed, calling `ref()` again has no effect.
@@ -261,7 +270,7 @@ declare module "worker_threads" {
261
270
  /**
262
271
  * Additional data to send in the first worker message.
263
272
  */
264
- transferList?: TransferListItem[] | undefined;
273
+ transferList?: Transferable[] | undefined;
265
274
  /**
266
275
  * @default true
267
276
  */
@@ -409,7 +418,7 @@ declare module "worker_threads" {
409
418
  * See `port.postMessage()` for more details.
410
419
  * @since v10.5.0
411
420
  */
412
- postMessage(value: any, transferList?: readonly TransferListItem[]): void;
421
+ postMessage(value: any, transferList?: readonly Transferable[]): void;
413
422
  /**
414
423
  * Sends a value to another worker, identified by its thread ID.
415
424
  * @param threadId The target thread ID. If the thread ID is invalid, a `ERR_WORKER_MESSAGING_FAILED` error will be thrown.
@@ -425,7 +434,7 @@ declare module "worker_threads" {
425
434
  postMessageToThread(
426
435
  threadId: number,
427
436
  value: any,
428
- transferList: readonly TransferListItem[],
437
+ transferList: readonly Transferable[],
429
438
  timeout?: number,
430
439
  ): Promise<void>;
431
440
  /**
@@ -709,6 +718,10 @@ declare module "worker_threads" {
709
718
  MessagePort as _MessagePort,
710
719
  } from "worker_threads";
711
720
  global {
721
+ function structuredClone<T>(
722
+ value: T,
723
+ options?: { transfer?: Transferable[] },
724
+ ): T;
712
725
  /**
713
726
  * `BroadcastChannel` class is a global reference for `import { BroadcastChannel } from 'worker_threads'`
714
727
  * https://nodejs.org/api/globals.html#broadcastchannel
@@ -5,6 +5,11 @@ echo "Sources:"
5
5
  ls
6
6
  echo ----------------------------------------
7
7
 
8
+ if [[ ! -d ./java ]]; then
9
+ echo "❌ No JARS to publish: 'java/' directory is missing."
10
+ exit 1
11
+ fi
12
+
8
13
  echo "Getting credentials..."
9
14
  credentials=$(aws secretsmanager get-secret-value --secret-id ${MAVEN_LOGIN_SECRET} --output=text --query=SecretString)
10
15
 
@@ -12,7 +17,6 @@ export MAVEN_USERNAME=$(node -e "console.log(${credentials}.username);")
12
17
  export MAVEN_PASSWORD=$(node -e "console.log(${credentials}.password);")
13
18
 
14
19
  chmod +x $SCRIPT_DIR/with-signing-key.sh
15
- chmod +x $SCRIPT_DIR/publish-mvn.sh
16
- $SCRIPT_DIR/with-signing-key.sh $SCRIPT_DIR/publish-mvn.sh
20
+ $SCRIPT_DIR/with-signing-key.sh npx -p publib@latest publib-maven ./java
17
21
 
18
22
  /bin/bash $SCRIPT_DIR/update-ssm.sh
@@ -6,15 +6,12 @@
6
6
  # 'true' or 'false'. If $KEY_AVAILABLE is 'true', the following
7
7
  # variables will be set as well:
8
8
  #
9
- # $KEY_ID
10
- # $KEY_PASSPHRASE
11
- # $GPG_PASSPHRASE_FROM_STDIN
9
+ # $MAVEN_GPG_PRIVATE_KEY
10
+ # $MAVEN_GPG_PRIVATE_KEY_PASSPHRASE
12
11
  #
13
- # The environment variable KEY_PASSPHRASE will be set to
14
- # the key's passphrase, to pass in like so:
12
+ # These will be used by `publib-maven`.
15
13
  #
16
- # echo $KEY_PASSPHRASE | gpg ${GPG_PASSPHRASE_FROM_STDIN} \
17
- # ...other gpg arguments...
14
+ # See <https://github.com/cdklabs/publib?tab=readme-ov-file#maven>.
18
15
  set -euo pipefail
19
16
 
20
17
  if [[ "${1:-}" == "" ]]; then
@@ -39,31 +36,9 @@ else
39
36
  node -e "console.log(JSON.parse(require('fs').readFileSync('$tmpdir/secret.txt', { encoding: 'utf-8' })).$1)"
40
37
  }
41
38
 
42
- export KEY_PASSPHRASE=$(value-from-secret Passphrase)
43
-
44
- # GnuPG will occasionally bail out with "gpg: <whatever> failed: Inappropriate ioctl for device", the following attempts to fix
45
- export GPG_TTY=$(tty)
46
- export GNUPGHOME=$tmpdir
47
-
48
- echo "Importing key..." >&2
49
- gpg --allow-secret-key-import \
50
- --batch --yes --no-tty \
51
- --import <(value-from-secret PrivateKey)
52
-
53
- export KEY_ID=$(gpg --list-keys --with-colons | grep pub | cut -d: -f5)
54
-
55
- # Prepare environment variables with flags to GPG
56
- # --passphrase-fd 0 \
57
- # ${EXTRA_GPG_OPTS} \
58
- GPG_PASSPHRASE_FROM_STDIN="--passphrase-fd 0"
59
- if [[ "$(uname)" == "Darwin" ]]; then
60
- # On Mac, we must pass this to disable a prompt for
61
- # passphrase, but option is not recognized on Linux.
62
- GPG_PASSPHRASE_FROM_STDIN="${GPG_PASSPHRASE_FROM_STDIN} --pinentry-mode loopback"
63
- fi
64
- export GPG_PASSPHRASE_FROM_STDIN
65
-
66
39
  export KEY_AVAILABLE=true
40
+ export MAVEN_GPG_PRIVATE_KEY=$(value-from-secret Passphrase)
41
+ export MAVEN_GPG_PRIVATE_KEY_PASSPHRASE=$(value-from-secret Passphrase)
67
42
  fi
68
43
 
69
44
  # Execute remaining commands
@@ -42,6 +42,20 @@ export interface PublishToMavenProjectProps {
42
42
  * @default "https://oss.sonatype.org"
43
43
  */
44
44
  mavenEndpoint?: string;
45
+ /**
46
+ * The server ID
47
+ *
48
+ * The only sensible value here is `central-ossrh`, which will use the new
49
+ * publishing endpoint that is mandatory starting June 30th.
50
+ *
51
+ * Any other value can `central-ossrh` will cause the underlying publishing
52
+ * library `publib` to assume publishing to a custom Nexus server, but this
53
+ * action currently doesn't have a way of specifying that Nexus server's
54
+ * endpoint.
55
+ *
56
+ * @default - Use legacy OSSRH server
57
+ */
58
+ serverId?: string;
45
59
  /**
46
60
  * The build image to do the publishing in
47
61
  *