extension 4.1.2 → 4.1.4
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
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
[npm-version-image]: https://img.shields.io/npm/v/extension.svg?color=0971fe
|
|
2
2
|
[npm-version-url]: https://www.npmjs.com/package/extension
|
|
3
|
-
[npm-downloads-image]: https://img.shields.io/npm/dm/extension.svg?color=0971fe
|
|
4
|
-
[npm-downloads-url]: https://www.npmjs.com/package/extension
|
|
5
3
|
[stars-image]: https://img.shields.io/github/stars/extension-js/extension.js?style=flat&color=0971fe
|
|
6
4
|
[stars-url]: https://github.com/extension-js/extension.js/stargazers
|
|
7
5
|
[action-image]: https://github.com/extension-js/extension.js/actions/workflows/ci.yml/badge.svg?branch=main&color=0971fe
|
|
@@ -11,7 +9,7 @@
|
|
|
11
9
|
[snyk-image]: https://snyk.io/test/github/extension-js/extension.js/badge.svg?color=0971fe
|
|
12
10
|
[snyk-url]: https://snyk.io/test/github/extension-js/extension.js
|
|
13
11
|
|
|
14
|
-
# Extension.js [![Version][npm-version-image]][npm-version-url] [![
|
|
12
|
+
# Extension.js [![Version][npm-version-image]][npm-version-url] [![Stars][stars-image]][stars-url] [![CI][action-image]][action-url] [![Discord][discord-image]][discord-url]
|
|
15
13
|
|
|
16
14
|
> The cross-browser extension framework. Build for Chrome, Edge, Firefox, and Safari with no build config required.
|
|
17
15
|
|
|
@@ -96,7 +94,7 @@ npx extension@latest dev --gecko-binary "/Applications/Firefox.app/Contents/MacO
|
|
|
96
94
|
|
|
97
95
|
| <img alt="Chrome" src="https://media.extension.land/logos/browsers/chrome.svg" width="70"> | <img alt="Edge" src="https://media.extension.land/logos/browsers/edge.svg" width="70"> | <img alt="Firefox" src="https://media.extension.land/logos/browsers/firefox.svg" width="70"> | <img alt="Safari" src="https://media.extension.land/logos/browsers/safari.svg" width="70"> | <img alt="Chromium" src="https://media.extension.land/logos/browsers/chromium.svg" width="70"> | <img alt="Gecko" src="https://media.extension.land/logos/browsers/firefox.svg" width="70"> |
|
|
98
96
|
| :-: | :-: | :-: | :-: | :-: | :-: |
|
|
99
|
-
| Google Chrome<br>✅ Supported | Microsoft Edge<br>✅ Supported | Mozilla Firefox<br>✅ Supported | Apple Safari<br>✅ Supported | Chromium-based<br>✅ Supported | Gecko-based<br>✅ Supported |
|
|
97
|
+
| <sup>Google Chrome<br>✅ Supported</sup> | <sup>Microsoft Edge<br>✅ Supported</sup> | <sup>Mozilla Firefox<br>✅ Supported</sup> | <sup>Apple Safari<br>✅ Supported</sup> | <sup>Chromium-based<br>✅ Supported</sup> | <sup>Gecko-based<br>✅ Supported</sup> |
|
|
100
98
|
|
|
101
99
|
</div>
|
|
102
100
|
|
package/dist/cli.cjs
CHANGED
|
@@ -6869,7 +6869,7 @@ var __webpack_modules__ = {
|
|
|
6869
6869
|
}
|
|
6870
6870
|
var messaging = __webpack_require__("./helpers/messaging.ts");
|
|
6871
6871
|
const TEMPLATE_CORPUS_REPO = 'extension-js/examples';
|
|
6872
|
-
const TEMPLATE_CORPUS_REF = '
|
|
6872
|
+
const TEMPLATE_CORPUS_REF = '36cd41466038e3d1045e3eca368f44f40b0a024b';
|
|
6873
6873
|
const TEMPLATE_CORPUS_SLUGS = [
|
|
6874
6874
|
'action',
|
|
6875
6875
|
'action-locales',
|
|
@@ -6915,6 +6915,7 @@ var __webpack_modules__ = {
|
|
|
6915
6915
|
'react',
|
|
6916
6916
|
'sidebar',
|
|
6917
6917
|
'sidebar-antd',
|
|
6918
|
+
'sidebar-monorepo-nx',
|
|
6918
6919
|
'sidebar-monorepo-turborepo',
|
|
6919
6920
|
'sidebar-shadcn',
|
|
6920
6921
|
'special-folders-pages',
|
|
@@ -6951,6 +6952,7 @@ var __webpack_modules__ = {
|
|
|
6951
6952
|
'sidebar-antd',
|
|
6952
6953
|
'sidebar-shadcn',
|
|
6953
6954
|
'sidebar-monorepo-turborepo',
|
|
6955
|
+
'sidebar-monorepo-nx',
|
|
6954
6956
|
'ai-chatgpt',
|
|
6955
6957
|
'ai-claude',
|
|
6956
6958
|
'ai-gemini',
|
|
@@ -9101,6 +9103,7 @@ Cross-browser compatibility
|
|
|
9101
9103
|
return;
|
|
9102
9104
|
}
|
|
9103
9105
|
const noBrowser = await resolveNoBrowser(pathOrRemoteUrl || process.cwd(), 'dev');
|
|
9106
|
+
if (asJson) process.env.EXTENSION_OUTPUT = 'json';
|
|
9104
9107
|
if (asJson) printFrame(messaging.Pr.ok('dev', 'started', {
|
|
9105
9108
|
projectPath: pathOrRemoteUrl || process.cwd(),
|
|
9106
9109
|
browser: list[0],
|
|
@@ -10130,6 +10133,18 @@ Cross-browser compatibility
|
|
|
10130
10133
|
}));
|
|
10131
10134
|
process.exit(1);
|
|
10132
10135
|
}
|
|
10136
|
+
function applyOutputAliasArgvShim(argv) {
|
|
10137
|
+
const index = argv.findIndex((arg)=>'--format' === arg || arg.startsWith('--format='));
|
|
10138
|
+
if (index < 0) return argv;
|
|
10139
|
+
if (argv.includes('--ai-help')) return argv;
|
|
10140
|
+
const next = [
|
|
10141
|
+
...argv
|
|
10142
|
+
];
|
|
10143
|
+
if (next[index].startsWith('--format=')) next[index] = `--output=${next[index].slice(9)}`;
|
|
10144
|
+
else next[index] = '--output';
|
|
10145
|
+
warnDeprecatedOutputAlias('--format');
|
|
10146
|
+
return next;
|
|
10147
|
+
}
|
|
10133
10148
|
function applyNoBrowserArgvShim(argv) {
|
|
10134
10149
|
const hasNoRunner = argv.includes('--no-runner');
|
|
10135
10150
|
if (hasNoRunner) failBeforeParse(argv, removedNoRunnerFlag(), messaging.Lp.E_REMOVED_FLAG, '--no-runner was removed. Use --no-browser instead.', '--no-runner');
|
|
@@ -10194,7 +10209,7 @@ Cross-browser compatibility
|
|
|
10194
10209
|
}
|
|
10195
10210
|
if (process.argv.includes('--ai-help')) runAIHelp();
|
|
10196
10211
|
else {
|
|
10197
|
-
const argv = applyNoBrowserArgvShim(process.argv);
|
|
10212
|
+
const argv = applyNoBrowserArgvShim(applyOutputAliasArgvShim(process.argv));
|
|
10198
10213
|
const asJson = wantsJsonOutput(argv);
|
|
10199
10214
|
const commandName = resolveCommandFromArgv(argv) || 'extension';
|
|
10200
10215
|
(async ()=>{
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const DEFAULT_TEMPLATE = "javascript";
|
|
2
2
|
export declare const BUNDLED_TEMPLATES: readonly string[];
|
|
3
|
-
export declare const TEMPLATE_CATALOG_URL = "https://github.com/extension-js/examples/tree/
|
|
3
|
+
export declare const TEMPLATE_CATALOG_URL = "https://github.com/extension-js/examples/tree/36cd41466038e3d1045e3eca368f44f40b0a024b/examples";
|
|
4
4
|
export interface TemplateGroup {
|
|
5
5
|
title: string;
|
|
6
6
|
summary: string;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export declare const TEMPLATE_CORPUS_REPO = "extension-js/examples";
|
|
2
|
-
export declare const TEMPLATE_CORPUS_REF = "
|
|
2
|
+
export declare const TEMPLATE_CORPUS_REF = "36cd41466038e3d1045e3eca368f44f40b0a024b";
|
|
3
3
|
export declare const TEMPLATE_CORPUS_SLUGS: readonly string[];
|
package/package.json
CHANGED
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"extension": "./bin/extension.cjs"
|
|
39
39
|
},
|
|
40
40
|
"name": "extension",
|
|
41
|
-
"version": "4.1.
|
|
41
|
+
"version": "4.1.4",
|
|
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.1.
|
|
110
|
-
"extension-develop": "4.1.
|
|
111
|
-
"extension-install": "4.1.
|
|
109
|
+
"extension-create": "4.1.4",
|
|
110
|
+
"extension-develop": "4.1.4",
|
|
111
|
+
"extension-install": "4.1.4",
|
|
112
112
|
"commander": "^15.0.0",
|
|
113
113
|
"pintor": "0.3.0",
|
|
114
114
|
"semver": "^7.7.3",
|