@emulsify/cli 2.1.1 → 2.2.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.
Files changed (80) hide show
  1. package/README.md +43 -264
  2. package/dist/handlers/init.js +13 -5
  3. package/dist/handlers/systemInstall.js +77 -4
  4. package/dist/index.js +99 -21
  5. package/dist/node_modules/.package-lock.json +11 -11
  6. package/dist/node_modules/@types/node/README.md +1 -1
  7. package/dist/node_modules/@types/node/assert/strict.d.ts +10 -1
  8. package/dist/node_modules/@types/node/assert.d.ts +144 -17
  9. package/dist/node_modules/@types/node/async_hooks.d.ts +9 -9
  10. package/dist/node_modules/@types/node/buffer.d.ts +0 -5
  11. package/dist/node_modules/@types/node/child_process.d.ts +17 -21
  12. package/dist/node_modules/@types/node/cluster.d.ts +13 -13
  13. package/dist/node_modules/@types/node/console.d.ts +1 -1
  14. package/dist/node_modules/@types/node/crypto.d.ts +454 -571
  15. package/dist/node_modules/@types/node/diagnostics_channel.d.ts +20 -9
  16. package/dist/node_modules/@types/node/dns.d.ts +14 -14
  17. package/dist/node_modules/@types/node/events.d.ts +3 -3
  18. package/dist/node_modules/@types/node/fs/promises.d.ts +4 -4
  19. package/dist/node_modules/@types/node/fs.d.ts +3 -12
  20. package/dist/node_modules/@types/node/globals.d.ts +4 -4
  21. package/dist/node_modules/@types/node/http.d.ts +5 -5
  22. package/dist/node_modules/@types/node/http2.d.ts +1 -1
  23. package/dist/node_modules/@types/node/index.d.ts +0 -3
  24. package/dist/node_modules/@types/node/inspector.d.ts +1 -1
  25. package/dist/node_modules/@types/node/module.d.ts +16 -45
  26. package/dist/node_modules/@types/node/net.d.ts +1 -1
  27. package/dist/node_modules/@types/node/os.d.ts +2 -2
  28. package/dist/node_modules/@types/node/package.json +4 -4
  29. package/dist/node_modules/@types/node/perf_hooks.d.ts +1 -9
  30. package/dist/node_modules/@types/node/process.d.ts +11 -11
  31. package/dist/node_modules/@types/node/readline.d.ts +12 -11
  32. package/dist/node_modules/@types/node/repl.d.ts +10 -10
  33. package/dist/node_modules/@types/node/sqlite.d.ts +1 -1
  34. package/dist/node_modules/@types/node/stream/promises.d.ts +2 -2
  35. package/dist/node_modules/@types/node/stream/web.d.ts +1 -1
  36. package/dist/node_modules/@types/node/stream.d.ts +5 -5
  37. package/dist/node_modules/@types/node/test/reporters.d.ts +1 -1
  38. package/dist/node_modules/@types/node/test.d.ts +8 -8
  39. package/dist/node_modules/@types/node/tls.d.ts +1 -1
  40. package/dist/node_modules/@types/node/ts5.6/index.d.ts +1 -4
  41. package/dist/node_modules/@types/node/ts5.7/index.d.ts +0 -3
  42. package/dist/node_modules/@types/node/url.d.ts +3 -3
  43. package/dist/node_modules/@types/node/util/types.d.ts +1 -1
  44. package/dist/node_modules/@types/node/util.d.ts +3 -20
  45. package/dist/node_modules/@types/node/v8.d.ts +1 -1
  46. package/dist/node_modules/@types/node/vm.d.ts +9 -9
  47. package/dist/node_modules/@types/node/web-globals/domexception.d.ts +15 -0
  48. package/dist/node_modules/@types/node/worker_threads.d.ts +2 -5
  49. package/dist/node_modules/@types/node/zlib.d.ts +3 -3
  50. package/dist/node_modules/chardet/README.md +15 -1
  51. package/dist/node_modules/chardet/lib/encoding/sbcs.d.ts +19 -0
  52. package/dist/node_modules/chardet/lib/encoding/sbcs.js +172 -1
  53. package/dist/node_modules/chardet/lib/encoding/sbcs.js.map +1 -1
  54. package/dist/node_modules/chardet/lib/index.js +3 -0
  55. package/dist/node_modules/chardet/lib/index.js.map +1 -1
  56. package/dist/node_modules/chardet/lib/match.d.ts +1 -1
  57. package/dist/node_modules/chardet/lib/match.js.map +1 -1
  58. package/dist/node_modules/chardet/package.json +14 -10
  59. package/dist/node_modules/undici-types/agent.d.ts +0 -2
  60. package/dist/node_modules/undici-types/client.d.ts +25 -19
  61. package/dist/node_modules/undici-types/dispatcher.d.ts +7 -33
  62. package/dist/node_modules/undici-types/dispatcher1-wrapper.d.ts +7 -0
  63. package/dist/node_modules/undici-types/fetch.d.ts +24 -4
  64. package/dist/node_modules/undici-types/h2c-client.d.ts +6 -6
  65. package/dist/node_modules/undici-types/handlers.d.ts +1 -2
  66. package/dist/node_modules/undici-types/header.d.ts +5 -0
  67. package/dist/node_modules/undici-types/index.d.ts +3 -1
  68. package/dist/node_modules/undici-types/interceptors.d.ts +1 -1
  69. package/dist/node_modules/undici-types/package.json +1 -1
  70. package/dist/node_modules/undici-types/pool.d.ts +0 -2
  71. package/dist/node_modules/undici-types/proxy-agent.d.ts +2 -2
  72. package/dist/node_modules/undici-types/round-robin-pool.d.ts +0 -2
  73. package/dist/node_modules/undici-types/snapshot-agent.d.ts +4 -0
  74. package/dist/node_modules/undici-types/socks5-proxy-agent.d.ts +2 -2
  75. package/dist/node_modules/undici-types/webidl.d.ts +0 -1
  76. package/dist/package-lock.json +37 -37
  77. package/dist/package.json +2 -2
  78. package/dist/util/platform/getInitSuccessMessageForPlatform.js +30 -25
  79. package/package.json +2 -2
  80. package/dist/node_modules/@types/node/compatibility/iterators.d.ts +0 -21
