Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: refactor with typescript to support cjs ane esm both #5328

Merged
merged 35 commits into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
7232a5f
feat: refactor with typescript to support cjs ane esm both
fengmk2 Jun 18, 2024
89df72a
middleware
fengmk2 Jun 23, 2024
45647f5
support EGG_PATH
fengmk2 Jul 7, 2024
54abba8
createLoggers
fengmk2 Jul 7, 2024
214b05c
context_httpclient
fengmk2 Jul 7, 2024
235b77a
BaseContextClass
fengmk2 Jul 7, 2024
37abca9
Agent
fengmk2 Jul 7, 2024
4225a16
Application
fengmk2 Jul 7, 2024
d7bf421
fix lint
fengmk2 Jul 7, 2024
9f66f32
first test pass
fengmk2 Jul 7, 2024
9f327a4
release beta
fengmk2 Jul 8, 2024
2b460f5
fix sendmessage deps
fengmk2 Dec 11, 2024
878b014
feat: siteFile content support File URL
fengmk2 Dec 13, 2024
6989303
refactor context
fengmk2 Dec 16, 2024
17a23a8
Merge branch 'master' into next-major
fengmk2 Dec 16, 2024
d6aee48
add _options alias to options
fengmk2 Dec 17, 2024
654ba69
use @eggjs/cluster
fengmk2 Dec 17, 2024
8aa4c5d
use @eggjs/schedule
fengmk2 Dec 17, 2024
6c0ce2f
use @eggjs/schedule
fengmk2 Dec 17, 2024
9caff19
use @eggjs/watcher
fengmk2 Dec 18, 2024
9200306
impl middlewares and extends
fengmk2 Dec 19, 2024
e5d11f1
enable meta and body_parser
fengmk2 Dec 19, 2024
561e4db
fix @eggjs/schedule
fengmk2 Dec 20, 2024
7e3edc6
change mockCtxStorage default to false
fengmk2 Dec 20, 2024
5711f2e
make agent extend work
fengmk2 Dec 20, 2024
a850fc2
fix helper tests
fengmk2 Dec 20, 2024
4c4d584
pass context tests
fengmk2 Dec 23, 2024
4a579ba
use @eggjs/bin
fengmk2 Dec 24, 2024
6337e20
fix tests
fengmk2 Dec 28, 2024
702fa37
add ctx.httpClient test
fengmk2 Dec 28, 2024
f13e910
export Helper
fengmk2 Dec 28, 2024
e119bc8
export urllib
fengmk2 Dec 29, 2024
c8f5224
use @eggjs/supertest
fengmk2 Dec 29, 2024
eb59892
fix tests
fengmk2 Dec 29, 2024
510cb44
test remove nodejs 23
fengmk2 Dec 30, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .eslintrc
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"
]
}
29 changes: 0 additions & 29 deletions .github/PULL_REQUEST_TEMPLATE.md

This file was deleted.

7 changes: 0 additions & 7 deletions .github/dependabot.yml

This file was deleted.

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

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
uses: actions/checkout@master

- name: Setup Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@ name: CI

on:
push:
branches: [ master, 2.x, 1.x ]

branches: [ master ]
pull_request:
branches: [ master, 2.x, 1.x ]
branches: [ master ]

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest, macos-latest, windows-latest'
version: '14, 16, 18, 20, 22'
install: 'npm i -g npminstall && npminstall'
version: '18.19.0, 18, 20, 22'
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Release

on:
push:
branches: [ skip-releases ]
Expand All @@ -10,5 +11,3 @@ jobs:
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
install: 'npm install --legacy-peer-deps --no-package-lock --no-fund'
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/node_modules
node_modules
coverage
*.log
npm-debug.log
Expand Down Expand Up @@ -36,3 +36,5 @@ site/dist
.umi-production
.vercel
package-lock.json
.tshy*
dist
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ English | [简体中文](./README.zh-CN.md)
[![NPM version](https://img.shields.io/npm/v/egg.svg?style=flat-square)](https://npmjs.org/package/egg)
[![NPM quality](http://npm.packagequality.com/shield/egg.svg?style=flat-square)](http://packagequality.com/#?package=egg)
[![NPM download](https://img.shields.io/npm/dm/egg.svg?style=flat-square)](https://npmjs.org/package/egg)
[![Node.js Version](https://img.shields.io/node/v/egg.svg?style=flat)](https://nodejs.org/en/download/)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Feggjs%2Fegg.svg?type=shield)](https://app.fossa.com/projects/git%2Bgithub.com%2Feggjs%2Fegg?ref=badge_shield)

[![Continuous Integration](https://github.com/eggjs/egg/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg/actions?query=branch%3Amaster)
[![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg)
[![Known Vulnerabilities](https://snyk.io/test/npm/egg/badge.svg?style=flat-square)](https://snyk.io/test/npm/egg)
[![Open Collective backers and sponsors](https://img.shields.io/opencollective/all/eggjs?style=flat-square)](https://opencollective.com/eggjs)


## Features

- Built-in Process Management
Expand Down Expand Up @@ -62,5 +62,4 @@ To become a contributor, please follow our [contributing guide](CONTRIBUTING.md)

[MIT](LICENSE)


[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Feggjs%2Fegg.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Feggjs%2Fegg?ref=badge_large)
[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Feggjs%2Fegg.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2Feggjs%2Fegg?ref=badge_large)
12 changes: 7 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
[![NPM version](https://img.shields.io/npm/v/egg.svg?style=flat-square)](https://npmjs.org/package/egg)
[![NPM quality](http://npm.packagequality.com/shield/egg.svg?style=flat-square)](http://packagequality.com/#?package=egg)
[![NPM download](https://img.shields.io/npm/dm/egg.svg?style=flat-square)](https://npmjs.org/package/egg)
[![Node.js Version](https://img.shields.io/node/v/egg.svg?style=flat)](https://nodejs.org/en/download/)

[![Continuous Integration](https://github.com/eggjs/egg/actions/workflows/nodejs.yml/badge.svg)](https://github.com/eggjs/egg/actions?query=branch%3Amaster)
[![Test coverage](https://img.shields.io/codecov/c/github/eggjs/egg.svg?style=flat-square)](https://codecov.io/gh/eggjs/egg)
Expand All @@ -25,11 +26,12 @@
## 快速开始

```bash
$ mkdir showcase && cd showcase
$ npm init egg --type=simple
$ npm install
$ npm run dev
$ open http://localhost:7001
mkdir showcase && cd showcase
npm init egg --type=simple
npm install
npm run dev

open http://localhost:7001
```

## 文档
Expand Down
11 changes: 0 additions & 11 deletions agent.js

This file was deleted.

Loading
Loading