Skip to content

Releases: Tencent/vConsole

Release 3.0.0

27 Sep 08:07
Compare
Choose a tag to compare

EN:

Basic:

  • [FEATRUE] Require manual init vConsole var vConsole = new VConsole(option).
  • [FEATRUE] Add configuaration vConsole.option, which can be set when new VConsole or setOption(key, value).
  • [FEATURE] Support for custom loading of default built-in plugins by using defaultPlugins in the above option.
  • [FEATURE] Add setOption(key, value) method.
  • [IMPROVE] Support CSP rule unsafe-eval and unsafe-inline.
  • [IMPROVE] Optimize font-size when initial-scale < 1.

Log plugin:

  • [FEATURE] Support maxLogNumber option to limit maximum log number.
  • [FIX] Fix the crash caused by printing large objects.
  • [IMPROVE] Only the logs written as console.log('[system]', xxx) will be shown in System tab, so console.log('[system] xxx') will be shown in default log tab.

Network plugin:

  • [FEATURE] Support Query String Parameters and Form Data.
  • [IMPROVE] Auto format JSON response.
  • [FIX] Fix bug that XHR status is always "Pending" when using 3rd HTTP libraries.

Plugins:

  • [FEATURE] Plugins can get vConsole instance by this.vConsole on/after init event is called.
  • [FEATURE] Add updateOption event to detect vConsole.option changes.
  • [FEATURE] Add Element tab as a built-in plugin.
  • [FEATURE] Add Storage tab as a built-in plugin.

CN:

基础:

  • 【特性】需要手动初始化 vConsole:var vConsole = new VConsole(option)
  • 【特性】新增 vConsole.option 配置项,配置项可在实例化时传入,也可通过 vConsole.setOption(key, value) 更新。
  • 【特性】支持自定义按需加载内置插件,配置项为 option 里的 defaultPlugins 字段。
  • 【优化】支持 CSP 规则 unsafe-evalunsafe-inline
  • 【优化】优化 initial-scale < 1 时的 font-size

Log 插件:

  • 【特性】支持 maxLogNumber 配置项,以控制面板内展示的最多日志数量。
  • 【修复】修复打印大型复杂 object 时引起的崩溃问题。
  • 【优化】只有 console.log('[system]', xxx) 这种将 [system] 放在第一位参数的写法,才会输出到 System 面板。因此可以规避 [foo] bar 这类格式无法正确打印到 Log 面板的问题。

Network 插件:

  • 【特性】新增 Query String ParametersForm Data 两栏,以展示 GET 和 POST 的参数。
  • 【优化】自动格式化展示 JSON 类型的回包。
  • 【修复】修复 status 一直为 "Pending" 的问题。这种问题一般是引入了第三方的 HTTP 库而引起的。

插件模块:

  • 【特性】在 init 事件触发时/之后,插件实例内可以通过 this.vConsole 来获取到 vConsole 的对象实例。
  • 【特性】新增 updateOption 事件,以监测 vConsole.option 的更新。
  • 【特性】新增 Element 面板作为默认的内置插件。
  • 【特性】新增 Storage 面板作为默认的内置插件。

Release v2.5.1

18 Oct 06:34
Compare
Choose a tag to compare

EN:

  • [FIX] Fix scrollHeight error in some cases.
  • [FIX] Fix flex layout in iOS 8 devices.
  • [IMPROVE] Performance enhancement.

CN:

  • 【修复】修复一些情况下的 scrollHeight 错误。
  • 【修复】修正 iOS 8 下的 flex 布局问题。
  • 【优化】性能增强。

Release v2.5.0

28 Sep 06:40
Compare
Choose a tag to compare

EN:

  • [FEATURE] Add vConsole.removePlugin() method, see Public Properties & Methods.
  • [FEATURE] Add remove plugin event, see Plugin: Event List.
  • [IMPROVE] Disable page scrolling while vConsole is scrolling.
  • [FIX] Fix window.onerror() typo.

CN:

  • 【特性】新增 vConsole.removePlugin() 方法,请查阅公共属性及方法
  • 【特性】新增 remove 插件事件,请查阅插件:Event 事件列表
  • 【优化】页面不会随着 vConsole 的滚动而滚动。
  • 【修复】修正 window.onerror() 内的函数调用笔误。

Release v2.4.0

31 Aug 03:32
Compare
Choose a tag to compare

EN:

  • [FEATURE] Add addTopBar plugin event, see Plugin: Event List.
  • [FEATURE] Add log type filter to Log & System tab.
  • [IMPROVE] Log list will not automatically scroll to bottom while printing new logs if the viewport is not at the end of list.
  • [IMPROVE] Fix UI bugs.
  • [FIX] Fix XSS issue when print object logs.
  • [FIX] Switch button will not be positioned out of edges in some special cases.