package/dist/index.js CHANGED
@@ -13,59 +13,130 @@ import { createRequire } from 'module';
13
13
  import { cyan, green } from 'colorette';
14
14
  import boxen from 'boxen';
15
15
  const packageInfo = createRequire(import.meta.url)('../package.json');
16
+ function getRootHelp() {
17
+ return [
18
+ `${packageInfo.productName} ${packageInfo.version}`,
19
+ '',
20
+ 'Create Emulsify projects, choose component systems, install components, and generate local components.',
21
+ '',
22
+ 'Usage:',
23
+ ' emulsify',
24
+ ' emulsify --help',
25
+ ' emulsify <command> --help',
26
+ ' emulsify init [name] [path] [options]',
27
+ ' emulsify system install [name] [options]',
28
+ ' emulsify component <command> [options]',
29
+ '',
30
+ 'Common workflow:',
31
+ ' emulsify init',
32
+ ' emulsify system install',
33
+ ' emulsify component list',
34
+ ' emulsify component install <name>',
35
+ ' emulsify component create <name>',
36
+ '',
37
+ 'Commands:',
38
+ ' init [name] [path]',
39
+ ' Create a project from a starter repository. Prompts for project name, target directory,',
40
+ ' and platform when values are missing in an interactive terminal.',
41
+ ' Options:',
42
+ ' -m, --machineName <machineName> Set the project folder/config machine name.',
43
+ ' -s, --starter <repository> Use a custom starter repository.',
44
+ ' -c, --checkout <commit/branch/tag> Checkout for the starter repository.',
45
+ ' -p, --platform <drupal|none> Select the project platform when auto-detection is unavailable.',
46
+ ' -y, --yes Accept defaults for missing init values without prompting.',
47
+ '',
48
+ ' system list',
49
+ ' List built-in component systems available for installation. Alias: system ls.',
50
+ '',
51
+ ' system install [name]',
52
+ ' Install a built-in or repository-backed component system. With no name or repository in',
53
+ ' an interactive terminal, prompts for compound, emulsify-ui-kit, create a new system,',
54
+ ' or cancel.',
55
+ ' Options:',
56
+ ' -r, --repository <repository> Install from a custom system repository ending in .git.',
57
+ ' -c, --checkout <commit/branch/tag> Checkout to use with --repository.',
58
+ ' -a, --all Install every component in the selected variant.',
59
+ '',
60
+ ' component list',
61
+ ' List components available from the installed system and selected variant. Alias: component ls.',
62
+ '',
63
+ ' component install [name]',
64
+ ' Install one component, dependencies, or all components from the installed system. Alias: component i.',
65
+ ' Options:',
66
+ ' -f, --force Replace an existing component destination.',
67
+ ' -a, --all Install all available components.',
68
+ ' --dry-run Preview installs without writing files.',
69
+ '',
70
+ ' component create [name]',
71
+ ' Generate a new local component in this project. Alias: component c.',
72
+ ' Options:',
73
+ ' -d, --directory <directory> Variant structure where the component should be created.',
74
+ ' -f, --format <default|sdc> Component format to generate.',
75
+ ' -y, --yes Replace existing generated components without prompting.',
76
+ ' --dry-run Preview generated files without writing them.',
77
+ '',
78
+ ' help [command]',
79
+ ' Show help for a command.',
80
+ '',
81
+ 'Global options:',
82
+ ' -c, --checkout <commit/branch/tag> Shared checkout option for commands that clone repositories.',
83
+ ' -V, --version Show the installed CLI version.',
84
+ ' -h, --help Show this help output.',
85
+ '',
86
+ ].join('\n');
87
+ }
16
88
  program
