@heroku-cli/plugin-data 2.0.0-beta.0 → 3.0.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 (59) hide show
  1. package/README.md +76 -31
  2. package/dist/commands/data/connectors/create.d.ts +15 -0
  3. package/{lib → dist}/commands/data/connectors/create.js +23 -25
  4. package/dist/commands/data/connectors/destroy.d.ts +12 -0
  5. package/dist/commands/data/connectors/destroy.js +39 -0
  6. package/dist/commands/data/connectors/index.d.ts +14 -0
  7. package/{lib → dist}/commands/data/connectors/index.js +23 -24
  8. package/dist/commands/data/connectors/info.d.ts +12 -0
  9. package/{lib → dist}/commands/data/connectors/info.js +22 -23
  10. package/{lib → dist}/commands/data/connectors/pause.d.ts +2 -2
  11. package/dist/commands/data/connectors/pause.js +27 -0
  12. package/{lib → dist}/commands/data/connectors/resume.d.ts +2 -2
  13. package/dist/commands/data/connectors/resume.js +27 -0
  14. package/dist/commands/data/connectors/update.d.ts +17 -0
  15. package/{lib → dist}/commands/data/connectors/update.js +19 -21
  16. package/{lib → dist}/commands/data/connectors/wait.d.ts +2 -2
  17. package/{lib → dist}/commands/data/connectors/wait.js +11 -10
  18. package/dist/commands/data/enhanced-certificates/disable.d.ts +11 -0
  19. package/dist/commands/data/enhanced-certificates/disable.js +31 -0
  20. package/dist/commands/data/enhanced-certificates/enable.d.ts +12 -0
  21. package/dist/commands/data/enhanced-certificates/enable.js +34 -0
  22. package/dist/commands/data/enhanced-certificates/status.d.ts +12 -0
  23. package/dist/commands/data/enhanced-certificates/status.js +30 -0
  24. package/dist/commands/data/labs/disable.d.ts +13 -0
  25. package/dist/commands/data/labs/disable.js +44 -0
  26. package/dist/commands/data/labs/enable.d.ts +13 -0
  27. package/dist/commands/data/labs/enable.js +44 -0
  28. package/{lib → dist}/commands/data/labs/list.d.ts +3 -3
  29. package/{lib → dist}/commands/data/labs/list.js +18 -19
  30. package/dist/index.d.ts +1 -0
  31. package/dist/index.js +1 -0
  32. package/dist/lib/base.js +25 -0
  33. package/oclif.manifest.json +149 -48
  34. package/package.json +33 -29
  35. package/lib/commands/data/connectors/create.d.ts +0 -15
  36. package/lib/commands/data/connectors/destroy.d.ts +0 -12
  37. package/lib/commands/data/connectors/destroy.js +0 -41
  38. package/lib/commands/data/connectors/index.d.ts +0 -14
  39. package/lib/commands/data/connectors/info.d.ts +0 -12
  40. package/lib/commands/data/connectors/pause.js +0 -28
  41. package/lib/commands/data/connectors/resume.js +0 -28
  42. package/lib/commands/data/connectors/update.d.ts +0 -17
  43. package/lib/commands/data/enhanced-certificates/disable.d.ts +0 -11
  44. package/lib/commands/data/enhanced-certificates/disable.js +0 -31
  45. package/lib/commands/data/enhanced-certificates/enable.d.ts +0 -12
  46. package/lib/commands/data/enhanced-certificates/enable.js +0 -34
  47. package/lib/commands/data/enhanced-certificates/status.d.ts +0 -12
  48. package/lib/commands/data/enhanced-certificates/status.js +0 -31
  49. package/lib/commands/data/labs/disable.d.ts +0 -13
  50. package/lib/commands/data/labs/disable.js +0 -44
  51. package/lib/commands/data/labs/enable.d.ts +0 -13
  52. package/lib/commands/data/labs/enable.js +0 -44
  53. package/lib/fetcher.d.ts +0 -3
  54. package/lib/fetcher.js +0 -16
  55. package/lib/index.d.ts +0 -2
  56. package/lib/index.js +0 -3
  57. package/lib/lib/base.js +0 -28
  58. package/lib/tsconfig.tsbuildinfo +0 -1
  59. /package/{lib → dist}/lib/base.d.ts +0 -0
