From 8bc93607abed18bb3b7365f7f1e27e97be70d684 Mon Sep 17 00:00:00 2001 From: hunghg255 Date: Thu, 18 Jul 2024 00:30:42 +0700 Subject: [PATCH 1/3] chore: release v1.0.8 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4c40dc7..e7539ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "js-utils-es", - "version": "1.0.7", + "version": "1.0.8", "packageManager": "pnpm@9.3.0", "description": "A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.", "license": "MIT", From add4846ce9304cd2a0c94f8e7c3e2cf13c49e65d Mon Sep 17 00:00:00 2001 From: hunghg255 Date: Thu, 18 Jul 2024 00:40:54 +0700 Subject: [PATCH 2/3] docs: update --- scripts/changeLog.json | 29 ++++++++++ scripts/contributions.json | 85 ++++++++++++++++++++++++---- scripts/funcUtils.json | 111 +++++++++++++++++++++++++++++-------- 3 files changed, 190 insertions(+), 35 deletions(-) diff --git a/scripts/changeLog.json b/scripts/changeLog.json index 62ac050..a5c9f2c 100644 --- a/scripts/changeLog.json +++ b/scripts/changeLog.json @@ -1,4 +1,33 @@ [ + { + "hash": "8bc93607abed18bb3b7365f7f1e27e97be70d684", + "date": "Thu Jul 18 00:30:42 2024 +0700", + "message": "chore: release v1.0.8", + "refs": "HEAD -> release, tag: v1.0.8, origin/release", + "body": "", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "version": "v1.0.8" + }, + { + "hash": "3a88b973c2cee5bcd225dc0c3ec7b1de702e21c6", + "date": "Thu Jul 18 00:28:29 2024 +0700", + "message": "feat(predicate): add is utils", + "refs": "origin/feat/update-is-utils, feat/update-is-utils", + "author_name": "hunghg255", + "author_email": "giahunghust@gmail.com", + "functions": [ + "toString", + "isBoolean", + "isDate", + "isFunction", + "isNumber", + "isObject", + "isRegExp", + "isString", + "isWindow" + ] + }, { "hash": "b46fd189054ce51423c4a64be7d18178faa97404", "date": "Tue Jul 16 01:24:15 2024 +0700", diff --git a/scripts/contributions.json b/scripts/contributions.json index 5fcb684..ebacff7 100644 --- a/scripts/contributions.json +++ b/scripts/contributions.json @@ -475,77 +475,133 @@ "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "isEqual.ts": [ + "clone.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "isNil.ts": [ + "invert.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "isNotNil.ts": [ + "omit.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "isNull.ts": [ + "omitBy.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "isUndefined.ts": [ + "pick.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "clone.ts": [ + "pickBy.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "invert.ts": [ + "isBoolean.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "omit.ts": [ + "isDate.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "omitBy.ts": [ + "isEqual.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "pick.ts": [ + "isFunction.ts": [ { "name": "hunghg255", "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } ], - "pickBy.ts": [ + "isNil.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isNotNil.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isNull.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isNumber.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isObject.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isRegExp.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isString.ts": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isUndefined.ts": [ + { + "name": "hunghg255", + "count": 2, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } + ], + "isWindow.ts": [ { "name": "hunghg255", "count": 1, @@ -607,5 +663,12 @@ "count": 1, "hash": "3732f6a5b9cdd33a2f401844e7daf029" } + ], + "_internal": [ + { + "name": "hunghg255", + "count": 1, + "hash": "3732f6a5b9cdd33a2f401844e7daf029" + } ] } \ No newline at end of file diff --git a/scripts/funcUtils.json b/scripts/funcUtils.json index e249eb5..7b7b92a 100644 --- a/scripts/funcUtils.json +++ b/scripts/funcUtils.json @@ -475,6 +475,62 @@ "sumBy" ] }, + { + "name": "clone.ts", + "package": "object", + "alias": [ + "clone" + ] + }, + { + "name": "invert.ts", + "package": "object", + "alias": [ + "invert" + ] + }, + { + "name": "omit.ts", + "package": "object", + "alias": [ + "omit" + ] + }, + { + "name": "omitBy.ts", + "package": "object", + "alias": [ + "omitBy" + ] + }, + { + "name": "pick.ts", + "package": "object", + "alias": [ + "pick" + ] + }, + { + "name": "pickBy.ts", + "package": "object", + "alias": [ + "pickBy" + ] + }, + { + "name": "isBoolean.ts", + "package": "predicate", + "alias": [ + "isBoolean" + ] + }, + { + "name": "isDate.ts", + "package": "predicate", + "alias": [ + "isDate" + ] + }, { "name": "isEqual.ts", "package": "predicate", @@ -482,6 +538,13 @@ "isEqual" ] }, + { + "name": "isFunction.ts", + "package": "predicate", + "alias": [ + "isFunction" + ] + }, { "name": "isNil.ts", "package": "predicate", @@ -504,52 +567,45 @@ ] }, { - "name": "isUndefined.ts", + "name": "isNumber.ts", "package": "predicate", "alias": [ - "isUndefined" + "isNumber" ] }, { - "name": "clone.ts", - "package": "object", - "alias": [ - "clone" - ] - }, - { - "name": "invert.ts", - "package": "object", + "name": "isObject.ts", + "package": "predicate", "alias": [ - "invert" + "isObject" ] }, { - "name": "omit.ts", - "package": "object", + "name": "isRegExp.ts", + "package": "predicate", "alias": [ - "omit" + "isRegExp" ] }, { - "name": "omitBy.ts", - "package": "object", + "name": "isString.ts", + "package": "predicate", "alias": [ - "omitBy" + "isString" ] }, { - "name": "pick.ts", - "package": "object", + "name": "isUndefined.ts", + "package": "predicate", "alias": [ - "pick" + "isUndefined" ] }, { - "name": "pickBy.ts", - "package": "object", + "name": "isWindow.ts", + "package": "predicate", "alias": [ - "pickBy" + "isWindow" ] }, { @@ -607,5 +663,12 @@ "alias": [ "array" ] + }, + { + "name": "_internal", + "package": "predicate", + "alias": [ + "_internal" + ] } ] \ No newline at end of file From 50034b3ac1befa0c3473dc388d1261ef52284d9f Mon Sep 17 00:00:00 2001 From: hunghg255 Date: Thu, 18 Jul 2024 00:50:03 +0700 Subject: [PATCH 3/3] docs: update --- .github/workflows/prepublish.yml | 27 --------------------------- docs/.vitepress/locale.ts | 8 ++++++++ 2 files changed, 8 insertions(+), 27 deletions(-) delete mode 100644 .github/workflows/prepublish.yml diff --git a/.github/workflows/prepublish.yml b/.github/workflows/prepublish.yml deleted file mode 100644 index 8970801..0000000 --- a/.github/workflows/prepublish.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Publish Any Commit - -on: [pull_request] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - pr-release: - runs-on: ubuntu-latest - - steps: - - name: Checkout Repo - uses: actions/checkout@v4 - - - name: Setup Continuous integration - uses: ./.github/cache - - - name: Enable corepack - run: corepack enable - - - name: Build - run: pnpm run build - - - name: Release for Pull request - run: pnpx pkg-pr-new publish diff --git a/docs/.vitepress/locale.ts b/docs/.vitepress/locale.ts index 708581e..5416c4a 100644 --- a/docs/.vitepress/locale.ts +++ b/docs/.vitepress/locale.ts @@ -148,11 +148,19 @@ export function getLocaleConfig(lang: string) { { text: t('Predicates'), items: [ + { text: 'isBoolean', link: '/reference/predicate/isBoolean' }, + { text: 'isDate', link: '/reference/predicate/isDate' }, { text: 'isEqual', link: '/reference/predicate/isEqual' }, + { text: 'isFunction', link: '/reference/predicate/isFunction' }, { text: 'isNil', link: '/reference/predicate/isNil' }, { text: 'isNotNil', link: '/reference/predicate/isNotNil' }, { text: 'isNull', link: '/reference/predicate/isNull' }, + { text: 'isNumber', link: '/reference/predicate/isNumber' }, + { text: 'isObject', link: '/reference/predicate/isObject' }, + { text: 'isRegExp', link: '/reference/predicate/isRegExp' }, + { text: 'isString', link: '/reference/predicate/isString' }, { text: 'isUndefined', link: '/reference/predicate/isUndefined' }, + { text: 'isWindow', link: '/reference/predicate/isWindow' }, ], }, {