89
+ .name('emulsify')
17
90
  .enablePositionalOptions()
18
91
  .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out');
19
92
  program
20
- .command('init [name] [path]', {
21
- isDefault: true,
22
- })
23
- .description('Initialize an Emulsify project')
24
- .option('-m --machineName <machineName>', 'Machine-friendly name of the project you are initializing. If not provided, this will be automatically generated.')
25
- .option('-s --starter <repository>', 'Git repository of the Emulsify starter you would like to use, such as the Emulsify Drupal theme: https://github.com/emulsify-ds/emulsify-starter')
26
- .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out')
27
- .option('-p --platform <drupal/wordpress/etc>', 'Name of the platform Emulsify is being within. In some cases, Emulsify is able to automatically detect this. If it is not, Emulsify will prompt you to specify.')
93
+ .command('init [name] [path]')
94
+ .description('Create a new Emulsify project from a starter repository')
95
+ .option('-m --machineName <machineName>', 'Machine-friendly project folder and config name. If omitted, this is generated from the project name.')
96
+ .option('-s --starter <repository>', 'Starter Git repository to clone.')
97
+ .option('-c --checkout <commit/branch/tag>', 'Starter commit, branch, or tag to check out after clone.')
98
+ .option('-p --platform <drupal|none>', 'Project platform to use when auto-detection is unavailable or should be overridden.')
28
99
  .option('-y --yes', 'Accept default init values for any missing options without prompting.')
29
100
  .action(withProgressBar(init));
30
101
  const system = program
31
102
  .command('system')
32
- .description('Parent command that contains sub-commands pertaining to systems');
103
+ .description('List, install, or scaffold component systems');
33
104
  system
34
105
  .command('list')
35
- .description('Lists all of the available systems that Emulsify supports out-of-the-box')
106
+ .description('List built-in systems available for installation')
36
107
  .alias('ls')
37
108
  .action(systemList);
38
109
  system
39
110
  .command('install [name]')
40
- .description('Install a system within an Emulsify project. You must specify either the name of an out-of-the-box system (such as compound), or a link to a git repository containing the system you want to install')
41
- .option('-r --repository <repository>', 'Git repository containing the system you would like to install')
42
- .option('-c --checkout <commit/branch/tag>', 'Commit, branch or tag of the base repository that should be checked out. MUST be provided if you are passing along a repository (-r or --repository). Tags or commit hashes are strongly preferable, because you want to ensure that you are using the same version of the system every time you install components, etc')
43
- .option('-a --all', 'Use this to install all available components within the specified system. Without this flag, only the required system components will be installed.')
111
+ .description('Install a component system, prompt for a system, or scaffold a local system definition')
112
+ .option('-r --repository <repository>', 'Git repository containing the system to install. Custom repository URLs must end in .git.')
113
+ .option('-c --checkout <commit/branch/tag>', 'Commit, branch, or tag to check out. Required when --repository is used.')
114
+ .option('-a --all', 'Install every component in the selected variant. Without this flag, only required components are installed.')
44
115
  .action(systemInstall);
