Skip to content

Commit

Permalink
version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Dec 20, 2022
1 parent 98af54f commit 027a880
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
5 changes: 1 addition & 4 deletions packages/core/types/fiber/fiber.d.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down Expand Up @@ -38,12 +36,11 @@ declare class Fiber<N = NativeElement> {
setError(error: Error): void;
}
declare function workLoop(): boolean;
declare function hasChildrenProp(element: DarkElementInstance): element is TagVirtualNode | ComponentFactory;
declare type CreateUpdateCallbackOptions = {
rootId: number;
fiber: Fiber;
forceStart?: boolean;
onStart: () => void;
};
declare function createUpdateCallback(options: CreateUpdateCallbackOptions): () => void;
export { Fiber, workLoop, hasChildrenProp, createUpdateCallback };
export { Fiber, workLoop, createUpdateCallback };
8 changes: 4 additions & 4 deletions packages/core/types/helpers/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<any>): void;
declare function flatten<T = any>(source: Array<NestedArray<T>>): Array<T>;
declare function getTime(): number;
declare function keyBy<T = any>(
list: Array<T>,
fn: (o: T) => string | number,
value?: boolean,
): Record<string | number, T | boolean>;
declare const dummyFn: () => void;
declare function detectIsDepsDifferent(deps: Array<unknown>, prevDeps: Array<unknown>): boolean;
export {
detectIsFunction,
Expand All @@ -30,10 +30,10 @@ export {
detectIsNull,
detectIsEmpty,
detectIsFalsy,
getTime,
dummyFn,
error,
flatten,
getTime,
keyBy,
dummyFn,
detectIsDepsDifferent,
};
3 changes: 1 addition & 2 deletions packages/core/types/platform/types.d.ts
Original file line number Diff line number Diff line change
@@ -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: <N>(vNode: VirtualNode) => N;
Expand All @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-browser/package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down

0 comments on commit 027a880

Please sign in to comment.