Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: dacejs/dace
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v2.2.2
Choose a base ref
...
head repository: dacejs/dace
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref

Commits on Jun 14, 2019

  1. Update CHANGELOG.md

    zhongzhi107 committed Jun 14, 2019
    Copy the full SHA
    7fff800 View commit details
  2. chore: Fix eslint error

    zhongzhi107 committed Jun 14, 2019
    Copy the full SHA
    72e7f21 View commit details

Commits on Jun 17, 2019

  1. Copy the full SHA
    5e6651e View commit details
  2. chore(release): 2.2.3

    zhongzhi107 committed Jun 17, 2019
    Copy the full SHA
    0aaca31 View commit details
  3. Copy the full SHA
    f77768e View commit details
  4. chore(release): 2.2.4

    zhongzhi107 committed Jun 17, 2019
    Copy the full SHA
    8097e61 View commit details
  5. Copy the full SHA
    bd07e8c View commit details
  6. chore(release): 2.2.5

    zhongzhi107 committed Jun 17, 2019
    Copy the full SHA
    a730ad0 View commit details

Commits on Jun 18, 2019

  1. Update createServer.js

    zhongzhi107 committed Jun 18, 2019
    Copy the full SHA
    6d8d218 View commit details

Commits on Jul 31, 2019

  1. Copy the full SHA
    c242d0f View commit details
  2. chore(release): 2.2.6

    zhongzhi107 committed Jul 31, 2019
    Copy the full SHA
    ce00d7f View commit details

Commits on Nov 18, 2019

  1. Copy the full SHA
    119e8b6 View commit details

Commits on Nov 19, 2019

  1. Copy the full SHA
    d6f2f53 View commit details

Commits on Nov 20, 2019

  1. Copy the full SHA
    8e7e69e View commit details
  2. chore(release): 2.3.0

    zhongzhi107 committed Nov 20, 2019
    Copy the full SHA
    70108ab View commit details

Commits on Nov 22, 2019

  1. Copy the full SHA
    f48e528 View commit details
  2. chore(release): 2.4.0

    zhongzhi107 committed Nov 22, 2019
    Copy the full SHA
    bbff397 View commit details

Commits on Nov 23, 2019

  1. Update addProxy.js

    zhongzhi107 committed Nov 23, 2019
    Copy the full SHA
    09f6236 View commit details
  2. chore(release): 2.4.1

    zhongzhi107 committed Nov 23, 2019
    Copy the full SHA
    004e517 View commit details

Commits on Nov 25, 2019

  1. Copy the full SHA
    07f4e38 View commit details
  2. chore(release): 3.0.0

    zhongzhi107 committed Nov 25, 2019
    Copy the full SHA
    fa6f6e3 View commit details

Commits on Nov 27, 2019

  1. Copy the full SHA
    b6d961a View commit details
  2. chore(release): 3.0.1

    zhongzhi107 committed Nov 27, 2019
    Copy the full SHA
    ce36028 View commit details

Commits on Dec 3, 2019

  1. Copy the full SHA
    be8ce56 View commit details
  2. chore(release): 3.1.0

    zhongzhi107 committed Dec 3, 2019
    Copy the full SHA
    ef5a380 View commit details
  3. Copy the full SHA
    d2ec849 View commit details
  4. chore(release): 3.2.0

    zhongzhi107 committed Dec 3, 2019
    Copy the full SHA
    5c8b6e1 View commit details

Commits on Dec 4, 2019

  1. Copy the full SHA
    bcb7086 View commit details
  2. chore(release): 3.3.0

    zhongzhi107 committed Dec 4, 2019
    Copy the full SHA
    9d6fefc View commit details
  3. Copy the full SHA
    fff23ea View commit details
  4. Copy the full SHA
    98c23b9 View commit details
  5. chore(release): 3.3.1

    zhongzhi107 committed Dec 4, 2019
    Copy the full SHA
    3e5b426 View commit details

Commits on Dec 5, 2019

  1. Copy the full SHA
    bcb5048 View commit details
  2. Copy the full SHA
    7923b8e View commit details
  3. Copy the full SHA
    dace313 View commit details
  4. Copy the full SHA
    4fd4f9d View commit details

Commits on Dec 6, 2019

  1. chore(release): 3.4.0

    zhongzhi107 committed Dec 6, 2019
    Copy the full SHA
    bdb5080 View commit details
  2. chore(release): 3.4.1

    zhongzhi107 committed Dec 6, 2019
    Copy the full SHA
    17e8e5f View commit details

