Skip to content

Commit

Permalink
chore: package upgrade and unittest fixture (#4933)
Browse files Browse the repository at this point in the history
1. Upgrade @umijs/preset-react from 1.xx to 2.xx.
2. Use 'Buffer.alloc' instead of 'new Buffer()'.
3. Add 'dependabot.yml'to upgrade the related packages automatically.

Co-authored-by: Maledong <[email protected]>
  • Loading branch information
SEWeiTung and Maledong authored Apr 22, 2022
1 parent a5a358c commit 8078917
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 1
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: weekly
open-pull-requests-limit: 5
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
"ylru": "^1.2.1"
},
"devDependencies": {
"@umijs/preset-react": "^1.x",
"@umijs/preset-react": "^2.1.2",
"address": "^1.0.3",
"antd": "^4.18.6",
"assert-extends": "^1.0.1",
Expand Down
2 changes: 1 addition & 1 deletion test/fixtures/apps/response/app/router.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ module.exports = app => {
app.get('/', function* () {
this.body = 'hello';
assert.equal(this.response.length, 5);
this.body = new Buffer(3);
this.body = Buffer.alloc(3);
assert.equal(this.response.length, 3);
this.body = {};
assert.equal(this.response.length, 2);
Expand Down

1 comment on commit 8078917

@vercel
Copy link

@vercel vercel bot commented on 8078917 Apr 22, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

egg – ./

egg-suyi.vercel.app
eggjs.org
egg-git-master-suyi.vercel.app
egg-pi.vercel.app
www.eggjs.org

Please sign in to comment.