Skip to content

Commit

Permalink
feat: bump 3.5.17
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasticsoul committed Dec 23, 2023
1 parent 6f02de0 commit 8195140
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 10 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.5.16",
"version": "3.5.17",
"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
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.5.16';
export const VER = '3.5.17';

export const LIMU_VER = limuVer;

Expand Down
14 changes: 9 additions & 5 deletions packages/helux-core/src/factory/common/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,15 @@ export function tryGetLoc(moduleName: string, endCutIdx = 8) {
try {
throw new Error('loc');
} catch (err: any) {
const arr = err.stack.split('\n');
const pureArr = arr.map((codeLoc: string) => {
return codeLoc.substring(0, codeLoc.indexOf('(')).trim();
});
loc = pureArr.slice(4, endCutIdx).join(' -> ');
const arr = err.stack.split("\n");
if (arr[1].includes('webpack-internal')) {
loc = arr.join(" -> ");
} else {
const pureArr = arr.map((codeLoc) => {
return codeLoc.substring(0, codeLoc.indexOf("(")).trim();
});
loc = pureArr.slice(4, endCutIdx).join(" -> ");
}
}
}
return loc;
Expand Down
4 changes: 2 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 @@
/*
|------------------------------------------------------------------------------------------------
| [email protected].16
| [email protected].17
| 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 @@ -60,7 +60,7 @@ import type {
WatchOptionsType,
} from './base';

export declare const VER: '3.5.16';
export declare const VER: '3.5.17';

export declare const LIMU_VER: string;

Expand Down
2 changes: 1 addition & 1 deletion packages/helux-core/tsup.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default defineConfig([
sourcemap: true,
clean: true,
treeshake: false,
minify: 'terser',
// minify: 'terser',
// external: ['limu', '@helux/hooks-impl', '@helux/types', '@helux/utils'],
// external: ['limu'],
globalName: 'HeluxCore',
Expand Down

0 comments on commit 8195140

Please sign in to comment.