Commits on Dec 9, 2019

  1. feat: 增加 body-parser

    zhongzhi107 committed Dec 9, 2019
    Copy the full SHA
    0172f93 View commit details
  2. Copy the full SHA
    e25c622 View commit details
  3. chore(release): 3.4.2

    zhongzhi107 committed Dec 9, 2019
    Copy the full SHA
    1e0ad1d View commit details

Commits on Dec 20, 2019

  1. chore(release): 3.4.3

    zhongzhi107 committed Dec 20, 2019
    Copy the full SHA
    34b9081 View commit details
  2. Copy the full SHA
    9878913 View commit details
  3. chore(release): 3.4.4

    zhongzhi107 committed Dec 20, 2019
    Copy the full SHA
    fa999dc View commit details
  4. feat: 移除 dase-router

    zhongzhi107 committed Dec 20, 2019
    Copy the full SHA
    91d4807 View commit details

Commits on Dec 25, 2019

  1. Copy the full SHA
    bea2c7e View commit details
  2. chore(release): 3.4.5

    zhongzhi107 committed Dec 25, 2019
    Copy the full SHA
    4540221 View commit details

Commits on Dec 26, 2019

  1. Copy the full SHA
    33dc01a View commit details
  2. Copy the full SHA
    580b544 View commit details
  3. chore(release): 3.4.6

    zhongzhi107 committed Dec 26, 2019
    Copy the full SHA
    9bb49a7 View commit details
