Skip to content

Commit

Permalink
chore(deps): bump prettier from 3.0.3 to 3.1.0 (#252)
Browse files Browse the repository at this point in the history
Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: lommi <[email protected]>
  • Loading branch information
dependabot[bot] and lodmfjord authored Dec 8, 2023
1 parent 11475d9 commit 0a4af5c
Show file tree
Hide file tree
Showing 16 changed files with 126 additions and 117 deletions.
2 changes: 1 addition & 1 deletion apps/pipes/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
"@types/wrap-ansi": "8.1.0",
"eslint": "8.55.0",
"node-fetch": "3.3.2",
"prettier": "3.0.3",
"prettier": "3.1.0",
"rollup-plugin-dts": "6.1.0",
"rollup-plugin-ts": "3.4.5",
"streamifier": "0.1.1",
Expand Down
4 changes: 2 additions & 2 deletions apps/pipes/src/core/base-class.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,8 +378,8 @@ type State_Internal<T extends any = any> = T extends {
? T["isReady"]["state"] extends "READY"
? { client: Client; modules: ModuleName[]; isReady: State_IsPipeCoreReady<{ state: "READY" }> }
: T["isReady"]["state"] extends "NOT_READY"
? { modules: ModuleName[]; isReady: State_IsPipeCoreReady<{ state: "NOT_READY" }> }
: never
? { modules: ModuleName[]; isReady: State_IsPipeCoreReady<{ state: "NOT_READY" }> }
: never
: never;

type fn<Context extends any, Config extends any> = (context: Context, config: Config) => Promise<void> | void;
Expand Down
16 changes: 8 additions & 8 deletions apps/pipes/src/core/pipes-error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ export class PipesError<T extends (...value: any[]) => any> extends Error {
typeof error === "undefined"
? undefined
: error === null
? undefined
: typeof error === "string"
? error
: typeof error === "object" && error instanceof Error
? error.toString()
: typeof error === "object" && "toString" in error
? error.toString()
: undefined;
? undefined
: typeof error === "string"
? error
: typeof error === "object" && error instanceof Error
? error.toString()
: typeof error === "object" && "toString" in error
? error.toString()
: undefined;
}
getPipesError(): {
message: string;
Expand Down
16 changes: 8 additions & 8 deletions apps/pipes/src/core/types/get-nested.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ export type isNestedKey<
> = Key extends keyof Module
? `${AddKey}${Key}`
: Key extends `${infer First}.${infer Rest}`
? First extends keyof Module
? isNestedKey<Module[First], Rest, `${AddKey}${First}.`>
: never
: never;
? First extends keyof Module
? isNestedKey<Module[First], Rest, `${AddKey}${First}.`>
: never
: never;

export type getNestedObject<
Module extends Record<string, any>,
Expand All @@ -25,7 +25,7 @@ export type getNestedObject<
> = Key extends keyof Module
? Module[Key]
: Key extends `${infer First}.${infer Rest}`
? First extends keyof Module
? getNestedObject<Module[First], Rest, `${AddKey}${First}.`>
: never
: never;
? First extends keyof Module
? getNestedObject<Module[First], Rest, `${AddKey}${First}.`>
: never
: never;
20 changes: 10 additions & 10 deletions apps/pipes/src/core/types/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,8 @@ type ReplaceImplementation<T> = {
[K in NonFunctionKeys<T>]: string extends K
? never
: T[K] extends (...args: any[]) => any
? never
: valueToZod<T[K]> | T[K];
? never
: valueToZod<T[K]> | T[K];
} & {
[K in FunctionKeys<T>]: string extends K ? never : T[K] extends (...args: any[]) => any ? T[K] : never;
};
Expand Down Expand Up @@ -243,21 +243,21 @@ export type MergeModules<
: never
: never
: PrevModules extends [infer X]
? X extends AnyModule
? MergeStateHelper<"Config.Incoming", X["Config"]["Incoming"], [], []>
: never
: never,
? X extends AnyModule
? MergeStateHelper<"Config.Incoming", X["Config"]["Incoming"], [], []>
: never
: never,
MergedContext = PrevModules extends [infer X, ...infer R]
? X extends AnyModule
? R extends AnyModule[]
? MergeStateHelper<"Context.Incoming", X["Context"]["Incoming"], R, []>
: never
: never
: PrevModules extends [infer X]
? X extends AnyModule
? MergeStateHelper<"Context.Incoming", X["Context"]["Incoming"], [], []>
: never
: never,
? X extends AnyModule
? MergeStateHelper<"Context.Incoming", X["Context"]["Incoming"], [], []>
: never
: never,
Name extends newModuleName<"CurrentState"> = newModuleName<"CurrentState">,
> = CreateModule<Name, MergedContext, MergedConfig>;

Expand Down
16 changes: 8 additions & 8 deletions apps/pipes/src/core/types/unique-model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ export type IsUnique<
export type UniqueModules<T extends { ModuleName: ModuleName }[]> = T extends [infer _Head]
? T
: T extends [infer Head, ...infer Tail]
? Head extends AnyModule
? Tail extends AnyModule[]
? IsUnique<Head, Tail> extends false
? never
: UniqueModules<Tail> extends Tail
? T
? Head extends AnyModule
? Tail extends AnyModule[]
? IsUnique<Head, Tail> extends false
? never
: UniqueModules<Tail> extends Tail
? T
: never
: never
: never
: never
: never;
: never;
108 changes: 54 additions & 54 deletions apps/pipes/src/core/types/value-to-zod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,14 @@ type ArrayToZodArray<
? // Only one member in array. Return head.
valueToZod<head>
: U extends [...infer R, null]
? // Array contains null or undefined. Return optional array.
ZodOptional<ArrayToZodArray<R>> | ZodDefault<ZodOptional<ArrayToZodArray<R>>>
: U extends [null, ...infer R]
? ZodOptional<ArrayToZodArray<R>> | ZodDefault<ZodOptional<ArrayToZodArray<R>>>
: AddUnion extends 1
? // @ts-expect-error - Sometimes we get never here.
ZodDefault<ZodUnion<GenericArray<ArrayToZod<U>>>>
: ZodType<U> | ArrayToZod<U>;
? // Array contains null or undefined. Return optional array.
ZodOptional<ArrayToZodArray<R>> | ZodDefault<ZodOptional<ArrayToZodArray<R>>>
: U extends [null, ...infer R]
? ZodOptional<ArrayToZodArray<R>> | ZodDefault<ZodOptional<ArrayToZodArray<R>>>
: AddUnion extends 1
? // @ts-expect-error - Sometimes we get never here.
ZodDefault<ZodUnion<GenericArray<ArrayToZod<U>>>>
: ZodType<U> | ArrayToZod<U>;
type ValueToZodArray<T, AddUnion = 1, U extends List<any> = ListOf<combineNullUndefined<T>>> = ArrayToZodArray<
U,
AddUnion
Expand All @@ -56,8 +56,8 @@ type ValueToZodArray<T, AddUnion = 1, U extends List<any> = ListOf<combineNullUn
type List2Tuple<L> = L extends [infer Head, ...infer Tail]
? [valueToZod<Head>, ...List2Tuple<Tail>]
: L extends [infer Head]
? [valueToZod<Head>]
: [];
? [valueToZod<Head>]
: [];

type zodDefault<T extends ZodTypeAny> = ZodDefault<T> | T;
type zodLazy<T extends ZodTypeAny> = ZodLazy<T> | T;
Expand Down Expand Up @@ -111,47 +111,47 @@ type zodKey<T> = true extends If<isAny<T>, true>
? // Ignore any
"unknown"
: // Ignore never
true extends If<Is<T, never, "equals">, true>
? "unknown"
: // We have many items!
true extends hasManyItems<T>
? "many"
: // Null or undefined
true extends If<Is<T, null | undefined, "extends->">, true>
? "nullOrUndefined"
: // Boolean
true extends isTrueAndFalse<T>
? "boolean"
: // True Literal
true extends isTrueOnly<T>
? "true"
: // False Literal
true extends isFalseOnly<T>
? "false"
: // Module Name
T extends string & { __type: "modulename" }
? "modulename"
: // Literal
true extends If<IsLiteral<T>, true>
? "literal"
: // Array
T extends any[]
? isTuple<T> extends true
? "tuple"
: "array"
: // Date
true extends If<Is<T, Date, "equals">, true>
? "date"
: // String
true extends If<Is<T, string, "equals">, true>
? "string"
: // Number
true extends If<Is<T, number, "equals">, true>
? "number"
: // Void
true extends If<Is<T, void, "equals">, true>
? "void"
: // Object
T extends { [k: string]: any }
? "object"
: "unknown";
true extends If<Is<T, never, "equals">, true>
? "unknown"
: // We have many items!
true extends hasManyItems<T>
? "many"
: // Null or undefined
true extends If<Is<T, null | undefined, "extends->">, true>
? "nullOrUndefined"
: // Boolean
true extends isTrueAndFalse<T>
? "boolean"
: // True Literal
true extends isTrueOnly<T>
? "true"
: // False Literal
true extends isFalseOnly<T>
? "false"
: // Module Name
T extends string & { __type: "modulename" }
? "modulename"
: // Literal
true extends If<IsLiteral<T>, true>
? "literal"
: // Array
T extends any[]
? isTuple<T> extends true
? "tuple"
: "array"
: // Date
true extends If<Is<T, Date, "equals">, true>
? "date"
: // String
true extends If<Is<T, string, "equals">, true>
? "string"
: // Number
true extends If<Is<T, number, "equals">, true>
? "number"
: // Void
true extends If<Is<T, void, "equals">, true>
? "void"
: // Object
T extends { [k: string]: any }
? "object"
: "unknown";
20 changes: 10 additions & 10 deletions apps/pipes/src/utils/zod/observer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ type DefaultWrapOutput<T extends StoreObj> = {
[K in keyof T]: T[K] extends z.ZodType<any>
? z.infer<T[K]>
: T[K] extends (arg1: any, arg2: any, ...arg: infer Arg) => infer X
? Arg["length"] extends 0 | undefined
? () => X
: (arg: Arg[0]) => X
: T[K] extends (arg1: any, arg2: any) => infer X
? () => X
: T[K];
? Arg["length"] extends 0 | undefined
? () => X
: (arg: Arg[0]) => X
: T[K] extends (arg1: any, arg2: any) => infer X
? () => X
: T[K];
};

export const wrapContext = <T extends Record<string, any>, Output = DefaultWrapOutput<T>>(
Expand Down Expand Up @@ -359,10 +359,10 @@ type FunctionWithSymbolArg<T extends unknown> = T extends () => infer Return
? () => Promise<Record<symbol, X>>
: never
: T extends (firstArg: string) => infer Return
? (symbol: symbol) => Return
: T extends (symbol: string, ...args: infer B) => infer Return
? (symbol: symbol, ...args: B) => Return
: never;
? (symbol: symbol) => Return
: T extends (symbol: string, ...args: infer B) => infer Return
? (symbol: symbol, ...args: B) => Return
: never;

type SymbolStore<
X extends ZodType<any> = any,
Expand Down
2 changes: 1 addition & 1 deletion base/eslint-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"eslint-plugin-sonarjs": "0.23.0",
"eslint-plugin-unused-imports": "3.0.0",
"eslint-plugin-workspaces": "0.10.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"react": "18.2.0",
"typescript": "5.3.3"
},
Expand Down
2 changes: 1 addition & 1 deletion base/prettier-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"devDependencies": {
"@island.is/scripts": "workspace:*",
"@swc/core": "1.3.100",
"prettier": "3.0.3"
"prettier": "3.1.0"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion base/tsconfig/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"devDependencies": {
"@island.is/prettier-config": "workspace:*",
"@swc/core": "1.3.100",
"prettier": "3.0.3"
"prettier": "3.1.0"
},
"packageManager": "[email protected]",
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion ci/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@swc/core": "1.3.100",
"@types/node": "20.10.4",
"eslint": "8.55.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"typescript": "5.3.3"
},
"engines": {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"express": "4.18.2",
"glob": "10.3.10",
"husky": "8.0.3",
"prettier": "3.0.3",
"prettier": "3.1.0",
"semver": "7.5.4",
"typescript": "5.3.3",
"zod": "3.22.4"
Expand Down
2 changes: 1 addition & 1 deletion pipes-modules/pipes-module-github/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"enquirer": "2.4.1",
"eslint": "8.55.0",
"mobx": "6.12.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"tmp-promise": "3.0.3",
"ts-toolbelt": "9.6.0",
"typescript": "5.3.3",
Expand Down
2 changes: 1 addition & 1 deletion pipes-modules/pipes-module-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"ci-info": "4.0.0",
"eslint": "8.55.0",
"mobx": "6.12.0",
"prettier": "3.0.3",
"prettier": "3.1.0",
"react": "18.2.0",
"ts-toolbelt": "9.6.0",
"typescript": "5.3.3"
Expand Down
Loading

0 comments on commit 0a4af5c

Please sign in to comment.