-
Notifications
You must be signed in to change notification settings - Fork 16
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 by tshy (#26)
BREAKING CHANGE: drop Node.js < 18.19.0 support part of eggjs/egg#3644 eggjs/egg#5257 <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Updated package to `@eggjs/static` - Enhanced TypeScript support - Improved static file serving configuration - **Chores** - Updated GitHub Actions workflows - Modernized project configuration - Updated Node.js version support to 18.19.0, 20, and 22 - **Documentation** - Updated README with new package details - Simplified changelog and documentation - **Refactor** - Migrated from CommonJS to ES modules - Restructured project file organization <!-- end of auto-generated comment: release notes by coderabbit.ai -->
- Loading branch information
Showing
23 changed files
with
428 additions
and
276 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 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
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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Publish Any Commit | ||
on: [push, pull_request] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- run: corepack enable | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
|
||
- name: Build | ||
run: npm run prepublishOnly --if-present | ||
|
||
- run: npx pkg-pr-new publish |
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,16 +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: eggjs/github-actions/.github/workflows/node-release.yml@master | ||
secrets: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
GIT_TOKEN: ${{ secrets.GIT_TOKEN }} | ||
with: | ||
checkTest: false |
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 |
---|---|---|
|
@@ -13,3 +13,76 @@ | |
### Features | ||
|
||
* add contributors ([3bf1ba1](https://github.com/eggjs/egg-static/commit/3bf1ba1b6bafd4b1a61b9fb0438c4ec07939af37)) | ||
|
||
--- | ||
|
||
|
||
2.2.0 / 2019-02-15 | ||
================== | ||
|
||
**features** | ||
* [[`7a4b927`](http://github.com/eggjs/egg-static/commit/7a4b927e53670af89005fde057c838825fe96a30)] - feat: add options.dir for support multi folder serve. (#17) (仙森 <<[email protected]>>) | ||
|
||
2.1.1 / 2018-05-02 | ||
================== | ||
|
||
**fixes** | ||
* [[`a55f7ad`](http://github.com/eggjs/egg-static/commit/a55f7ad50ab880f3114bf12910f5f64e1d4da941)] - fix: range only work with static prefix url (#15) (Yiyu He <<[email protected]>>) | ||
|
||
2.1.0 / 2018-01-10 | ||
================== | ||
|
||
**features** | ||
* [[`cd35dea`](http://github.com/eggjs/egg-static/commit/cd35dea2ccf98dc7fed7d36a25f5555f3712eb8f)] - feat: add range support (#13) (HelloYou <<[email protected]>>) | ||
|
||
**others** | ||
* [[`93a56c1`](http://github.com/eggjs/egg-static/commit/93a56c1af60c69cd814d33696224a7f044034da6)] - docs: fix confusion for option:prefix (#12) (Airyland <<[email protected]>>) | ||
|
||
2.0.0 / 2017-11-09 | ||
================== | ||
|
||
**others** | ||
* [[`bc2d05c`](http://github.com/eggjs/egg-static/commit/bc2d05c10fe6aabc3e0190a20866dd45f4134dda)] - refactor: upgrade dependencies and support egg@2 (#11) (Yiyu He <<[email protected]>>) | ||
* [[`779e4fa`](http://github.com/eggjs/egg-static/commit/779e4fa7d171fa7e1c51c902e9b47be9632cb35d)] - docs: update usage (#10) (TZ | 天猪 <<[email protected]>>) | ||
|
||
1.4.1 / 2017-06-04 | ||
================== | ||
|
||
* docs: fix License url (#9) | ||
|
||
1.4.0 / 2017-06-01 | ||
================== | ||
|
||
* feat: use lru to store files (#8) | ||
|
||
1.3.0 / 2017-03-25 | ||
================== | ||
|
||
* feat: add support multiple directory (#7) | ||
|
||
1.2.0 / 2017-02-21 | ||
================== | ||
|
||
* deps: upgrade koa-static-cache to 4.x (#6) | ||
* chore: upgrade deps and fix test (#5) | ||
|
||
1.1.0 / 2017-01-13 | ||
================== | ||
|
||
* feat: default lazyload (#4) | ||
* docs: note for koa-static-cache (#3) | ||
|
||
1.0.0 / 2016-11-02 | ||
================== | ||
|
||
* test: add node v7 (#2) | ||
|
||
0.1.0 / 2016-07-18 | ||
================== | ||
|
||
* test: add tests (#1) | ||
|
||
0.0.2 / 2016-07-15 | ||
================== | ||
|
||
* init |
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.