Skip to content

Commit 4b7311d

Browse files
authored
feat: refactor with TypeScript (#27)
BREAKING CHANGE: drop Node.js < 16 support
1 parent 23cbd83 commit 4b7311d

File tree

42 files changed

+368
-433
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+368
-433
lines changed

.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
test/fixtures
22
coverage
3+
*.js

.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"extends": "eslint-config-egg"
2+
"extends": "eslint-config-egg/typescript"
33
}

.github/workflows/nodejs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ jobs:
1515
uses: fengmk2/github-actions/.github/workflows/node-test-mysql.yml@master
1616
with:
1717
os: 'ubuntu-latest'
18-
version: '14, 16, 18'
18+
version: '16, 18'

.gitignore

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,11 @@ coverage/
66
run/
77
.DS_Store
88
*.swp
9-
9+
lib/*.js
10+
lib/*.d.ts
11+
config/*.js
12+
config/*.d.ts
13+
agent.js
14+
agent.d.ts
15+
app.js
16+
app.d.ts

CHANGELOG.md

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,55 @@
1313
### Features
1414

1515
* upgrade ali-rds v4 ([#24](https://github.com/eggjs/egg-mysql/issues/24)) ([1b129e8](https://github.com/eggjs/egg-mysql/commit/1b129e8f94b0739a5515d5704be301df85f97b30))
16+
17+
---
18+
19+
3.2.0 / 2022-12-03
20+
==================
21+
22+
**features**
23+
* [[`4cf93ce`](http://github.com/eggjs/egg-mysql/commit/4cf93ce5fbeeb3fc734a8e7ba708b27994adad88)] - feat: add more type definition for mysql.get method (#20) (Xin(Khalil) Zhang <<starandtina@users.noreply.github.com>>)
24+
25+
**fixes**
26+
* [[`d3c8a31`](http://github.com/eggjs/egg-mysql/commit/d3c8a31e02beccc8823820340bda89fe307a34ea)] - fix: remove reckless assertion (#15) (WangJie <<abbr.wj+gh@gmail.com>>)
27+
28+
**others**
29+
* [[`ed419d6`](http://github.com/eggjs/egg-mysql/commit/ed419d6c51e25fa3ea2a4b91628375d4d4dcb77d)] - 🤖 TEST: Add tsd test (#22) (fengmk2 <<fengmk2@gmail.com>>)
30+
* [[`4137cfc`](http://github.com/eggjs/egg-mysql/commit/4137cfc46e0db04f6122b065516055a99765eb19)] - 📖 DOC: Use async/await isntead of yield (fengmk2 <<fengmk2@gmail.com>>)
31+
* [[`b103400`](http://github.com/eggjs/egg-mysql/commit/b103400c153176bd9c38e35d72aa3a791999ec27)] - 📖 DOC: Update contributors (fengmk2 <<fengmk2@gmail.com>>)
32+
* [[`a67989c`](http://github.com/eggjs/egg-mysql/commit/a67989c4e6c55604d8d61d1af7af9bc5df35df2e)] - 🤖 TEST: Run test on GitHub Action (#19) (fengmk2 <<fengmk2@gmail.com>>)
33+
* [[`3d04360`](http://github.com/eggjs/egg-mysql/commit/3d04360fd7745ef45d32e8e27c5691878d0cd3bf)] - Create codeql-analysis.yml (fengmk2 <<fengmk2@gmail.com>>)
34+
35+
3.1.1 / 2022-06-03
36+
==================
37+
38+
**fixes**
39+
* [[`bb7856b`](http://github.com/eggjs/egg-mysql/commit/bb7856bbf8e363f2ee0ce9410204fd227c2ccd08)] - fix: mysql.update missing condition define (#18) (shangwenhe <<shangwenhe@users.noreply.github.com>>)
40+
41+
3.1.0 / 2022-02-11
42+
==================
43+
44+
**features**
45+
* [[`aade70b`](http://github.com/eggjs/egg-mysql/commit/aade70bce78afb39e8e9b3201261bbb8bcf26847)] - feat: add complete typescript typings (#17) (AntiMoron <<anti2moron@gmail.com>>)
46+
47+
**others**
48+
* [[`2e02e40`](http://github.com/eggjs/egg-mysql/commit/2e02e402d6d23740f68ae26c28633303d4d9e206)] - chore: update travis (#16) (TZ | 天猪 <<atian25@qq.com>>)
49+
* [[`89910f6`](http://github.com/eggjs/egg-mysql/commit/89910f6ef17be38b59bc066d754793cc65a84624)] - test: add null query test case (#13) (Century Guo <<648772021@qq.com>>)
50+
* [[`b0dd988`](http://github.com/eggjs/egg-mysql/commit/b0dd988d51b95d576c852d54d26014a845ac2f3d)] - deps: autod (#12) (TZ | 天猪 <<atian25@qq.com>>)
51+
* [[`18b67fd`](http://github.com/eggjs/egg-mysql/commit/18b67fd3e43627ad420ed3df8e8a6e305f5202f6)] - deps: upgrade dependencies (#10) (Haoliang Gao <<sakura9515@gmail.com>>)
52+
53+
3.0.0 / 2017-04-03
54+
==================
55+
56+
* deps: ali-rds@3 (#9)
57+
58+
2.0.0 / 2017-02-09
59+
==================
60+
61+
* feat: remove app.instrument and fix test (#5)
62+
63+
1.0.1 / 2016-12-30
64+
==================
65+
66+
* docs: add app.js and agent.js extend intro (#3)
67+
* docs: add English translation doc (#2)

History.md

Lines changed: 0 additions & 50 deletions
This file was deleted.

0 commit comments

Comments
 (0)