@cmflow/cli 3.5.0 → 3.6.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 (44) hide show
  1. package/dist/bin/cm.mjs +16 -8699
  2. package/dist/bin/cmrelease.mjs +0 -8676
  3. package/dist/common-51c2M9y0.mjs +4 -0
  4. package/dist/common-51c2M9y0.mjs.map +1 -0
  5. package/dist/{compile-packages-CPkDuiiR.mjs → compile-packages-BbF1save.mjs} +2 -2
  6. package/dist/{compile-packages-CPkDuiiR.mjs.map → compile-packages-BbF1save.mjs.map} +1 -1
  7. package/dist/{docker-CwPUDL7v.mjs → docker-DXhAJ3ii.mjs} +2 -2
  8. package/dist/{docker-CwPUDL7v.mjs.map → docker-DXhAJ3ii.mjs.map} +1 -1
  9. package/dist/{docker-clean-tags-4Z1VHhE4.mjs → docker-clean-tags-CGWL7cFn.mjs} +2 -2
  10. package/dist/{docker-clean-tags-4Z1VHhE4.mjs.map → docker-clean-tags-CGWL7cFn.mjs.map} +1 -1
  11. package/dist/{docker-publish-BFuDmUA1.mjs → docker-publish-YJqQd34C.mjs} +2 -2
  12. package/dist/{docker-publish-BFuDmUA1.mjs.map → docker-publish-YJqQd34C.mjs.map} +1 -1
  13. package/dist/{find-packages-C6Y7bRd0.mjs → find-packages-CG9LQebY.mjs} +2 -2
  14. package/dist/{find-packages-C6Y7bRd0.mjs.map → find-packages-CG9LQebY.mjs.map} +1 -1
  15. package/dist/get-config-m5362szF.mjs +42 -0
  16. package/dist/get-config-m5362szF.mjs.map +1 -0
  17. package/dist/index.d.mts +0 -350
  18. package/dist/index.mjs +15 -15
  19. package/dist/index.mjs.map +1 -1
  20. package/dist/{npm-CN1gb9zd.mjs → npm-DPLnAVRR.mjs} +2 -2
  21. package/dist/{npm-CN1gb9zd.mjs.map → npm-DPLnAVRR.mjs.map} +1 -1
  22. package/dist/semantic/core/analyze-commits.mjs +1 -1
  23. package/dist/semantic/core/conditional.mjs +1 -1
  24. package/dist/semantic/core/exit.mjs +1 -1
  25. package/dist/semantic/core/prepare/artifacts.mjs +1 -1
  26. package/dist/semantic/core/prepare/bump-version.mjs +1 -1
  27. package/dist/semantic/core/prepare/commit.mjs +1 -1
  28. package/dist/semantic/core/publish-packages.mjs +1 -1
  29. package/dist/semantic/core/push-release.mjs +1 -1
  30. package/dist/semantic/core/run.mjs +1 -1
  31. package/dist/semantic/core/sync-repository.mjs +1 -1
  32. package/dist/semantic/core/verify-conditions.mjs +1 -1
  33. package/dist/semantic/core/verify-release.mjs +1 -1
  34. package/dist/semantic/docker/publish.mjs +1 -1
  35. package/dist/semantic/docker/success.mjs +1 -1
  36. package/dist/{source-DKfioGh_.mjs → source-CehOU1XK.mjs} +2 -2
  37. package/dist/{source-DKfioGh_.mjs.map → source-CehOU1XK.mjs.map} +1 -1
  38. package/dist/{write-packages-BuxaZvCH.mjs → write-packages-CfzjR7WR.mjs} +2 -2
  39. package/dist/{write-packages-BuxaZvCH.mjs.map → write-packages-CfzjR7WR.mjs.map} +1 -1
  40. package/package.json +1 -3
  41. package/dist/common-Dk_Pm7J8.mjs +0 -4
  42. package/dist/common-Dk_Pm7J8.mjs.map +0 -1
  43. package/dist/get-config-DvDR_kk5.mjs +0 -44
  44. package/dist/get-config-DvDR_kk5.mjs.map +0 -1
package/dist/index.d.mts CHANGED
@@ -1,6 +1,4 @@
1
1
 
2
- /// <reference path="operators/index.d.ts" />
3
- /// <reference path="testing/index.d.ts" />
4
2
  import { a as SemanticContext, c as getConfig, i as CmContext, l as PackageJson, n as CommandConstructor, o as CliConfig, r as ICommand, s as getCI, t as CmTask } from "./index-B7dZdFg6.mjs";
