@extension.dev/deploy 0.2.5 → 1.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 (58) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/README.md +35 -2
  3. package/dist/module.js +407 -369
  4. package/dist/module.mjs +409 -371
  5. package/dist/src/chrome.d.ts +6 -1
  6. package/dist/src/chrome.d.ts.map +1 -1
  7. package/dist/src/cli-commands.d.ts +5 -0
  8. package/dist/src/cli-commands.d.ts.map +1 -0
  9. package/dist/src/cli-parse.d.ts +3 -0
  10. package/dist/src/cli-parse.d.ts.map +1 -0
  11. package/dist/src/cli-usage.d.ts +2 -0
  12. package/dist/src/cli-usage.d.ts.map +1 -0
  13. package/dist/src/cli.d.ts +1 -2
  14. package/dist/src/cli.d.ts.map +1 -1
  15. package/dist/src/config.d.ts +3 -2
  16. package/dist/src/config.d.ts.map +1 -1
  17. package/dist/src/deploy.d.ts.map +1 -1
  18. package/dist/src/edge.d.ts.map +1 -1
  19. package/dist/src/firefox-api.d.ts +52 -0
  20. package/dist/src/firefox-api.d.ts.map +1 -0
  21. package/dist/src/firefox.d.ts +1 -32
  22. package/dist/src/firefox.d.ts.map +1 -1
  23. package/dist/src/init-chrome.d.ts +17 -0
  24. package/dist/src/init-chrome.d.ts.map +1 -0
  25. package/dist/src/init-edge.d.ts +8 -0
  26. package/dist/src/init-edge.d.ts.map +1 -0
  27. package/dist/src/init-firefox.d.ts +8 -0
  28. package/dist/src/init-firefox.d.ts.map +1 -0
  29. package/dist/src/init-io.d.ts.map +1 -1
  30. package/dist/src/init-prompt.d.ts +5 -0
  31. package/dist/src/init-prompt.d.ts.map +1 -0
  32. package/dist/src/init.d.ts +3 -26
  33. package/dist/src/init.d.ts.map +1 -1
  34. package/dist/src/types.d.ts +8 -8
  35. package/dist/src/types.d.ts.map +1 -1
  36. package/dist/src/utils/fetch.d.ts +2 -2
  37. package/dist/src/utils/fetch.d.ts.map +1 -1
  38. package/dist/src/watch.d.ts +1 -0
  39. package/dist/src/watch.d.ts.map +1 -1
  40. package/package.json +18 -8
  41. package/dist/__tests__/cli.test.d.ts +0 -2
  42. package/dist/__tests__/cli.test.d.ts.map +0 -1
  43. package/dist/__tests__/config.test.d.ts +0 -2
  44. package/dist/__tests__/config.test.d.ts.map +0 -1
  45. package/dist/__tests__/deploy.test.d.ts +0 -2
  46. package/dist/__tests__/deploy.test.d.ts.map +0 -1
  47. package/dist/__tests__/dry-run.test.d.ts +0 -2
  48. package/dist/__tests__/dry-run.test.d.ts.map +0 -1
  49. package/dist/__tests__/init.test.d.ts +0 -2
  50. package/dist/__tests__/init.test.d.ts.map +0 -1
  51. package/dist/__tests__/types.test.d.ts +0 -2
  52. package/dist/__tests__/types.test.d.ts.map +0 -1
  53. package/dist/__tests__/utils.test.d.ts +0 -2
  54. package/dist/__tests__/utils.test.d.ts.map +0 -1
  55. package/dist/__tests__/verify.test.d.ts +0 -2
  56. package/dist/__tests__/verify.test.d.ts.map +0 -1
  57. package/dist/__tests__/watch.test.d.ts +0 -2
  58. package/dist/__tests__/watch.test.d.ts.map +0 -1
package/CHANGELOG.md ADDED
@@ -0,0 +1,13 @@
1
+ # Changelog
2
+
3
+ ## 0.2.5
4
+
5
+ Current release. Earlier history is tracked in the source monorepo; entries
6
+ below summarize the package as shipped.
7
+
8
+ - `extension-deploy` CLI and `deploy()` library API for Chrome Web Store,
9
+ Firefox AMO, and Edge Partner Center submissions.
10
+ - Draft and unlisted submission modes for non-destructive store testing.
11
+ - Dry-run mode, config file + environment variable credential resolution,
12
+ zod validation schemas exported for consumers.
13
+ - Watch mode for resubmission flows.
package/README.md CHANGED
@@ -78,10 +78,10 @@ Run `extension-deploy --help` for the full list of flags.
78
78
  | ---------------------------------- | --------------------------- | --------------------------------- |
79
79
  | `--chrome-zip <path>` | `CHROME_ZIP` | Path to the extension ZIP file |