@@ -1,49 +1,48 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const color_1 = require("@heroku-cli/color");
4
- const command_1 = require("@heroku-cli/command");
5
- const core_1 = require("@oclif/core");
6
- const fetcher_1 = require("../../../fetcher");
7
- const base_1 = require("../../../lib/base");
8
- class LabsList extends base_1.default {
1
+ import { flags } from '@heroku-cli/command';
2
+ import * as color from '@heroku/heroku-cli-util/color';
3
+ import { styledHeader } from '@heroku/heroku-cli-util/hux';
4
+ import { AddonResolver } from '@heroku/heroku-cli-util/utils/addons';
5
+ import { Args } from '@oclif/core';
6
+ import { ux } from '@oclif/core/ux';
7
+ import BaseCommand from '../../../lib/base.js';
8
+ export default class LabsList extends BaseCommand {
9
9
  static args = {
10
- addon: core_1.Args.string({ description: 'name of the addon', required: true }),
10
+ addon: Args.string({ description: 'name of the addon', required: true }),
11
11
  };
12
12
  static description = 'List available experimental features on an addon and their statuses';
13
13
  static examples = [
14
14
  '$ heroku data:labs:list happy-postgres-1234',
15
15
  ];
16
16
  static flags = {
17
- app: command_1.flags.app(),
17
+ app: flags.app(),
18
18
  };
19
19
  printFeatures(features, addonName) {
20
20
  features.sort((a, b) => a.name < b.name ? -1 : 1);
21
21
  const longest = Math.max.apply(null, features.map(f => f.name.length));
22
- core_1.ux.styledHeader(`Experimental Features Available for ${color_1.default.cyan(addonName)}:`);
22
+ styledHeader(`Experimental Features Available for ${color.addon(addonName)}:`);
23
23
  for (const f of features) {
24
24
  const pref = f.status.enabled ? '[+]' : (f.status.message ? '[-]' : '[ ]');
25
25
  let line = `${pref} ${f.name.padEnd(longest)}`;
26
26
  if (f.status.enabled)
27
- line = color_1.default.green(line);
27
+ line = color.green(line);
28
28
  if (f.status.message)
29
- line = color_1.default.yellow(line);
29
+ line = color.yellow(line);
30
30
  let statusMessage = f.status.message ? `(STATUS: ${f.status.message})` : '';
31
- statusMessage = color_1.default.yellow(statusMessage);
31
+ statusMessage = color.yellow(statusMessage);
32
32
  line = `${line} ${statusMessage} ${f.description}`;
33
- core_1.ux.log(line);
33
+ ux.stdout(line);
34
34
  }
35
35
  }
36
36
  async run() {
37
37
  const { args, flags } = await this.parse(LabsList);
38
- const addon = await (0, fetcher_1.fetchAddon)(this.heroku, args.addon, flags.app);
38
+ const addonResolver = new AddonResolver(this.heroku);
39
+ const addon = await addonResolver.resolve(args.addon, flags.app);
39
40
  try {
40
41
  const { body: res } = await this.shogun.get(`/client/v11/labs/${addon.id}/list`, this.shogun.defaults);
41
42
  this.printFeatures(res.message, addon.name);
42
43
  }
43
44
  catch (error) {
44
- core_1.ux.error(error);
45
+ ux.error(error);
45
46
  }
46
- core_1.ux.action.stop();
47
47
  }
48
48
  }
49
- exports.default = LabsList;
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
package/dist/index.js ADDED
@@ -0,0 +1 @@
1
+ export { run } from '@oclif/core';
@@ -0,0 +1,25 @@
1
+ import { APIClient, Command } from '@heroku-cli/command';
2
+ import * as color from '@heroku/heroku-cli-util/color';
3
+ import { prompt } from '@heroku/heroku-cli-util/hux';
4
+ import { ux } from '@oclif/core/ux';
5
+ export default class Base extends Command {
6
+ shogun;
7
+ constructor(argv, config) {
8
+ super(argv, config);
9
+ const client = new APIClient(this.config, {});
10
+ client.defaults.host = process.env.HEROKU_DATA_HOST || 'api.data.heroku.com';
11
+ client.defaults.headers = {
12
+ ...this.heroku.defaults.headers,
13
+ authorization: `Basic ${Buffer.from(':' + this.heroku.auth).toString('base64')}`,
14
+ };
15
+ this.shogun = client;
16
+ }
17
+ }
18
+ export async function confirmConnector(connector, confirm) {
19
+ if (!confirm) {
20
+ confirm = await prompt(`To proceed, type ${color.red(connector)} or re-run this command with ${color.command(`--confirm ${connector}`)}`);
21
+ }
22
+ if (confirm !== connector) {
23
+ ux.error(`Confirmation ${color.red(confirm)} did not match ${color.red(connector)}. Aborted.`);
24
+ }
25
+ }
@@ -9,11 +9,18 @@
9
9
  "$ heroku data:connectors:create --store kafka-lovely-12345 --source postgresql-neato-98765 --table public.users --exclude-column public.users.password"
10
10
  ],
