Skip to content

Commit

Permalink
feat: support cjs and esm both (#265)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Drop Node.js < 18.19.0 support

#264

the core part of eggjs/egg#3644

Breaking changes:
- Drop Node.js < 18.19.0 support
- Drop generator function support
- loader functions change to async function
  • Loading branch information
fengmk2 authored Jun 17, 2024
1 parent 72fafc8 commit fed5f35
Show file tree
Hide file tree
Showing 184 changed files with 7,329 additions and 6,965 deletions.
6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
{
"root": true,
"extends": "eslint-config-egg"
"extends": [
"eslint-config-egg/typescript",
"eslint-config-egg/lib/rules/enforce-node-prefix"
]
}
3 changes: 0 additions & 3 deletions .gitattributes

This file was deleted.

24 changes: 0 additions & 24 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

70 changes: 0 additions & 70 deletions .github/workflows/codeql-analysis.yml

This file was deleted.

5 changes: 3 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ name: CI
on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

Expand All @@ -12,4 +11,6 @@ jobs:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
version: '14.19.0, 14, 16, 18, 20'
version: '18.19.0, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ test/fixtures/egg/node_modules/egg-core
package-lock.json
run
test/fixtures/*/timing.json
lib/
.tshy*
dist
Loading

0 comments on commit fed5f35

Please sign in to comment.