Skip to content

Commit

Permalink
Merge branch 'develop' into feat-ng-vite-support
Browse files Browse the repository at this point in the history
  • Loading branch information
sean-perkins committed Jan 2, 2024
2 parents 409a407 + 2e3a5de commit d1297e0
Show file tree
Hide file tree
Showing 95 changed files with 514 additions and 254 deletions.
8 changes: 8 additions & 0 deletions packages/@ionic/cli-framework-output/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.2.8](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.2.7...@ionic/cli-framework-output@2.2.8) (2023-12-19)

**Note:** Version bump only for package @ionic/cli-framework-output





## [2.2.7](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-output@2.2.6...@ionic/cli-framework-output@2.2.7) (2023-11-07)

**Note:** Version bump only for package @ionic/cli-framework-output
Expand Down
6 changes: 3 additions & 3 deletions packages/@ionic/cli-framework-output/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ionic/cli-framework-output",
"version": "2.2.7",
"version": "2.2.8",
"description": "The log/tasks/spinners portion of Ionic CLI Framework",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team <hi@ionic.io> (https://ionicframework.com)",
Expand Down Expand Up @@ -31,12 +31,12 @@
},
"license": "MIT",
"dependencies": {
"@ionic/utils-terminal": "2.3.4",
"@ionic/utils-terminal": "2.3.5",
"debug": "^4.0.0",
"tslib": "^2.0.1"
},
"devDependencies": {
"@ionic/utils-stream": "3.1.6",
"@ionic/utils-stream": "3.1.7",
"@types/debug": "^4.1.1",
"@types/inquirer": "0.0.43",
"@types/jest": "^26.0.10",
Expand Down
11 changes: 11 additions & 0 deletions packages/@ionic/cli-framework-prompts/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [2.1.13](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-prompts@2.1.12...@ionic/cli-framework-prompts@2.1.13) (2023-12-19)


### Bug Fixes

* **cli:** resolve vm2 security vulnerability ([#5070](https://github.com/ionic-team/ionic-cli/issues/5070)) ([4050419](https://github.com/ionic-team/ionic-cli/commit/4050419bef70fb92e58b0a83cd4b68b48090e596))





## [2.1.12](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework-prompts@2.1.11...@ionic/cli-framework-prompts@2.1.12) (2023-11-07)

**Note:** Version bump only for package @ionic/cli-framework-prompts
Expand Down
4 changes: 2 additions & 2 deletions packages/@ionic/cli-framework-prompts/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ionic/cli-framework-prompts",
"version": "2.1.12",
"version": "2.1.13",
"description": "The interactive prompts portion of Ionic CLI Framework",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team <hi@ionic.io> (https://ionicframework.com)",
Expand Down Expand Up @@ -31,7 +31,7 @@
},
"license": "MIT",
"dependencies": {
"@ionic/utils-terminal": "2.3.4",
"@ionic/utils-terminal": "2.3.5",
"debug": "^4.0.0",
"inquirer": "^7.0.0",
"tslib": "^2.0.1"
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-framework-prompts/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { TERMINAL_INFO } from '@ionic/utils-terminal';
import * as Debug from 'debug';
import { debug as Debug } from 'debug';

const debug = Debug('ionic:cli-framework-prompts');

Expand Down
11 changes: 11 additions & 0 deletions packages/@ionic/cli-framework/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [6.0.1](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@6.0.0...@ionic/cli-framework@6.0.1) (2023-12-19)


### Bug Fixes

* **cli:** resolve vm2 security vulnerability ([#5070](https://github.com/ionic-team/ionic-cli/issues/5070)) ([4050419](https://github.com/ionic-team/ionic-cli/commit/4050419bef70fb92e58b0a83cd4b68b48090e596))





# [6.0.0](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli-framework@5.1.7...@ionic/cli-framework@6.0.0) (2023-11-08)


Expand Down
12 changes: 6 additions & 6 deletions packages/@ionic/cli-framework/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ionic/cli-framework",
"version": "6.0.0",
"version": "6.0.1",
"description": "The foundation framework of the Ionic CLI",
"homepage": "https://ionicframework.com/",
"author": "Ionic Team <hi@ionic.io> (https://ionicframework.com) ",
Expand All @@ -26,14 +26,14 @@
},
"license": "MIT",
"dependencies": {
"@ionic/cli-framework-output": "2.2.7",
"@ionic/cli-framework-output": "2.2.8",
"@ionic/utils-array": "2.1.6",
"@ionic/utils-fs": "3.1.7",
"@ionic/utils-object": "2.1.6",
"@ionic/utils-process": "2.1.11",
"@ionic/utils-stream": "3.1.6",
"@ionic/utils-subprocess": "3.0.0",
"@ionic/utils-terminal": "2.3.4",
"@ionic/utils-process": "2.1.12",
"@ionic/utils-stream": "3.1.7",
"@ionic/utils-subprocess": "3.0.1",
"@ionic/utils-terminal": "2.3.5",
"chalk": "^4.0.0",
"debug": "^4.0.0",
"lodash": "^4.17.5",
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-framework/src/lib/__tests__/options.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as minimist from 'minimist';
import minimist from 'minimist';

import { CommandMetadata } from '../../definitions';
import { OptionFilters, filterCommandLineOptions, filterCommandLineOptionsByGroup, metadataOptionsToParseArgsOptions, separateArgv, stripOptions, unparseArgs } from '../options';
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-framework/src/lib/colors.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { ColorFunction, Colors as BaseColors } from '@ionic/cli-framework-output';
import * as chalk from 'chalk';
import chalk from 'chalk';
import * as lodash from 'lodash';

import { MetadataGroup } from '../definitions';
Expand Down
4 changes: 2 additions & 2 deletions packages/@ionic/cli-framework/src/lib/help.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { filter, map } from '@ionic/utils-array';
import { generateFillSpaceStringList, stringWidth, wordWrap } from '@ionic/utils-terminal';
import * as Debug from 'debug';
import { debug as Debug } from 'debug';
import * as lodash from 'lodash';

import { CommandMetadata, CommandMetadataInput, CommandMetadataOption, Footnote, HydratedCommandMetadata, HydratedNamespaceMetadata, ICommand, INamespace, LinkFootnote, MetadataGroup, NamespaceLocateResult, NamespaceMetadata } from '../definitions';
Expand Down Expand Up @@ -223,7 +223,7 @@ export class NamespaceStringHelpFormatter<C extends ICommand<C, N, M, I, O>, N e

const filteredCommands = await filter(commands, async cmd => this.filterCommandCallback(cmd));

const [ cmdDetails, nsDetails ] = await Promise.all([
const [cmdDetails, nsDetails] = await Promise.all([
this.getListOfCommandDetails(filteredCommands.filter(cmd => cmd.namespace === this.namespace)),
this.getListOfNamespaceDetails(filteredCommands.filter(cmd => cmd.namespace !== this.namespace)),
]);
Expand Down
14 changes: 7 additions & 7 deletions packages/@ionic/cli-framework/src/lib/options.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as lodash from 'lodash';
import * as minimist from 'minimist';
import minimist from 'minimist';

import { CommandLineOptions, CommandMetadataOption, HydratedParseArgsOptions, ParsedArg } from '../definitions';

Expand All @@ -19,7 +19,7 @@ export { ParsedArgs } from 'minimist';
*/
export function stripOptions(pargv: readonly string[], { includeSeparated = true }: { includeSeparated?: boolean; }): string[] {
const r = /^\-/;
const [ ownArgs, otherArgs ] = separateArgv(pargv);
const [ownArgs, otherArgs] = separateArgv(pargv);
const filteredArgs = ownArgs.filter(arg => !r.test(arg));

if (!includeSeparated) {
Expand Down Expand Up @@ -50,7 +50,7 @@ export function separateArgv(pargv: readonly string[]): [string[], string[]] {
otherArgs.shift(); // strip separator
}

return [ ownArgs, otherArgs ];
return [ownArgs, otherArgs];
}

/**
Expand Down Expand Up @@ -166,8 +166,8 @@ export function filterCommandLineOptions<O extends CommandMetadataOption>(option

const pairs = Object.keys(parsedArgs)
.map((k): [string, O | undefined, ParsedArg | undefined] => [k, mapped.get(k), parsedArgs[k]])
.filter(([ k, opt, value ]) => opt && predicate(opt, value))
.map(([ k, opt, value ]) => [opt ? opt.name : k, value]);
.filter(([k, opt, value]) => opt && predicate(opt, value))
.map(([k, opt, value]) => [opt ? opt.name : k, value]);

return { ...initial, ...lodash.fromPairs(pairs) };
}
Expand Down Expand Up @@ -221,7 +221,7 @@ export function unparseArgs(parsedArgs: minimist.ParsedArgs, { useDoubleQuotes,
const dashKey = (k: string) => (k.length === 1 ? '-' : '--') + k;

const pushPairs = (...pairs: [string, string | undefined][]) => {
for (const [ k, val ] of pairs) {
for (const [k, val] of pairs) {
const key = dashKey(allowCamelCase ? k : k.replace(/[A-Z]/g, '-$&').toLowerCase());

if (useEquals) {
Expand Down Expand Up @@ -274,7 +274,7 @@ export function unparseArgs(parsedArgs: minimist.ParsedArgs, { useDoubleQuotes,
isKnown(k)
);

for (const [ key, val ] of pairedOptions) {
for (const [key, val] of pairedOptions) {
if (val === true) {
pushPairs([key, undefined]);
} else if (val === false && !ignoreFalse) {
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-framework/src/lib/validators.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import * as chalk from 'chalk';
import chalk from 'chalk';

import { ValidationError, Validator, Validators } from '../definitions';
import { InputValidationError } from '../errors';
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli-framework/src/utils/ipc.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { fork } from '@ionic/utils-subprocess';
import { ChildProcess } from 'child_process';
import * as Debug from 'debug';
import { debug as Debug } from 'debug';
import * as fs from 'fs';

import { ERROR_IPC_UNKNOWN_PROCEDURE, IPCError } from '../errors';
Expand Down
1 change: 1 addition & 0 deletions packages/@ionic/cli/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
!jest.config.js
!lint-staged.config.js
*.d.ts
*.tgz
11 changes: 11 additions & 0 deletions packages/@ionic/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [7.1.6](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli@7.1.5...@ionic/cli@7.1.6) (2023-12-19)


### Bug Fixes

* **cli:** resolve vm2 security vulnerability ([#5070](https://github.com/ionic-team/ionic-cli/issues/5070)) ([4050419](https://github.com/ionic-team/ionic-cli/commit/4050419bef70fb92e58b0a83cd4b68b48090e596))





## [7.1.5](https://github.com/ionic-team/ionic-cli/compare/@ionic/cli@7.1.4...@ionic/cli@7.1.5) (2023-11-08)


Expand Down
21 changes: 10 additions & 11 deletions packages/@ionic/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ionic/cli",
"version": "7.1.5",
"version": "7.1.6",
"description": "A tool for creating and developing Ionic Framework mobile apps.",
"homepage": "https://ionicframework.com",
"author": "Ionic Team <hi@ionic.io> (https://ionicframework.com) ",
Expand Down Expand Up @@ -40,16 +40,16 @@
},
"license": "MIT",
"dependencies": {
"@ionic/cli-framework": "6.0.0",
"@ionic/cli-framework-output": "2.2.7",
"@ionic/cli-framework-prompts": "2.1.12",
"@ionic/cli-framework": "6.0.1",
"@ionic/cli-framework-output": "2.2.8",
"@ionic/cli-framework-prompts": "2.1.13",
"@ionic/utils-array": "2.1.6",
"@ionic/utils-fs": "3.1.7",
"@ionic/utils-network": "2.1.6",
"@ionic/utils-process": "2.1.11",
"@ionic/utils-stream": "3.1.6",
"@ionic/utils-subprocess": "3.0.0",
"@ionic/utils-terminal": "2.3.4",
"@ionic/utils-network": "2.1.7",
"@ionic/utils-process": "2.1.12",
"@ionic/utils-stream": "3.1.7",
"@ionic/utils-subprocess": "3.0.1",
"@ionic/utils-terminal": "2.3.5",
"chalk": "^4.0.0",
"debug": "^4.0.0",
"diff": "^4.0.1",
Expand All @@ -58,12 +58,12 @@
"lodash": "^4.17.5",
"open": "^7.0.4",
"os-name": "^4.0.0",
"proxy-agent": "^6.3.0",
"semver": "^7.1.1",
"split2": "^3.0.0",
"ssh-config": "^1.1.1",
"stream-combiner2": "^1.1.1",
"superagent": "^8.0.9",
"superagent-proxy": "^3.0.0",
"tar": "^6.0.1",
"tslib": "^2.0.1"
},
Expand All @@ -77,7 +77,6 @@
"@types/semver": "^7.1.0",
"@types/split2": "^2.1.6",
"@types/superagent": "4.1.3",
"@types/superagent-proxy": "^3.0.0",
"@types/tar": "^6.1.2",
"jest": "^26.4.2",
"jest-cli": "^26.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli/src/bootstrap.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { compileNodeModulesPaths, readPackageJsonFile } from '@ionic/cli-framework/utils/node';
import * as Debug from 'debug';
import { debug as Debug } from 'debug';
import * as path from 'path';
import * as semver from 'semver';

Expand Down
10 changes: 5 additions & 5 deletions packages/@ionic/cli/src/commands/capacitor/run.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { BaseError, Footnote, validators } from '@ionic/cli-framework';
import { sleepForever } from '@ionic/utils-process';
import { columnar } from '@ionic/utils-terminal';
import * as chalk from 'chalk';
import * as Debug from 'debug';
import chalk from 'chalk';
import { debug as Debug } from 'debug';
import * as lodash from 'lodash';
import * as semver from 'semver';

Expand Down Expand Up @@ -233,7 +233,7 @@ For Android and iOS, you can setup Remote Debugging on your device with browser
throw new FatalException(`Cannot run ${input('ionic capacitor run')} outside a project directory.`);
}

const [ platform ] = inputs;
const [platform] = inputs;

const doLiveReload = !!options['livereload'];
const doOpenFlow = (await this.isOldCapacitor()) || options['open'] === true;
Expand Down Expand Up @@ -297,7 +297,7 @@ For Android and iOS, you can setup Remote Debugging on your device with browser
throw new FatalException(`Cannot run ${input('ionic capacitor run')} outside a project directory.`);
}

const [ platform ] = inputs;
const [platform] = inputs;

await this.runCapacitorRunHook('capacitor:run:before', inputs, options, { ...this.env, project: this.project });

Expand Down Expand Up @@ -326,7 +326,7 @@ For Android and iOS, you can setup Remote Debugging on your device with browser
throw new FatalException(`Cannot run ${input('ionic capacitor run')} outside a project directory.`);
}

const [ platform ] = inputs;
const [platform] = inputs;

await this.runCapacitorRunHook('capacitor:run:before', inputs, options, { ...this.env, project: this.project });
await this.runCapacitor(['run', platform, ...(shouldSync ? [] : ['--no-sync']), '--target', String(options['target'])]);
Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli/src/commands/config/get.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { MetadataGroup } from '@ionic/cli-framework';
import { strcmp } from '@ionic/cli-framework/utils/string';
import { columnar, prettyPath } from '@ionic/utils-terminal';
import * as chalk from 'chalk';
import chalk from 'chalk';
import * as lodash from 'lodash';
import * as util from 'util';

Expand Down
8 changes: 4 additions & 4 deletions packages/@ionic/cli/src/commands/cordova/run.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { Footnote, MetadataGroup, validators } from '@ionic/cli-framework';
import { onBeforeExit, sleepForever } from '@ionic/utils-process';
import * as Debug from 'debug';
import { debug as Debug } from 'debug';
import * as lodash from 'lodash';

import { CommandInstanceInfo, CommandLineInputs, CommandLineOptions, CommandMetadata, CommandMetadataOption, CommandPreRun, IShellRunOptions, ServeDetails } from '../../definitions';
Expand Down Expand Up @@ -212,7 +212,7 @@ Just like with ${input('ionic cordova build')}, you can pass additional options
inputs[0] = p.trim();
}

const [ platform ] = inputs;
const [platform] = inputs;

if (platform && options['native-run'] && !SUPPORTED_PLATFORMS.includes(platform)) {
this.env.log.warn(`${input(platform)} is not supported by ${input('native-run')}. Using Cordova to run the app.`);
Expand Down Expand Up @@ -298,7 +298,7 @@ Just like with ${input('ionic cordova build')}, you can pass additional options
buildOpts.stdio = options['verbose'] ? 'inherit' : ['pipe', 'ignore', 'pipe'];

if (options['native-run']) {
const [ platform ] = inputs;
const [platform] = inputs;

await this.runCordova(filterArgumentsForCordova({ ...metadata, name: 'build' }, options), buildOpts);

Expand Down Expand Up @@ -336,7 +336,7 @@ Just like with ${input('ionic cordova build')}, you can pass additional options

if (options['native-run']) {
const conf = await loadCordovaConfig(this.integration);
const [ platform ] = inputs;
const [platform] = inputs;

await this.runCordova(filterArgumentsForCordova({ ...metadata, name: 'build' }, options), { stdio: 'inherit' });

Expand Down
2 changes: 1 addition & 1 deletion packages/@ionic/cli/src/commands/integrations/list.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { columnar } from '@ionic/utils-terminal';
import * as chalk from 'chalk';
import chalk from 'chalk';

import { CommandLineInputs, CommandLineOptions, CommandMetadata, IntegrationName } from '../../definitions';
import { input, strong } from '../../lib/color';
Expand Down
Loading

0 comments on commit d1297e0

Please sign in to comment.