196 changes: 195 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,205 @@
# Change Log
# Changelog

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [3.6.0](https://github.com/dacejs/dace/compare/v3.5.0...v3.6.0) (2020-05-07)


### Features

* npm update ([3668c07](https://github.com/dacejs/dace/commit/3668c07a0821900c7daca84ac08556edcba56c57))

## [3.5.0](https://github.com/dacejs/dace/compare/v3.4.10...v3.5.0) (2020-04-19)


### Features

* 支持断点调试 ([9a0e1e4](https://github.com/dacejs/dace/commit/9a0e1e40aa8dc4136175e73aeef3bfb20fcdcf6c))


### Bug Fixes

* DeprecationWarning: Tapable.plugin is deprecated. ([598e20e](https://github.com/dacejs/dace/commit/598e20e341c0db50e3fca9ff19ad50aad049d93a))
* 修复 server-sider HMR 无效的问题 ([e71daca](https://github.com/dacejs/dace/commit/e71daca912cc4d283032c847400c71ba9a6a4d38))

### [3.4.10](https://github.com/dacejs/dace/compare/v3.4.9...v3.4.10) (2020-01-08)


### Bug Fixes

* 修复json返回失败的问题 ([8dcb400](https://github.com/dacejs/dace/commit/8dcb40058d94a4b63d8a47aa5efea4583174462e))

### [3.4.9](https://github.com/dacejs/dace/compare/v3.4.8...v3.4.9) (2020-01-07)


### Features

* 使用内置 urlRewrite 中间件代替 packing-urlrewrite 包 ([3d6204d](https://github.com/dacejs/dace/commit/3d6204dc5817541945d6516dd22b3163edad2d2c))
* 打开 eslint 的 cache 开关 ([38de241](https://github.com/dacejs/dace/commit/38de24182388715ce91c0bce68d9519a526c583a))

### [3.4.8](https://github.com/dacejs/dace/compare/v3.4.7...v3.4.8) (2019-12-27)


### Bug Fixes

* 修复 @babel/preset-env 缺失 corejs 参数的报警 ([49a2b5f](https://github.com/dacejs/dace/commit/49a2b5fba7f9e014ed68a0dc610bd2301d91d2a4))

### [3.4.7](https://github.com/dacejs/dace/compare/v3.4.6...v3.4.7) (2019-12-27)


### Features

* 增加 DACE_HMR 配置,可以关闭 webpack 热模块替换功能 ([fcc7d64](https://github.com/dacejs/dace/commit/fcc7d64ad6e326c55f3dafaabb5b0143f3a2f4e7))
* 支持按 .browserslistrc 添加所需的 polyfill ([af58db0](https://github.com/dacejs/dace/commit/af58db0551eb5103210e44a0ab5bfbe26d7ce9f9))

### [3.4.6](https://github.com/dacejs/dace/compare/v3.4.5...v3.4.6) (2019-12-26)


### Features

* 增加配置项 DACE_BABEL_COMPILE_MODULES ,用来指定哪些依赖包需要通过 babel 编译 ([580b544](https://github.com/dacejs/dace/commit/580b5446f8fbc3bdd3d95d22bbdbfa4eb2c77449))
* 移除依赖包 axios ([33dc01a](https://github.com/dacejs/dace/commit/33dc01aa642aa2c6cdee3af885195051c522d67d))

### [3.4.5](https://github.com/dacejs/dace/compare/v3.4.4...v3.4.5) (2019-12-25)


### Features

* eslint 校验时无效的 disable 提示报错 ([bea2c7e](https://github.com/dacejs/dace/commit/bea2c7e4a9051fe58d0ff3bbe041554a4b72af9a))
* 移除 dase-router ([91d4807](https://github.com/dacejs/dace/commit/91d480710e605bbcaa5f5ca63510ce375e85ebbf))

### [3.4.4](https://github.com/dacejs/dace/compare/v3.4.3...v3.4.4) (2019-12-20)

### [3.4.3](https://github.com/dacejs/dace/compare/v3.4.2...v3.4.3) (2019-12-20)

### [3.4.2](https://github.com/dacejs/dace/compare/v3.4.1...v3.4.2) (2019-12-09)


### Features

* 增加 body-parser ([0172f93](https://github.com/dacejs/dace/commit/0172f93e3e151563343befda3b5799da59aedbcc))
* 本地开发时js文件输出sourcemap ([e25c622](https://github.com/dacejs/dace/commit/e25c622c72a5f16f79611922fe90ca4584c9cb9d))

### [3.4.1](https://github.com/dacejs/dace/compare/v3.4.0...v3.4.1) (2019-12-06)

## [3.4.0](https://github.com/dacejs/dace/compare/v3.3.1...v3.4.0) (2019-12-06)


### Features

* 分别为服务器端和客户端增加代码编译混淆开关 ([bcb5048](https://github.com/dacejs/dace/commit/bcb50481a4c8d8487b736241d490d61bf009e2d7))
* 支持在服务器上挂载多个 static 目录 ([7923b8e](https://github.com/dacejs/dace/commit/7923b8e5255f707554e23e653ffb1a42adc64917))
* 线上编译时不输出source map ([4fd4f9d](https://github.com/dacejs/dace/commit/4fd4f9d9e1d6752024c0ae934510453e51fd8f58))

### [3.3.1](https://github.com/dacejs/dace/compare/v3.3.0...v3.3.1) (2019-12-04)


### Features

* 支持编译时不压缩源码 ([fff23ea](https://github.com/dacejs/dace/commit/fff23eab8d969f2a70aeeea1d0316861bad8b8db))


### Bug Fixes

* 修复因编译机和运行机不是同一台导致的路由挂载无效的问题 ([98c23b9](https://github.com/dacejs/dace/commit/98c23b98fedb88041153ff11787a650e66301714))

## [3.3.0](https://github.com/dacejs/dace/compare/v3.2.0...v3.3.0) (2019-12-04)


### Features

* 增加是否添加 polyfill 的开关配置 ([bcb7086](https://github.com/dacejs/dace/commit/bcb70861f444c8fe414fd5c6ccc8f017d84ea0d3))

## [3.2.0](https://github.com/dacejs/dace/compare/v3.1.0...v3.2.0) (2019-12-03)


### Features

* 支持静态文件目录 ([d2ec849](https://github.com/dacejs/dace/commit/d2ec849ec2bf3bc5f927c3719cc78b2adc41a944))

## [3.1.0](https://github.com/dacejs/dace/compare/v3.0.1...v3.1.0) (2019-12-03)


### Features

* 默认为 DACE_PATH_ROUTES 设置值 ([be8ce56](https://github.com/dacejs/dace/commit/be8ce5669e617d6b7f89988034425f27c7bcee4c))

### [3.0.1](https://github.com/dacejs/dace/compare/v3.0.0...v3.0.1) (2019-11-27)

## [3.0.0](https://github.com/dacejs/dace/compare/v2.4.1...v3.0.0) (2019-11-25)


### Features

* 重写数据代理方法 ([07f4e38](https://github.com/dacejs/dace/commit/07f4e381b52e7e49ed469c7d94318b751a9a38c7))

### [2.4.1](https://github.com/dacejs/dace/compare/v2.4.0...v2.4.1) (2019-11-23)

## [2.4.0](https://github.com/dacejs/dace/compare/v2.3.0...v2.4.0) (2019-11-22)


### Features

* 增加输出 urlrewrite 转发信息日志 ([f48e528](https://github.com/dacejs/dace/commit/f48e5288717d67b1c3c5accaa1774a2f3ed0faf2))

## [2.3.0](https://github.com/dacejs/dace/compare/v2.2.6...v2.3.0) (2019-11-20)


### Features

* 增加 cookie 解析 ([8e7e69e](https://github.com/dacejs/dace/commit/8e7e69e40e597fb30af4a9fbb98868aee0720c8e))


### Bug Fixes

* 修复静态资源不存在时返回 notFound 页面的问题 ([d6f2f53](https://github.com/dacejs/dace/commit/d6f2f53b655b13a207d2807eec629475e60016ea))

<a name="2.2.6"></a>
## [2.2.6](https://github.com/dacejs/dace/compare/v2.2.5...v2.2.6) (2019-07-31)


### Bug Fixes

* 修复不支持 post 方式提交的地址 ([c242d0f](https://github.com/dacejs/dace/commit/c242d0f))



<a name="2.2.5"></a>
## [2.2.5](https://github.com/dacejs/dace/compare/v2.2.4...v2.2.5) (2019-06-17)


### Bug Fixes

* 使用 stats 代替statsFile,避免运行时 require 不到文件。 ([bd07e8c](https://github.com/dacejs/dace/commit/bd07e8c))



<a name="2.2.4"></a>
## [2.2.4](https://github.com/dacejs/dace/compare/v2.2.3...v2.2.4) (2019-06-17)


### Bug Fixes

* 修复 DACE_PATH_LOADABLE_STATS_JSON 拼写错误 ([f77768e](https://github.com/dacejs/dace/commit/f77768e))



<a name="2.2.3"></a>
## [2.2.3](https://github.com/dacejs/dace/compare/v2.2.2...v2.2.3) (2019-06-17)


### Bug Fixes

* 修复 prd/loadable-stats.json 找不到的问题 ([5e6651e](https://github.com/dacejs/dace/commit/5e6651e))



<a name="2.2.2"></a>
## [2.2.2](https://github.com/dacejs/dace/compare/v2.2.1...v2.2.2) (2019-06-13)

### Bug Fixes

* 修复 TRAVIS 编译的问题,使用 `node@8||12`

<a name="2.2.1"></a>
## [2.2.1](https://github.com/dacejs/dace/compare/v2.2.0...v2.2.1) (2019-06-13)
5 changes: 5 additions & 0 deletions examples/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
rules: {
'import/no-unresolved': [2, { ignore: ['react', 'dace'] }]
}
};
2 changes: 1 addition & 1 deletion examples/with-custom-document/README.md
Original file line number Diff line number Diff line change
@@ -15,7 +15,7 @@

appConfig.resolve.alias = {
...appConfig.resolve.alias,
'./document': path.resolve(__dirname, 'src/document.js')
'./runtime/document': path.resolve(__dirname, 'src/document.js')
};
return appConfig;
}
2 changes: 1 addition & 1 deletion examples/with-custom-document/dace.config.js
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@ module.exports = {
modify(config) {
const appConfig = config;

appConfig.resolve.alias['./document'] = path.resolve(__dirname, 'src/document.js');
appConfig.resolve.alias['./runtime/document'] = path.resolve(__dirname, 'src/document.js');

return appConfig;
}
48 changes: 26 additions & 22 deletions examples/with-custom-document/src/document.js
Original file line number Diff line number Diff line change
@@ -11,25 +11,29 @@
*/

export default ({
head, cssTags, jsTags, markup, state
}) => `<!doctype html>
<html ${head.htmlAttributes.toString()}>
<head>
<meta charset="utf-8" />
${head.title.toString()}
${head.meta.toString()}
${head.link.toString()}
${head.style.toString()}
${head.script.toString()}
${head.noscript.toString()}
${cssTags}
</head>
<body ${head.bodyAttributes.toString()}>
<h1>with-custom-document</h1>
<div id="root">${markup}</div>
<script>
window.INITIAL_STATE=${state};
</script>
${jsTags}
</body>
</html>`;
head = {},
markup = '',
state = '{}',
styleTags = '',
scriptTags = ''
}) => {
const print = (key) => {
if (head[key] && typeof head[key].toString === 'function') {
return head[key].toString();
}
return '';
};

return `<!doctype html>
<html ${print('htmlAttributes')}>
<head>
<meta charset="utf-8" />
${print('title') + print('meta') + print('link') + process.env.HEADER_STYLES + print('style') + print('script') + styleTags}
</head>
<body ${print('bodyAttributes')}>
<h1>with-custom-document</h1>
<div id="root">${markup}</div>
<script>window.INITIAL_STATE=${state};</script>${scriptTags}
</body>
</html>`;
};
Loading