Skip to content

Commit

Permalink
docs(1.0.0-rc.3): update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
bailicangdu committed Dec 18, 2023
1 parent e6d5eee commit 9c32e91
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 4 deletions.
13 changes: 11 additions & 2 deletions docs/zh-cn/changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,29 @@

### 1.0.0-rc.3

`2023-11-12`
`2023-12-18`

- **New**

- 🆕 新增`componentMode`组件模式,micro-app支持单独运行js文件[944](https://github.com/micro-zoe/micro-app/pull/944)
- 🆕 新增方法`getAppState`,用于在基座中获取子应用的状态。
- 🆕 新增虚拟路由系统`push`, `replace`方法对Promise的支持。
- 🆕 新增对于CSS循环嵌套的支持[956](https://github.com/micro-zoe/micro-app/pull/956)

- **Bug Fix**

- 🐞 修复了在非`custom`路由模式下设置baseroute导致子应用渲染失败的问题。
- 🐞 修复了`isObject`方法中参数为null导致错误的问题[998](https://github.com/micro-zoe/micro-app/pull/998)
- 🐞 修复了子应用`onerror`事件无法触发的问题[992](https://github.com/micro-zoe/micro-app/pull/992)
- 🐞 修复了iframe沙箱下子应用`Node.ownerDocument`指向错误的问题[988](https://github.com/micro-zoe/micro-app/pull/988)
- 🐞 修复了with沙箱下判断MicroDocument实例时目标为null导致报错的问题[986](https://github.com/micro-zoe/micro-app/pull/986)
- 🐞 修复了iframe沙箱下通过`document.head.querySelector(...)`查询元素异常的问题[984](https://github.com/micro-zoe/micro-app/pull/984)
- 🐞 修复了子应用html自带元素`parentNode`指向异常的问题。

- **Update**
- 🆕 更新with沙箱运行逻辑,异步执行初始化操作,确保不同沙箱之间逻辑一致。
- 🚀 更新了官网文档。
- 🆕 优化了utils方法中元素判断的方式[998](https://github.com/micro-zoe/micro-app/pull/998)
- 🚀 更新了案例。


### 1.0.0-rc.2
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-rc.2",
"version": "1.0.0-rc.3",
"description": "A lightweight, efficient and powerful micro front-end framework",
"private": false,
"main": "lib/index.min.js",
Expand Down
2 changes: 1 addition & 1 deletion src/source/loader/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export class HTMLLoader implements IHTMLLoader {
const htmlUrl = app.ssrUrl || app.url
const htmlPromise = htmlUrl.includes('.js')
? Promise.resolve(`<micro-app-head><script src='${htmlUrl}'></script></micro-app-head><micro-app-body></micro-app-body>`)
: fetchSource(htmlUrl, appName, { cache: 'no-store' })
: fetchSource(htmlUrl, appName, { cache: 'no-cache' })
htmlPromise.then((htmlStr: string) => {
if (!htmlStr) {
const msg = 'html is empty, please check in detail'
Expand Down

0 comments on commit 9c32e91

Please sign in to comment.