extension 4.1.3 → 4.1.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/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 = '36cd41466038e3d1045e3eca368f44f40b0a024b';
6872
+ const TEMPLATE_CORPUS_REF = 'e6bee72ae08802f2f14048271fb93f76c10d6a37';
6873
6873
  const TEMPLATE_CORPUS_SLUGS = [
6874
6874
  'action',
6875
6875
  'action-locales',
@@ -6895,21 +6895,21 @@ var __webpack_modules__ = {
6895
6895
  'content-vue',
6896
6896
  'init',
6897
6897
  "javascript",
6898
- 'new',
6899
- 'new-browser-flags',
6900
- 'new-config-eslint',
6901
- 'new-config-prettier',
6902
- 'new-config-stylelint',
6903
- 'new-crypto',
6904
- 'new-env',
6905
- 'new-less',
6906
- 'new-preact',
6907
- 'new-react',
6908
- 'new-react-router',
6909
- 'new-sass',
6910
- 'new-svelte',
6911
- "new-typescript",
6912
- 'new-vue',
6898
+ 'newtab',
6899
+ 'newtab-browser-flags',
6900
+ 'newtab-config-eslint',
6901
+ 'newtab-config-prettier',
6902
+ 'newtab-config-stylelint',
6903
+ 'newtab-crypto',
6904
+ 'newtab-env',
6905
+ 'newtab-less',
6906
+ 'newtab-preact',
6907
+ 'newtab-react',
6908
+ 'newtab-react-router',
6909
+ 'newtab-sass',
6910
+ 'newtab-svelte',
6911
+ "newtab-typescript",
6912
+ 'newtab-vue',
6913
6913
  'playwright',
6914
6914
  'preact',
6915
6915
  'react',
@@ -6987,21 +6987,21 @@ var __webpack_modules__ = {
6987
6987
  title: 'New tab',
6988
6988
  summary: 'replaces the browser new tab page',
6989
6989
  templates: [
6990
- 'new',
6991
- 'new-browser-flags',
6992
- 'new-config-eslint',
6993
- 'new-config-prettier',
6994
- 'new-config-stylelint',
6995
- 'new-crypto',
6996
- 'new-env',
6997
- 'new-less',
6998
- 'new-preact',
6999
- 'new-react',
7000
- 'new-react-router',
7001
- 'new-sass',
7002
- 'new-svelte',
7003
- "new-typescript",
7004
- 'new-vue'
6990
+ 'newtab',
6991
+ 'newtab-browser-flags',
6992
+ 'newtab-config-eslint',
6993
+ 'newtab-config-prettier',
6994
+ 'newtab-config-stylelint',
6995
+ 'newtab-crypto',
6996
+ 'newtab-env',
6997
+ 'newtab-less',
6998
+ 'newtab-preact',
6999
+ 'newtab-react',
7000
+ 'newtab-react-router',
7001
+ 'newtab-sass',
7002
+ 'newtab-svelte',
7003
+ "newtab-typescript",
7004
+ 'newtab-vue'
7005
7005
  ]
7006
7006
  },
7007
7007
  {
@@ -7048,7 +7048,30 @@ var __webpack_modules__ = {
7048
7048
  return groups;
7049
7049
  }
7050
7050
  const TEMPLATE_GROUPS = buildTemplateGroups();
7051
- const TEMPLATE_ALIASES = [];
7051
+ const TEMPLATE_ALIASES = [
7052
+ 'new',
7053
+ 'new-browser-flags',
7054
+ 'new-config-eslint',
7055
+ 'new-config-prettier',
7056
+ 'new-config-stylelint',
7057
+ 'new-crypto',
7058
+ 'new-env',
7059
+ 'new-less',
7060
+ 'new-preact',
7061
+ 'new-react',
7062
+ 'new-react-router',
7063
+ 'new-sass',
7064
+ 'new-svelte',
7065
+ "new-typescript",
7066
+ 'new-vue'
7067
+ ].map((name)=>{
7068
+ const resolvesTo = `newtab${name.slice(3)}`;
7069
+ return {
7070
+ name,
7071
+ resolvesTo,
7072
+ note: `renamed to ${resolvesTo}`
7073
+ };
7074
+ });
7052
7075
  function listTemplates() {
7053
7076
  return TEMPLATE_GROUPS.flatMap((group)=>group.templates);
7054
7077
  }
@@ -7081,10 +7104,7 @@ var __webpack_modules__ = {
7081
7104
  if (TEMPLATE_ALIASES.length > 0) {
7082
7105
  lines.push('');
7083
7106
  lines.push(` ${title('Aliases')}`);
7084
- for (const alias of TEMPLATE_ALIASES){
7085
- lines.push(` ${slug(alias.name)} ${dim(alias.note)}`);
7086
- lines.push(dim(' pass its URL to scaffold the catalog folder instead'));
7087
- }
7107
+ for (const alias of TEMPLATE_ALIASES)lines.push(` ${slug(alias.name)} ${dim(`still works, ${alias.note}`)}`);
7088
7108
  }
7089
7109
  return lines.join('\n');
7090
7110
  }
@@ -9103,6 +9123,7 @@ Cross-browser compatibility
9103
9123
  return;
9104
9124
  }
9105
9125
  const noBrowser = await resolveNoBrowser(pathOrRemoteUrl || process.cwd(), 'dev');
9126
+ if (asJson) process.env.EXTENSION_OUTPUT = 'json';
9106
9127
  if (asJson) printFrame(messaging.Pr.ok('dev', 'started', {
9107
9128
  projectPath: pathOrRemoteUrl || process.cwd(),
9108
9129
  browser: list[0],
@@ -10132,6 +10153,18 @@ Cross-browser compatibility
10132
10153
  }));
10133
10154
  process.exit(1);
10134
10155
  }
10156
+ function applyOutputAliasArgvShim(argv) {
10157
+ const index = argv.findIndex((arg)=>'--format' === arg || arg.startsWith('--format='));
10158
+ if (index < 0) return argv;
10159
+ if (argv.includes('--ai-help')) return argv;
10160
+ const next = [
10161
+ ...argv
10162
+ ];
10163
+ if (next[index].startsWith('--format=')) next[index] = `--output=${next[index].slice(9)}`;
10164
+ else next[index] = '--output';
10165
+ warnDeprecatedOutputAlias('--format');
10166
+ return next;
10167
+ }
10135
10168
  function applyNoBrowserArgvShim(argv) {
10136
10169
  const hasNoRunner = argv.includes('--no-runner');
10137
10170
  if (hasNoRunner) failBeforeParse(argv, removedNoRunnerFlag(), messaging.Lp.E_REMOVED_FLAG, '--no-runner was removed. Use --no-browser instead.', '--no-runner');
@@ -10196,7 +10229,7 @@ Cross-browser compatibility
10196
10229
  }
10197
10230
  if (process.argv.includes('--ai-help')) runAIHelp();
10198
10231
  else {
10199
- const argv = applyNoBrowserArgvShim(process.argv);
10232
+ const argv = applyNoBrowserArgvShim(applyOutputAliasArgvShim(process.argv));
10200
10233
  const asJson = wantsJsonOutput(argv);
10201
10234
  const commandName = resolveCommandFromArgv(argv) || 'extension';
10202
10235
  (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/36cd41466038e3d1045e3eca368f44f40b0a024b/examples";
3
+ export declare const TEMPLATE_CATALOG_URL = "https://github.com/extension-js/examples/tree/e6bee72ae08802f2f14048271fb93f76c10d6a37/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 = "36cd41466038e3d1045e3eca368f44f40b0a024b";
2
+ export declare const TEMPLATE_CORPUS_REF = "e6bee72ae08802f2f14048271fb93f76c10d6a37";
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.3",
41
+ "version": "4.1.5",
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.3",
110
- "extension-develop": "4.1.3",
111
- "extension-install": "4.1.3",
109
+ "extension-create": "4.1.5",
110
+ "extension-develop": "4.1.5",
111
+ "extension-install": "4.1.5",
112
112
  "commander": "^15.0.0",
113
113
  "pintor": "0.3.0",
114
114
  "semver": "^7.7.3",