45
116
  const component = program
46
117
  .command('component')
47
- .description('Parent command that contains sub-commands pertaining to components');
118
+ .description('List, install, or create components');
48
119
  component
49
120
  .command('list')
50
- .description('Lists all of the components that are available for installation within your project based on the system and variant you selected')
121
+ .description('List components available from the installed system and variant')
51
122
  .alias('ls')
52
123
  .action(componentList);
53
124
  component
54
125
  .command('install [name]')
55
- .description("Install a component from within the current project's system and variant")
56
- .option('-f --force', 'Use this to overwrite a component that is already installed')
57
- .option('-a --all', 'Use this to install all available components, rather than specifying a single component to install')
126
+ .description('Install one component from the installed system and variant')
127
+ .option('-f --force', 'Replace an existing component destination.')
128
+ .option('-a --all', 'Install all available components instead of one named component.')
58
129
  .option('--dry-run', 'Preview component installs without copying or removing files.')
59
130
  .alias('i')
60
131
  .action(componentInstall);
61
132
  component
62
133
  .command('create [name]')
63
- .option('-d --directory <directory>', 'Used to set the directory where the new component is to be created')
134
+ .option('-d --directory <directory>', 'Variant structure name where the component should be created.')
64
135
  .option('-f --format <format>', 'Component format to generate. Supported values: default, sdc.')
65
136
  .option('-y --yes', 'Skip overwrite confirmation prompts and replace existing components.')
66
137
  .option('--dry-run', 'Preview generated component files without writing or removing files.')
67
138
  .alias('c')
68
- .description("Create a component from within the current project's system and variant")
139
+ .description('Generate a new local component in the current project')
69
140
  .action(componentCreate);
70
141
  const title = cyan(packageInfo.productName);
71
142
  const message = `Version: ${green(packageInfo.version)}`;
@@ -78,6 +149,13 @@ const boxedMessage = boxen(message, {
78
149
  margin: 1,
79
150
  });
80
151
  program.version(boxedMessage);
152
+ const rootHelpRequested = process.argv.length <= 2 ||
153
+ (process.argv.length === 3 &&
154
+ ['--help', '-h', 'help'].includes(process.argv[2]));
155
+ if (rootHelpRequested) {
156
+ process.stdout.write(getRootHelp());
157
+ process.exit(0);
158
+ }
81
159
  try {
82
160
  await program.parseAsync(process.argv);
83
161
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@emulsify/cli",
3
- "version": "2.1.0",
3
+ "version": "2.2.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
@@ -363,13 +363,13 @@
363
363
  }
364
364
  },
365
365
  "node_modules/@types/node": {
366
- "version": "25.9.3",
367
- "resolved": "https://registry.npmjs.org/@types/node/-/node-25.9.3.tgz",
368
- "integrity": "sha512-603BddQMv3pUcr4U2dhujk83N2tTDVr/34wII2B6bJy6g+8WD6yUb11jszNs0gdi4PesVWl7ABt8nYMVpnLUcg==",
366
+ "version": "26.0.0",
367
+ "resolved": "https://registry.npmjs.org/@types/node/-/node-26.0.0.tgz",
368
+ "integrity": "sha512-vf2YFi1iY9lHGwNJMs01biZFbKJkrZR1T6/MlzjhJLPdntOHLhTrDSnSVcdtvjihi4VQNlrFRIxLsDBlQpAipA==",
369
369
  "devOptional": true,
370
370
  "license": "MIT",
371
371
  "dependencies": {
372
- "undici-types": ">=7.24.0 <7.24.7"
372
+ "undici-types": "~8.3.0"
373
373
  }
374
374
  },
375
375
  "node_modules/ajv": {
@@ -523,9 +523,9 @@
523
523
  }
524
524
  },
525
525
  "node_modules/chardet": {
526
- "version": "2.1.1",
527
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz",
528
- "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==",
526
+ "version": "2.2.0",
527
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.2.0.tgz",
528
+ "integrity": "sha512-rddelWYNPRrXq6PtNEN2S3f6t9ILzvqaN5pVgi4kqt9jHQaXIial9PznB5iSPVlQSLNaaH22ItWz3EJtQ10+OA==",
529
529
  "license": "MIT"
530
530
  },