11
11
  "flags": {
12
+ "prompt": {
13
+ "description": "interactively prompt for command arguments and flags",
14
+ "helpGroup": "GLOBAL",
15
+ "name": "prompt",
16
+ "allowNo": false,
17
+ "type": "boolean"
18
+ },
12
19
  "app": {
13
20
  "char": "a",
14
21
  "description": "app to run command against",
15
22
  "name": "app",
16
- "hasDynamicHelp": false,
23
+ "hasDynamicHelp": true,
17
24
  "multiple": false,
18
25
  "type": "option"
19
26
  },
@@ -67,16 +74,16 @@
67
74
  "type": "option"
68
75
  }
69
76
  },
70
- "hasDynamicHelp": false,
77
+ "hasDynamicHelp": true,
71
78
  "hiddenAliases": [],
72
79
  "id": "data:connectors:create",
73
80
  "pluginAlias": "@heroku-cli/plugin-data",
74
81
  "pluginName": "@heroku-cli/plugin-data",
75
82
  "pluginType": "core",
76
83
  "strict": true,
77
- "isESM": false,
84
+ "isESM": true,
78
85
  "relativePath": [
79
- "lib",
86
+ "dist",
80
87
  "commands",
81
88
  "data",
82
89
  "connectors",
@@ -98,6 +105,13 @@
98
105
  "$ heroku data:connectors:destroy gentle-connector-1234 --confirm gentle-connector-1234"
99
106
  ],
