forked from dominictarr/hashlru
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: support cjs and esm both (#13)
BREAKING CHANGE: drop Node.js < 18.19.0 support eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Introduced a Least Recently Used (LRU) cache implementation with enhanced functionalities. - **Bug Fixes** - Improved cache item expiration handling and test case accuracy. - **Documentation** - Updated `README` with new import syntax and method signatures. - LICENSE changed to MIT License. - **Chores** - Updated ESLint configuration, Node.js version in workflows, and `.gitignore`. - **Refactor** - Converted test cases to use async/await and updated module imports to ES module syntax. - **Dependencies** - Updated `devDependencies` and added new scripts in `package.json`. - **Build Configuration** - Updated `tsconfig.json` for stricter typing and ES2022 target. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
14 changed files
with
252 additions
and
231 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
{ | ||
"extends": "eslint-config-egg" | ||
"extends": [ | ||
"eslint-config-egg/typescript", | ||
"eslint-config-egg/lib/rules/enforce-node-prefix" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,5 @@ coverage | |
|
||
test/fixtures/ts/**/*.js | ||
package-lock.json | ||
dist | ||
.tshy* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
MIT License | ||
|
||
Copyright (c) 2016-present node-modules | ||
Copyright (c) 2016 'Dominic Tarr' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.