CN:

  • 【特性】新增 addTopBar 插件事件,请查阅插件:Event 事件列表
  • 【特性】新增日志类型筛选功能。
  • 【优化】若 log 列表不处于最底部,当打印新 log 时,列表则不会自动滚动到最新 log 处。
  • 【优化】优化了一些 UI 样式问题。
  • 【修复】修正打印 object 类型 log 时的 XSS 问题。
  • 【修复】在某些特殊情况中,开关按钮将不会再被定位出页面外。

Release v2.3.0

15 Aug 11:48
Compare
Choose a tag to compare

EN:

  • [FEATURE] Objects or Arrays can be expended layer by layer.
  • [FEATURE] All object's properties, including private properties, can be enumerable now.
  • [IMPROVE] Support tap event within vConsole's DOM container to speed up click event.

CN:

  • 【特性】支持逐级展开 Object 或 Array 的子元素。
  • 【特性】支持显示 Object 内的不可枚举属性。
  • 【优化】支持在 vConsole 的 DOM 容器内使用 tap 事件以代替 click 事件。

Release v2.2.1

08 Aug 05:23
Compare
Choose a tag to compare

EN

  • [IMPROVE] Add complete performance timing log to System tab.
  • [ADD] Add third-party plugin list to README.

CN

  • 【特性】在 System 面板中添加完整的 performance timing 测速点。
  • 【新增】在 README 中新增第三方插件列表。

Release v2.2.0

13 Jul 09:26
Compare
Choose a tag to compare

EN

  • [FEATURE] Add vConsole.version property.
  • [FEATURE] Add xhr._noVConsole property to XMLHttpRequest objects to customize whether a XHR should display in Network tab.

CN

  • 【特性】新增 vConsole.version 属性,以获取当前版本号。
  • 【特性】新增 XMLHttpRequestxhr._noVConsole 属性,以控制一个网络请求是否显示在 Network tab 中。

Release v2.1.0

29 Jun 11:31
Compare
Choose a tag to compare

EN:

  • [FEATURE] Add vConsole.tool & vConsole.$ helper functions, see Helper Functions.
  • [FEATURE] Public properties & methods of vConsole are available, see Public Properties & Methods.
  • [FIX] Fix issue that error in window.onerror() may be undefined.
  • [FIX] Fix error that xhr.status may be unavailable when xhr.readyState < 4.

CN:

  • 【特性】新增 vConsole.toolvConsole.$ 辅助函数,请查阅辅助函数
  • 【特性】公开部分 vConsole 的属性及方法,请查阅公共属性及方法
  • 【修复】修复 window.onerror()error 可能为空而导致堆栈读取错误的问题。
  • 【修复】修复当 xhr.readyState < 4 时读取 xhr.status 可能导致错误的问题。

Release v2.0.1

16 Jun 13:52
Compare
Choose a tag to compare

EN

  • [FIX] Fix error that vConsole may not work at X5 browser engine
  • [FIX] Fix error that localStorage is null in some kind of devices
  • [FIX] Fix boolean display error in Log tab
  • [IMPROVE] Improve UI in Android

CN

  • 【修复】修复 vConsole 可能无法运行在 X5 内核浏览器的问题
  • 【修复】修复某些设备不支持 localStorage 的问题
  • 【修复】修复布尔值在 Log 面板展示不正确的问题
  • 【优化】优化在 Android 设备下的 UI 表现

Release v2.0.0

05 Jun 12:48
Compare
Choose a tag to compare

EN

  • [FEATURE] Rebuild completely, support custom plugin, see Plugin: Getting Started.
  • [FEATURE] Support execute JS command line in Log tab
  • [FEATURE] Support circular structure object in Log and System tab
  • [FEATURE] Support viewing request headers and response in Network tab
  • [IMPROVE] Switch button will not be dragged out of screen
  • [IMPROVE] Auto print User Agent in System tab
  • [IMPROVE] Show log's time in Log and System tab
  • [FIX] Fix issue that getDate() returns a wrong date
  • [FIX] Fix issue that sync AJAX becomes async AJAX

CN

  • 【特性】完全重构,支持自定义插件,请查阅插件:入门
  • 【特性】支持手动输入、执行命令行
  • 【特性】支持打印循环引用的对象
  • 【特性】支持在 Network 面板查看请求的 headers 和 response
  • 【优化】开关按钮不会再被拖出屏幕外部
  • 【优化】自动在 System 面板打印 User Agent
  • 【优化】打印 log 时会显示时间
  • 【修复】修复 getDate() 返回错误时间的问题
  • 【修复】修复同步 AJAX 变异步 AJAX 的问题