Skip to content

Commit

Permalink
version upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
atellmer committed Mar 26, 2023
1 parent ce55bea commit 51871ba
Show file tree
Hide file tree
Showing 15 changed files with 20 additions and 16 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.20.1",
"version": "0.21.0",
"description": "The lightweight and powerful UI rendering engine without dependencies and written in TypeScript (Browser, Node.js, Android, iOS)",
"author": "AlexPlex",
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/component/component.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import type { DarkElementKey, DarkElementInstance } from '../shared';
import { __DEV__, ATTR_KEY, ATTR_FLAG, Flag } from '../constants';
import { ATTR_KEY, ATTR_FLAG, Flag } from '../constants';
import { error, detectIsEmpty } from '../helpers';
import type { Ref } from '../ref';
import type { CreateElement, ComponentFactory, ComponentOptions, ShouldUpdate, StandardComponentProps } from './types';

const __DEV__ = process.env.NODE_ENV === 'development';

const $$component = Symbol('component');
class Component<P extends StandardComponentProps = any, R = any> {
public type: CreateElement<P>;
Expand Down
3 changes: 1 addition & 2 deletions packages/core/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
export const VERSION = '0.20.1';
export const __DEV__ = process.env.NODE_ENV === 'development';
export const VERSION = '0.21.0';
export const ROOT = 'root';
export const REPLACER = 'dark:matter';
export const INDEX_KEY = 'dark:idx';
Expand Down
4 changes: 3 additions & 1 deletion packages/core/src/fiber/fiber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ import {
import { detectIsMemo } from '../memo';
import type { Context, ContextProviderValue } from '../context';
import type { DarkElementKey, DarkElement, DarkElementInstance } from '../shared';
import { __DEV__, INDEX_KEY, TYPE, Flag } from '../constants';
import { INDEX_KEY, TYPE, Flag } from '../constants';
import { type NativeElement, type Hook, EffectTag } from './types';
import { hasEffects } from '../use-effect';
import { hasLayoutEffects } from '../use-layout-effect';
Expand All @@ -54,6 +54,8 @@ import { unmountFiber } from '../unmount';
import { Text } from '../view';
import { Fragment, detectIsFragment } from '../fragment';

const __DEV__ = process.env.NODE_ENV === 'development';

const cloneTagMap = {
[EffectTag.CREATE]: true,
};
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/hot/hot.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { hot } from '../scope';
import { __DEV__ } from '../constants';

const __DEV__ = process.env.NODE_ENV === 'development';

function hot$(update: () => void) {
if (__DEV__) {
Expand Down
2 changes: 1 addition & 1 deletion packages/native-navigation/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/native-navigation",
"version": "0.20.1",
"version": "0.21.0",
"description": "Dark navigation for NativeScript platform",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/native-navigation/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.20.1';
export const VERSION = '0.21.0';
export const SLASH = '/';

export enum TransitionName {
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.20.1",
"version": "0.21.0",
"description": "Dark renderer for browser",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-browser/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.20.1';
export const VERSION = '0.21.0';
export const SVG_TAG_NAMES =
'svg,animate,animateMotion,animateTransform,circle,clipPath,defs,desc,ellipse,feBlend,feColorMatrix,feComponentTransfer,feComposite,feConvolveMatrix,feDiffuseLighting,feDisplacementMap,feDistantLight,feDropShadow,feFlood,feFuncA,feFuncB,feFuncG,feFuncR,feGaussianBlur,feImage,feMerge,feMergeNode,feMorphology,feOffset,fePointLight,feSpecularLighting,feSpotLight,feTile,feTurbulence,filter,foreignObject,g,image,line,linearGradient,marker,mask,metadata,mpath,path,pattern,polygon,polyline,radialGradient,rect,stop,switch,symbol,text,textPath,tspan,use,view';
export const VOID_TAG_NAMES = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
2 changes: 1 addition & 1 deletion packages/platform-native/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/platform-native",
"version": "0.20.1",
"version": "0.21.0",
"description": "Dark renderer to native platforms like Android and iOS via NativeScript",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-native/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.20.1';
export const VERSION = '0.21.0';
export const ANDROID = 'android';
export const IOS = 'ios';
export const ATTR_TEXT = 'text';
2 changes: 1 addition & 1 deletion packages/platform-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/platform-server",
"version": "0.20.1",
"version": "0.21.0",
"description": "Dark renderer for server",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/platform-server/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export const VERSION = '0.20.1';
export const VERSION = '0.21.0';
export const VOID_TAG_NAMES = 'area,base,br,col,embed,hr,img,input,link,meta,param,source,track,wbr';
2 changes: 1 addition & 1 deletion packages/web-router/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dark-engine/web-router",
"version": "0.20.1",
"version": "0.21.0",
"description": "The isomorphic Dark router designed for rendering universal web applications that work both on the client and on the server",
"author": "AlexPlex",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/web-router/src/constants.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const VERSION = '0.20.1';
export const VERSION = '0.21.0';
export const SLASH = '/';
export const PARAMETER = ':';
export const WILDCARD = '**';
Expand Down

0 comments on commit 51871ba

Please sign in to comment.