80
80
  | `--chrome-extension-id <id>` | `CHROME_EXTENSION_ID` | Chrome Web Store extension ID |
81
+ | `--chrome-publisher-id <uuid>` | `CHROME_PUBLISHER_ID` | Publisher UUID from the dev console (required) |
81
82
  | `--chrome-client-id <id>` | `CHROME_CLIENT_ID` | OAuth2 client ID |
82
83
  | `--chrome-client-secret <secret>` | `CHROME_CLIENT_SECRET` | OAuth2 client secret |
83
84
  | `--chrome-refresh-token <token>` | `CHROME_REFRESH_TOKEN` | OAuth2 refresh token |
84
- | `--chrome-publish-target <target>` | `CHROME_PUBLISH_TARGET` | `"default"` or `"trustedTesters"` |
85
85
  | `--chrome-deploy-percentage <n>` | `CHROME_DEPLOY_PERCENTAGE` | Staged rollout percentage (1-100) |
86
86
  | `--chrome-review-exemption` | `CHROME_REVIEW_EXEMPTION` | Request expedited review |
87
87
  | `--chrome-skip-submit-review` | `CHROME_SKIP_SUBMIT_REVIEW` | Upload only, skip publish step |
@@ -97,6 +97,11 @@ Run `extension-deploy --help` for the full list of flags.
97
97
  | `--firefox-jwt-secret <secret>` | `FIREFOX_JWT_SECRET` | AMO JWT secret |
98
98
  | `--firefox-channel <channel>` | `FIREFOX_CHANNEL` | `"listed"` or `"unlisted"` |
99
99
 
100
+ `--firefox-extension-id` is optional for an **unlisted first submission**: with no
101
+ GUID and `--firefox-channel unlisted`, a new add-on is created and AMO assigns the
102
+ GUID. Provide the GUID to push a new version to an existing add-on. Listed
103
+ submissions always require an existing GUID.
104
+
100
105
  ### Edge Partner Center
101
106
 
102
107
  | Flag | Env var | Description |
@@ -122,6 +127,22 @@ CHROME_CLIENT_SECRET=GOCSPX-xxx
122
127
  CHROME_REFRESH_TOKEN=1//0xxx
123
128
  ```
124
129
 
130
+ ## Drafts and deletion
131
+
132
+ This package only uploads and publishes. It intentionally has **no delete or
133
+ discard command**: it is meant to run in CI, where the credentials it carries
134
+ should not be able to destroy a listing.
135
+
136
+ If you upload a draft (Chrome `--chrome-skip-submit-review`, Edge
137
+ `--edge-skip-submit-review`) you do not need to clean it up:
138
+
139
+ - Chrome and Edge drafts are **private** (never shipped to users) and are
140
+ **overwritten by your next upload**. Neither store exposes a draft-discard or
141
+ item-delete API; deleting an item is a dashboard-only action.
142
+ - Firefox add-ons can be deleted through the AMO Developer Hub. A throwaway
143
+ unlisted add-on created for testing is best **reused** (push new versions to
144
+ the same GUID) rather than recreated each run.
145
+
125
146
  ## Library usage
126
147
 
127
148
  ```ts
@@ -165,7 +186,7 @@ if (!result.success) {
165
186
 
166
187
  ### `deploy(config): Promise<DeployResult>`
167
188
 
168
- Deploys to all configured stores in parallel. Only stores with a config object are included omit a store to skip it.
189
+ Deploys to all configured stores in parallel. Only stores with a config object are included; omit a store to skip it.
169
190
 
170
191
  **`DeployConfig`**
171
192
 
@@ -262,6 +283,18 @@ What the workflow does:
262
283
  5. Pushes the commit and tag
263
284
  6. Publishes the package to npm
264
285
 
286
+ ## The extension.dev open source stack
287
+
288
+ | Package | Use it to |
289
+ | --- | --- |
290
+ | [`@extension.dev/mcp`](https://github.com/extensiondev/mcp) | Give AI agents tools to build, run, and debug extensions |
291
+ | [`@extension.dev/skill`](https://github.com/extensiondev/skill) | Teach agents the cross-browser rules and silent-failure gotchas |
292
+ | [`@extension.dev/artifact-integrity`](https://github.com/extensiondev/artifact-integrity) | Gate releases on artifact verification |
293
+ | [`@extension.dev/compiler`](https://github.com/extensiondev/compiler) | Build extensions in the browser with esbuild-wasm |
294
+ | [`@extension.dev/core`](https://github.com/extensiondev/core) | Authenticate and publish to the extension.dev platform |
295
+
296
+ All of it rides on [Extension.js](https://github.com/extension-js/extension.js), the open-source cross-browser extension framework.
297
+
265
298
  ## License
266
299
 
267
300
  MIT