Skip to content

Commit

Permalink
Merge pull request #50 from cmux/0.7
Browse files Browse the repository at this point in the history
0.7.10
  • Loading branch information
Diablohu authored Dec 12, 2018
2 parents d2d847e + 2457888 commit 7a618d3
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions packages/koot/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 0.7.10
**2018-12-12**
- 核心
- 配置项
- 现在会处理 `server.onRender.beforeDataToStore``server.onRender.afterDataToStore` 配置为 `Pathname` 类型的情况

## 0.7.9
**2018-12-12**
- 核心
Expand Down
2 changes: 2 additions & 0 deletions packages/koot/libs/validate-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,8 @@ module.exports = async (projectDir = getCwd()) => {
'server.before',
'server.after',
'server.onRender',
'server.onRender.beforeDataToStore',
'server.onRender.afterDataToStore',
'inject',
])

Expand Down
4 changes: 2 additions & 2 deletions test/projects/standard/koot.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ module.exports = {
after: './server/lifecycle/after',
// onRender: './server/lifecycle/on-render',
onRender: {
beforeDataToStore: './server/lifecycle/on-render-render-data-to-store',
afterDataToStore: './server/lifecycle/on-render-render-data-to-store',
beforeDataToStore: './server/lifecycle/on-render-before-data-to-store',
afterDataToStore: './server/lifecycle/on-render-after-data-to-store',
},
},

Expand Down

0 comments on commit 7a618d3

Please sign in to comment.