Skip to content

Commit

Permalink
chore: build 4.1.6 see changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticsoul committed Jan 15, 2024
1 parent cb1903d commit 5684e0f
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 9 deletions.
1 change: 1 addition & 0 deletions README.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
- [Helux-nextjs-starter](https://github.com/heluxjs/helux-nextjs-starter)

It has the following features:

- Developed based on the fastest immutable js library [limu](https://github.com/tnfe/limu), with super performance
- Atom supports dependency collection, which means that atom does not need to be split into details. Atom can be equivalent to model, which is naturally friendly to `DDD` domain-driven design.
- Built-in signal response mechanism, which can achieve 0 hook encoding + DOM granular update
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -215,5 +215,3 @@ watch(
小小鼓励,给予我们更多力量坚持做出更好的开源项目

<img width="830" alt="image" src="https://github.com/heluxjs/helux/assets/7334950/657c2d0d-36cc-4f9c-9869-7313b0a7825f">


2 changes: 1 addition & 1 deletion docs/docs/playground/demos/Playground/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default () => {
const { name } = info;
cachedSubNames[name] = subName;
setInfo({ name, subName, code: getCode(name, subName) });
}
};

return (
<LiveProvider noInline={true} code={info.code} scope={scope} theme={prism.themes.vsDark}>
Expand Down
3 changes: 2 additions & 1 deletion packages/helux-core/src/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ import {
} from './hooks';
import { block, dynamicBlock, signal } from './signal';

const { shallowCompare, isDiff } = limuUtils;
const { shallowCompare, isDiff, isDraft } = limuUtils;
const createShared = share; // for compatible wit v2 helux
const $ = signal; // signal api alias

Expand Down Expand Up @@ -111,6 +111,7 @@ export {
isDerivedResult,
isDiff,
isSharedState,
isDraft,
shallowCompare,
markRaw,
storeSrv,
Expand Down
2 changes: 1 addition & 1 deletion packages/helux-core/src/consts/user.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { VER as limuVer } from 'limu';

export const VER = '4.1.5';
export const VER = '4.1.6';

export const LIMU_VER = limuVer;

Expand Down
9 changes: 7 additions & 2 deletions packages/helux-core/src/types/api.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
|------------------------------------------------------------------------------------------------
| helux-core@4.1.5
| helux-core@4.1.6
| A state library core that integrates atom, signal, collection dep, derive and watch,
| it supports all react like frameworks ( including react 18 ).
|------------------------------------------------------------------------------------------------
Expand Down Expand Up @@ -68,7 +68,7 @@ import type {
} from './base';

export declare const cst: {
VER: '4.1.5';
VER: '4.1.6';
LIMU_VER: string;
EVENT_NAME: {
/** 共享状态创建时的事件 */
Expand Down Expand Up @@ -747,6 +747,11 @@ interface IProduce {
*/
export declare function isDiff(val1: any, val2: any): boolean;

/**
* 来自 LimuUtils.isDraft,判断是否是草稿节点
*/
export declare function isDraft(mayDraft: any): boolean;

export declare const produce: IProduce;

/**
Expand Down
1 change: 1 addition & 0 deletions packages/helux-openinula/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,7 @@ export const {
isSharedState,
isDerivedAtom,
isDerivedResult,
isDraft,
storeSrv,
shallowCompare,
markRaw,
Expand Down
1 change: 1 addition & 0 deletions packages/helux/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ export const {
isSharedState,
isDerivedAtom,
isDerivedResult,
isDraft,
storeSrv,
shallowCompare,
markRaw,
Expand Down
5 changes: 3 additions & 2 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5684e0f

Please sign in to comment.