5
3
  import { ChildProcess } from "node:child_process";
6
4
  import { SignalConstants } from "node:os";
@@ -979,353 +977,6 @@ declare class Rebase extends Fetch implements ICommand {
979
977
  success(context: CmContext): void;
980
978
  }
981
979
  //#endregion
982
- //#region ../../node_modules/rxjs/dist/types/internal/Subscription.d.ts
983
- /**
984
- * Represents a disposable resource, such as the execution of an Observable. A
985
- * Subscription has one important method, `unsubscribe`, that takes no argument
986
- * and just disposes the resource held by the subscription.
987
- *
988
- * Additionally, subscriptions may be grouped together through the `add()`
989
- * method, which will attach a child Subscription to the current Subscription.
990
- * When a Subscription is unsubscribed, all its children (and its grandchildren)
991
- * will be unsubscribed as well.
992
- */
993
- declare class Subscription implements SubscriptionLike {
994
- private initialTeardown?;
995
- static EMPTY: Subscription;
996
- /**
997
- * A flag to indicate whether this Subscription has already been unsubscribed.
998
- */
999
- closed: boolean;
1000
- private _parentage;
1001
- /**
1002
- * The list of registered finalizers to execute upon unsubscription. Adding and removing from this
1003
- * list occurs in the {@link #add} and {@link #remove} methods.
1004
- */
1005
- private _finalizers;
1006
- /**
1007
- * @param initialTeardown A function executed first as part of the finalization
1008
- * process that is kicked off when {@link #unsubscribe} is called.
1009
- */
1010
- constructor(initialTeardown?: (() => void) | undefined);
1011
- /**
1012
- * Disposes the resources held by the subscription. May, for instance, cancel
1013
- * an ongoing Observable execution or cancel any other type of work that
1014
- * started when the Subscription was created.
1015
- */
1016
- unsubscribe(): void;
1017
- /**
1018
- * Adds a finalizer to this subscription, so that finalization will be unsubscribed/called
1019
- * when this subscription is unsubscribed. If this subscription is already {@link #closed},
1020
- * because it has already been unsubscribed, then whatever finalizer is passed to it
1021
- * will automatically be executed (unless the finalizer itself is also a closed subscription).
1022
- *
1023
- * Closed Subscriptions cannot be added as finalizers to any subscription. Adding a closed
1024
- * subscription to a any subscription will result in no operation. (A noop).
1025
- *
1026
- * Adding a subscription to itself, or adding `null` or `undefined` will not perform any
1027
- * operation at all. (A noop).
1028
- *
1029
- * `Subscription` instances that are added to this instance will automatically remove themselves
1030
- * if they are unsubscribed. Functions and {@link Unsubscribable} objects that you wish to remove
1031
- * will need to be removed manually with {@link #remove}
1032
- *
1033
- * @param teardown The finalization logic to add to this subscription.
1034
- */
1035
- add(teardown: TeardownLogic): void;
1036
- /**
1037
- * Checks to see if a this subscription already has a particular parent.
1038
- * This will signal that this subscription has already been added to the parent in question.
1039
- * @param parent the parent to check for
1040
- */
1041
- private _hasParent;
1042
- /**
1043
- * Adds a parent to this subscription so it can be removed from the parent if it
1044
- * unsubscribes on it's own.
1045
- *
1046
- * NOTE: THIS ASSUMES THAT {@link _hasParent} HAS ALREADY BEEN CHECKED.
1047
- * @param parent The parent subscription to add
1048
- */
1049
- private _addParent;
1050
- /**
1051
- * Called on a child when it is removed via {@link #remove}.
1052
- * @param parent The parent to remove
1053
- */
1054
- private _removeParent;
1055
- /**
1056
- * Removes a finalizer from this subscription that was previously added with the {@link #add} method.
1057
- *
1058
- * Note that `Subscription` instances, when unsubscribed, will automatically remove themselves
1059
- * from every other `Subscription` they have been added to. This means that using the `remove` method
1060
- * is not a common thing and should be used thoughtfully.
1061
- *
1062
- * If you add the same finalizer instance of a function or an unsubscribable object to a `Subscription` instance
1063
- * more than once, you will need to call `remove` the same number of times to remove all instances.
1064
- *
1065
- * All finalizer instances are removed to free up memory upon unsubscription.
1066
- *
1067
- * @param teardown The finalizer to remove from this subscription
1068
- */
1069
- remove(teardown: Exclude<TeardownLogic, void>): void;
1070
- }
1071
- //#endregion
1072
- //#region ../../node_modules/rxjs/dist/types/internal/types.d.ts
1073
- /**
1074
- * Note: This will add Symbol.observable globally for all TypeScript users,
1075
- * however, we are no longer polyfilling Symbol.observable
1076
- */
1077
- declare global {
1078
- interface SymbolConstructor {
1079
- readonly observable: symbol;
1080
- }
1081
- }
1082
- /**
1083
- * A function type interface that describes a function that accepts one parameter `T`
1084
- * and returns another parameter `R`.
1085
- *
1086
- * Usually used to describe {@link OperatorFunction} - it always takes a single
1087
- * parameter (the source Observable) and returns another Observable.
1088
- */
1089
- interface UnaryFunction<T, R> {
1090
- (source: T): R;
1091
- }
1092
- interface OperatorFunction<T, R> extends UnaryFunction<Observable<T>, Observable<R>> {}
1093
- interface Unsubscribable {
1094
- unsubscribe(): void;
1095
- }
1096
- declare type TeardownLogic = Subscription | Unsubscribable | (() => void) | void;
1097
- interface SubscriptionLike extends Unsubscribable {
1098
- unsubscribe(): void;
1099
- readonly closed: boolean;
1100
- }
1101
- /** OBSERVABLE INTERFACES */
1102
- interface Subscribable<T> {
1103
- subscribe(observer: Partial<Observer<T>>): Unsubscribable;
1104
- }
1105
- /**
1106
- * An object interface that defines a set of callback functions a user can use to get
1107
- * notified of any set of {@link Observable}
1108
- * {@link guide/glossary-and-semantics#notification notification} events.
1109
- *
1110
- * For more info, please refer to {@link guide/observer this guide}.
1111
- */
1112
- interface Observer<T> {
1113
- /**
1114
- * A callback function that gets called by the producer during the subscription when
1115
- * the producer "has" the `value`. It won't be called if `error` or `complete` callback
1116
- * functions have been called, nor after the consumer has unsubscribed.
1117
- *
1118
- * For more info, please refer to {@link guide/glossary-and-semantics#next this guide}.
1119
- */
1120
- next: (value: T) => void;
1121
- /**
1122
- * A callback function that gets called by the producer if and when it encountered a
1123
- * problem of any kind. The errored value will be provided through the `err` parameter.
1124
- * This callback can't be called more than one time, it can't be called if the
1125
- * `complete` callback function have been called previously, nor it can't be called if
1126
- * the consumer has unsubscribed.
1127
- *
1128
- * For more info, please refer to {@link guide/glossary-and-semantics#error this guide}.
1129
- */
1130
- error: (err: any) => void;
1131
- /**
1132
- * A callback function that gets called by the producer if and when it has no more
1133
- * values to provide (by calling `next` callback function). This means that no error
1134
- * has happened. This callback can't be called more than one time, it can't be called
1135
- * if the `error` callback function have been called previously, nor it can't be called
1136
- * if the consumer has unsubscribed.
1137
- *
1138
- * For more info, please refer to {@link guide/glossary-and-semantics#complete this guide}.
1139
- */
1140
- complete: () => void;
1141
- }
1142
- //#endregion
1143
- //#region ../../node_modules/rxjs/dist/types/internal/Subscriber.d.ts
1144
- /**
1145
- * Implements the {@link Observer} interface and extends the
1146
- * {@link Subscription} class. While the {@link Observer} is the public API for
1147
- * consuming the values of an {@link Observable}, all Observers get converted to
1148
- * a Subscriber, in order to provide Subscription-like capabilities such as
1149
- * `unsubscribe`. Subscriber is a common type in RxJS, and crucial for
1150
- * implementing operators, but it is rarely used as a public API.
1151
- */
1152
- declare class Subscriber<T> extends Subscription implements Observer<T> {
1153
- /**
1154
- * A static factory for a Subscriber, given a (potentially partial) definition
1155
- * of an Observer.
1156
- * @param next The `next` callback of an Observer.
1157
- * @param error The `error` callback of an
1158
- * Observer.
1159
- * @param complete The `complete` callback of an
1160
- * Observer.
1161
- * @return A Subscriber wrapping the (partially defined)
1162
- * Observer represented by the given arguments.
1163
- * @deprecated Do not use. Will be removed in v8. There is no replacement for this
1164
- * method, and there is no reason to be creating instances of `Subscriber` directly.
1165
- * If you have a specific use case, please file an issue.
1166
- */
1167
- static create<T>(next?: (x?: T) => void, error?: (e?: any) => void, complete?: () => void): Subscriber<T>;
1168
- /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
1169
- protected isStopped: boolean;
1170
- /** @deprecated Internal implementation detail, do not use directly. Will be made internal in v8. */
1171
- protected destination: Subscriber<any> | Observer<any>;
1172
- /**
1173
- * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1174
- * There is no reason to directly create an instance of Subscriber. This type is exported for typings reasons.
1175
- */
1176
- constructor(destination?: Subscriber<any> | Observer<any>);
1177
- /**
1178
- * The {@link Observer} callback to receive notifications of type `next` from
1179
- * the Observable, with a value. The Observable may call this method 0 or more
1180
- * times.
1181
- * @param value The `next` value.
1182
- */
1183
- next(value: T): void;
1184
- /**
1185
- * The {@link Observer} callback to receive notifications of type `error` from
1186
- * the Observable, with an attached `Error`. Notifies the Observer that
1187
- * the Observable has experienced an error condition.
1188
- * @param err The `error` exception.
1189
- */
1190
- error(err?: any): void;
1191
- /**
1192
- * The {@link Observer} callback to receive a valueless notification of type
1193
- * `complete` from the Observable. Notifies the Observer that the Observable
1194
- * has finished sending push-based notifications.
1195
- */
1196
- complete(): void;
1197
- unsubscribe(): void;
1198
- protected _next(value: T): void;
1199
- protected _error(err: any): void;
1200
- protected _complete(): void;
1201
- }
1202
- //#endregion
1203
- //#region ../../node_modules/rxjs/dist/types/internal/Operator.d.ts
1204
- /***
1205
- * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1206
- */
1207
- interface Operator<T, R> {
1208
- call(subscriber: Subscriber<R>, source: any): TeardownLogic;
1209
- }
1210
- //#endregion
1211
- //#region ../../node_modules/rxjs/dist/types/internal/Observable.d.ts
1212
- /**
1213
- * A representation of any set of values over any amount of time. This is the most basic building block
1214
- * of RxJS.
1215
- */
1216
- declare class Observable<T> implements Subscribable<T> {
1217
- /**
1218
- * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1219
- */
1220
- source: Observable<any> | undefined;
1221
- /**
1222
- * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1223
- */
1224
- operator: Operator<any, T> | undefined;
1225
- /**
1226
- * @param subscribe The function that is called when the Observable is
1227
- * initially subscribed to. This function is given a Subscriber, to which new values
1228
- * can be `next`ed, or an `error` method can be called to raise an error, or
1229
- * `complete` can be called to notify of a successful completion.
1230
- */
1231
- constructor(subscribe?: (this: Observable<T>, subscriber: Subscriber<T>) => TeardownLogic);
1232
- /**
1233
- * Creates a new Observable by calling the Observable constructor
1234
- * @param subscribe the subscriber function to be passed to the Observable constructor
1235
- * @return A new observable.
1236
- * @deprecated Use `new Observable()` instead. Will be removed in v8.
1237
- */
1238
- static create: (...args: any[]) => any;
1239
- /**
1240
- * Creates a new Observable, with this Observable instance as the source, and the passed
1241
- * operator defined as the new observable's operator.
1242
- * @param operator the operator defining the operation to take on the observable
1243
- * @return A new observable with the Operator applied.
1244
- * @deprecated Internal implementation detail, do not use directly. Will be made internal in v8.
1245
- * If you have implemented an operator using `lift`, it is recommended that you create an
1246
- * operator by simply returning `new Observable()` directly. See "Creating new operators from
1247
- * scratch" section here: https://rxjs.dev/guide/operators
1248
- */
1249
- lift<R>(operator?: Operator<T, R>): Observable<R>;
1250
- subscribe(observerOrNext?: Partial<Observer<T>> | ((value: T) => void)): Subscription;
1251
- /** @deprecated Instead of passing separate callback arguments, use an observer argument. Signatures taking separate callback arguments will be removed in v8. Details: https://rxjs.dev/deprecations/subscribe-arguments */
1252
- subscribe(next?: ((value: T) => void) | null, error?: ((error: any) => void) | null, complete?: (() => void) | null): Subscription;
1253
- /**
1254
- * Used as a NON-CANCELLABLE means of subscribing to an observable, for use with
1255
- * APIs that expect promises, like `async/await`. You cannot unsubscribe from this.
1256
- *
1257
- * **WARNING**: Only use this with observables you *know* will complete. If the source
1258
- * observable does not complete, you will end up with a promise that is hung up, and
1259
- * potentially all of the state of an async function hanging out in memory. To avoid
1260
- * this situation, look into adding something like {@link timeout}, {@link take},
1261
- * {@link takeWhile}, or {@link takeUntil} amongst others.
1262
- *
1263
- * #### Example
1264
- *
1265
- * ```ts
1266
- * import { interval, take } from 'rxjs';
1267
- *
1268
- * const source$ = interval(1000).pipe(take(4));
1269
- *
1270
- * async function getTotal() {
1271
- * let total = 0;
1272
- *
1273
- * await source$.forEach(value => {
1274
- * total += value;
1275
- * console.log('observable -> ' + value);
1276
- * });
1277
- *
1278
- * return total;
1279
- * }
1280
- *
1281
- * getTotal().then(
1282
- * total => console.log('Total: ' + total)
1283
- * );
1284
- *
1285
- * // Expected:
1286
- * // 'observable -> 0'
1287
- * // 'observable -> 1'
1288
- * // 'observable -> 2'
1289
- * // 'observable -> 3'
1290
- * // 'Total: 6'
1291
- * ```
1292
- *
1293
- * @param next A handler for each value emitted by the observable.
1294
- * @return A promise that either resolves on observable completion or
1295
- * rejects with the handled error.
1296
- */
1297
- forEach(next: (value: T) => void): Promise<void>;
1298
- /**
1299
- * @param next a handler for each value emitted by the observable
1300
- * @param promiseCtor a constructor function used to instantiate the Promise
1301
- * @return a promise that either resolves on observable completion or
1302
- * rejects with the handled error
1303
- * @deprecated Passing a Promise constructor will no longer be available
1304
- * in upcoming versions of RxJS. This is because it adds weight to the library, for very
1305
- * little benefit. If you need this functionality, it is recommended that you either
1306
- * polyfill Promise, or you create an adapter to convert the returned native promise
1307
- * to whatever promise implementation you wanted. Will be removed in v8.
1308
- */
1309
- forEach(next: (value: T) => void, promiseCtor: PromiseConstructorLike): Promise<void>;
1310
- pipe(): Observable<T>;
1311
- pipe<A>(op1: OperatorFunction<T, A>): Observable<A>;
1312
- pipe<A, B>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>): Observable<B>;
1313
- pipe<A, B, C>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>): Observable<C>;
1314
- pipe<A, B, C, D>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>): Observable<D>;
1315
- pipe<A, B, C, D, E>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>): Observable<E>;
1316
- pipe<A, B, C, D, E, F>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>): Observable<F>;
1317
- pipe<A, B, C, D, E, F, G>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>): Observable<G>;
1318
- pipe<A, B, C, D, E, F, G, H>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>): Observable<H>;
1319
- pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>): Observable<I>;
1320
- pipe<A, B, C, D, E, F, G, H, I>(op1: OperatorFunction<T, A>, op2: OperatorFunction<A, B>, op3: OperatorFunction<B, C>, op4: OperatorFunction<C, D>, op5: OperatorFunction<D, E>, op6: OperatorFunction<E, F>, op7: OperatorFunction<F, G>, op8: OperatorFunction<G, H>, op9: OperatorFunction<H, I>, ...operations: OperatorFunction<any, any>[]): Observable<unknown>;
1321
- /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1322
- toPromise(): Promise<T | undefined>;
1323
- /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1324
- toPromise(PromiseCtor: typeof Promise): Promise<T | undefined>;
1325
- /** @deprecated Replaced with {@link firstValueFrom} and {@link lastValueFrom}. Will be removed in v8. Details: https://rxjs.dev/deprecations/to-promise */
1326
- toPromise(PromiseCtor: PromiseConstructorLike): Promise<T | undefined>;
1327
- }
1328
- //#endregion
1329
980
  //#region src/commands/tasks/push-branch.d.ts
1330
981
  type PushBranchContext = CmContext<{
1331
982
  origin?: string;
@@ -2986,7 +2637,6 @@ type ExecaSyncArrayShort<OptionsType extends SyncOptions> = <NewOptionsType exte
2986
2637
  type RunOptions = Record<string, unknown>;
2987
2638
  type CliSyncResult = ReturnType<typeof execaSync>;
2988
2639
  interface CliResult extends Promise<unknown> {
2989
- toObservable(opt?: RunOptions): Observable<string>;
2990
2640
  toStream(opt?: RunOptions): ReturnType<typeof execa>;
2991
2641
  cwd(cwd: string): CliResult;
2992
2642
  sync(opt?: RunOptions): CliSyncResult;