From 027a8809bdeb7cb0a9ebf9c0df5a07e8711b09da Mon Sep 17 00:00:00 2001 From: atellmer Date: Tue, 20 Dec 2022 06:24:18 -0700 Subject: [PATCH] version upgrade --- packages/core/package.json | 2 +- packages/core/types/fiber/fiber.d.ts | 5 +---- packages/core/types/helpers/index.d.ts | 8 ++++---- packages/core/types/platform/types.d.ts | 3 +-- packages/platform-browser/package.json | 2 +- 5 files changed, 8 insertions(+), 12 deletions(-) diff --git a/packages/core/package.json b/packages/core/package.json index c3e55355..4991bdb5 100644 --- a/packages/core/package.json +++ b/packages/core/package.json @@ -1,6 +1,6 @@ { "name": "@dark-engine/core", - "version": "0.15.1", + "version": "0.15.2", "description": "Dark is lightweight (15 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in TypeScript 💫", "author": "AlexPlex", "license": "MIT", diff --git a/packages/core/types/fiber/fiber.d.ts b/packages/core/types/fiber/fiber.d.ts index ceba72bf..a409243e 100644 --- a/packages/core/types/fiber/fiber.d.ts +++ b/packages/core/types/fiber/fiber.d.ts @@ -1,5 +1,3 @@ -import { type ComponentFactory } from '../component'; -import { type TagVirtualNode } from '../view'; import type { Context, ContextProviderValue } from '../context'; import type { DarkElementInstance } from '../shared'; import { type NativeElement, type Hook, EffectTag } from './types'; @@ -38,7 +36,6 @@ declare class Fiber { setError(error: Error): void; } declare function workLoop(): boolean; -declare function hasChildrenProp(element: DarkElementInstance): element is TagVirtualNode | ComponentFactory; declare type CreateUpdateCallbackOptions = { rootId: number; fiber: Fiber; @@ -46,4 +43,4 @@ declare type CreateUpdateCallbackOptions = { onStart: () => void; }; declare function createUpdateCallback(options: CreateUpdateCallbackOptions): () => void; -export { Fiber, workLoop, hasChildrenProp, createUpdateCallback }; +export { Fiber, workLoop, createUpdateCallback }; diff --git a/packages/core/types/helpers/index.d.ts b/packages/core/types/helpers/index.d.ts index 7e7a53a0..1b08d94b 100644 --- a/packages/core/types/helpers/index.d.ts +++ b/packages/core/types/helpers/index.d.ts @@ -9,15 +9,15 @@ declare const detectIsArray: (o: any) => o is any[]; declare const detectIsNull: (o: any) => o is null; declare const detectIsEmpty: (o: any) => boolean; declare const detectIsFalsy: (o: any) => boolean; +declare const getTime: () => number; +declare const dummyFn: () => void; declare function error(...args: Array): void; declare function flatten(source: Array>): Array; -declare function getTime(): number; declare function keyBy( list: Array, fn: (o: T) => string | number, value?: boolean, ): Record; -declare const dummyFn: () => void; declare function detectIsDepsDifferent(deps: Array, prevDeps: Array): boolean; export { detectIsFunction, @@ -30,10 +30,10 @@ export { detectIsNull, detectIsEmpty, detectIsFalsy, + getTime, + dummyFn, error, flatten, - getTime, keyBy, - dummyFn, detectIsDepsDifferent, }; diff --git a/packages/core/types/platform/types.d.ts b/packages/core/types/platform/types.d.ts index 716a322c..472800f3 100644 --- a/packages/core/types/platform/types.d.ts +++ b/packages/core/types/platform/types.d.ts @@ -1,6 +1,5 @@ import { type Fiber } from '../fiber'; import { type TaskPriority } from '../constants'; -import { type ComponentFactory } from '../component'; import { type VirtualNode } from '../view'; export declare type Platform = { createNativeElement: (vNode: VirtualNode) => N; @@ -10,7 +9,7 @@ export declare type Platform = { shouldYeildToHost: () => boolean; applyCommit: (fiber: Fiber) => void; finishCommitWork: () => void; - detectIsPortal: (factory: ComponentFactory) => boolean; + detectIsPortal: (factory: unknown) => boolean; unmountPortal: (fiber: Fiber) => void; }; export declare type ScheduleCallbackOptions = { diff --git a/packages/platform-browser/package.json b/packages/platform-browser/package.json index 00fef7fa..86cf7f6a 100644 --- a/packages/platform-browser/package.json +++ b/packages/platform-browser/package.json @@ -1,6 +1,6 @@ { "name": "@dark-engine/platform-browser", - "version": "0.15.1", + "version": "0.15.2", "description": "Dark is lightweight (15 Kb gzipped) component-and-hook-based UI rendering engine for javascript apps without dependencies and written in TypeScript 💫", "author": "AlexPlex", "license": "MIT",