diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index af0b614..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,70 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: [ master ] - pull_request: - # The branches below must be a subset of the branches above - branches: [ master ] - schedule: - - cron: '19 11 * * 4' - -jobs: - analyze: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: [ 'javascript' ] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python', 'ruby' ] - # Learn more about CodeQL language support at https://git.io/codeql-language-support - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v1 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v1 - - # โ„น๏ธ Command-line programs to run using the OS shell. - # ๐Ÿ“š https://git.io/JvXDl - - # โœ๏ธ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v1 diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 531f8b4..b084c34 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -1,46 +1,16 @@ -# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions - -name: Node.js CI +name: CI on: push: - branches: - - main - - master + branches: [ master ] + pull_request: - branches: - - main - - master - schedule: - - cron: '0 2 * * *' + branches: [ master ] jobs: - build: - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - node-version: [8, 10, 12, 14, 16] - os: [ubuntu-latest] - - steps: - - name: Checkout Git Source - uses: actions/checkout@v2 - - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install Dependencies - run: npm i - - - name: Continuous Integration - run: npm run ci - - - name: Code Coverage - uses: codecov/codecov-action@v1 - with: - token: ${{ secrets.CODECOV_TOKEN }} + Job: + name: Node.js + uses: node-modules/github-actions/.github/workflows/node-test.yml@master + with: + os: 'ubuntu-latest' + version: '8, 10, 12, 14, 16, 18, 20, 21' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c6cc6c8..1c6cbb1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,19 +1,13 @@ name: Release on: - # ๅˆๅนถๅŽ่‡ชๅŠจๅ‘ๅธƒ push: branches: [ master ] - # ๆ‰‹ๅŠจๅ‘ๅธƒ - workflow_dispatch: {} - jobs: release: name: Node.js - uses: artusjs/github-actions/.github/workflows/node-release.yml@v1 + uses: node-modules/github-actions/.github/workflows/node-release.yml@master secrets: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} GIT_TOKEN: ${{ secrets.GIT_TOKEN }} - with: - checkTest: false diff --git a/.gitignore b/.gitignore index f2f82f9..2cebea9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ node_modules coverage -test/fixtures/ts/**/*.js \ No newline at end of file +test/fixtures/ts/**/*.js +package-lock.json diff --git a/CHANGELOG.md b/CHANGELOG.md index 24d2da8..d47c635 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,3 +6,48 @@ ### Features * add reset method ([#10](https://github.com/node-modules/ylru/issues/10)) ([39ebcec](https://github.com/node-modules/ylru/commit/39ebcecbac34f8efd04959bb42cc6b88a9d2bd8a)) + +--- + + +1.3.2 / 2022-03-17 +================== + +**others** + * [[`eda13ec`](http://github.com/node-modules/ylru/commit/eda13ec31cb40d28cb00dea0369fc5c657aecb9c)] - test: update toolchains, add tsd test cases (raohai.rh <>) + * [[`b683526`](http://github.com/node-modules/ylru/commit/b68352659a95158a54f72f3ac502cd9881759d00)] - ๐Ÿค– TEST: Create codeql-analysis.yml (#7) (fengmk2 <>) + * [[`db06032`](http://github.com/node-modules/ylru/commit/db060326f526aa4aef23a77f5185e36922f4a178)] - ๐Ÿค– TEST: Run on github action (#6) (fengmk2 <>) + +1.3.1 / 2022-03-16 +================== + +**fixes** + * [[`18f576e`](http://github.com/node-modules/ylru/commit/18f576eb12ce456a7af419b68bd17d74bf567de6)] - fix: module declares (#5) (้™†ๆฒ‰ <>) + +1.3.0 / 2022-03-16 +================== + +**features** + * [[`6ed8fa0`](http://github.com/node-modules/ylru/commit/6ed8fa004e1a0d634ba8d277f70933a7a8945cf2)] - feat: add d.ts (#4) (vagusX <>) + +1.2.1 / 2018-07-11 +================== + +**others** + * [[`475abb0`](http://github.com/node-modules/ylru/commit/475abb0e9c787fd65d7c3dd3d2d74d67560b0bec)] - perf: only call Date.now() when necessary (#3) (Yiyu He <>) + +1.2.0 / 2017-07-18 +================== + + * feat: support lru.keys (#2) + +1.1.0 / 2017-07-04 +================== + + * feat: support get with maxAge (#1) + +1.0.0 / 2016-12-29 +================== + + * init version + diff --git a/History.md b/History.md deleted file mode 100644 index b777fc3..0000000 --- a/History.md +++ /dev/null @@ -1,42 +0,0 @@ - -1.3.2 / 2022-03-17 -================== - -**others** - * [[`eda13ec`](http://github.com/node-modules/ylru/commit/eda13ec31cb40d28cb00dea0369fc5c657aecb9c)] - test: update toolchains, add tsd test cases (raohai.rh <>) - * [[`b683526`](http://github.com/node-modules/ylru/commit/b68352659a95158a54f72f3ac502cd9881759d00)] - ๐Ÿค– TEST: Create codeql-analysis.yml (#7) (fengmk2 <>) - * [[`db06032`](http://github.com/node-modules/ylru/commit/db060326f526aa4aef23a77f5185e36922f4a178)] - ๐Ÿค– TEST: Run on github action (#6) (fengmk2 <>) - -1.3.1 / 2022-03-16 -================== - -**fixes** - * [[`18f576e`](http://github.com/node-modules/ylru/commit/18f576eb12ce456a7af419b68bd17d74bf567de6)] - fix: module declares (#5) (้™†ๆฒ‰ <>) - -1.3.0 / 2022-03-16 -================== - -**features** - * [[`6ed8fa0`](http://github.com/node-modules/ylru/commit/6ed8fa004e1a0d634ba8d277f70933a7a8945cf2)] - feat: add d.ts (#4) (vagusX <>) - -1.2.1 / 2018-07-11 -================== - -**others** - * [[`475abb0`](http://github.com/node-modules/ylru/commit/475abb0e9c787fd65d7c3dd3d2d74d67560b0bec)] - perf: only call Date.now() when necessary (#3) (Yiyu He <>) - -1.2.0 / 2017-07-18 -================== - - * feat: support lru.keys (#2) - -1.1.0 / 2017-07-04 -================== - - * feat: support get with maxAge (#1) - -1.0.0 / 2016-12-29 -================== - - * init version - diff --git a/README.md b/README.md index 6edbfba..4d68492 100644 --- a/README.md +++ b/README.md @@ -104,14 +104,15 @@ lru.keys().length === 0; ## License [MIT](LICENSE) + ## Contributors -|[
dominictarr](https://github.com/dominictarr)
|[
fengmk2](https://github.com/fengmk2)
|[
dead-horse](https://github.com/dead-horse)
|[
mourner](https://github.com/mourner)
|[
vagusX](https://github.com/vagusX)
|[
RaoHai](https://github.com/RaoHai)
| +|[
fengmk2](https://github.com/fengmk2)
|[
dominictarr](https://github.com/dominictarr)
|[
dead-horse](https://github.com/dead-horse)
|[
thonatos](https://github.com/thonatos)
|[
mourner](https://github.com/mourner)
|[
semantic-release-bot](https://github.com/semantic-release-bot)
| | :---: | :---: | :---: | :---: | :---: | :---: | +[
vagusX](https://github.com/vagusX)
|[
RaoHai](https://github.com/RaoHai)
- -This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Wed Mar 16 2022 23:57:13 GMT+0800`. +This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Mar 28 2024 11:52:18 GMT+0800`. diff --git a/package.json b/package.json index 7b96b3e..0f4d880 100644 --- a/package.json +++ b/package.json @@ -13,10 +13,9 @@ "beautify-benchmark": "^0.2.4", "benchmark": "^2.1.3", "egg-bin": "^1.10.0", - "egg-ci": "^1.19.0", "eslint": "^4.19.1", "eslint-config-egg": "^6.0.0", - "git-contributor": "^1.0.10", + "git-contributor": "^2.1.5", "hashlru": "^1.0.3", "ko-sleep": "^1.0.2", "lru-cache": "^4.0.2", @@ -40,13 +39,5 @@ "engines": { "node": ">= 4.0.0" }, - "ci": { - "version": "8, 10, 12, 14, 16", - "type": "github", - "os": { - "github": "linux" - }, - "npminstall": false - }, "license": "MIT" }