Changelog
3.13.0 (2022-03-15)
Feat(Log)
Add new option log.showTimestamps
, see Public Properties & Methods.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.Changelog
3.12.1 (2022-02-25)
Fix(Core)
Fix bug that VConsole.instance
is empty when VConsole import
as a new module.Chore(Core)
Fix type declaration errors caused by vendors.Changelog
3.12.0 (2022-02-17)
Feat(Core)
Add new static property VConsole.instance
to get the singleton instance.Feat(Core)
Add new options storage.defaultStorages
, see Public Properties & Methods.Feat(Core)
New way of using vConsole.setOption()
: setOption('log.maxLogNumber', 20)
to set maxLogNumber
field only, and setOption({ log: { maxLogNumber: 20 }})
to overwrite log
object.Feat(Core)
Deprecated some options, see below.Fix(Plugin)
Fix the bug that event renderTab
doesn't render plugin view.Fix(Storage)
Fix cookie parse error in some bad cases. (issue #508, #509)Deprecated Options:
maxLogNumber
: Use option.log.maxLogNumber
instead.maxNetworkNumber
: Use option.network.maxNetworkNumber
instead.onClearLog
: Removed.Changelog
3.11.2 (2022-01-20)
Feat(Storage)
Added "Clear" button to batch delete all storage items. (issue #499)Fix(Storage)
Fix the issue that deleting cookies fails. (issue #499)Changelog
3.11.1 (2022-01-13)
Feat(Log)
Support for submitting command input using the enter key. (issue #498)Fix(Network)
Fix init.body
parameter problem. (issue #500)Changelog
3.11.0 (2021-12-30)
Feat(Core)
Add new option vConsole.option.target
to specify custom mount target, see Public Properties & Methods. (issue #455)Feat(Log)
Add new methods: vConsole.log.log()|info()|...
, vConsole.log.clear()
, see Builtin Plugin: Properties & Methods.Feat(Network)
Add new methods: vConsole.network.add()|update()
, vConsole.network.clear()
, see Builtin Plugin: Properties & Methods.Feat(Network)
Add new option vConsole.option.maxNetworkNumber
to limit request number, see Public Properties & Methods. (issue #492)Fix(Network)
Display Request Payload for all HTTP methods, not just POST. (issue #493)Fix(Element)
Fix the infinite loop problem caused by the newly added Comment node. (issue #491)Changelog
3.10.1 (2021-12-23)
Feat(Network)
Pretty output format for JSON response. (issue #486)Fix(Style)
Avoid panel scaling with the web page When initial-scale !== 1
.Fix(Core)
Fix the issue that clicking the panel button does not work in PC mode. (issue #487)Fix(Network)
Display formatted JSON instead of [object Object]
when Query/Payload/Headers is an object or array.Fix(Network)
Avoid overwriting onreadystatechange
of XHR objects multiple times when XHR objects are reused in some cases. (issue #214)Changelog
3.10.0 (2021-12-17)
In this version, we refactored a lot of core logic, and used Svelte as the rendering engine for all views.
So there are some breaking changes, a small number of methods and properties are not forward compatible.
If you are a vConsole plugin developer, you should pay attention to these changes.
Breaking Changes:
Refactor(Core|Log|Network|Element)
Rebuild all views by using Svelte as template engine.Refactor(Core)
Remove vConsole.(tabList | activedTab | $dom)
properties.Refactor(Plugin)
Rename vConsole.showTab(pluginID)
to vConsole.showPlugin(pluginID)
.Refactor(Plugin)
Change callback option { data, onClick }
of plugin event addTopBar
: onClick
method will receive 2 arguments (which was 0 before): (event: Event, data?: any) => boolean
, which data
is the above option's data
field.Feat(Core)
Remove helper functions vConsole.tool
and vConsole.$
.Common Updates:
Feat(Log)
Support object's Symbol
keys.Feat(Log)
Support multi-level keyword hint in Log's command line input.Feat(Log)
Support string formatting %s, %d, %o
, and better %c
CSS styling formatting.Feat(Log)
Add pagination to objects or arrays to improve rendering performance, with 50 key-values per page.Feat(Network)
Add copy buttons to request attributes.Feat(Element)
Improve UX, selected node will be highlighted and applied to Expand/Collapse action.Feat(Style)
Style tags will be loaded into <head>
after vConsole initialization, and removed after destruction.Refactor(Storage)
Improve UX.Fix(Network)
Throw error when Fetch
get an error. (issue #458)Changelog
3.9.5 (2021-11-10)
Style(Log)
Add support for BigInt
and update Symbol
log style.Refactor(Style)
Lazy load style tag when vConsole init.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)Fix(Network)
Fix potential forEach
error. (issue #471)Chore
Transform Svelte output code to ES5. (issue #468)