531
531
  "node_modules/cli-boxes": {
@@ -821,9 +821,9 @@
821
821
  }
822
822
  },
823
823
  "node_modules/undici-types": {
824
- "version": "7.24.6",
825
- "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-7.24.6.tgz",
826
- "integrity": "sha512-WRNW+sJgj5OBN4/0JpHFqtqzhpbnV0GuB+OozA9gCL7a993SmU+1JBZCzLNxYsbMfIeDL+lTsphD5jN5N+n0zg==",
824
+ "version": "8.3.0",
825
+ "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-8.3.0.tgz",
826
+ "integrity": "sha512-j375ScV60dom+YkPFIfTLcOiPxkN/buHz5GobjLhixFuANaNs3C9l4GmrWqejgXWJ7BbJcFYpTEUkS1Ge8bpZQ==",
827
827
  "devOptional": true,
828
828
  "license": "MIT"
829
829
  },
@@ -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: Wed, 10 Jun 2026 22:15:09 GMT
11
+ * Last updated: Fri, 19 Jun 2026 07:14:38 GMT
12
12
  * Dependencies: [undici-types](https://npmjs.com/package/undici-types)
13
13
 
14
14
  # Credits
@@ -3,6 +3,7 @@ declare module "node:assert/strict" {
3
3
  Assert,
4
4
  AssertionError,
5
5
  AssertionErrorOptions,
6
+ AssertMessageFunction,
6
7
  AssertOptions,
7
8
  AssertPredicate,
8
9
  AssertStrict,
@@ -21,7 +22,15 @@ declare module "node:assert/strict" {
21
22
  strictEqual,
22
23
  throws,
23
24
  } from "node:assert";
24
- function strict(value: unknown, message?: string | Error): asserts value;
25
+ function strict(
26
+ value: unknown,
27
+ message?: Error | AssertMessageFunction,
28
+ ): asserts value;
29
+ function strict(
30
+ value: unknown,
31
+ message: string,
32
+ ...args: unknown[]
33
+ ): asserts value;
25
34
  namespace strict {
26
35
  export {
27
36
  Assert,
@@ -5,7 +5,15 @@ declare module "node:assert" {
5
5
  * @since v0.5.9
6
6
  * @param value The input that is checked for being truthy.
7
7
  */
8
- function assert(value: unknown, message?: string | Error): asserts value;
8
+ function assert(
9
+ value: unknown,
10
+ message?: Error | assert.AssertMessageFunction,
11
+ ): asserts value;
12
+ function assert(
13
+ value: unknown,
14
+ message: string,
15
+ ...args: unknown[]
16
+ ): asserts value;
9
17
  const kOptions: unique symbol;
10
18
  namespace assert {
11
19
  type AssertMethodNames =
@@ -177,6 +185,7 @@ declare module "node:assert" {
177
185
  */
178
186
  operator: string;
179
187
  }
188
+ type AssertMessageFunction = (actual: unknown, expected: unknown) => string;
180
189
  type AssertPredicate = RegExp | (new() => object) | ((thrown: unknown) => boolean) | object | Error;
181
190
  /**
182
191
  * Throws an `AssertionError` with the provided error message or a default
@@ -255,7 +264,15 @@ declare module "node:assert" {
255
264
  * ```
256
265
  * @since v0.1.21
257
266
  */
258
- function ok(value: unknown, message?: string | Error): asserts value;
267
+ function ok(
268
+ value: unknown,
269
+ message?: Error | AssertMessageFunction,
270
+ ): asserts value;
271
+ function ok(
272
+ value: unknown,
273
+ message: string,
274
+ ...args: unknown[]
275
+ ): asserts value;
259
276
  /**
260
277
  * **Strict assertion mode**
261
278
  *
@@ -289,7 +306,17 @@ declare module "node:assert" {
289
306
  * error message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
290
307
  * @since v0.1.21
291
308
  */
292
- function equal(actual: unknown, expected: unknown, message?: string | Error): void;
309
+ function equal(
310
+ actual: unknown,
311
+ expected: unknown,
312
+ message?: Error | AssertMessageFunction,
313
+ ): void;
314
+ function equal(
315
+ actual: unknown,
316
+ expected: unknown,
317
+ message: string,
318
+ ...args: unknown[]
319
+ ): void;
293
320
  /**
294
321
  * **Strict assertion mode**
295
322
  *
@@ -319,7 +346,17 @@ declare module "node:assert" {
319
346
  * message is assigned. If the `message` parameter is an instance of an `Error` then it will be thrown instead of the `AssertionError`.
320
347
  * @since v0.1.21
321
348
  */
322
- function notEqual(actual: unknown, expected: unknown, message?: string | Error): void;
349
+ function notEqual(
350
+ actual: unknown,
351
+ expected: unknown,
352
+ message?: Error | AssertMessageFunction,
353
+ ): void;
354
+ function notEqual(
355
+ actual: unknown,
356
+ expected: unknown,
357
+ message: string,
358
+ ...args: unknown[]
359
+ ): void;
323
360
  /**
324
361
  * **Strict assertion mode**
325
362
  *
@@ -337,7 +374,17 @@ declare module "node:assert" {
337
374
  * are also recursively evaluated by the following rules.
338
375
  * @since v0.1.21
339
376
  */
340
- function deepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
377
+ function deepEqual(
378
+ actual: unknown,
379
+ expected: unknown,
380
+ message?: Error | AssertMessageFunction,
381
+ ): void;
382
+ function deepEqual(
383
+ actual: unknown,
384
+ expected: unknown,
385
+ message: string,
386
+ ...args: unknown[]
387
+ ): void;
341
388
  /**
342
389
  * **Strict assertion mode**
343
390
  *
@@ -387,7 +434,17 @@ declare module "node:assert" {
387
434
  * instead of the `AssertionError`.
388
435
  * @since v0.1.21
389
436
  */
390
- function notDeepEqual(actual: unknown, expected: unknown, message?: string | Error): void;
437
+ function notDeepEqual(
438
+ actual: unknown,
439
+ expected: unknown,
440
+ message?: Error | AssertMessageFunction,
441
+ ): void;
442
+ function notDeepEqual(
443
+ actual: unknown,
444
+ expected: unknown,
445
+ message: string,
446
+ ...args: unknown[]
447
+ ): void;
391
448
  /**
392
449
  * Tests strict equality between the `actual` and `expected` parameters as
393
450
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -425,7 +482,17 @@ declare module "node:assert" {
425
482
  * instead of the `AssertionError`.
426
483
  * @since v0.1.21
427
484
  */
428
- function strictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
485
+ function strictEqual<T>(
486
+ actual: unknown,
487
+ expected: T,
488
+ message?: Error | AssertMessageFunction,
489
+ ): asserts actual is T;
490
+ function strictEqual<T>(
491
+ actual: unknown,
492
+ expected: T,
493
+ message: string,
494
+ ...args: unknown[]
495
+ ): asserts actual is T;
429
496
  /**
430
497
  * Tests strict inequality between the `actual` and `expected` parameters as
431
498
  * determined by [`Object.is()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is).
@@ -450,14 +517,34 @@ declare module "node:assert" {
450
517
  * instead of the `AssertionError`.
451
518
  * @since v0.1.21
452
519
  */
453
- function notStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
520
+ function notStrictEqual(
521
+ actual: unknown,
522
+ expected: unknown,
523
+ message?: Error | AssertMessageFunction,
524
+ ): void;
525
+ function notStrictEqual(
526
+ actual: unknown,
527
+ expected: unknown,
528
+ message: string,
529
+ ...args: unknown[]
530
+ ): void;
454
531
  /**
455
532
  * Tests for deep equality between the `actual` and `expected` parameters.
456
533
  * "Deep" equality means that the enumerable "own" properties of child objects
457
534
  * are recursively evaluated also by the following rules.
458
535
  * @since v1.2.0
459
536
  */
460
- function deepStrictEqual<T>(actual: unknown, expected: T, message?: string | Error): asserts actual is T;
537
+ function deepStrictEqual<T>(
538
+ actual: unknown,
539
+ expected: T,
540
+ message?: Error | AssertMessageFunction,
541
+ ): asserts actual is T;
542
+ function deepStrictEqual<T>(
543
+ actual: unknown,
544
+ expected: T,
545
+ message: string,
546
+ ...args: unknown[]
547
+ ): asserts actual is T;
461
548
  /**
462
549
  * Tests for deep strict inequality. Opposite of {@link deepStrictEqual}.
463
550
  *
@@ -475,7 +562,17 @@ declare module "node:assert" {
475
562
  * instead of the `AssertionError`.
476
563
  * @since v1.2.0
477
564
  */
478
- function notDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
565
+ function notDeepStrictEqual(
566
+ actual: unknown,
567
+ expected: unknown,
568
+ message?: Error | AssertMessageFunction,
569
+ ): void;
570
+ function notDeepStrictEqual(
571
+ actual: unknown,
572
+ expected: unknown,
573
+ message: string,
574
+ ...args: unknown[]
575
+ ): void;
479
576
  /**
480
577
  * Expects the function `fn` to throw an error.
481
578
  *
@@ -766,7 +863,7 @@ declare module "node:assert" {
766
863
  * check that the promise is rejected.
767
864
  *
768
865
  * If `asyncFn` is a function and it throws an error synchronously, `assert.rejects()` will return a rejected `Promise` with that error. If the
769
- * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value)
866
+ * function does not return a promise, `assert.rejects()` will return a rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value)
770
867
  * error. In both cases the error handler is skipped.
771
868
  *
772
869
  * Besides the async nature to await the completion behaves identically to {@link throws}.
@@ -836,7 +933,7 @@ declare module "node:assert" {
836
933
  *
837
934
  * If `asyncFn` is a function and it throws an error synchronously, `assert.doesNotReject()` will return a rejected `Promise` with that error. If
838
935
  * the function does not return a promise, `assert.doesNotReject()` will return a
839
- * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v25.x/api/errors.html#err_invalid_return_value) error. In both cases
936
+ * rejected `Promise` with an [ERR_INVALID_RETURN_VALUE](https://nodejs.org/docs/latest-v26.x/api/errors.html#err_invalid_return_value) error. In both cases
840
937
  * the error handler is skipped.
841
938
  *
842
939
  * Using `assert.doesNotReject()` is actually not useful because there is little
@@ -899,10 +996,20 @@ declare module "node:assert" {
899
996
  * If the values do not match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
900
997
  * to the value of the `message` parameter. If the `message` parameter is
901
998
  * undefined, a default error message is assigned. If the `message` parameter is an
902
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
999
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
903
1000
  * @since v13.6.0, v12.16.0
904
1001
  */
905
- function match(value: string, regExp: RegExp, message?: string | Error): void;
1002
+ function match(
1003
+ value: string,
1004
+ regExp: RegExp,
1005
+ message?: Error | AssertMessageFunction,
1006
+ ): void;
1007
+ function match(
1008
+ value: string,
1009
+ regExp: RegExp,
1010
+ message: string,
1011
+ ...args: unknown[]
1012
+ ): void;
906
1013
  /**
907
1014
  * Expects the `string` input not to match the regular expression.
908
1015
  *
@@ -922,10 +1029,20 @@ declare module "node:assert" {
922
1029
  * If the values do match, or if the `string` argument is of another type than `string`, an `{@link AssertionError}` is thrown with a `message` property set equal
923
1030
  * to the value of the `message` parameter. If the `message` parameter is
924
1031
  * undefined, a default error message is assigned. If the `message` parameter is an
925
- * instance of an [Error](https://nodejs.org/docs/latest-v25.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
1032
+ * instance of an [Error](https://nodejs.org/docs/latest-v26.x/api/errors.html#class-error) then it will be thrown instead of the `{@link AssertionError}`.
926
1033
  * @since v13.6.0, v12.16.0
927
1034
  */
928
- function doesNotMatch(value: string, regExp: RegExp, message?: string | Error): void;
1035
+ function doesNotMatch(
1036
+ value: string,
1037
+ regExp: RegExp,
1038
+ message?: Error | AssertMessageFunction,
1039
+ ): void;
1040
+ function doesNotMatch(
1041
+ value: string,
1042
+ regExp: RegExp,
1043
+ message: string,
1044
+ ...args: unknown[]
1045
+ ): void;
929
1046
  /**
930
1047
  * Tests for partial deep equality between the `actual` and `expected` parameters.
931
1048
  * "Deep" equality means that the enumerable "own" properties of child objects
@@ -937,7 +1054,17 @@ declare module "node:assert" {
937
1054
  * behaving as a super set of it.
938
1055
  * @since v22.13.0
939
1056
  */
940
- function partialDeepStrictEqual(actual: unknown, expected: unknown, message?: string | Error): void;
1057
+ function partialDeepStrictEqual(
1058
+ actual: unknown,
1059
+ expected: unknown,
1060
+ message?: Error | AssertMessageFunction,
1061
+ ): void;
1062
+ function partialDeepStrictEqual(
1063
+ actual: unknown,
1064
+ expected: unknown,
1065
+ message: string,
1066
+ ...args: unknown[]
1067
+ ): void;
941
1068
  }
942
1069
  namespace assert {
943
1070
  export { strict };
@@ -28,7 +28,7 @@ declare module "node:async_hooks" {
28
28
  * ```
29
29
  *
30
30
  * Promise contexts may not get precise `executionAsyncIds` by default.
31
- * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
31
+ * See the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
32
32
  * @since v8.1.0
33
33
  * @return The `asyncId` of the current execution context. Useful to track when something calls.
34
34
  */
@@ -101,29 +101,29 @@ declare module "node:async_hooks" {
101
101
  * ```
102
102
  *
103
103
  * Promise contexts may not get valid `triggerAsyncId`s by default. See
104
- * the section on [promise execution tracking](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promise-execution-tracking).
104
+ * the section on [promise execution tracking](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promise-execution-tracking).
105
105
  * @return The ID of the resource responsible for calling the callback that is currently being executed.
106
106
  */
107
107
  function triggerAsyncId(): number;
108
108
  interface HookCallbacks {
109
109
  /**
110
- * The [`init` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
110
+ * The [`init` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#initasyncid-type-triggerasyncid-resource).
111
111
  */
112
112
  init?(asyncId: number, type: string, triggerAsyncId: number, resource: object): void;
113
113
  /**
114
- * The [`before` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#beforeasyncid).
114
+ * The [`before` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#beforeasyncid).
115
115
  */
116
116
  before?(asyncId: number): void;
117
117
  /**
118
- * The [`after` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#afterasyncid).
118
+ * The [`after` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#afterasyncid).
119
119
  */
120
120
  after?(asyncId: number): void;
121
121
  /**
122
- * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#promiseresolveasyncid).
122
+ * The [`promiseResolve` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#promiseresolveasyncid).
123
123
  */
124
124
  promiseResolve?(asyncId: number): void;
125
125
  /**
126
- * The [`destroy` callback](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#destroyasyncid).
126
+ * The [`destroy` callback](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#destroyasyncid).
127
127
  */
128
128
  destroy?(asyncId: number): void;
129
129
  /**
@@ -153,7 +153,7 @@ declare module "node:async_hooks" {
153
153
  * All callbacks are optional. For example, if only resource cleanup needs to
154
154
  * be tracked, then only the `destroy` callback needs to be passed. The
155
155
  * specifics of all functions that can be passed to `callbacks` is in the
156
- * [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) section.
156
+ * [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) section.
157
157
  *
158
158
  * ```js
159
159
  * import { createHook } from 'node:async_hooks';
@@ -184,7 +184,7 @@ declare module "node:async_hooks" {
184
184
  * via the async hooks mechanism, the `init()`, `before()`, `after()`, and
185
185
  * `destroy()` callbacks _must not_ be async functions that return promises.
186
186
  * @since v8.1.0
187
- * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v25.x/api/async_hooks.html#hook-callbacks) to register
187
+ * @param options The [Hook Callbacks](https://nodejs.org/docs/latest-v26.x/api/async_hooks.html#hook-callbacks) to register
188
188
  * @returns Instance used for disabling and enabling hooks
189
189
  */
190
190
  function createHook(options: HookCallbacks): AsyncHook;
@@ -75,11 +75,6 @@ declare module "node:buffer" {
75
75
  */
76
76
  export function resolveObjectURL(id: string): Blob | undefined;
77
77
  export { type AllowSharedBuffer, Buffer, type NonSharedBuffer };
78
- /** @deprecated This alias will be removed in a future version. Use the canonical `BlobPropertyBag` instead. */
79
- // TODO: remove in future major
80
- export interface BlobOptions extends BlobPropertyBag {}
81
- /** @deprecated This alias will be removed in a future version. Use the canonical `FilePropertyBag` instead. */
82
- export interface FileOptions extends FilePropertyBag {}
83
78
  export type WithImplicitCoercion<T> =
84
79
  | T
85
80
  | { valueOf(): T }