Skip to content

Commit

Permalink
build(4.3.5): see changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyzhong committed Jun 6, 2024
1 parent 80b2e87 commit b5aa7d4
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 17 deletions.
2 changes: 2 additions & 0 deletions PUB.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

### changeset 发布

跟目录处先执行构建 `pnpm run build`

使用 changeset 分以下几步:

1. 当代码变更后,执行 `pnpm changeset` ,会让你输入选择变更的包和输入变更日志.
Expand Down
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": "4.3.1",
"version": "4.3.5",
"description": "A reactive atomic state engine for React like.",
"keywords": [],
"author": {
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.3.2';
export const VER = '4.3.5';

export const LIMU_VER = limuVer;

Expand Down
16 changes: 10 additions & 6 deletions packages/helux-core/src/helpers/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,16 @@ export function recordMod(sharedState: Dict, options: ParsedOptions) {
const existedShared = rootState[usefulName];
const existedInternal = getInternal(existedShared);
if (moduleName && existedInternal && existedInternal.loc !== options.loc) {
const locInfo = `\nloc1:${existedInternal.loc} \nloc2:${options.loc}`;
return warn(
`only-dev-mode tip: moduleName ${moduleName} duplicate! `
+ 'this does not effect helux but the duplicated module will be ignored by devtool'
+ locInfo,
);
// 非 loading 模块才提示
if (!moduleName.endsWith('@Loading')) {
const locInfo = `\nloc1:${existedInternal.loc} \nloc2:${options.loc}`;
warn(
`only-dev-mode tip: moduleName ${moduleName} duplicate! `
+ 'this does not effect helux but the duplicated module will be ignored by devtool'
+ locInfo,
);
}
return;
}
// may hot replace for dev mode or add new mod
rootState[usefulName] = sharedState;
Expand Down
2 changes: 1 addition & 1 deletion packages/helux-core/src/types/api.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ import type {
} from './base';

export declare const cst: {
VER: '4.2.7';
VER: '4.3.5';
LIMU_VER: string;
EVENT_NAME: {
/** 共享状态创建时的事件 */
Expand Down
8 changes: 4 additions & 4 deletions packages/helux-plugin-devtool/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@
"helux": "^4.3.5",
"redux": "^4.2.1"
},
"devDependencies": {
"terser": "^5.29.1"
},
"bundleDependencies": false,
"publishConfig": {
"access": "public",
"main": "dist/index.js",
"registry": "https://registry.npmjs.org/"
},
"deprecated": false,
"devDependencies": {
"terser": "^5.29.1"
}
"deprecated": false
}
5 changes: 1 addition & 4 deletions packages/helux-plugin-devtool/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,7 @@ function tryInjectReduxDevTool() {
if (!Object.keys(redecers).length) return;

const g = getWindow(); // global this
reduxStore = createStore(
combineReducers(redecers),
g.__REDUX_DEVTOOLS_EXTENSION__ && g.__REDUX_DEVTOOLS_EXTENSION__(),
);
reduxStore = createStore(combineReducers(redecers), g.__REDUX_DEVTOOLS_EXTENSION__ && g.__REDUX_DEVTOOLS_EXTENSION__());
injected = true;

reduxStore.subscribe(function () {
Expand Down

0 comments on commit b5aa7d4

Please sign in to comment.