100
107
  "flags": {
108
+ "prompt": {
109
+ "description": "interactively prompt for command arguments and flags",
110
+ "helpGroup": "GLOBAL",
111
+ "name": "prompt",
112
+ "allowNo": false,
113
+ "type": "boolean"
114
+ },
101
115
  "confirm": {
102
116
  "description": "confirms destroying the connector if passed in",
103
117
  "name": "confirm",
@@ -114,9 +128,9 @@
114
128
  "pluginName": "@heroku-cli/plugin-data",
115
129
  "pluginType": "core",
116
130
  "strict": true,
117
- "isESM": false,
131
+ "isESM": true,
118
132
  "relativePath": [
119
- "lib",
133
+ "dist",
120
134
  "commands",
121
135
  "data",
122
136
  "connectors",
@@ -135,6 +149,13 @@
135
149
  "heroku data:connectors --addon=your-postgres-addon --table"
136
150
  ],
137
151
  "flags": {
152
+ "prompt": {
153
+ "description": "interactively prompt for command arguments and flags",
154
+ "helpGroup": "GLOBAL",
155
+ "name": "prompt",
156
+ "allowNo": false,
157
+ "type": "boolean"
158
+ },
138
159
  "addon": {
139
160
  "description": "The ID or name for the addon your connector is attached to",
140
161
  "name": "addon",
@@ -146,7 +167,7 @@
146
167
  "char": "a",
147
168
  "description": "app to run command against",
148
169
  "name": "app",
149
- "hasDynamicHelp": false,
170
+ "hasDynamicHelp": true,
150
171
  "multiple": false,
151
172
  "type": "option"
152
173
  },
@@ -177,16 +198,16 @@
177
198
  "type": "boolean"
178
199
  }
179
200
  },
180
- "hasDynamicHelp": false,
201
+ "hasDynamicHelp": true,
181
202
  "hiddenAliases": [],
182
203
  "id": "data:connectors",
183
204
  "pluginAlias": "@heroku-cli/plugin-data",
184
205
  "pluginName": "@heroku-cli/plugin-data",
185
206
  "pluginType": "core",
186
207
  "strict": true,
187
- "isESM": false,
208
+ "isESM": true,
188
209
  "relativePath": [
189
- "lib",
210
+ "dist",
190
211
  "commands",
191
212
  "data",
192
213
  "connectors",
@@ -208,6 +229,13 @@
208
229
  "$ heroku data:connectors:info gentle-connector-1234 --json"
209
230
  ],
210
231
  "flags": {
232
+ "prompt": {
233
+ "description": "interactively prompt for command arguments and flags",
234
+ "helpGroup": "GLOBAL",
235
+ "name": "prompt",
236
+ "allowNo": false,
237
+ "type": "boolean"
238
+ },
211
239
  "json": {
212
240
  "description": "Return the results as JSON",
213
241
  "name": "json",
@@ -222,9 +250,9 @@
222
250
  "pluginName": "@heroku-cli/plugin-data",
223
251
  "pluginType": "core",
224
252
  "strict": true,
225
- "isESM": false,
253
+ "isESM": true,
226
254
  "relativePath": [
227
- "lib",
255
+ "dist",
228
256
  "commands",
229
257
  "data",
230
258
  "connectors",
@@ -244,7 +272,15 @@
244
272
  "examples": [
245
273
  "$ heroku data:connectors:pause gentle-connector-1234"
246
274
  ],
247
- "flags": {},
275
+ "flags": {
276
+ "prompt": {
277
+ "description": "interactively prompt for command arguments and flags",
278
+ "helpGroup": "GLOBAL",
279
+ "name": "prompt",
280
+ "allowNo": false,
281
+ "type": "boolean"
282
+ }
283
+ },
248
284
  "hasDynamicHelp": false,
249
285
  "hiddenAliases": [],
250
286
  "id": "data:connectors:pause",
@@ -252,9 +288,9 @@
252
288
  "pluginName": "@heroku-cli/plugin-data",
253
289
  "pluginType": "core",
254
290
  "strict": true,
255
- "isESM": false,
291
+ "isESM": true,
256
292
  "relativePath": [
257
- "lib",
293
+ "dist",
258
294
  "commands",
259
295
  "data",
260
296
  "connectors",
@@ -274,7 +310,15 @@
274
310
  "examples": [
275
311
  "$ heroku data:connectors:resume gentle-connector-1234"
276
312
  ],
277
- "flags": {},
313
+ "flags": {
314
+ "prompt": {
315
+ "description": "interactively prompt for command arguments and flags",
316
+ "helpGroup": "GLOBAL",
317
+ "name": "prompt",
318
+ "allowNo": false,
319
+ "type": "boolean"
320
+ }
321
+ },
278
322
  "hasDynamicHelp": false,
279
323
  "hiddenAliases": [],
280
324
  "id": "data:connectors:resume",
@@ -282,9 +326,9 @@
282
326
  "pluginName": "@heroku-cli/plugin-data",
283
327
  "pluginType": "core",
284
328
  "strict": true,
285
- "isESM": false,
329
+ "isESM": true,
286
330
  "relativePath": [
287
- "lib",
331
+ "dist",
288
332
  "commands",
289
333
  "data",
290
334
  "connectors",
@@ -305,6 +349,13 @@
305
349
  "$ heroku data:connectors:update gentle-connector-1234 --setting key=value --setting otherKey=otherValue --add-table public.posts --add-table public.people --remove-table public.messages --exclude-column public.posts.key --remove-excluded-column public.parcels.key"
306
350
  ],
307
351
  "flags": {
352
+ "prompt": {
353
+ "description": "interactively prompt for command arguments and flags",
354
+ "helpGroup": "GLOBAL",
355
+ "name": "prompt",
356
+ "allowNo": false,
357
+ "type": "boolean"
358
+ },
308
359
  "setting": {
309
360
  "name": "setting",
310
361
  "required": false,
@@ -352,9 +403,9 @@
352
403
  "pluginName": "@heroku-cli/plugin-data",
353
404
  "pluginType": "core",
354
405
  "strict": true,
355
- "isESM": false,
406
+ "isESM": true,
356
407
  "relativePath": [
357
- "lib",
408
+ "dist",
358
409
  "commands",
359
410
  "data",
360
411
  "connectors",
@@ -374,7 +425,15 @@
374
425
  "examples": [
375
426
  "$ heroku data:connectors:wait gentle-connector-1234"
376
427
  ],
377
- "flags": {},
428
+ "flags": {
429
+ "prompt": {
430
+ "description": "interactively prompt for command arguments and flags",
431
+ "helpGroup": "GLOBAL",
432
+ "name": "prompt",
433
+ "allowNo": false,
434
+ "type": "boolean"
435
+ }
436
+ },
378
437
  "hasDynamicHelp": false,
379
438
  "hiddenAliases": [],
380
439
  "id": "data:connectors:wait",
@@ -382,9 +441,9 @@
382
441
  "pluginName": "@heroku-cli/plugin-data",
383
442
  "pluginType": "core",
384
443
  "strict": true,
385
- "isESM": false,
444
+ "isESM": true,
386
445
  "relativePath": [
387
- "lib",
446
+ "dist",
388
447
  "commands",
389
448
  "data",
390
449
  "connectors",
@@ -402,25 +461,32 @@
402
461
  },
403
462
  "description": "Disable enhanced certificates on an Addon\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates",
404
463
  "flags": {
464
+ "prompt": {
465
+ "description": "interactively prompt for command arguments and flags",
466
+ "helpGroup": "GLOBAL",
467
+ "name": "prompt",
468
+ "allowNo": false,
469
+ "type": "boolean"
470
+ },
405
471
  "app": {
406
472
  "char": "a",
407
473
  "description": "app to run command against",
408
474
  "name": "app",
409
- "hasDynamicHelp": false,
475
+ "hasDynamicHelp": true,
410
476
  "multiple": false,
411
477
  "type": "option"
412
478
  }
413
479
  },
414
- "hasDynamicHelp": false,
480
+ "hasDynamicHelp": true,
415
481
  "hiddenAliases": [],
416
482
  "id": "data:enhanced-certificates:disable",
417
483
  "pluginAlias": "@heroku-cli/plugin-data",
418
484
  "pluginName": "@heroku-cli/plugin-data",
419
485
  "pluginType": "core",
420
486
  "strict": true,
421
- "isESM": false,
487
+ "isESM": true,
422
488
  "relativePath": [
423
- "lib",
489
+ "dist",
424
490
  "commands",
425
491
  "data",
426
492
  "enhanced-certificates",
@@ -441,25 +507,32 @@
441
507
  "$ heroku data:enhanced-certificates:enable happy-postgres-1234 -a example-app"
442
508
  ],
443
509
  "flags": {
510
+ "prompt": {
511
+ "description": "interactively prompt for command arguments and flags",
512
+ "helpGroup": "GLOBAL",
513
+ "name": "prompt",
514
+ "allowNo": false,
515
+ "type": "boolean"
516
+ },
444
517
  "app": {
445
518
  "char": "a",
446
519
  "description": "app to run command against",
447
520
  "name": "app",
448
- "hasDynamicHelp": false,
521
+ "hasDynamicHelp": true,
449
522
  "multiple": false,
450
523
  "type": "option"
451
524
  }
452
525
  },
453
- "hasDynamicHelp": false,
526
+ "hasDynamicHelp": true,
454
527
  "hiddenAliases": [],
455
528
  "id": "data:enhanced-certificates:enable",
456
529
  "pluginAlias": "@heroku-cli/plugin-data",
457
530
  "pluginName": "@heroku-cli/plugin-data",
458
531
  "pluginType": "core",
459
532
  "strict": true,
460
- "isESM": false,
533
+ "isESM": true,
461
534
  "relativePath": [
462
- "lib",
535
+ "dist",
463
536
  "commands",
464
537
  "data",
465
538
  "enhanced-certificates",
@@ -477,11 +550,18 @@
477
550
  },
478
551
  "description": "Get the status of Enhanced Certificates\nRead more about this feature at https://devcenter.heroku.com/articles/heroku-data-enhanced-certificates",
479
552
  "flags": {
553
+ "prompt": {
554
+ "description": "interactively prompt for command arguments and flags",
555
+ "helpGroup": "GLOBAL",
556
+ "name": "prompt",
557
+ "allowNo": false,
558
+ "type": "boolean"
559
+ },
480
560
  "app": {
481
561
  "char": "a",
482
562
  "description": "app to run command against",
483
563
  "name": "app",
484
- "hasDynamicHelp": false,
564
+ "hasDynamicHelp": true,
485
565
  "multiple": false,
486
566
  "type": "option"
487
567
  },
@@ -492,16 +572,16 @@
492
572
  "type": "boolean"
493
573
  }
494
574
  },
495
- "hasDynamicHelp": false,
575
+ "hasDynamicHelp": true,
496
576
  "hiddenAliases": [],
497
577
  "id": "data:enhanced-certificates:status",
498
578
  "pluginAlias": "@heroku-cli/plugin-data",
499
579
  "pluginName": "@heroku-cli/plugin-data",
500
580
  "pluginType": "core",
501
581
  "strict": true,
502
- "isESM": false,
582
+ "isESM": true,
503
583
  "relativePath": [
504
- "lib",
584
+ "dist",
505
585
  "commands",
506
586
  "data",
507
587
  "enhanced-certificates",
@@ -522,6 +602,13 @@
522
602
  "$ heroku data:labs:disable wal-compression --addon=happy-postgres-1234 -a example-app"
523
603
  ],
524
604
  "flags": {
605
+ "prompt": {
606
+ "description": "interactively prompt for command arguments and flags",
607
+ "helpGroup": "GLOBAL",
608
+ "name": "prompt",
609
+ "allowNo": false,
610
+ "type": "boolean"
611
+ },
525
612
  "addon": {
526
613
  "description": "The addon you want to disable features on",
527
614
  "name": "addon",
@@ -534,21 +621,21 @@
534
621
  "char": "a",
535
622
  "description": "app to run command against",
536
623
  "name": "app",
537
- "hasDynamicHelp": false,
624
+ "hasDynamicHelp": true,
538
625
  "multiple": false,
539
626
  "type": "option"
540
627
  }
541
628
  },
542
- "hasDynamicHelp": false,
629
+ "hasDynamicHelp": true,
543
630
  "hiddenAliases": [],
544
631
  "id": "data:labs:disable",
545
632
  "pluginAlias": "@heroku-cli/plugin-data",
546
633
  "pluginName": "@heroku-cli/plugin-data",
547
634
  "pluginType": "core",
548
635
  "strict": true,
549
- "isESM": false,
636
+ "isESM": true,
550
637
  "relativePath": [
551
- "lib",
638
+ "dist",
552
639
  "commands",
553
640
  "data",
554
641
  "labs",
@@ -569,6 +656,13 @@
569
656
  "$ heroku data:labs:enable wal-compression --addon=happy-postgres-1234 -a example-app"
570
657
  ],
571
658
  "flags": {
659
+ "prompt": {
660
+ "description": "interactively prompt for command arguments and flags",
661
+ "helpGroup": "GLOBAL",
662
+ "name": "prompt",
663
+ "allowNo": false,
664
+ "type": "boolean"
665
+ },
572
666
  "addon": {
573
667
  "description": "The addon you want to enable features on",
574
668
  "name": "addon",
@@ -581,21 +675,21 @@
581
675
  "char": "a",
582
676
  "description": "app to run command against",
583
677
  "name": "app",
584
- "hasDynamicHelp": false,
678
+ "hasDynamicHelp": true,
585
679
  "multiple": false,
586
680
  "type": "option"
587
681
  }
588
682
  },
589
- "hasDynamicHelp": false,
683
+ "hasDynamicHelp": true,
590
684
  "hiddenAliases": [],
591
685
  "id": "data:labs:enable",
592
686
  "pluginAlias": "@heroku-cli/plugin-data",
593
687
  "pluginName": "@heroku-cli/plugin-data",
594
688
  "pluginType": "core",
595
689
  "strict": true,
596
- "isESM": false,
690
+ "isESM": true,
597
691
  "relativePath": [
598
- "lib",
692
+ "dist",
599
693
  "commands",
600
694
  "data",
601
695
  "labs",
@@ -616,25 +710,32 @@
616
710
  "$ heroku data:labs:list happy-postgres-1234"
617
711
  ],
618
712
  "flags": {
713
+ "prompt": {
714
+ "description": "interactively prompt for command arguments and flags",
715
+ "helpGroup": "GLOBAL",
716
+ "name": "prompt",
717
+ "allowNo": false,
718
+ "type": "boolean"
719
+ },
619
720
  "app": {
620
721
  "char": "a",
621
722
  "description": "app to run command against",
622
723
  "name": "app",
623
- "hasDynamicHelp": false,
724
+ "hasDynamicHelp": true,
624
725
  "multiple": false,
625
726
  "type": "option"
626
727
  }
627
728
  },
628
- "hasDynamicHelp": false,
729
+ "hasDynamicHelp": true,
629
730
  "hiddenAliases": [],
630
731
  "id": "data:labs:list",
631
732
  "pluginAlias": "@heroku-cli/plugin-data",
632
733
  "pluginName": "@heroku-cli/plugin-data",
633
734
  "pluginType": "core",
634
735
  "strict": true,
635
- "isESM": false,
736
+ "isESM": true,
636
737
  "relativePath": [
637
- "lib",
738
+ "dist",
638
739
  "commands",
639
740
  "data",
640
741
  "labs",
@@ -642,5 +743,5 @@
642
743
  ]
643
744
  }
644
745
  },
645
- "version": "2.0.0-beta.0"
746
+ "version": "3.0.0"
646
747
  }
package/package.json CHANGED
@@ -1,40 +1,40 @@
1
1
  {
2
2
  "name": "@heroku-cli/plugin-data",
3
3
  "description": "A Heroku CLI Plugin for managing Heroku Data",
4
- "version": "2.0.0-beta.0",
4
+ "version": "3.0.0",
5
5
  "author": "Heroku",
6
6
  "bugs": "https://github.com/heroku/heroku-cli-plugin-data/issues",
7
7
  "dependencies": {
8
- "@heroku-cli/color": "^2.0.1",
9
- "@heroku-cli/command": "^11.5.0",
10
- "@oclif/core": "^2.16.0",
11
- "tslib": "^1.14.1"
8
+ "@heroku-cli/command": "^12.3.3",
9
+ "@heroku/heroku-cli-util": "^10.8.0",
10
+ "@oclif/core": "^4.11.4",
11
+ "tslib": "^2.8.1"
12
12
  },
13
13
  "devDependencies": {
14
- "@heroku-cli/schema": "^2.0.0",
15
- "@oclif/plugin-help": "^5",
16
- "@oclif/test": "^2",
14
+ "@heroku-cli/schema": "^2.0.1",
15
+ "@heroku-cli/test-utils": "^0.3.0",
16
+ "@oclif/plugin-help": "^6.2.49",
17
17
  "@types/chai": "^4",
18
18
  "@types/mocha": "^10.0.10",
19
19
  "@types/node": "20.14.8",
20
- "@types/supports-color": "^8.1.3",
21
- "chai": "^4",
22
- "eslint": "^8.57.0",
23
- "eslint-config-oclif": "^5.2.2",
24
- "eslint-config-oclif-typescript": "^3.1.14",
25
- "eslint-plugin-mocha": "^10.5.0",
26
- "globby": "^14",
27
- "mocha": "^11.1.0",
28
- "nock": "^13.5.6",
29
- "nyc": "^17.1.0",
30
- "ts-node": "^10.9.2",
31
- "typescript": "^5.8.2"
20
+ "ansis": "^4.3.0",
21
+ "c8": "^10.1.3",
22
+ "chai": "^5.3.3",
23
+ "eslint": "^9.39.4",
24
+ "eslint-config-oclif": "^6.0.144",
25
+ "eslint-plugin-mocha": "^11.2.0",
26
+ "mocha": "^11.7.5",
27
+ "nock": "^14.0.15",
28
+ "oclif": "^4.23.0",
29
+ "tsx": "^4.22.3",
30
+ "typescript": "^5.9.3"
32
31
  },
32
+ "type": "module",
33
33
  "engines": {
34
- "node": ">=20.0.0"
34
+ "node": ">=22.0.0"
35
35
  },
36
36
  "files": [
37
- "/lib",
37
+ "/dist",
38
38
  "/oclif.manifest.json"
39
39
  ],
40
40
  "homepage": "https://github.com/heroku/heroku-cli-plugin-data",
@@ -43,7 +43,7 @@
43
43
  ],
44
44
  "license": "MIT",
45
45
  "oclif": {
46
- "commands": "./lib/commands",
46
+ "commands": "./dist/commands",
47
47
  "bin": "heroku",
48
48
  "devPlugins": [
49
49
  "@oclif/plugin-help"
@@ -54,12 +54,16 @@
54
54
  "access": "public"
55
55
  },
56
56
  "scripts": {
57
- "build": "rm -rf lib && tsc -b",
58
- "lint": "eslint . --ext .ts --config test/.eslintrc",
59
- "postpack": "rm -f oclif.manifest.json",
60
- "posttest": "yarn lint",
61
- "prepack": "yarn build && oclif manifest && oclif readme",
62
- "test": "nyc --extension .ts mocha --forbid-only --config test/mocharc.json \"test/**/*.test.ts\"",
57
+ "build": "rm -rf dist && tsc && oclif manifest && oclif readme",
58
+ "lint": "eslint .",
59
+ "postpublish": "rm -f oclif.manifest.json",
60
+ "posttest": "npm run lint",
61
+ "prepare": "npm run build",
62
+ "test": "c8 mocha --forbid-only \"test/**/*.test.ts\"",
63
63
  "version": "oclif readme && git add README.md"
64
+ },
65
+ "//overrides": "serialize-javascript: mocha transitive dep, pinned for CVE-2024-11831",
66
+ "overrides": {
67
+ "serialize-javascript": "^7.0.5"
64
68
  }
65
69
  }