From cae8c0fc226f38a3a5910a7ca70c941237096ea6 Mon Sep 17 00:00:00 2001 From: Nikola Hristov Date: Fri, 24 May 2024 22:09:28 +0300 Subject: [PATCH] Pipe/v0.0.4 --- CHANGELOG.md | 4 ++++ Source/Function/Merge.ts | 7 ++----- Source/Interface/Merge.ts | 37 ------------------------------------- Target/Class/Pipe.d.ts | 12 +++++++++++- Target/Function/Merge.d.ts | 14 +++++++++++--- Target/Interface/Merge.d.ts | 21 --------------------- Target/Interface/Merge.js | 0 package.json | 12 +++++++++--- 8 files changed, 37 insertions(+), 70 deletions(-) delete mode 100644 Source/Interface/Merge.ts delete mode 100644 Target/Interface/Merge.d.ts delete mode 100644 Target/Interface/Merge.js diff --git a/CHANGELOG.md b/CHANGELOG.md index e7fbebf5..d27b1094 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +## 0.0.4 + +- Cleanup + ## 0.0.3 - Cleanup diff --git a/Source/Function/Merge.ts b/Source/Function/Merge.ts index c51b2fc6..adc696d5 100644 --- a/Source/Function/Merge.ts +++ b/Source/Function/Merge.ts @@ -2,9 +2,6 @@ * @module Merge * */ -export default (await import("deepmerge-ts")).deepmergeCustom({ +export default (await import("deepmerge-ts")).deepmergeCustom({ mergeArrays: false, -}) satisfies Interface as Interface; - -import type Interface from "../Interface/Merge.js"; -import type { Generic } from "../Interface/Merge.js"; +}); diff --git a/Source/Interface/Merge.ts b/Source/Interface/Merge.ts deleted file mode 100644 index 6f2cb754..00000000 --- a/Source/Interface/Merge.ts +++ /dev/null @@ -1,37 +0,0 @@ -/** - * @module Merge - * - * Represents a generic interface for deep merging objects using merge functions defined in DeepMergeFunctionsURIs. - * - * @template PMF - A type parameter representing Partial. - * - */ -export default interface Interface< - PMF extends Partial, -> { - /** - * Merges multiple objects of type Ts using the provided merge functions and built-in metadata. - * - * @param ...Objects - An arbitrary number of objects to be merged. - * - */ - ( - ...Objects: Ts - ): DeepMergeHKT< - Ts, - GetDeepMergeFunctionsURIs, - DeepMergeBuiltInMetaData - >; -} - -export interface Generic { - DeepMergeArraysURI: DeepMergeLeafURI; -} - -import type { - DeepMergeBuiltInMetaData, - DeepMergeHKT, - DeepMergeLeafURI, - DeepMergeFunctionsURIs, - GetDeepMergeFunctionsURIs, -} from "deepmerge-ts"; diff --git a/Target/Class/Pipe.d.ts b/Target/Class/Pipe.d.ts index b8c55515..9747025a 100644 --- a/Target/Class/Pipe.d.ts +++ b/Target/Class/Pipe.d.ts @@ -14,4 +14,14 @@ import type Interface from "../Interface/Class.js"; import type Option from "../Interface/Option.js"; import type Plan from "../Interface/Plan.js"; export declare const Cache: boolean | import("../Interface/Cache.js").default | undefined, Logger: boolean | import("../Type/Logger.js").Type | undefined, Action: boolean | import("../Interface/Action.js").default | undefined; -export declare const Merge: import("../Interface/Merge.js").default; +export declare const Merge: (...objects: Ts) => import("deepmerge-ts").DeepMergeHKT, Readonly<{ + key: PropertyKey; + parents: readonly Readonly>[]; +}>>; diff --git a/Target/Function/Merge.d.ts b/Target/Function/Merge.d.ts index de1054cc..162b3c4e 100644 --- a/Target/Function/Merge.d.ts +++ b/Target/Function/Merge.d.ts @@ -2,7 +2,15 @@ * @module Merge * */ -declare const _default: Interface; +declare const _default: (...objects: Ts) => import("deepmerge-ts").DeepMergeHKT, Readonly<{ + key: PropertyKey; + parents: readonly Readonly>[]; +}>>; export default _default; -import type Interface from "../Interface/Merge.js"; -import type { Generic } from "../Interface/Merge.js"; diff --git a/Target/Interface/Merge.d.ts b/Target/Interface/Merge.d.ts deleted file mode 100644 index 8506920f..00000000 --- a/Target/Interface/Merge.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * @module Merge - * - * Represents a generic interface for deep merging objects using merge functions defined in DeepMergeFunctionsURIs. - * - * @template PMF - A type parameter representing Partial. - * - */ -export default interface Interface> { - /** - * Merges multiple objects of type Ts using the provided merge functions and built-in metadata. - * - * @param ...Objects - An arbitrary number of objects to be merged. - * - */ - (...Objects: Ts): DeepMergeHKT, DeepMergeBuiltInMetaData>; -} -export interface Generic { - DeepMergeArraysURI: DeepMergeLeafURI; -} -import type { DeepMergeBuiltInMetaData, DeepMergeHKT, DeepMergeLeafURI, DeepMergeFunctionsURIs, GetDeepMergeFunctionsURIs } from "deepmerge-ts"; diff --git a/Target/Interface/Merge.js b/Target/Interface/Merge.js deleted file mode 100644 index e69de29b..00000000 diff --git a/package.json b/package.json index 885b432c..e4b7a0f4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@playform/pipe", - "version": "0.0.3", + "version": "0.0.4", "private": false, "description": "🧪 Pipe —", "keywords": [ @@ -28,6 +28,7 @@ "main": "./Target/Class/Pipe.js", "types": "./Target/Class/Pipe.d.ts", "scripts": { + "Document": "Document 'Source/**/*.ts'", "prepublishOnly": "Build 'Source/**/*.ts'" }, "dependencies": { @@ -35,8 +36,13 @@ "deepmerge-ts": "7.0.1", "fast-glob": "3.3.2" }, - "devDependencies": { - "@playform/build": "0.0.8" + "peerDependencies": { + "@playform/build": "0.0.9" + }, + "peerDependenciesMeta": { + "@playform/build": { + "optional": true + } }, "publishConfig": { "access": "public"