extension 4.0.35 → 4.1.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.
package/README.md CHANGED
@@ -41,7 +41,7 @@ Browser extensions ship with the worst dev experience in modern web. Manifest V3
41
41
 
42
42
  ## Watch it work
43
43
 
44
- [60-second demo](https://github.com/cezaraugusto/extension/assets/4672033/7263d368-99c4-434f-a60a-72c489672586)
44
+ [![Extension.js in 60 seconds: one command, a running extension](https://media.extension.land/video/extension-js/sixty-second-demo.gif)](https://extension.js.org/docs)
45
45
 
46
46
  Or skip the install and try a [live template](https://templates.extension.dev) in your browser.
47
47
 
@@ -155,7 +155,9 @@ npm install extension@latest --save-dev
155
155
  }
156
156
  ```
157
157
 
158
- Run `npm run dev` to develop, `npm run build` for production, and `npm run preview` to inspect the production output. [See it in action.](https://github.com/cezaraugusto/extension/assets/4672033/48694a23-b7f1-4098-9c5d-eff49983739c)
158
+ Run `npm run dev` to develop, `npm run build` for production, and `npm run preview` to inspect the production output.
159
+
160
+ [![extension dev: the browser opens with the extension loaded](https://media.extension.land/video/extension-js/dev-build-preview.gif)](https://extension.js.org/docs/commands/dev)
159
161
 
160
162
  ## Start from a Chrome sample
161
163
 
@@ -165,7 +167,7 @@ Pull any sample from [Chrome Extension Samples](https://github.com/GoogleChrome/
165
167
  npx extension@latest dev https://github.com/GoogleChrome/chrome-extensions-samples/tree/main/functional-samples/sample.page-redder --browser=edge
166
168
  ```
167
169
 
168
- [Watch demo](https://github.com/cezaraugusto/extension/assets/4672033/ee221a94-6ec7-4e04-8553-8812288927f1)
170
+ [![Running a Chrome sample straight from its GitHub URL](https://media.extension.land/video/extension-js/run-chrome-sample.gif)](https://extension.js.org/docs/getting-started/immediately)
169
171
 
170
172
  ## Package managers
171
173
 
package/dist/browsers.cjs CHANGED
@@ -237,10 +237,6 @@ var __webpack_modules__ = {
237
237
  label: 'Browser',
238
238
  value: provenanceNote ? `${browserLabel} ${provenanceNote}` : browserLabel
239
239
  },
240
- {
241
- label: 'Binary',
242
- value: provenanceNote ? _messages__rspack_import_5.Yy(opts.binaryPath || '') : ''
243
- },
244
240
  {
245
241
  label: 'Output',
246
242
  value: _messages__rspack_import_5.Yy(opts.outPath)
@@ -846,10 +842,6 @@ var __webpack_modules__ = {
846
842
  label: 'Extension',
847
843
  value: displayVersion ? `${displayName} ${displayVersion}` : displayName
848
844
  },
849
- {
850
- label: 'Extension ID',
851
- value: includeExtensionId ? cleanId : ''
852
- },
853
845
  {
854
846
  label: 'Profile',
855
847
  value: collapseHomeDirInCardValue(String(opts?.profilePath || '').trim())
@@ -857,6 +849,10 @@ var __webpack_modules__ = {
857
849
  {
858
850
  label: 'Run ID',
859
851
  value: opts?.runLabel || ''
852
+ },
853
+ {
854
+ label: 'Extension ID',
855
+ value: includeExtensionId ? cleanId : ''
860
856
  }
861
857
  ]
862
858
  });
@@ -5946,11 +5942,12 @@ var __webpack_modules__ = {
5946
5942
  console.error(...parts);
5947
5943
  }
5948
5944
  const CARD_LABEL_WIDTH = 15;
5945
+ const MAX_CARD_ROWS = 3;
5949
5946
  function card(input = {}) {
5950
5947
  const version = String(input.version || '').trim();
5951
5948
  const suffix = String(input.suffix || '').trim();
5952
- const head = ` 🧩 ${pintor__rspack_import_0_default().brightBlue('Extension.js')}` + (version ? ` ${pintor__rspack_import_0_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
5953
- const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).map((row)=>{
5949
+ const head = ` 🧩 Extension.js` + (version ? ` ${pintor__rspack_import_0_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
5950
+ const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).slice(0, MAX_CARD_ROWS).map((row)=>{
5954
5951
  const label = row.label.padEnd(CARD_LABEL_WIDTH);
5955
5952
  return ` ${label}${pintor__rspack_import_0_default().gray(String(row.value).trim())}`;
5956
5953
  });
package/dist/cli.cjs CHANGED
@@ -238,10 +238,6 @@ var __webpack_modules__ = {
238
238
  label: 'Browser',
239
239
  value: provenanceNote ? `${browserLabel} ${provenanceNote}` : browserLabel
240
240
  },
241
- {
242
- label: 'Binary',
243
- value: provenanceNote ? _messages__rspack_import_5.Yy(opts.binaryPath || '') : ''
244
- },
245
241
  {
246
242
  label: 'Output',
247
243
  value: _messages__rspack_import_5.Yy(opts.outPath)
@@ -847,10 +843,6 @@ var __webpack_modules__ = {
847
843
  label: 'Extension',
848
844
  value: displayVersion ? `${displayName} ${displayVersion}` : displayName
849
845
  },
850
- {
851
- label: 'Extension ID',
852
- value: includeExtensionId ? cleanId : ''
853
- },
854
846
  {
855
847
  label: 'Profile',
856
848
  value: collapseHomeDirInCardValue(String(opts?.profilePath || '').trim())
@@ -858,6 +850,10 @@ var __webpack_modules__ = {
858
850
  {
859
851
  label: 'Run ID',
860
852
  value: opts?.runLabel || ''
853
+ },
854
+ {
855
+ label: 'Extension ID',
856
+ value: includeExtensionId ? cleanId : ''
861
857
  }
862
858
  ]
863
859
  });
@@ -5959,11 +5955,12 @@ var __webpack_modules__ = {
5959
5955
  }
5960
5956
  };
5961
5957
  const CARD_LABEL_WIDTH = 15;
5958
+ const MAX_CARD_ROWS = 3;
5962
5959
  function card(input = {}) {
5963
5960
  const version = String(input.version || '').trim();
5964
5961
  const suffix = String(input.suffix || '').trim();
5965
- const head = ` 🧩 ${pintor__rspack_import_0_default().brightBlue('Extension.js')}` + (version ? ` ${pintor__rspack_import_0_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
5966
- const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).map((row)=>{
5962
+ const head = ` 🧩 Extension.js` + (version ? ` ${pintor__rspack_import_0_default().gray(version)}` : '') + (suffix ? ` ${suffix}` : '');
5963
+ const body = (input.rows || []).filter((row)=>String(row.value || '').trim().length > 0).slice(0, MAX_CARD_ROWS).map((row)=>{
5967
5964
  const label = row.label.padEnd(CARD_LABEL_WIDTH);
5968
5965
  return ` ${label}${pintor__rspack_import_0_default().gray(String(row.value).trim())}`;
5969
5966
  });
@@ -23,6 +23,7 @@ export interface CardInput {
23
23
  suffix?: string;
24
24
  rows?: CardRow[];
25
25
  }
26
+ export declare const MAX_CARD_ROWS = 3;
26
27
  export declare function card(input?: CardInput): string;
27
28
  export declare function browserRowValue(browser: string, versionLine?: string): string;
28
29
  export declare function isCardKeyClaimed(key: string): boolean;
package/package.json CHANGED
@@ -38,7 +38,7 @@
38
38
  "extension": "./bin/extension.cjs"
39
39
  },
40
40
  "name": "extension",
41
- "version": "4.0.35",
41
+ "version": "4.1.0",
42
42
  "description": "The cross-browser extension framework. Build Chrome, Edge, Firefox, and Safari extensions with no build configuration.",
43
43
  "homepage": "https://extension.js.org/",
44
44
  "bugs": {
@@ -106,9 +106,9 @@
106
106
  "vivaldi-location2": "2.1.1",
107
107
  "waterfox-location": "2.1.1",
108
108
  "yandex-location": "2.1.1",
109
- "extension-create": "4.0.35",
110
- "extension-develop": "4.0.35",
111
- "extension-install": "4.0.35",
109
+ "extension-create": "4.1.0",
110
+ "extension-develop": "4.1.0",
111
+ "extension-install": "4.1.0",
112
112
  "commander": "^15.0.0",
113
113
  "pintor": "0.3.0",
114
114
  "semver": "^7.7.3",