You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 KiB
23 KiB
English | 简体中文
3.15.1 (2023-06-01)
Feat(Netwrk)Add new optionnetwork.ignoreUrlRegExpto skip some requests. (PR #623)Fix(Core)Fix prototype pollution invConsole.setOption(). (issue #616 #621)Fix(Core)Fix plugin eventreadytriggering before its HTML finishes rendering. (issue #591)Fix(Log)Reset group state whenconsole.clear()is called. (issue #611)Fix(Log)Compatible with iOS (less than 13.4) that does not supportResizeObserver, but there may be a potential performance issue when printing a large number of logs. (issue #610)Fix(Network)Fix possible "Cannot read property" error bysendBeacon. (issue #615)
3.15.0 (2022-11-02)
Feat(Log)Add recycle scrolling to imporove performance, and add scroll to top/bottom buttons. (PR #570)Feat(Log)Add support forconsole.group(), console.groupCollapsed(), console.groupEnd(). (issue #545)Feat(Network)Add recycle scrolling to imporove performance.Feat(Network)Add "Start Time" of a request.Feat(Network)Usecurlinstead ofurlas the copy value of a request. (issue #410)Fix(Storage)Fix an event bug that overflow content cannot scroll. (issue #542)Fix(Core)Fix click event on<select>elements. (PR #577)
3.14.7 (2022-09-23)
Perf(Log)Optimize rendering performance when adding logs. (PR #567)Fix(Core)Fix plugin panel sorting error when settingpluginOrderoption. (issue #559)Fix(Core)Fix intervention error caused bypreventDefaultinTouchevents. (issue #546)Fix(Log)Fixwindow.onerrormissing line breaks.Fix(Log)Fix unclickablevc-cmd-clear-btnon iOS Safari. (PR #564)Fix(Log)Fix a typo that misjudged circular reference objects. (issue #566)Fix(Log|Network)Copy objects or arrays as standard JSON format. (issue #547)Fix(Network)FixFetchstays in pending status whenwindowis proxied. (issue #556)Fix(Storage)Fix storage pannel sorting error when settingstorage.defaultStoragesoption. (issue #560)ChoreAdd optionenv['no-core-js']to disable core-js polyfill. (PR #562)
3.14.6 (2022-04-14)
Fix(Log)Fix logs lost tracking when adding a new vConsole after destroying the old one.Fix(Network)Fixresp.bodyundefined error. (issue #531)Fix(Network)Fix missing Request Headers whenxhr.setRequestHeaderis overwritten. (issue #533)ChoreUpdate NPM dependencies.
3.14.5 (2022-04-06)
Fix(Core)Fix unexpected error when init vConsole twice in short time. (issue #525)Fix(Log)Fix bug thatconsole.time | console.timeEnddo not output log. (issue #523)Fix(Element)Fixundefined is not an objecterror when updating attributes. (issue #526)Fix(Network)Do not proxy response body reader when response is done.ChoreFix typo that Svelte is not transpiled by Babel on Windows. (PR #528)
3.14.4 (2022-03-31)
Fix(Network)Fix CPU high load bug when response is a large string. (issue #515)Fix(Network)Fix missing Request Headers issue in XHR. (issue #522)
3.14.3 (2022-03-28)
Fix(Network)Fixresponse.sizeerror.
3.14.2 (2022-03-25)
Fix(Network)Remove debugging console.log.ChoreDropconsole.login Webpack process to ensure that no debugging logs appear in release version.ChoreAdd new build command to compile files in different scenarios.
3.14.1 (2022-03-24)
Fix(Network)FixresponseSizeerror whenreadyState === 3.
3.14.0 (2022-03-23)
Feat(Core)Add new optionpluginOrderto adjust the order of built-in and custom plugins, see Public Properties & Methods.Feat(Core)Panel will auto scroll to previous position when switching plugin panel.Feat(Network)Add response size.Feat(Network)Add support fortransfer-encoding: chunked, now streaming response can be recorded.Feat(Network)Improve rendering performance of large Response data by cropping the displayed response content.Refactor(Network)Now network records will be more accurate by using Proxy to preventXMLHttpRequest | fetchoverwriting by other request libraries (like Axios).
3.13.0 (2022-03-15)
Feat(Log)Add new optionlog.showTimestamps, see Public Properties & Methods.Fix(Core)Use polyfillclickevent to prevent raw click event not working in some cases.Fix(style)Fix CSS transition failure in WeChat webview by usingbottominstead oftransform.Fix(Core)Fix error when calling vConsole method inonReadycallback. (issue #516)Refactor(Storage)Improve robustness.
3.12.1 (2022-02-25)
Fix(Core)Fix bug thatVConsole.instanceis empty when VConsoleimportas a new module.Chore(Core)Fix type declaration errors caused by vendors.
3.12.0 (2022-02-17)
Feat(Core)Add new static propertyVConsole.instanceto get the singleton instance.Feat(Core)Add new optionsstorage.defaultStorages, see Public Properties & Methods.Feat(Core)New way of usingvConsole.setOption():setOption('log.maxLogNumber', 20)to setmaxLogNumberfield only, andsetOption({ log: { maxLogNumber: 20 }})to overwritelogobject.Feat(Core)Deprecated some options, see below.Fix(Plugin)Fix the bug that eventrenderTabdoesn't render plugin view.Fix(Storage)Fix cookie parse error in some bad cases. (issue #508, #509)
Deprecated Options:
maxLogNumber: Useoption.log.maxLogNumberinstead.maxNetworkNumber: Useoption.network.maxNetworkNumberinstead.onClearLog: Removed.
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)
3.11.1 (2022-01-13)
Feat(Log)Support for submitting command input using the enter key. (issue #498)Fix(Network)Fixinit.bodyparameter problem. (issue #500)
3.11.0 (2021-12-30)
Feat(Core)Add new optionvConsole.option.targetto 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 optionvConsole.option.maxNetworkNumberto 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)
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 Wheninitial-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 overwritingonreadystatechangeof XHR objects multiple times when XHR objects are reused in some cases. (issue #214)
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)RemovevConsole.(tabList | activedTab | $dom)properties.Refactor(Plugin)RenamevConsole.showTab(pluginID)tovConsole.showPlugin(pluginID).Refactor(Plugin)Change callback option{ data, onClick }of plugin eventaddTopBar:onClickmethod will receive 2 arguments (which was 0 before):(event: Event, data?: any) => boolean, whichdatais the above option'sdatafield.Feat(Core)Remove helper functionsvConsole.toolandvConsole.$.
Common Updates:
Feat(Log)Support object'sSymbolkeys.Feat(Log)Support multi-level keyword hint in Log's command line input.Feat(Log)Support string formatting%s, %d, %o, and better%cCSS 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 whenFetchget an error. (issue #458)
3.9.5 (2021-11-10)
Style(Log)Add support forBigIntand updateSymbollog style.Refactor(Style)Lazy load style tag when vConsole init.Fix(Core)Usethis || selfasglobalObjectto preventself is not definederror. (issue #441)Fix(Log)FixCannot convert a Symbol value to a stringerror when logged aSymbolvalue.Fix(Log)Now commands and output logs can be copied.Fix(Network)FixURIErrorwhen decode URI fail. (issue #470)Fix(Network)Fix potentialforEacherror. (issue #471)ChoreTransform Svelte output code to ES5. (issue #468)
3.9.4 (2021-10-26)
Refactor(Core)Add Typescript declaration toVConsoleclass.
3.9.3 (2021-10-22)
Fix(Network)FixCannot read property 'setAttribute' of nullerror when callsetOption()before init. (PR #453 by @Zhangstring)Fix(Network)FixFetcherror when iOS < 11. (PR #457 by @zimv)ChoreGenerate.d.tsdeclarations when built. (RP #433 by @ManiaciaChao)ChoreRemove./distfrom Git tracking.
3.9.1 (2021-07-27)
Fix(Log)Fix command input style. (PR #437 by @FredZeng)Fix(Storage)FixglobalThiserror. (issue #438 #439)ChoreFixconstleterror cause by Svelte. (PR #440 by @dellyoung)
3.9.0 (2021-07-16)
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. (by @vadxq)Refactor(Core)Use Svelte as template engine. (PR #429 by @ManiaciaChao)Refactor(Core|Element)Convert core file and Element panel to.tsfile.Fix(Log)Fix error when print object(s) with notoJSONmethod such asVueinstance. (PR #431 by @sillyhong)Fix(Network)Fix error when url not starts withhttp. (issue #420)Fix(Network)Fix error when usingRequestasFetch's parameter. (PR #428 by @tatsunoneko)Fix(Network)Display formatted key-value list whenPOSTa JSON string. (issue #425)StyleWrap LESS math operations. (PR #426 by @ManiaciaChao)ChoreFixyarn serveerror. (issue #424)
3.8.1 (2021-06-24)
Fix(Log)Do not merge repeated logs with object(s) or array(s) into one line to avoid merging objects with the same structure but different values.Fix(Log)Fix the issue that log filter does not take effect after selecting the log type.Fix(Network)Fix error when url starts with//. (PR #414 by @kooritea)ChoreRemoveexclude: node_modulesoption in babel-loader to be compatible with ES5. (issue #404, #407)Refactor(Log)Convert Log & System panel to.tsfile.
3.8.0 (2021-06-23)
Feat(Log)Show resource (image/video/link/script) loading error log. (PR #411 by @zimv)ChoreAddtarget: ['web', 'es5']to Webpack to avoid compatibility issues. (issue #404)Fix(Network)Fix error whennew URL('x', undefined). (PR #409 by @moonkop)
3.7.0 (2021-05-27)
Feat(Storage)Show preview value to prevent large raw value blocking rendering. (issue #300)Feat(Storage)Add copy button and delete button.Feat(Core)Use system theme color by default when init optionthemeis empty.Refactor(Storage)Convert Storage panel to.tsfile.Fix(Network)UseforEachinstead of.entries()when traversingheaders. (issue #404)Fix(Network)Fix error whenContent-Typeis empty.
3.6.1 (2021-05-24)
Fix(Network)Fix "Invalid base URL" error. (PR #402)
3.6.0 (2021-05-21)
Feat(Log)Printunhandledrejectionlog. (PR #389 by @zimv)Feat(Network)Supportnavigator.sendBeacon()in Network panel. (PR #383 by @cola119)Feat(Network)Display "Type" (Request Type) in "General", includingxhr|fetch|ping.Refactor(Core)Use TypeScript. Now Network panel is conveted to.tsfile.Fix(Network)Recover originalwindow.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 whenattributesorcharacterDatachanged. (issue #399)
3.5.2 (2021-05-13)
Chore(Core)Update to Webpack5 and update all NPM packages to the latest version.Fix(Core)Fix invalid click caused by wrongselection.Fix(Log)DeletecachedLogswhen reachedmaxLogNumberlimit.Fix(Log)Fix XSS risk.
3.5.1 (2021-05-07)
Chore(Babel)Fix incorrectcatchbuilt by babel-loader. (PR #392 by @myl0204)Fix(Network)Fix typing error. (PR #388 by @xovel)
3.5.0 (2021-04-28)
Feat(Log)Add ability to copy a single line of logs. (by @akai)Feat(Plugin)New third-party plugin vconsole-vue-devtools-plugin. (by @Zippowxk)Perf(System)Rename "System" field to "Client", and addMacOSversion.Fix(Log)Use natural sorting to sort object and array's keys. (issue #372)Fix(Network)Fix JSON parse error whencontentTypeistext/html. (by @zimv)Fix(Network)FixdisableLogScrollingnot working in Network panel. (issue #282, #379)
v3.4.1 (2021-04-09)
Feat(Core)AddsetSwitchPosition(x, y)method to update the position of switch button, see Public Properties & Methods for more details.Perf(Core)AddSymbolpolyfill. (issue #361)Fix(Core)Update theme style aftersetOption().Fix(Core)RemovetransitionEndto prevent compatibility issues. (issue #364)Fix(Network)Fixfetchoptional parameterinit. (issue #363, #365)Fix(Network)Fix XSS risks.
v3.4.0 (2021-01-14)
Feat(Core)Add darkmode theme, seevConsole.option.themein Public Properties & Methods. (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)AddLocationinfo to System tab. (issue #343)Feat(Network)Addfetchlog 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. (by @smackgg)Fix(Core)The position of the switch button will be reset by mistake when clicked.Fix(Core)Fixdocument.documentElement.offsetHeight|offsetWidthis 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)RemoveSymbol,Array.frompolyfill. (issue #325, #275)Perf(Core)Show all enumerable and unenumerable properties. (issue #327)ChoreUpdate Webpack DevServer option. (by @QinZhen001)
v3.3.4 (2019-08-19)
Feat(Log)Add%clog format to support custom log style, see Tutorial for more details.Feat(Plugin)AddVConsole.VConsoleLogPlugin(VConsole.VConsole*plugins etc.) toVConsoleclass.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(Core)Display vConsole onwindow DOMContentLoadedinstead ofwindow load.
v3.3.2 (2019-07-04)
Feat(Core)Add TypeScript definition file. (by @jas0ncn)Fix(Log)Avoid scrolling to bottom when away from bottom edge. (by @ele828)Fix(Core)Fix switch button position issue. (by @rexschuang)Fix(Core)Fix a few minor issues. (by @stenders)
v3.3.0 (2019-02-02)
Feat(Log)Add the ability to collapse the same log.Fix(Log)Fix issue which formatted log (likeconsole.log('[foo]', 'bar')) will not display in Log tab.
v3.2.2 (2019-01-17)
FeatAdd console command prompt. (by @65147400)FeatAdd SessionStorage support in Storage tab. (by @hkc452)FixFixJSON.stringifyfunction which was incorrectly rewritten.FixFixlogNumberbug which was not reset when clear logs. (by @liuyuekeng)FixFix unencoded HTML tag in Network tab. (by @mokang)FixFix possible crash when decode content in Storage tab. (by @wolfsilver)FixFix CSP buy cause bynonceattribute. (by @scotthuang)PerfAdd bottom safe area to adapt to full screen such as iPhone X. (by @dingyi1993)
v3.2.0 (2018-04-10)
FeatSupportconsole.time()andconsole.timeEnd().FeatAdddisableLogScrolling(invConsole.option).FixFixsetOption()error.FixFix cookies' value wrong display.FixFix "Uncaught InvalidStateError". (by @fireyy)
v3.1.0 (2017-12-27)
FeatAddvConsole.showSwitch()andvConsole.hideSwitch()methods, see Public Properties & Methods.FeatAddonReadyandonClearLogcallback function tovConsole.option.FeatAuto clear logs whenconsole.clear()is called.FixFix\rerror when build in Windows.FixFixSymbolerror in iOS8 or other old OS.
v3.0.0 (2017-09-27)
Basic:
FeatRequire manual init vConsolevar vConsole = new VConsole(option).FeatAdd configuarationvConsole.option, which can be set whennew VConsoleorsetOption(key, value).FeatSupport for custom loading of default built-in plugins by usingdefaultPluginsin the above option.FeatAddsetOption(key, value)method.PerfSupport CSP ruleunsafe-evalandunsafe-inline.PerfOptimizefont-sizewheninitial-scale < 1.
Log plugin:
FeatSupportmaxLogNumberoption to limit maximum log number.FixFix the crash caused by printing large objects.PerfOnly the logs written asconsole.log('[system]', xxx)will be shown in System tab, soconsole.log('[system] xxx')will be shown in default log tab.
Network plugin:
FeatSupportQuery String ParametersandForm Data.PerfAuto format JSON response.FixFix bug that XHR status is always "Pending" when using 3rd HTTP libraries.
Plugins:
FeatPlugins can get vConsole instance bythis.vConsoleon/afterinitevent is called.FeatAddupdateOptionevent to detectvConsole.optionchanges.FeatAdd Element tab as a built-in plugin.FeatAdd Storage tab as a built-in plugin.
v2.x.x
v2.5.2 (2016-12-27)
FixCatch errors when eval custom commands in Log tab.
v2.5.1 (2016-10-18)
FixFixscrollHeighterror in some cases.FixFix flex layout in iOS 8 devices.PerfPerformance enhancement.
v2.5.0 (2016-09-28)
FeatAddvConsole.removePlugin()method, see Public Properties & Methods.FeatAddremoveplugin event, see Plugin: Event List.PerfDisable page scrolling while vConsole is scrolling.FixFixwindow.onerror()typo.
v2.4.0 (2016-08-31)
FeatAddaddTopBarplugin event, see Plugin: Event List.FeatAdd log type filter to Log & System tab.PerfLog list will not automatically scroll to bottom while printing new logs if the viewport is not at the end of list.PerfFix UI bugs.FixFix XSS issue when print object logs.FixSwitch button will not be positioned out of edges in some special cases.
v2.3.1 (2016-08-16)
FixReplace customtapevent (in V2.3.0) withclickevent (still support fast response) to prevent conflicts.PerfRemovenowitem and addnavigationStarttime in System tab.
v2.3.0 (2016-08-15)
FeatObjects or Arrays can be expended layer by layer.FeatAll object's properties, including private properties, can be enumerable now.PerfSupporttapevent within vConsole's DOM container to speed upclickevent.
v2.2.1 (2016-08-08)
PerfAdd complete performance timing log to System tab.FeatAdd third-party plugin list to README.
v2.2.0 (2016-07-13)
FeatAddvConsole.versionproperty.FeatAddxhr._noVConsoleproperty toXMLHttpRequestobjects to customize whether a XHR should display in Network tab.
v2.1.0 (2016-06-29)
FeatAddvConsole.tool&vConsole.$helper functions, see Helper Functions.FeatPublic properties & methods of vConsole are available, see Public Properties & Methods.FixFix issue thaterrorinwindow.onerror()may be undefined.FixFix error thatxhr.statusmay be unavailable whenxhr.readyState < 4.
v2.0.1 (2016-06-16)
FixFix error that vConsole may not work at X5 browser engine.FixFix error thatlocalStorageis null in some kind of devices.FixFix boolean display error in Log tab.PerfImprove UI in Android.
v2.0.0 (2016-06-05)
FeatRebuild completely, support custom plugin, see Plugin: Getting Started.FeatSupport execute JS command line in Log tab.FeatSupport circular structure object in Log and System tab.FeatSupport viewing request headers and response in Network tab.PerfSwitch button will not be dragged out of screen.PerfAuto print User Agent in System tab.PerfShow log's time in Log and System tab.FixFix issue that getDate() returns a wrong date.FixFix issue that sync AJAX becomes async AJAX.
v1.x.x
v1.3.0 (2016-05-20)
FeatSupport Drag and Drop switch button.FixFix initialization failure when loaded asynchronously.
v1.2.1 (2016-05-16)
FixFix data lost when sending a POST request.
v1.2.0 (2016-05-11)
FeatAdd network panel.FeatDeprecatevConsole.ready()method.PerfDisplay formatted Object & Array variable.PerfAdd English README and CHANGELOG.PerfImprove UI.
v1.1.0 (2016-05-06)
FeatSupportwindow.onerror()to catch exceptions and errors.FeatSupport[default|system|...]string to print logs to specific panel.
v1.0.5 (2016-04-29)
FixFix webpack compilation.FixFix XSS when printing HTML string.
v1.0.4 (2016-04-28)
FixFix themainpath inpackage.json.PerfUpdate demo pages.
v1.0.2 (2016-04-27)
- Initial release.