Skip to content

Commit

Permalink
chore: update version
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Aug 19, 2022
1 parent 7f39170 commit 7f85580
Show file tree
Hide file tree
Showing 4 changed files with 50 additions and 22 deletions.
4 changes: 2 additions & 2 deletions dev/children/react16/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,15 @@
console.log('测试script带有id时的处理逻辑')
</script>

<link rel="stylesheet" href="http://127.0.0.1:8080/test.css">
<!-- <link rel="stylesheet" href="http://127.0.0.1:8080/test.css">
<link rel="stylesheet" href="http://127.0.0.1:8080/large.css">
<link rel="stylesheet" href="http://127.0.0.1:8080/facefont.css">
<script defer src="http://127.0.0.1:8080/js/defer.js"></script>
<script async src="http://127.0.0.1:8080/js/async.js"></script>
<script type='module' src="http://127.0.0.1:8080/js/module.js"></script>
<script pure src="http://127.0.0.1:8080/js/pure.js"></script>
<script inline src="http://127.0.0.1:8080/js/inline.js"></script>
<script src="http://127.0.0.1:8080/js/test.js"></script>
<script src="http://127.0.0.1:8080/js/test.js"></script> -->

<style type="text/css">
/* @charset "UTF-8"; */
Expand Down
38 changes: 19 additions & 19 deletions dev/children/react16/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,28 +108,28 @@ console.timeEnd('react#16');


/* ---------------------- 创建元素 --------------------- */
const dynamicScript1 = document.createElement('script')
// dynamicScript1.setAttribute('type', 'module')
// dynamicScript1.textContent = 'console.warn('inline module')'
dynamicScript1.setAttribute('src', '//127.0.0.1:8080/js/test.js')
dynamicScript1.onload = () => {
console.log('动态module加载完成了')
}
document.head.appendChild(dynamicScript1)
// const dynamicScript1 = document.createElement('script')
// // dynamicScript1.setAttribute('type', 'module')
// // dynamicScript1.textContent = 'console.warn('inline module')'
// dynamicScript1.setAttribute('src', '//127.0.0.1:8080/js/test.js')
// dynamicScript1.onload = () => {
// console.log('动态module加载完成了')
// }
// document.head.appendChild(dynamicScript1)

const dynamicStyle = document.createElement('style')
document.head.appendChild(dynamicStyle)
dynamicStyle.textContent = '.test-class { color: red } '
// const dynamicStyle = document.createElement('style')
// document.head.appendChild(dynamicStyle)
// dynamicStyle.textContent = '.test-class { color: red } '

// test excludeAssetFilter
const dynamicScript2 = document.createElement('script')
dynamicScript2.setAttribute('src', 'http://127.0.0.1:8080/js/defer.js')
dynamicScript2.setAttribute('defer', 'true')
document.body.appendChild(dynamicScript2)
// // test excludeAssetFilter
// const dynamicScript2 = document.createElement('script')
// dynamicScript2.setAttribute('src', 'http://127.0.0.1:8080/js/defer.js')
// dynamicScript2.setAttribute('defer', 'true')
// document.body.appendChild(dynamicScript2)

const link1 = document.createElement('link')
link1.setAttribute('href', 'http://127.0.0.1:8080/facefont.css')
document.head.appendChild(link1)
// const link1 = document.createElement('link')
// link1.setAttribute('href', 'http://127.0.0.1:8080/facefont.css')
// document.head.appendChild(link1)



Expand Down
28 changes: 28 additions & 0 deletions docs/1.x/zh-cn/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,34 @@

---

### 1.0.0-alpha.6

`2022-08-19`

- **New**

- 🆕 重构了资源管理系统,提升资源复用率。
- 🆕 新增了`excludeAssetFilter`配置,用于指定部分特殊的动态加载的微应用资源(css/js) 不被 micro-app 劫持处理。
- 🆕 新增了`esmodule`配置,用于对vite等esmodule应用提供更好的支持。
- 🆕 新增了`fiber`配置,支持子应用以fiber模式运行,增加主应用的响应速度。


- **Bug Fix**

- 🐞 修复了sourceMap地址丢失,导致调试困难的问题。
- 🐞 修复了document.defaultView可以获取真实window的问题。
- 🐞 修复了document.currentScript丢失的问题。
- 🐞 修复了动态script标签二次渲染时执行顺序错误的问题。
- 🐞 修复了angular13、14及vue-cli5 build后应用沙箱失效的问题。
- 🐞 修复了全局路由守卫参数与文档不一致的问题。
- 🐞 修复了micro-app在vue keep-alive环境下频繁渲染的问题。

- **Update**

- 🚀 优化了预加载逻辑,提升预加载子应用的渲染速度。
- 🚀 优化了sandbox、create_app相关代码。


### 1.0.0-alpha.5

`2022-08-01`
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@micro-zoe/micro-app",
"version": "1.0.0-alpha.5",
"version": "1.0.0-alpha.6",
"description": "A lightweight, efficient and powerful micro front-end framework",
"private": false,
"main": "lib/index.min.js",
Expand Down

0 comments on commit 7f85580

Please sign in to comment.