Skip to content

Commit

Permalink
Merge pull request #517 from Tencent/dev
Browse files Browse the repository at this point in the history
v3.13.0
  • Loading branch information
Maizify authored Mar 15, 2022
2 parents aba1d80 + 0a0cb1e commit 2977cf0
Show file tree
Hide file tree
Showing 25 changed files with 752 additions and 371 deletions.
63 changes: 36 additions & 27 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
English | [简体中文](./CHANGELOG_CN.md)

## 3.13.0 (2022-03-15)

- `Feat(Log)` Add new option `log.showTimestames`, see [Public Properties & Methods](./doc/public_properties_methods.md).
- `Fix(Core)` Use polyfill `click` event to prevent raw click event not working in some cases.
- `Fix(style)` Fix CSS transition failure in WeChat webview by using `bottom` instead of `transform`.
- `Fix(Core)` Fix error when calling vConsole method in `onReady` callback. (issue #516)
- `Refactor(Storage)` Improve robustness.


## 3.12.1 (2022-02-25)

- `Fix(Core)` Fix bug that `VConsole.instance` is empty when VConsole `import` as a new module.
Expand Down Expand Up @@ -36,7 +45,7 @@ English | [简体中文](./CHANGELOG_CN.md)

## 3.11.0 (2021-12-30)

- `Feat(Global)` Add new option `vConsole.option.target` to specify custom mount target, see [Public Properties & Methods](./doc/public_properties_methods.md). (issue #455)
- `Feat(Core)` Add new option `vConsole.option.target` to specify custom mount target, see [Public Properties & Methods](./doc/public_properties_methods.md). (issue #455)
- `Feat(Log)` Add new methods: `vConsole.log.log()|info()|...`, `vConsole.log.clear()`, see [Builtin Plugin: Properties & Methods](./doc/plugin_properties_methods.md).
- `Feat(Network)` Add new methods: `vConsole.network.add()|update()`, `vConsole.network.clear()`, see [Builtin Plugin: Properties & Methods](./doc/plugin_properties_methods.md).
- `Feat(Network)` Add new option `vConsole.option.maxNetworkNumber` to limit request number, see [Public Properties & Methods](./doc/public_properties_methods.md). (issue #492)
Expand Down Expand Up @@ -84,7 +93,7 @@ English | [简体中文](./CHANGELOG_CN.md)

- `Style(Log)` Add support for `BigInt` and update `Symbol` log style.
- `Refactor(Style)` Lazy load style tag when vConsole init.
- `Fix(Global)` Use `this || self` as `globalObject` to prevent `self is not defined` error. (issue #441)
- `Fix(Core)` Use `this || self` as `globalObject` to prevent `self is not defined` error. (issue #441)
- `Fix(Log)` Fix `Cannot convert a Symbol value to a string` error when logged a `Symbol` value.
- `Fix(Log)` Now commands and output logs can be copied.
- `Fix(Network)` Fix `URIError` when decode URI fail. (issue #470)
Expand All @@ -94,7 +103,7 @@ English | [简体中文](./CHANGELOG_CN.md)

## 3.9.4 (2021-10-26)

- `Refactor(Global)` Add Typescript declaration to `VConsole` class.
- `Refactor(Core)` Add Typescript declaration to `VConsole` class.


## 3.9.3 (2021-10-22)
Expand All @@ -117,7 +126,7 @@ English | [简体中文](./CHANGELOG_CN.md)
- `Feat(Log)` Show audio loading error log. (PR #419 by @zimv)
- `Feat(Storage)` Rewrite Storage panel, supports add/edit/delete storage items. (PR #429 by @ManiaciaChao)
- `Feat(Plugin)` New third-party plugin [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole). (by @vadxq)
- `Refactor(Global)` Use Svelte as template engine. (PR #429 by @ManiaciaChao)
- `Refactor(Core)` Use Svelte as template engine. (PR #429 by @ManiaciaChao)
- `Refactor(Core|Element)` Convert core file and Element panel to `.ts` file.
- `Fix(Log)` Fix error when print object(s) with no `toJSON` method such as `Vue` instance. (PR #431 by @sillyhong)
- `Fix(Network)` Fix error when url not starts with `http`. (issue #420)
Expand Down Expand Up @@ -147,7 +156,7 @@ English | [简体中文](./CHANGELOG_CN.md)

- `Feat(Storage)` Show preview value to prevent large raw value blocking rendering. (issue #300)
- `Feat(Storage)` Add copy button and delete button.
- `Feat(Global)` Use system theme color by default when init option `theme` is empty.
- `Feat(Core)` Use system theme color by default when init option `theme` is empty.
- `Refactor(Storage)` Convert Storage panel to `.ts` file.
- `Fix(Network)` Use `forEach` instead of `.entries()` when traversing `headers`. (issue #404)
- `Fix(Network)` Fix error when `Content-Type` is empty.
Expand All @@ -163,16 +172,16 @@ English | [简体中文](./CHANGELOG_CN.md)
- `Feat(Log)` Print `unhandledrejection` log. (PR #389 by @zimv)
- `Feat(Network)` Support `navigator.sendBeacon()` in Network panel. (PR #383 by @cola119)
- `Feat(Network)` Display "Type" (Request Type) in "General", including `xhr|fetch|ping`.
- `Refactor(Global)` Use TypeScript. Now Network panel is conveted to `.ts` file.
- `Refactor(Core)` Use TypeScript. Now Network panel is conveted to `.ts` file.
- `Fix(Network)` Recover original `window.fetch()` method when remove Network panel.
- `Fix(Storage)` Fix issue that the cookie of the non-first-level domain cannot be deleted. (issue #398)
- `Fix(Element)` Fix issue that elements are rendered as nested when `attributes` or `characterData` changed. (issue #399)


## 3.5.2 (2021-05-13)

- `Chore(Global)` Update to Webpack5 and update all NPM packages to the latest version.
- `Fix(Global)` Fix invalid click caused by wrong `selection`.
- `Chore(Core)` Update to Webpack5 and update all NPM packages to the latest version.
- `Fix(Core)` Fix invalid click caused by wrong `selection`.
- `Fix(Log)` Delete `cachedLogs` when reached `maxLogNumber` limit.
- `Fix(Log)` Fix XSS risk.

Expand All @@ -195,50 +204,50 @@ English | [简体中文](./CHANGELOG_CN.md)

## v3.4.1 (2021-04-09)

- `Feat(Global)` Add `setSwitchPosition(x, y)` method to update the position of switch button, see [Public Properties & Methods](./doc/public_properties_methods.md) for more details.
- `Perf(Global)` Add `Symbol` polyfill. (issue #361)
- `Fix(Global)` Update theme style after `setOption()`.
- `Fix(Global)` Remove `transitionEnd` to prevent compatibility issues. (issue #364)
- `Feat(Core)` Add `setSwitchPosition(x, y)` method to update the position of switch button, see [Public Properties & Methods](./doc/public_properties_methods.md) for more details.
- `Perf(Core)` Add `Symbol` polyfill. (issue #361)
- `Fix(Core)` Update theme style after `setOption()`.
- `Fix(Core)` Remove `transitionEnd` to prevent compatibility issues. (issue #364)
- `Fix(Network)` Fix `fetch` optional parameter `init`. (issue #363, #365)
- `Fix(Network)` Fix XSS risks.


## v3.4.0 (2021-01-14)

- `Feat(Global)` Add darkmode theme, see `vConsole.option.theme` in [Public Properties & Methods](./doc/public_properties_methods.md). (PR #307 by @progrape)
- `Feat(Global)` Add safe area to switch button. (issue #353)
- `Feat(Core)` Add darkmode theme, see `vConsole.option.theme` in [Public Properties & Methods](./doc/public_properties_methods.md). (PR #307 by @progrape)
- `Feat(Core)` Add safe area to switch button. (issue #353)
- `Feat(Log)` Auto move input cursor to the bracket after autocomplete command. (issue #293)
- `Feat(System)` Add `Location` info to System tab. (issue #343)
- `Feat(Network)` Add `fetch` log in Network tab. (by @weiqian93)
- `Feat(Network)` Add Request Headers to Network tab.
- `Feat(Network)` Use short URL and display parameters in Network tab. (issue #291)
- `Feat(Plugin)` New third-party plugin [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats). (by @smackgg)
- `Fix(Global)` The position of the switch button will be reset by mistake when clicked.
- `Fix(Global)` Fix `document.documentElement.offsetHeight|offsetWidth` is unreliable in newer browsers. (PR #314 by @littlee)
- `Fix(Global)` Prevent dispatchEvent for disabled or readOnly elements. (PR #314 by @norux)
- `Fix(Global)` Fix nonce searching problem. (by @sunderls)
- `Fix(Global)` Fix security issues. (#345 by @QiAnXinCodeSafe)
- `Fix(Global)` Prevent "webkitStorageInfo deprecation" warning.
- `Perf(Global)` Remove `Symbol`, `Array.from` polyfill. (issue #325, #275)
- `Perf(Global)` Show all enumerable and unenumerable properties. (issue #327)
- `Fix(Core)` The position of the switch button will be reset by mistake when clicked.
- `Fix(Core)` Fix `document.documentElement.offsetHeight|offsetWidth` is unreliable in newer browsers. (PR #314 by @littlee)
- `Fix(Core)` Prevent dispatchEvent for disabled or readOnly elements. (PR #314 by @norux)
- `Fix(Core)` Fix nonce searching problem. (by @sunderls)
- `Fix(Core)` Fix security issues. (#345 by @QiAnXinCodeSafe)
- `Fix(Core)` Prevent "webkitStorageInfo deprecation" warning.
- `Perf(Core)` Remove `Symbol`, `Array.from` polyfill. (issue #325, #275)
- `Perf(Core)` Show all enumerable and unenumerable properties. (issue #327)
- `Chore` Update Webpack DevServer option. (by @QinZhen001)


## v3.3.4 (2019-08-19)

- `Feat(Log)` Add `%c` log format to support custom log style, see [Tutorial](./doc/tutorial.md) for more details.
- `Feat(Plugin)` Add `VConsole.VConsoleLogPlugin` (`VConsole.VConsole*` plugins etc.) to `VConsole` class.
- `Fix(Global)` Fix a few minor issues. (#267 by @Molunerfinn, #272 by @domom)
- `Fix(Core)` Fix a few minor issues. (#267 by @Molunerfinn, #272 by @domom)
- `Fix(Storage)` Fix remove cookie fail when it is set path=/ or top domain. (#264 by @qianxinfeng)
- `Perf(Global)` Display vConsole on `window DOMContentLoaded` instead of `window load`.
- `Perf(Core)` Display vConsole on `window DOMContentLoaded` instead of `window load`.


## v3.3.2 (2019-07-04)

- `Feat(Global)` Add TypeScript definition file. (by @jas0ncn)
- `Feat(Core)` Add TypeScript definition file. (by @jas0ncn)
- `Fix(Log)` Avoid scrolling to bottom when away from bottom edge. (by @ele828)
- `Fix(Global)` Fix switch button position issue. (by @rexschuang)
- `Fix(Global)` Fix a few minor issues. (by @stenders)
- `Fix(Core)` Fix switch button position issue. (by @rexschuang)
- `Fix(Core)` Fix a few minor issues. (by @stenders)


## v3.3.0 (2019-02-02)
Expand Down
61 changes: 35 additions & 26 deletions CHANGELOG_CN.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
[English](./CHANGELOG.md) | 简体中文

## 3.13.0 (2022-03-15)

- `Feat(Log)` 新增配置项 `log.showTimestames`,见 [公共属性及方法](./doc/public_properties_methods_CN.md)
- `Fix(Core)` 使用模拟的 `click` 事件以避免某些场景下原生 click 事件不生效的问题。
- `Fix(style)` 修复微信 Webview 中的 CSS transition 失效的问题,通过使用 `bottom` 而非 `transform`
- `Fix(Core)` 修复在 `onReady` 回调中调用 vConsole 方法导致报错的问题。 (issue #516)
- `Refactor(Storage)` 提高健壮性。


## 3.12.1 (2022-02-25)

- `Fix(Core)` 修复当 VConsole 作为新模块 `import``VConsole.instance` 为空的问题。
Expand Down Expand Up @@ -36,7 +45,7 @@

## 3.11.0 (2021-12-30)

- `Feat(Global)` 支持自定义挂载点,配置项 `vConsole.option.target`[公共属性及方法](./doc/public_properties_methods_CN.md)。 (issue #455)
- `Feat(Core)` 支持自定义挂载点,配置项 `vConsole.option.target`[公共属性及方法](./doc/public_properties_methods_CN.md)。 (issue #455)
- `Feat(Log)` 新增插件方法 `vConsole.log.log()|info()|...``vConsole.log.clear()`,见 [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md)
- `Feat(Network)` 新增插件方法 `vConsole.network.add()|update()``vConsole.network.clear()`,见 [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md)
- `Feat(Network)` 支持限制请求数量,配置项 `vConsole.option.maxNetworkNumber`[公共属性及方法](./doc/public_properties_methods_CN.md)。 (issue #492)
Expand Down Expand Up @@ -83,7 +92,7 @@

- `Style(Log)` 支持 `BigInt` 类型并更新 `Symbol` 类型的样式。
- `Refactor(Style)` 在 vConsole 初始化时再懒加载 style 标签(而非 import 后就加载)。
- `Fix(Global)` 使用 `this || self` 作为 `globalObject`,以避免 `self is not defined` 错误。 (issue #441)
- `Fix(Core)` 使用 `this || self` 作为 `globalObject`,以避免 `self is not defined` 错误。 (issue #441)
- `Fix(Log)` 修复打印 `Symbol` 类型时产生的 `Cannot convert a Symbol value to a string` 错误。
- `Fix(Log)` 修复 commands 命令及其输出结果无法复制的问题。
- `Fix(Network)` 修复解码 URL 参数时产生的 `URIError` 错误。 (issue #470)
Expand All @@ -93,7 +102,7 @@

## 3.9.4 (2021-10-26)

- `Refactor(Global)``VConsole` 类的方法参数添加 Typescript 声明.
- `Refactor(Core)``VConsole` 类的方法参数添加 Typescript 声明.


## 3.9.3 (2021-10-22)
Expand All @@ -116,7 +125,7 @@
- `Feat(Log)` 显示 audio 资源加载失败的报错。 (PR #419 by @zimv)
- `Feat(Storage)` 重写 Storage 面板,现支持添加/编辑/删除内容。 (PR #429 by @ManiaciaChao)
- `Feat(Plugin)` 新增第三方插件 [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole)。 (by @vadxq)
- `Refactor(Global)` 开始使用 Svelte 作为模板引擎。 (PR #429 by @ManiaciaChao)
- `Refactor(Core)` 开始使用 Svelte 作为模板引擎。 (PR #429 by @ManiaciaChao)
- `Refactor(Core|Element)` 转换 core 文件及 Element 面板为 `.ts` 文件。
- `Fix(Log)` 修复打印无 `toJSON` 方法的对象(如 `Vue` 实例)时会报错的问题。 (PR #431 by @sillyhong)
- `Fix(Network)` 修复不以 `http` 开头的 url 会报错的问题。 (issue #420)
Expand Down Expand Up @@ -146,7 +155,7 @@

- `Feat(Storage)` 对于大体积 value 先展示预览值,以避免堵塞渲染。 (issue #300)
- `Feat(Storage)` 新增复制按钮、删除按钮。
- `Feat(Global)` 当初始参数 `theme` 为空时,跟随系统默认主题色。
- `Feat(Core)` 当初始参数 `theme` 为空时,跟随系统默认主题色。
- `Refactpr(Storage)` 转换 Storage 面板为 `.ts` 文件。
- `Fix(Network)` 使用 `forEach` 而非 `.entries()` 来遍历 `headers` 以避免一些兼容性问题。 (issue #404)
- `Fix(Network)` 修复 `Content-Type` 为空时导致的报错。
Expand All @@ -162,7 +171,7 @@
- `Feat(Log)` 新增输出 `unhandledrejection` 类型日志。 (PR #389 by @zimv)
- `Feat(Network)` 新增支持展示 `navigator.sendBeacon()` 的网络请求。 (PR #383 by @cola119)
- `Feat(Network)` 新增在 "General" 栏目展示 "Type" (Request Type) 字段,取值包括 `xhr|fetch|ping`
- `Refactpr(Global)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。
- `Refactpr(Core)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。
- `Fix(Network)` 修复移除 Network 面板后没有恢复原生 `window.fetch()` 方法的问题。
- `Fix(Storage)` 修复清除所有 cookie 时无法完全删除非顶级域名下的 cookie 的问题。 (issue #398)
- `Fix(Element)` 修复当 element 的 `attributes``characterData` 变化时 element 被嵌套渲染的问题。 (issue #399)
Expand All @@ -171,7 +180,7 @@
## 3.5.2 (2021-05-13)

- `Chore` 升级到 Webpack5,并升级所有 NPM packages 到最新版本。
- `Fix(Global)` 修复因 `selection` 选区引起的点击事件无效问题。
- `Fix(Core)` 修复因 `selection` 选区引起的点击事件无效问题。
- `Fix(Log)` 当日志数量达到 `maxLogNumber` 上限时清空对应的 `cachedLogs`
- `Fix(Log)` 修复 XSS 漏洞。

Expand All @@ -194,49 +203,49 @@

## v3.4.1 (2021-04-09)

- `Feature(Global)` 新增 `setSwitchPosition(x, y)` 方法以更新开关按钮的位置,见 [Public Properties & Methods](./doc/public_properties_methods_CN.md)
- `Perf(Global)` 添加 `Symbol` polyfill。(issue #361)
- `Fix(Global)` 修复 `setOption()` 后主题样式未及时更新的问题。
- `Fix(Global)` 删除 `transitionEnd` 以避免一些兼容性问题。(issue #364)
- `Feature(Core)` 新增 `setSwitchPosition(x, y)` 方法以更新开关按钮的位置,见 [Public Properties & Methods](./doc/public_properties_methods_CN.md)
- `Perf(Core)` 添加 `Symbol` polyfill。(issue #361)
- `Fix(Core)` 修复 `setOption()` 后主题样式未及时更新的问题。
- `Fix(Core)` 删除 `transitionEnd` 以避免一些兼容性问题。(issue #364)
- `Fix(Network)` 修复 `fetch``init` 未考虑为可选参数的问题。(issue #363, #365)
- `Fix(Network)` 修复 XSS 漏洞。


## v3.4.0 (2021-01-14)

- `Feature(Global)` 支持暗黑模式,配置项 `vConsole.option.theme`[Public Properties & Methods](./doc/public_properties_methods_CN.md)。(by @progrape)
- `Feature(Global)` 开关按钮加入拖拽安全区,避免遮挡全面屏手机底部操作区。(issue #353)
- `Feature(Core)` 支持暗黑模式,配置项 `vConsole.option.theme`[Public Properties & Methods](./doc/public_properties_methods_CN.md)。(by @progrape)
- `Feature(Core)` 开关按钮加入拖拽安全区,避免遮挡全面屏手机底部操作区。(issue #353)
- `Feature(Log)` 指令输入框键入括号且自动补全括号后,光标将自动移动到括号内部。(issue #293)
- `Feature(System)` 增加显示 `Location` 信息。(issue #343)
- `Feature(Network)`支持 `fetch` 网络记录。(by @weiqian93)
- `Feature(Network)` 支持显示 Request Headers。
- `Feature(Network)` 仅显示简短网址,URL 参数将显示在详细信息中。(issue #291)
- `Feature(Plugin)` 新第三方插件 [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats)。(by @smackgg)
- `Fix(Global)` 修复点击开关按钮后位置会被重置的问题。
- `Fix(Global)` 修复 `document.documentElement.offsetHeight|offsetWidth` 在新浏览器中不够准确的问题。(by @littlee)
- `Fix(Global)` 阻止用户事件派发到 readOnly 或 disabled 的 element 上。(by @norux)
- `Fix(Global)` 修复 nonce 查找不准确的问题。(by @sunderls)
- `Fix(Global)` 修复一个安全问题。(#345 by @QiAnXinCodeSafe)
- `Fix(Global)` 屏蔽 "webkitStorageInfo deprecation" 告警。
- `Perf(Global)` 删除 `Symbol``Array.from` polyfill。(issue #325, #275)
- `Perf(Global)` 日志中显示对象内所有的 enumerable 和 unenumerable 属性。 (issue #327)
- `Fix(Core)` 修复点击开关按钮后位置会被重置的问题。
- `Fix(Core)` 修复 `document.documentElement.offsetHeight|offsetWidth` 在新浏览器中不够准确的问题。(by @littlee)
- `Fix(Core)` 阻止用户事件派发到 readOnly 或 disabled 的 element 上。(by @norux)
- `Fix(Core)` 修复 nonce 查找不准确的问题。(by @sunderls)
- `Fix(Core)` 修复一个安全问题。(#345 by @QiAnXinCodeSafe)
- `Fix(Core)` 屏蔽 "webkitStorageInfo deprecation" 告警。
- `Perf(Core)` 删除 `Symbol``Array.from` polyfill。(issue #325, #275)
- `Perf(Core)` 日志中显示对象内所有的 enumerable 和 unenumerable 属性。 (issue #327)
- `Chore` 更新 Webpack DevServer 的配置项。(by @QinZhen001)


## v3.3.4 (2019-08-19)

- `Feature(Log)` 增加 `%c` 以支持自定义日志样式,详情见 [使用教程](./doc/tutorial_CN.md)
- `Feature(Plugin)` 增加 `VConsole.VConsoleLogPlugin``VConsole.VConsole*` 内置插件在 `VConsole` class 上的挂载。
- `Fix(Global)` 修复若干小问题。(#267 by @Molunerfinn, #272 by @domom)
- `Fix(Core)` 修复若干小问题。(#267 by @Molunerfinn, #272 by @domom)
- `Fix(Storage)` 修复当 cookie `path=/` 或设置了 `domain` 时删除失败的问题。(#264 by @qianxinfeng)
- `Perf(Global)``window DOMContentLoaded` 而不是 `window load` 时显示 vConsole。
- `Perf(Core)``window DOMContentLoaded` 而不是 `window load` 时显示 vConsole。


## v3.3.2 (2019-07-04)

- `Feature(Global)` 增加 TypeScript 声明文件。(by @jas0ncn
- `Fix(Global)` 修复开关按钮拖动后位置不对的问题。(by @rexschuang
- `Fix(Global)` 修复若干小问题。(by @stenders
- `Feature(Core)` 增加 TypeScript 声明文件。(by @jas0ncn
- `Fix(Core)` 修复开关按钮拖动后位置不对的问题。(by @rexschuang
- `Fix(Core)` 修复若干小问题。(by @stenders
- `Fix(Log)` 不在列表底部时避免自动滚动。(by @ele828


Expand Down
1 change: 1 addition & 0 deletions babel.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
"@babel/preset-typescript"
],
"plugins": [
"@babel/plugin-transform-runtime",
["@babel/plugin-proposal-class-properties", { "loose": true }],
"@babel/plugin-transform-block-scoping",
"@babel/plugin-proposal-export-namespace-from",
Expand Down
Loading

0 comments on commit 2977cf0

Please sign in to comment.