@extension.dev/deploy 0.2.4 → 0.2.5

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.
package/dist/module.js CHANGED
@@ -73,13 +73,21 @@ const chromeOptionsSchema = external_zod_namespaceObject.z.object({
73
73
  const firefoxOptionsSchema = external_zod_namespaceObject.z.object({
74
74
  zip: external_zod_namespaceObject.z.string().min(1),
75
75
  sourcesZip: external_zod_namespaceObject.z.string().min(1).optional(),
76
- extensionId: external_zod_namespaceObject.z.string().min(1).trim(),
76
+ extensionId: external_zod_namespaceObject.z.string().trim().default(""),
77
77
  jwtIssuer: external_zod_namespaceObject.z.string().min(1).trim(),
78
78
  jwtSecret: external_zod_namespaceObject.z.string().min(1).trim(),
79
79
  channel: external_zod_namespaceObject.z["enum"]([
80
80
  "listed",
81
81
  "unlisted"
82
82
  ]).default("listed")
83
+ }).superRefine((val, ctx)=>{
84
+ if ("listed" === val.channel && 0 === val.extensionId.length) ctx.addIssue({
85
+ code: external_zod_namespaceObject.z.ZodIssueCode.custom,
86
+ path: [
87
+ "extensionId"
88
+ ],
89
+ message: 'Listed Firefox submissions require an existing add-on GUID. Use channel "unlisted" for a first submission.'
90
+ });
83
91
  });
84
92
  const edgeOptionsSchema = external_zod_namespaceObject.z.object({
85
93
  zip: external_zod_namespaceObject.z.string().min(1),
@@ -470,6 +478,24 @@ async function createVersion(params) {
470
478
  headers: authHeaders(params.jwtIssuer, params.jwtSecret)
471
479
  });
472
480
  }
481
+ async function createAddon(params) {
482
+ const form = new FormData();
483
+ form.set("version.upload", params.uploadUuid);
484
+ if (params.sourcesZip) {
485
+ const srcBuf = await promises_default().readFile(params.sourcesZip);
486
+ const srcBlob = new Blob([
487
+ srcBuf
488
+ ], {
489
+ type: "application/zip"
490
+ });
491
+ form.set("version.source", srcBlob, "sources.zip");
492
+ }
493
+ return fetchJson(`${AMO_BASE}/addon/`, {
494
+ method: "POST",
495
+ body: form,
496
+ headers: authHeaders(params.jwtIssuer, params.jwtSecret)
497
+ });
498
+ }
473
499
  async function publishFirefox(options, dryRun) {
474
500
  await assertFilePresent(options.zip);
475
501
  const zipSize = await getFileSize(options.zip);
@@ -478,22 +504,28 @@ async function publishFirefox(options, dryRun) {
478
504
  await assertFilePresent(options.sourcesZip);
479
505
  sourcesSize = await getFileSize(options.sourcesZip);
480
506
  }
481
- const addonId = normalizeAddonId(options.extensionId);
507
+ const addonId = normalizeAddonId(options.extensionId ?? "");
482
508
  const { jwtIssuer, jwtSecret } = options;
483
- log("firefox", "Verifying addon exists");
484
- await getAddon(addonId, jwtIssuer, jwtSecret);
509
+ const channel = options.channel ?? "listed";
510
+ const isNewAddon = 0 === addonId.length;
511
+ if (isNewAddon && "listed" === channel) throw new Error('Listed Firefox submissions require an existing add-on GUID. Use channel "unlisted" for a first submission, or set the add-on GUID.');
512
+ if (!isNewAddon) {
513
+ log("firefox", "Verifying addon exists");
514
+ await getAddon(addonId, jwtIssuer, jwtSecret);
515
+ }
485
516
  const outcome = {
486
- storeUrl: firefoxStoreUrl(addonId),
517
+ storeUrl: isNewAddon ? firefoxStoreUrl("new") : firefoxStoreUrl(addonId),
487
518
  submissionId: addonId
488
519
  };
489
520
  if (dryRun) {
490
- logDryStep("firefox", "Addon verified", {
491
- addonId
521
+ logDryStep("firefox", isNewAddon ? "New add-on (no GUID)" : "Addon verified", {
522
+ addonId: isNewAddon ? "(assigned by AMO)" : addonId,
523
+ channel
492
524
  });
493
525
  logDryStep("firefox", "Would upload ZIP", {
494
526
  file: options.zip,
495
527
  size: formatBytes(zipSize),
496
- channel: options.channel ?? "listed",
528
+ channel,
497
529
  target: `${AMO_BASE}/upload/`,
498
530
  method: "POST"
499
531
  });
@@ -501,8 +533,8 @@ async function publishFirefox(options, dryRun) {
501
533
  interval: `${POLL_INTERVAL_MS / 1000}s`,
502
534
  timeout: `${VALIDATION_TIMEOUT_MS / 60000}min`
503
535
  });
504
- logDryStep("firefox", "Would create new version", {
505
- target: `${AMO_BASE}/addon/${addonId}/versions/`,
536
+ logDryStep("firefox", isNewAddon ? "Would create new add-on" : "Would create new version", {
537
+ target: isNewAddon ? `${AMO_BASE}/addon/` : `${AMO_BASE}/addon/${addonId}/versions/`,
506
538
  method: "POST",
507
539
  sourcesZip: options.sourcesZip ? `${options.sourcesZip} (${formatBytes(sourcesSize)})` : "(none)"
508
540
  });
@@ -511,18 +543,31 @@ async function publishFirefox(options, dryRun) {
511
543
  }
512
544
  const upload = await uploadAndAwaitProcessing(options, jwtIssuer, jwtSecret);
513
545
  outcome.submissionId = upload.uuid;
514
- log("firefox", "Creating new version");
515
- const version = await createVersion({
516
- addonId,
517
- sourcesZip: options.sourcesZip,
518
- uploadUuid: upload.uuid,
519
- jwtIssuer,
520
- jwtSecret
521
- });
522
- outcome.submissionId = String(version.id);
523
546
  const { errors, warnings, notices } = upload.validation;
524
547
  log("firefox", `Validation: ${errors} error(s), ${warnings} warning(s), ${notices} notice(s)`);
525
548
  if (!upload.valid) throw new Error("Firefox extension failed validation");
549
+ if (isNewAddon) {
550
+ var _created_version;
551
+ log("firefox", "Creating new add-on");
552
+ const created = await createAddon({
553
+ sourcesZip: options.sourcesZip,
554
+ uploadUuid: upload.uuid,
555
+ jwtIssuer,
556
+ jwtSecret
557
+ });
558
+ outcome.submissionId = String((null == (_created_version = created.version) ? void 0 : _created_version.id) ?? created.id);
559
+ outcome.storeUrl = firefoxStoreUrl(created.slug ?? created.guid);
560
+ } else {
561
+ log("firefox", "Creating new version");
562
+ const version = await createVersion({
563
+ addonId,
564
+ sourcesZip: options.sourcesZip,
565
+ uploadUuid: upload.uuid,
566
+ jwtIssuer,
567
+ jwtSecret
568
+ });
569
+ outcome.submissionId = String(version.id);
570
+ }
526
571
  return outcome;
527
572
  }
528
573
  function getFirefoxVersion(params) {
package/dist/module.mjs CHANGED
@@ -22,13 +22,21 @@ const chromeOptionsSchema = z.object({
22
22
  const firefoxOptionsSchema = z.object({
23
23
  zip: z.string().min(1),
24
24
  sourcesZip: z.string().min(1).optional(),
25
- extensionId: z.string().min(1).trim(),
25
+ extensionId: z.string().trim().default(""),
26
26
  jwtIssuer: z.string().min(1).trim(),
27
27
  jwtSecret: z.string().min(1).trim(),
28
28
  channel: z["enum"]([
29
29
  "listed",
30
30
  "unlisted"
31
31
  ]).default("listed")
32
+ }).superRefine((val, ctx)=>{
33
+ if ("listed" === val.channel && 0 === val.extensionId.length) ctx.addIssue({
34
+ code: z.ZodIssueCode.custom,
35
+ path: [
36
+ "extensionId"
37
+ ],
38
+ message: 'Listed Firefox submissions require an existing add-on GUID. Use channel "unlisted" for a first submission.'
39
+ });
32
40
  });
33
41
  const edgeOptionsSchema = z.object({
34
42
  zip: z.string().min(1),
@@ -413,6 +421,24 @@ async function createVersion(params) {
413
421
  headers: authHeaders(params.jwtIssuer, params.jwtSecret)
414
422
  });
415
423
  }
424
+ async function createAddon(params) {
425
+ const form = new FormData();
426
+ form.set("version.upload", params.uploadUuid);
427
+ if (params.sourcesZip) {
428
+ const srcBuf = await promises_default.readFile(params.sourcesZip);
429
+ const srcBlob = new Blob([
430
+ srcBuf
431
+ ], {
432
+ type: "application/zip"
433
+ });
434
+ form.set("version.source", srcBlob, "sources.zip");
435
+ }
436
+ return fetchJson(`${AMO_BASE}/addon/`, {
437
+ method: "POST",
438
+ body: form,
439
+ headers: authHeaders(params.jwtIssuer, params.jwtSecret)
440
+ });
441
+ }
416
442
  async function publishFirefox(options, dryRun) {
417
443
  await assertFilePresent(options.zip);
418
444
  const zipSize = await getFileSize(options.zip);
@@ -421,22 +447,28 @@ async function publishFirefox(options, dryRun) {
421
447
  await assertFilePresent(options.sourcesZip);
422
448
  sourcesSize = await getFileSize(options.sourcesZip);
423
449
  }
424
- const addonId = normalizeAddonId(options.extensionId);
450
+ const addonId = normalizeAddonId(options.extensionId ?? "");
425
451
  const { jwtIssuer, jwtSecret } = options;
426
- log("firefox", "Verifying addon exists");
427
- await getAddon(addonId, jwtIssuer, jwtSecret);
452
+ const channel = options.channel ?? "listed";
453
+ const isNewAddon = 0 === addonId.length;
454
+ if (isNewAddon && "listed" === channel) throw new Error('Listed Firefox submissions require an existing add-on GUID. Use channel "unlisted" for a first submission, or set the add-on GUID.');
455
+ if (!isNewAddon) {
456
+ log("firefox", "Verifying addon exists");
457
+ await getAddon(addonId, jwtIssuer, jwtSecret);
458
+ }
428
459
  const outcome = {
429
- storeUrl: firefoxStoreUrl(addonId),
460
+ storeUrl: isNewAddon ? firefoxStoreUrl("new") : firefoxStoreUrl(addonId),
430
461
  submissionId: addonId
431
462
  };
432
463
  if (dryRun) {
433
- logDryStep("firefox", "Addon verified", {
434
- addonId
464
+ logDryStep("firefox", isNewAddon ? "New add-on (no GUID)" : "Addon verified", {
465
+ addonId: isNewAddon ? "(assigned by AMO)" : addonId,
466
+ channel
435
467
  });
436
468
  logDryStep("firefox", "Would upload ZIP", {
437
469
  file: options.zip,
438
470
  size: formatBytes(zipSize),
439
- channel: options.channel ?? "listed",
471
+ channel,
440
472
  target: `${AMO_BASE}/upload/`,
441
473
  method: "POST"
442
474
  });
@@ -444,8 +476,8 @@ async function publishFirefox(options, dryRun) {
444
476
  interval: `${POLL_INTERVAL_MS / 1000}s`,
445
477
  timeout: `${VALIDATION_TIMEOUT_MS / 60000}min`
446
478
  });
447
- logDryStep("firefox", "Would create new version", {
448
- target: `${AMO_BASE}/addon/${addonId}/versions/`,
479
+ logDryStep("firefox", isNewAddon ? "Would create new add-on" : "Would create new version", {
480
+ target: isNewAddon ? `${AMO_BASE}/addon/` : `${AMO_BASE}/addon/${addonId}/versions/`,
449
481
  method: "POST",
450
482
  sourcesZip: options.sourcesZip ? `${options.sourcesZip} (${formatBytes(sourcesSize)})` : "(none)"
451
483
  });
@@ -454,18 +486,31 @@ async function publishFirefox(options, dryRun) {
454
486
  }
455
487
  const upload = await uploadAndAwaitProcessing(options, jwtIssuer, jwtSecret);
456
488
  outcome.submissionId = upload.uuid;
457
- log("firefox", "Creating new version");
458
- const version = await createVersion({
459
- addonId,
460
- sourcesZip: options.sourcesZip,
461
- uploadUuid: upload.uuid,
462
- jwtIssuer,
463
- jwtSecret
464
- });
465
- outcome.submissionId = String(version.id);
466
489
  const { errors, warnings, notices } = upload.validation;
467
490
  log("firefox", `Validation: ${errors} error(s), ${warnings} warning(s), ${notices} notice(s)`);
468
491
  if (!upload.valid) throw new Error("Firefox extension failed validation");
492
+ if (isNewAddon) {
493
+ var _created_version;
494
+ log("firefox", "Creating new add-on");
495
+ const created = await createAddon({
496
+ sourcesZip: options.sourcesZip,
497
+ uploadUuid: upload.uuid,
498
+ jwtIssuer,
499
+ jwtSecret
500
+ });
501
+ outcome.submissionId = String((null == (_created_version = created.version) ? void 0 : _created_version.id) ?? created.id);
502
+ outcome.storeUrl = firefoxStoreUrl(created.slug ?? created.guid);
503
+ } else {
504
+ log("firefox", "Creating new version");
505
+ const version = await createVersion({
506
+ addonId,
507
+ sourcesZip: options.sourcesZip,
508
+ uploadUuid: upload.uuid,
509
+ jwtIssuer,
510
+ jwtSecret
511
+ });
512
+ outcome.submissionId = String(version.id);
513
+ }
469
514
  return outcome;
470
515
  }
471
516
  function getFirefoxVersion(params) {
@@ -24,6 +24,14 @@ export interface AmoVersionInfo {
24
24
  id: number;
25
25
  };
26
26
  }
27
+ export interface AmoCreateAddonResult {
28
+ id: number;
29
+ guid: string;
30
+ slug?: string;
31
+ version?: {
32
+ id: number;
33
+ };
34
+ }
27
35
  export interface FirefoxVerifyResult {
28
36
  ok: boolean;
29
37
  message: string;
@@ -1 +1 @@
1
- {"version":3,"file":"firefox.d.ts","sourceRoot":"","sources":["../../src/firefox.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAW9C,wBAAgB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,MAAM,CAE7D;AAID,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,QAAQ,GAAG,UAAU,CAAC;IAC/B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M,CAAA;KAAE,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC,EAAE,EAAE,OAAO,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAsID,MAAM,WAAW,qBAAqB;IACpC,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;CACtB;AAED,wBAAsB,cAAc,CAClC,OAAO,EAAE,cAAc,EACvB,MAAM,EAAE,OAAO,GACd,OAAO,CAAC,qBAAqB,CAAC,CAqGhC;AAID,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,MAAM,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,YAAY,GAAG,MAAM,CAAC;KACxD,CAAC;CACH;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE;IACxC,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,GAAG,OAAO,CAAC,gBAAgB,CAAC,CAM5B;AAwCD,wBAAsB,wBAAwB,CAAC,MAAM,EAAE;IACrD,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA6D/B"}
@@ -32,10 +32,10 @@ export declare const chromeOptionsSchema: z.ZodObject<{
32
32
  skipSubmitReview?: boolean | undefined;
33
33
  }>;
34
34
  export type ChromeOptions = z.infer<typeof chromeOptionsSchema>;
35
- export declare const firefoxOptionsSchema: z.ZodObject<{
35
+ export declare const firefoxOptionsSchema: z.ZodEffects<z.ZodObject<{
36
36
  zip: z.ZodString;
37
37
  sourcesZip: z.ZodOptional<z.ZodString>;
38
- extensionId: z.ZodString;
38
+ extensionId: z.ZodDefault<z.ZodString>;
39
39
  jwtIssuer: z.ZodString;
40
40
  jwtSecret: z.ZodString;
41
41
  channel: z.ZodDefault<z.ZodEnum<["listed", "unlisted"]>>;
@@ -47,10 +47,24 @@ export declare const firefoxOptionsSchema: z.ZodObject<{
47
47
  channel: "listed" | "unlisted";
48
48
  sourcesZip?: string | undefined;
49
49
  }, {
50
+ zip: string;
51
+ jwtIssuer: string;
52
+ jwtSecret: string;
53
+ extensionId?: string | undefined;
54
+ sourcesZip?: string | undefined;
55
+ channel?: "listed" | "unlisted" | undefined;
56
+ }>, {
50
57
  zip: string;
51
58
  extensionId: string;
52
59
  jwtIssuer: string;
53
60
  jwtSecret: string;
61
+ channel: "listed" | "unlisted";
62
+ sourcesZip?: string | undefined;
63
+ }, {
64
+ zip: string;
65
+ jwtIssuer: string;
66
+ jwtSecret: string;
67
+ extensionId?: string | undefined;
54
68
  sourcesZip?: string | undefined;
55
69
  channel?: "listed" | "unlisted" | undefined;
56
70
  }>;
@@ -108,10 +122,10 @@ export declare const deployConfigSchema: z.ZodObject<{
108
122
  reviewExemption?: boolean | undefined;
109
123
  skipSubmitReview?: boolean | undefined;
110
124
  }>>;
111
- firefox: z.ZodOptional<z.ZodObject<{
125
+ firefox: z.ZodOptional<z.ZodEffects<z.ZodObject<{
112
126
  zip: z.ZodString;
113
127
  sourcesZip: z.ZodOptional<z.ZodString>;
114
- extensionId: z.ZodString;
128
+ extensionId: z.ZodDefault<z.ZodString>;
115
129
  jwtIssuer: z.ZodString;
116
130
  jwtSecret: z.ZodString;
117
131
  channel: z.ZodDefault<z.ZodEnum<["listed", "unlisted"]>>;
@@ -123,10 +137,24 @@ export declare const deployConfigSchema: z.ZodObject<{
123
137
  channel: "listed" | "unlisted";
124
138
  sourcesZip?: string | undefined;
125
139
  }, {
140
+ zip: string;
141
+ jwtIssuer: string;
142
+ jwtSecret: string;
143
+ extensionId?: string | undefined;
144
+ sourcesZip?: string | undefined;
145
+ channel?: "listed" | "unlisted" | undefined;
146
+ }>, {
126
147
  zip: string;
127
148
  extensionId: string;
128
149
  jwtIssuer: string;
129
150
  jwtSecret: string;
151
+ channel: "listed" | "unlisted";
152
+ sourcesZip?: string | undefined;
153
+ }, {
154
+ zip: string;
155
+ jwtIssuer: string;
156
+ jwtSecret: string;
157
+ extensionId?: string | undefined;
130
158
  sourcesZip?: string | undefined;
131
159
  channel?: "listed" | "unlisted" | undefined;
132
160
  }>>;
@@ -191,9 +219,9 @@ export declare const deployConfigSchema: z.ZodObject<{
191
219
  } | undefined;
192
220
  firefox?: {
193
221
  zip: string;
194
- extensionId: string;
195
222
  jwtIssuer: string;
196
223
  jwtSecret: string;
224
+ extensionId?: string | undefined;
197
225
  sourcesZip?: string | undefined;
198
226
  channel?: "listed" | "unlisted" | undefined;
199
227
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,MAAM,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;AAErD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;EAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;EAM5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;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Y,GACZ,WAAW,GACX,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,QAAQ,CAAC;IAChB,MAAM,EAAE,WAAW,CAAC;IACpB,6CAA6C;IAC7C,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,2DAA2D;IAC3D,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,MAAM,YAAY,GAAG;IACzB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,OAAO,EAAE,OAAO,CAAC;CAClB,CAAC"}
package/package.json CHANGED
@@ -13,7 +13,7 @@
13
13
  "ci",
14
14
  "automation"
15
15
  ],
16
- "version": "0.2.4",
16
+ "version": "0.2.5",
17
17
  "repository": {
18
18
  "type": "git",
19
19
  "url": "git+https://github.com/extensiondev/deploy.git"