Skip to content

Commit

Permalink
build: publish
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticsoul committed Dec 6, 2023
1 parent ab9ad7f commit b0e1d46
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 19 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "helux",
"version": "3.4.25",
"version": "3.4.26",
"description": "A state library core that integrates atom, signal, collection dep, derive and watch, it supports all react like frameworks( including react 18 ).",
"keywords": [],
"author": {
Expand Down
7 changes: 2 additions & 5 deletions packages/helux-core/src/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as limu from 'limu';
import { EVENT_NAME, RECORD_LOADING, VER, LIMU_VER } from './consts/user';
import { limuUtils, produce } from 'limu';
import { EVENT_NAME, LIMU_VER, RECORD_LOADING, VER } from './consts/user';
import { getAtom, isAtom, isDerivedAtom } from './factory/common/atom';
import { addMiddleware } from './factory/common/middleware';
import { addPlugin } from './factory/common/plugin';
Expand All @@ -23,7 +23,6 @@ import { useAtom, useShared } from './hooks/useShared';
import { useWatch } from './hooks/useWatch';
import { block, dynamicBlock, signal } from './signal';

const { limuUtils, produce } = limu;
const { shallowCompare, isDiff } = limuUtils;
const createShared = share; // for compatible wit v2 helux
const $ = signal; // signal api alias
Expand Down Expand Up @@ -96,6 +95,4 @@ export {
RECORD_LOADING,
VER,
LIMU_VER,
// reexport limu
limu,
};
2 changes: 1 addition & 1 deletion packages/helux-core/src/consts/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { createSymbol, HAS_SYMBOL } from '../helpers/sym';
export { EVENT_NAME, FROM, RECORD_LOADING, VER, LIMU_VER } from './user';
export { EVENT_NAME, FROM, LIMU_VER, RECORD_LOADING, VER } from './user';
export { HAS_SYMBOL };

export const PROTO_KEY = '__proto__';
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 = '3.4.25';
export const VER = '3.4.26';

export const LIMU_VER = limuVer;

Expand Down
2 changes: 1 addition & 1 deletion packages/helux-core/src/factory/root.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { VER as LIMU_VER } from 'limu';
import { asType, safeObjGet } from '@helux/utils';
import { VER as LIMU_VER } from 'limu';
import { VER } from '../consts';
import type { Dict, Fn, IBlockCtx, IFnCtx, IPlugin, IUnmountInfo, LoadingState, Middleware, NumStrSymbol } from '../types/base';
import type { TInternal } from './creator/buildInternal';
Expand Down
8 changes: 2 additions & 6 deletions packages/helux-core/src/types/api.d.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
|------------------------------------------------------------------------------------------------
| [email protected].25
| [email protected].26
| 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 @@ -70,15 +70,11 @@ import type {
SyncFnBuilder,
WatchOptionsType,
} from './base';
import * as limuMod from 'limu';

export declare const VER: '3.4.25';
export declare const VER: '3.4.26';

export declare const LIMU_VER: string;

// reexport limu
export declare const limu: typeof limuMod;

export declare const EVENT_NAME: {
ON_DATA_CHANGED: 'ON_DATA_CHANGED';
ON_SHARE_CREATED: 'ON_SHARE_CREATED';
Expand Down
2 changes: 1 addition & 1 deletion packages/helux/__tests__/hook-options/arrDep.test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { atom, useAtom, share, useShared } from '../helux';
import { atom, share, useAtom, useShared } from '../helux';
import { makeTest } from './arrDep.make';

makeTest({ label: 'useAtom', atom, useAtom });
Expand Down
3 changes: 2 additions & 1 deletion packages/helux/__tests__/share/change.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ describe('change shared', () => {
expect(state.a.a1.a2).toBe(2);

const prev = getSnap(state);
expect(isDiff(state.a.a11, prev.a.a11)).toBeFalsy();
// 孩子节点变化,两者应该不等了
expect(isDiff(state.a.a11, prev.a.a11)).toBeTruthy();
});
});
2 changes: 0 additions & 2 deletions packages/helux/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,4 @@ export const {
RECORD_LOADING,
VER,
LIMU_VER,
// reexport limu
limu,
} = api;

0 comments on commit b0e1d46

Please sign in to comment.