feat:node-modules
This commit is contained in:
535
node_modules/vconsole/CHANGELOG.md
generated
vendored
Normal file
535
node_modules/vconsole/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,535 @@
|
||||
English | [简体中文](./CHANGELOG_CN.md)
|
||||
|
||||
## 3.15.1 (2023-06-01)
|
||||
|
||||
- `Feat(Netwrk)` Add new option `network.ignoreUrlRegExp` to skip some requests. (PR #623)
|
||||
- `Fix(Core)` Fix prototype pollution in `vConsole.setOption()`. (issue #616 #621)
|
||||
- `Fix(Core)` Fix plugin event `ready` triggering before its HTML finishes rendering. (issue #591)
|
||||
- `Fix(Log)` Reset group state when `console.clear()` is called. (issue #611)
|
||||
- `Fix(Log)` Compatible with iOS (less than 13.4) that does not support `ResizeObserver`, 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 by `sendBeacon`. (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 for `console.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)` Use `curl` instead of `url` as 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 setting `pluginOrder` option. (issue #559)
|
||||
- `Fix(Core)` Fix intervention error caused by `preventDefault` in `Touch` events. (issue #546)
|
||||
- `Fix(Log)` Fix `window.onerror` missing line breaks.
|
||||
- `Fix(Log)` Fix unclickable `vc-cmd-clear-btn` on 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)` Fix `Fetch` stays in pending status when `window` is proxied. (issue #556)
|
||||
- `Fix(Storage)` Fix storage pannel sorting error when setting `storage.defaultStorages` option. (issue #560)
|
||||
- `Chore` Add option `env['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)` Fix `resp.body` undefined error. (issue #531)
|
||||
- `Fix(Network)` Fix missing Request Headers when `xhr.setRequestHeader` is overwritten. (issue #533)
|
||||
- `Chore` Update 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 that `console.time | console.timeEnd` do not output log. (issue #523)
|
||||
- `Fix(Element)` Fix `undefined is not an object` error when updating attributes. (issue #526)
|
||||
- `Fix(Network)` Do not proxy response body reader when response is done.
|
||||
- `Chore` Fix 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)` Fix `response.size` error.
|
||||
|
||||
|
||||
## 3.14.2 (2022-03-25)
|
||||
|
||||
- `Fix(Network)` Remove debugging console.log.
|
||||
- `Chore` Drop `console.log` in Webpack process to ensure that no debugging logs appear in release version.
|
||||
- `Chore` Add new build command to compile files in different scenarios.
|
||||
|
||||
|
||||
## 3.14.1 (2022-03-24)
|
||||
|
||||
- `Fix(Network)` Fix `responseSize` error when `readyState === 3`.
|
||||
|
||||
|
||||
## 3.14.0 (2022-03-23)
|
||||
|
||||
- `Feat(Core)` Add new option `pluginOrder` to adjust the order of built-in and custom plugins, see [Public Properties & Methods](./doc/public_properties_methods.md).
|
||||
- `Feat(Core)` Panel will auto scroll to previous position when switching plugin panel.
|
||||
- `Feat(Network)` Add response size.
|
||||
- `Feat(Network)` Add support for `transfer-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 prevent `XMLHttpRequest | fetch` overwriting by other request libraries (like Axios).
|
||||
|
||||
|
||||
## 3.13.0 (2022-03-15)
|
||||
|
||||
- `Feat(Log)` Add new option `log.showTimestamps`, 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.
|
||||
- `Chore(Core)` Fix type declaration errors caused by vendors.
|
||||
|
||||
|
||||
## 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](./doc/public_properties_methods.md).
|
||||
- `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.
|
||||
|
||||
|
||||
## 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)` Fix `init.body` parameter problem. (issue #500)
|
||||
|
||||
|
||||
## 3.11.0 (2021-12-30)
|
||||
|
||||
- `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)
|
||||
- `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 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)
|
||||
|
||||
|
||||
## 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)
|
||||
|
||||
|
||||
## 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)
|
||||
|
||||
|
||||
## 3.9.4 (2021-10-26)
|
||||
|
||||
- `Refactor(Core)` Add Typescript declaration to `VConsole` class.
|
||||
|
||||
|
||||
## 3.9.3 (2021-10-22)
|
||||
|
||||
- `Fix(Network)` Fix `Cannot read property 'setAttribute' of null` error when call `setOption()` before init. (PR #453 by @Zhangstring)
|
||||
- `Fix(Network)` Fix `Fetch` error when iOS < 11. (PR #457 by @zimv)
|
||||
- `Chore` Generate `.d.ts` declarations when built. (RP #433 by @ManiaciaChao)
|
||||
- `Chore` Remove `./dist` from Git tracking.
|
||||
|
||||
|
||||
## 3.9.1 (2021-07-27)
|
||||
|
||||
- `Fix(Log)` Fix command input style. (PR #437 by @FredZeng)
|
||||
- `Fix(Storage)` Fix `globalThis` error. (issue #438 #439)
|
||||
- `Chore` Fix `const` `let` error 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](https://github.com/vadxq/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 `.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)
|
||||
- `Fix(Network)` Fix error when using `Request` as `Fetch`'s parameter. (PR #428 by @tatsunoneko)
|
||||
- `Fix(Network)` Display formatted key-value list when `POST` a JSON string. (issue #425)
|
||||
- `Style` Wrap LESS math operations. (PR #426 by @ManiaciaChao)
|
||||
- `Chore` Fix `yarn serve` error. (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)
|
||||
- `Chore` Remove `exclude: node_modules` option in babel-loader to be compatible with ES5. (issue #404, #407)
|
||||
- `Refactor(Log)` Convert Log & System panel to `.ts` file.
|
||||
|
||||
|
||||
## 3.8.0 (2021-06-23)
|
||||
|
||||
- `Feat(Log)` Show resource (image/video/link/script) loading error log. (PR #411 by @zimv)
|
||||
- `Chore` Add `target: ['web', 'es5']` to Webpack to avoid compatibility issues. (issue #404)
|
||||
- `Fix(Network)` Fix error when `new 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 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.
|
||||
|
||||
|
||||
## 3.6.1 (2021-05-24)
|
||||
|
||||
- `Fix(Network)` Fix "Invalid base URL" error. (PR #402)
|
||||
|
||||
|
||||
## 3.6.0 (2021-05-21)
|
||||
|
||||
- `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(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(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.
|
||||
|
||||
|
||||
## 3.5.1 (2021-05-07)
|
||||
|
||||
- `Chore(Babel)` Fix incorrect `catch` built 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](https://github.com/Zippowxk/vue-vconsole-devtools). (by @Zippowxk)
|
||||
- `Perf(System)` Rename "System" field to "Client", and add `MacOS` version.
|
||||
- `Fix(Log)` Use natural sorting to sort object and array's keys. (issue #372)
|
||||
- `Fix(Network)` Fix JSON parse error when `contentType` is `text/html`. (by @zimv)
|
||||
- `Fix(Network)` Fix `disableLogScrolling` not working in Network panel. (issue #282, #379)
|
||||
|
||||
|
||||
## v3.4.1 (2021-04-09)
|
||||
|
||||
- `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(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(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(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 on `window DOMContentLoaded` instead of `window 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 (like `console.log('[foo]', 'bar')`) will not display in Log tab.
|
||||
|
||||
|
||||
## v3.2.2 (2019-01-17)
|
||||
|
||||
- `Feat` Add console command prompt. (by @65147400)
|
||||
- `Feat` Add SessionStorage support in Storage tab. (by @hkc452)
|
||||
- `Fix` Fix `JSON.stringify` function which was incorrectly rewritten.
|
||||
- `Fix` Fix `logNumber` bug which was not reset when clear logs. (by @liuyuekeng)
|
||||
- `Fix` Fix unencoded HTML tag in Network tab. (by @mokang)
|
||||
- `Fix` Fix possible crash when decode content in Storage tab. (by @wolfsilver)
|
||||
- `Fix` Fix CSP buy cause by `nonce` attribute. (by @scotthuang)
|
||||
- `Perf` Add bottom safe area to adapt to full screen such as iPhone X. (by @dingyi1993)
|
||||
|
||||
|
||||
## v3.2.0 (2018-04-10)
|
||||
|
||||
- `Feat` Support `console.time()` and `console.timeEnd()`.
|
||||
- `Feat` Add `disableLogScrolling` (in `vConsole.option`).
|
||||
- `Fix` Fix `setOption()` error.
|
||||
- `Fix` Fix cookies' value wrong display.
|
||||
- `Fix` Fix "Uncaught InvalidStateError". (by @fireyy)
|
||||
|
||||
|
||||
## v3.1.0 (2017-12-27)
|
||||
|
||||
- `Feat` Add `vConsole.showSwitch()` and `vConsole.hideSwitch()` methods, see [Public Properties & Methods](./doc/public_properties_methods.md).
|
||||
- `Feat` Add `onReady` and `onClearLog` callback function to `vConsole.option`.
|
||||
- `Feat` Auto clear logs when `console.clear()` is called.
|
||||
- `Fix` Fix `\r` error when build in Windows.
|
||||
- `Fix` Fix `Symbol` error in iOS8 or other old OS.
|
||||
|
||||
|
||||
## v3.0.0 (2017-09-27)
|
||||
|
||||
Basic:
|
||||
|
||||
- `Feat` Require manual init vConsole `var vConsole = new VConsole(option)`.
|
||||
- `Feat` Add configuaration `vConsole.option`, which can be set when `new VConsole` or `setOption(key, value)`.
|
||||
- `Feat` Support for custom loading of default built-in plugins by using `defaultPlugins` in the above option.
|
||||
- `Feat` Add `setOption(key, value)` method.
|
||||
- `Perf` Support CSP rule `unsafe-eval` and `unsafe-inline`.
|
||||
- `Perf` Optimize `font-size` when `initial-scale < 1`.
|
||||
|
||||
Log plugin:
|
||||
|
||||
- `Feat` Support `maxLogNumber` option to limit maximum log number.
|
||||
- `Fix` Fix the crash caused by printing large objects.
|
||||
- `Perf` 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:
|
||||
|
||||
- `Feat` Support `Query String Parameters` and `Form Data`.
|
||||
- `Perf` Auto format JSON response.
|
||||
- `Fix` Fix bug that XHR status is always "Pending" when using 3rd HTTP libraries.
|
||||
|
||||
Plugins:
|
||||
|
||||
- `Feat` Plugins can get vConsole instance by `this.vConsole` on/after `init` event is called.
|
||||
- `Feat` Add `updateOption` event to detect `vConsole.option` changes.
|
||||
- `Feat` Add Element tab as a built-in plugin.
|
||||
- `Feat` Add Storage tab as a built-in plugin.
|
||||
|
||||
|
||||
|
||||
## v2.x.x
|
||||
|
||||
## v2.5.2 (2016-12-27)
|
||||
|
||||
- `Fix` Catch errors when eval custom commands in Log tab.
|
||||
|
||||
|
||||
## v2.5.1 (2016-10-18)
|
||||
|
||||
- `Fix` Fix `scrollHeight` error in some cases.
|
||||
- `Fix` Fix flex layout in iOS 8 devices.
|
||||
- `Perf` Performance enhancement.
|
||||
|
||||
|
||||
## v2.5.0 (2016-09-28)
|
||||
|
||||
- `Feat` Add `vConsole.removePlugin()` method, see [Public Properties & Methods](./doc/public_properties_methods.md).
|
||||
- `Feat` Add `remove` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
|
||||
- `Perf` Disable page scrolling while vConsole is scrolling.
|
||||
- `Fix` Fix `window.onerror()` typo.
|
||||
|
||||
|
||||
## v2.4.0 (2016-08-31)
|
||||
|
||||
- `Feat` Add `addTopBar` plugin event, see [Plugin: Event List](./doc/plugin_event_list.md).
|
||||
- `Feat` Add log type filter to Log & System tab.
|
||||
- `Perf` Log list will not automatically scroll to bottom while printing new logs if the viewport is not at the end of list.
|
||||
- `Perf` 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.
|
||||
|
||||
|
||||
## v2.3.1 (2016-08-16)
|
||||
|
||||
- `Fix` Replace custom `tap` event (in V2.3.0) with `click` event (still support fast response) to prevent conflicts.
|
||||
- `Perf` Remove `now` item and add `navigationStart` time in System tab.
|
||||
|
||||
|
||||
## v2.3.0 (2016-08-15)
|
||||
|
||||
- `Feat` Objects or Arrays can be expended layer by layer.
|
||||
- `Feat` All object's properties, including private properties, can be enumerable now.
|
||||
- `Perf` Support `tap` event within vConsole's DOM container to speed up `click` event.
|
||||
|
||||
|
||||
## v2.2.1 (2016-08-08)
|
||||
|
||||
- `Perf` Add complete performance timing log to System tab.
|
||||
- `Feat` Add third-party plugin list to README.
|
||||
|
||||
|
||||
## v2.2.0 (2016-07-13)
|
||||
|
||||
- `Feat` Add `vConsole.version` property.
|
||||
- `Feat` Add `xhr._noVConsole` property to `XMLHttpRequest` objects to customize whether a XHR should display in Network tab.
|
||||
|
||||
|
||||
## v2.1.0 (2016-06-29)
|
||||
|
||||
- `Feat` Add `vConsole.tool` & `vConsole.$` helper functions, see [Helper Functions](./doc/helper_functions.md).
|
||||
- `Feat` Public properties & methods of vConsole are available, see [Public Properties & Methods](./doc/public_properties_methods.md).
|
||||
- `Fix` Fix issue that `error` in `window.onerror()` may be undefined.
|
||||
- `Fix` Fix error that `xhr.status` may be unavailable when `xhr.readyState < 4`.
|
||||
|
||||
|
||||
## v2.0.1 (2016-06-16)
|
||||
|
||||
- `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.
|
||||
- `Perf` Improve UI in Android.
|
||||
|
||||
|
||||
## v2.0.0 (2016-06-05)
|
||||
|
||||
- `Feat` Rebuild completely, support custom plugin, see [Plugin: Getting Started](./doc/plugin_getting_started.md).
|
||||
- `Feat` Support execute JS command line in Log tab.
|
||||
- `Feat` Support circular structure object in Log and System tab.
|
||||
- `Feat` Support viewing request headers and response in Network tab.
|
||||
- `Perf` Switch button will not be dragged out of screen.
|
||||
- `Perf` Auto print User Agent in System tab.
|
||||
- `Perf` 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.
|
||||
|
||||
|
||||
|
||||
# v1.x.x
|
||||
|
||||
## v1.3.0 (2016-05-20)
|
||||
|
||||
- `Feat` Support Drag and Drop switch button.
|
||||
- `Fix` Fix initialization failure when loaded asynchronously.
|
||||
|
||||
|
||||
## v1.2.1 (2016-05-16)
|
||||
|
||||
- `Fix` Fix data lost when sending a POST request.
|
||||
|
||||
|
||||
## v1.2.0 (2016-05-11)
|
||||
|
||||
- `Feat` Add network panel.
|
||||
- `Feat` Deprecate `vConsole.ready()` method.
|
||||
- `Perf` Display formatted Object & Array variable.
|
||||
- `Perf` Add English README and CHANGELOG.
|
||||
- `Perf` Improve UI.
|
||||
|
||||
|
||||
## v1.1.0 (2016-05-06)
|
||||
|
||||
- `Feat` Support `window.onerror()` to catch exceptions and errors.
|
||||
- `Feat` Support `[default|system|...]` string to print logs to specific panel.
|
||||
|
||||
|
||||
## v1.0.5 (2016-04-29)
|
||||
|
||||
- `Fix` Fix webpack compilation.
|
||||
- `Fix` Fix XSS when printing HTML string.
|
||||
|
||||
|
||||
## v1.0.4 (2016-04-28)
|
||||
|
||||
- `Fix` Fix the `main` path in `package.json`.
|
||||
- `Perf` Update demo pages.
|
||||
|
||||
|
||||
## v1.0.2 (2016-04-27)
|
||||
|
||||
- Initial release.
|
||||
533
node_modules/vconsole/CHANGELOG_CN.md
generated
vendored
Normal file
533
node_modules/vconsole/CHANGELOG_CN.md
generated
vendored
Normal file
@@ -0,0 +1,533 @@
|
||||
[English](./CHANGELOG.md) | 简体中文
|
||||
|
||||
## 3.15.1 (2023-06-01)
|
||||
|
||||
- `Feat(Netwrk)` 新增配置项 `network.ignoreUrlRegExp` 以跳过一些请求。 (PR #623)
|
||||
- `Fix(Core)` 修复 `vConsole.setOption()` 中可能存在的原型污染问题。 (issue #616 #621)
|
||||
- `Fix(Core)` 修复插件事件 `ready` 在插件完成渲染前就被触发的问题。 (issue #591)
|
||||
- `Fix(Log)` 修复调用 `console.clear()` 时没有重置 group 层级的问题。 (issue #611)
|
||||
- `Fix(Log)` 兼容 iOS(小于 13.4)不支持 `ResizeObserver` 的情况,代价是打印大批量日志可能会有性能问题。 (issue #610)
|
||||
- `Fix(Network)` 修复可能由 `sendBeacon` 引发的 "Cannot read property" 错误。 (issue #615)
|
||||
|
||||
|
||||
## 3.15.0 (2022-11-02)
|
||||
|
||||
- `Feat(Log)` 新增虚拟滚动列表以提升性能,并支持快速滚动到顶部/底部。 (PR #570)
|
||||
- `Feat(Log)` 新增对 `console.group(), console.groupCollapsed(), console.groupEnd()` 方法的支持。 (issue #545)
|
||||
- `Feat(Network)` 新增虚拟滚动列表以提升性能。
|
||||
- `Feat(Network)` 新增 request 的 "Start Time"(发起时间)。
|
||||
- `Feat(Network)` 使用 `curl` 格式作为 request 的复制内容,而非 `url`。 (issue #410)
|
||||
- `Fix(Storage)` 修复内容溢出的元素无法滑动的问题。 (issue #542)
|
||||
- `Fix(Core)` 修复 `<select>` 的点击事件问题。 (PR #577)
|
||||
|
||||
|
||||
## 3.14.7 (2022-09-23)
|
||||
|
||||
- `Perf(Log)` 优化打印日志时的性能。 (PR #567)
|
||||
- `Fix(Core)` 修复因设置 `pluginOrder` 导致插件面板排序错误的问题。 (issue #559)
|
||||
- `Fix(Core)` 修复因 `Touch` 事件中的 `preventDefault` 导致的 intervention 错误。 (issue #546)
|
||||
- `Fix(Log)` 修复 `window.onerror` 丢失换行的问题。
|
||||
- `Fix(Log)` 修复清除命令行按钮在 iOS Safari 中无法点击的问题。 (PR #564)
|
||||
- `Fix(Log)` 修复一处误判循环引用对象的笔误。 (issue #566)
|
||||
- `Fix(Log|Network)` 以标准 JSON 格式复制对象或数组。 (issue #547)
|
||||
- `Fix(Network)` 修复因 `window` 对象被代理导致 `Fetch` 一直为 pending 状态的问题。 (issue #556)
|
||||
- `Fix(Storage)` 修复因设置 `storage.defaultStorages` 导致 Storage 面板排序错误的问题。 (issue #560)
|
||||
- `Chore` 添加 `env['no-core-js']` 选项来停用构建时使用 core-js polyfill。 (PR #562)
|
||||
|
||||
|
||||
## 3.14.6 (2022-04-14)
|
||||
|
||||
- `Fix(Log)` 修复当销毁后再次初始化 vConsole 时失去追踪 logs 的问题。
|
||||
- `Fix(Network)` 修复 `resp.body` undefined 错误。 (issue #531)
|
||||
- `Fix(Network)` 修复 `xhr.setRequestHeader` 被覆盖改写时丢失 Request Headers 的问题。 (issue #533)
|
||||
- `Chore` 更新 NPM 依赖。
|
||||
|
||||
|
||||
## 3.14.5 (2022-04-06)
|
||||
|
||||
- `Fix(Core)` 修复极短时间内重复初始化 vConsole 导致的报错。 (issue #525)
|
||||
- `Fix(Log)` 修复 `console.time | console.timeEnd` 不输出日志的问题。 (issue #523)
|
||||
- `Fix(Element)` 修复更新 attributes 时引起的 `undefined is not an object` 错误。 (issue #526)
|
||||
- `Fix(Network)` 当请求完成后,不再代理 response body reader。
|
||||
- `Chore` 修复 Svelte 在 Windows 环境中未被 Babel 转义的问题。 (PR #528)
|
||||
|
||||
|
||||
## 3.14.4 (2022-03-31)
|
||||
|
||||
- `Fix(Network)` 修复回包超大时导致的卡死问题。 (issue #515)
|
||||
- `Fix(Network)` 修复 XHR 中缺失显示 Request Headers 的问题。 (issue #522)
|
||||
|
||||
|
||||
## 3.14.3 (2022-03-28)
|
||||
|
||||
- `Fix(Network)` 修复 `response.size` 错误。
|
||||
|
||||
|
||||
## 3.14.2 (2022-03-25)
|
||||
|
||||
- `Fix(Network)` 删除调试日志。
|
||||
- `Chore` 在构建时自动删除 `console.log` 以确保调试日志不会出现在正式版本中。
|
||||
- `Chore` 添加新的编译命令以编译出不同场景下的文件。
|
||||
|
||||
|
||||
## 3.14.1 (2022-03-24)
|
||||
|
||||
- `Fix(Network)` 修复当 `readyState === 3` 时的 `responseSize` 错误。
|
||||
|
||||
|
||||
## 3.14.0 (2022-03-23)
|
||||
|
||||
- `Feat(Core)` 新增配置项 `pluginOrder` 来调整插件面板的排序,见 [公共属性及方法](./doc/public_properties_methods_CN.md)。
|
||||
- `Feat(Core)` 切换插件面板时,面板会自动滚动到上次的位置。
|
||||
- `Feat(Network)` 新增显示 Response 的体积。
|
||||
- `Feat(Network)` 新增对 `transfer-encoding: chunked` 的支持,现在可记录流式回包(stream response)。
|
||||
- `Feat(Network)` 展示时裁剪过大的 Response 回包以提高渲染性能。
|
||||
- `Refactor(Network)` 提高网络记录的准确性,以避免被外部库(如 Axios)覆盖;方法是对 `XMLHttpRequest | fetch` 使用 Proxy。
|
||||
|
||||
|
||||
## 3.13.0 (2022-03-15)
|
||||
|
||||
- `Feat(Log)` 新增配置项 `log.showTimestamps`,见 [公共属性及方法](./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` 为空的问题。
|
||||
- `Chore(Core)` 修复由外部依赖库引起的 TypeScript 类型声明错误问题。
|
||||
|
||||
|
||||
## 3.12.0 (2022-02-17)
|
||||
|
||||
- `Feat(Core)` 新增静态属性 `VConsole.instance` 以获取实例化后的单例 vConsole 对象。
|
||||
- `Feat(Core)` 新增配置项 `storage.defaultStorages`,见 [公共属性及方法](./doc/public_properties_methods_CN.md)。
|
||||
- `Feat(Core)` 更新 `vConsole.setOption()` 用法:通过 `setOption('log.maxLogNumber', 20)` 来单独设置 `maxLogNumber` 字段,或通过 `setOption({ log: { maxLogNumber: 20 }})` 来覆盖 `log` 对象。
|
||||
- `Feat(Core)` 废弃一些配置项,参见下面。
|
||||
- `Fix(Plugin)` 修复插件事件 `renderTab` 没有渲染出视图的 bug。
|
||||
- `Fix(Storage)` 修复某些情况下的 Cookie 解析错误问题。 (issue #508, #509)
|
||||
|
||||
**废弃的配置项:**
|
||||
|
||||
- `maxLogNumber`:用 `option.log.maxLogNumber` 替代。
|
||||
- `maxNetworkNumber`:用 `option.network.maxNetworkNumber` 替代。
|
||||
- `onClearLog`:移除。
|
||||
|
||||
|
||||
## 3.11.2 (2022-01-20)
|
||||
|
||||
- `Feat(Storage)` 增加 "Clear" 按钮以批量删除所有 storage。 (issue #499)
|
||||
- `Fix(Storage)` 修复无法删除 cookies 的问题。 (issue #499)
|
||||
|
||||
|
||||
## 3.11.1 (2022-01-13)
|
||||
|
||||
- `Feat(Log)` 支持使用回车键提交命令行输入。 (issue #498)
|
||||
- `Fix(Network)` 修复 `init.body` 参数报错。 (issue #500)
|
||||
|
||||
|
||||
## 3.11.0 (2021-12-30)
|
||||
|
||||
- `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)
|
||||
- `Fix(Network)` 在所有 HTTP Methods 中都会展示 Request Payload,而非仅限于 POST。 (issue #493)
|
||||
- `Fix(Element)` 修复由于新增 Comment 节点导致的死循环问题。 (issue #491)
|
||||
|
||||
|
||||
## 3.10.1 (2021-12-23)
|
||||
|
||||
- `Feat(Network)` 格式化输出 response 中的 JSON 内容。 (issue #486)
|
||||
- `Fix(Style)` 当 `initial-scale !== 1` 时,避免面板随页面缩放大小。
|
||||
- `Fix(Core)` 修复 PC 模式下点击面板按钮无效的问题。 (issue #487)
|
||||
- `Fix(Network)` 当 Query/Payload/Headers 是对象或数组时,展示为结构化的 JSON 格式而非 `[object Object]`。
|
||||
- `Fix(Network)` 当某些情况下 XHR 对象被复用时,避免多次覆盖XHR对象的 `onreadystatechange` 以造成错误。 (issue #214)
|
||||
|
||||
|
||||
## 3.10.0 (2021-12-17)
|
||||
|
||||
> 这个版本中,我们重构了大部分核心逻辑,并且使用 Svelte 作为所有面板的视图层模板引擎。
|
||||
> 这带来了一些重大变化(Breaking changes),少数属性和方法无法保证向下兼容。
|
||||
> 如果你是 vConsole 插件开发者,应该关注这些变化。
|
||||
|
||||
**Breaking Changes:**
|
||||
|
||||
- `Refactor(Core|Log|Network|Element)` 使用 Svelte 作为所有视图的模板引擎。
|
||||
- `Refactor(Core)` **删除** `vConsole.(tabList | activedTab | $dom)` 属性。
|
||||
- `Refactor(Plugin)` **重命名** `vConsole.showTab(pluginID)` 为 `vConsole.showPlugin(pluginID)`。
|
||||
- `Refactor(Plugin)` **更新**插件事件 `addTopBar` 的配置参数 `{ data, onClick }`: `onClick` 会接收 2 个参数(之前是 0 个): `(event: Event, data?: any) => boolean`,其中 `data` 为上述配置参数的 `data` 字段。
|
||||
- `Feat(Core)` **删除**辅助函数 `vConsole.tool` 和 `vConsole.$`。
|
||||
|
||||
**Common Updates:**
|
||||
|
||||
- `Feat(Log)` 支持展示对象键值为 `Symbol` 类型的键值对。
|
||||
- `Feat(Log)` 命令行支持多级关键字提示。
|
||||
- `Feat(Log)` 支持使用 `%s, %d, %o` 来格式化展示字符串,并且优化了 `%c` 的 CSS 样式逻辑。
|
||||
- `Feat(Log)` 对存在大量键值的对象或数组,加入翻页逻辑以提升渲染性能,每 50 一页。
|
||||
- `Feat(Network)` Request 的属性值支持复制。
|
||||
- `Feat(Element)` 提升交互体验,选中的节点将会被高亮,并且展开/收起(Expand/Coolapse)基于选中的节点来进行。
|
||||
- `Feat(Style)` 样式标签会在 vConsole 初始化后才注入 `<head>` 中,并在 vConsole 销毁后会自动移除。
|
||||
- `Refactor(Storage)` 优化了部分交互体验。
|
||||
- `Fix(Network)` 当 `Fetch` 发生 Error 时,会 throw 到外部,以符合标准实现。 (issue #458)
|
||||
|
||||
## 3.9.5 (2021-11-10)
|
||||
|
||||
- `Style(Log)` 支持 `BigInt` 类型并更新 `Symbol` 类型的样式。
|
||||
- `Refactor(Style)` 在 vConsole 初始化时再懒加载 style 标签(而非 import 后就加载)。
|
||||
- `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)
|
||||
- `Fix(Network)` 修复潜在的由 `forEach` 引起的错误。 (issue #471)
|
||||
- `Chore` 转换 Svelte 代码产物到 ES5 标准,以避免 ES6 引发的构建问题。 (issue #468)
|
||||
|
||||
|
||||
## 3.9.4 (2021-10-26)
|
||||
|
||||
- `Refactor(Core)` 为 `VConsole` 类的方法参数添加 Typescript 声明.
|
||||
|
||||
|
||||
## 3.9.3 (2021-10-22)
|
||||
|
||||
- `Fix(Network)` 修复未完成初始化时调用 `setOption()` 导致的 `Cannot read property 'setAttribute' of null`错误。 (PR #453 by @Zhangstring)
|
||||
- `Fix(Network)` 修复 iOS < 11 时产生的 `Fetch` 错误. (PR #457 by @zimv)
|
||||
- `Chore` 构建时自动生成 `.d.ts` 声明。 (RP #433 by @ManiaciaChao)
|
||||
- `Chore` 从 Git 版本控制中移除 `./dist` 目录。
|
||||
|
||||
|
||||
## 3.9.1 (2021-07-27)
|
||||
|
||||
- `Fix(Log)` 修正命令行输入框样式。 (PR #437 by @FredZeng)
|
||||
- `Fix(Storage)` 修复由 `globalThis` 引起的报错。 (issue #438 #439)
|
||||
- `Chore` 修复由 Svelte 引起的 `const` `let` 报错。 (PR #440 by @dellyoung)
|
||||
|
||||
|
||||
## 3.9.0 (2021-07-16)
|
||||
|
||||
- `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(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)
|
||||
- `Fix(Network)` 修复使用 `Request` 作为 `Fetch` 参数时的报错。 (PR #428 by @tatsunoneko)
|
||||
- `Fix(Network)` 当 `POST` 数据为一个 JSON 字符串时亦以 key-value 型键值表来显示数据。 (issue #425)
|
||||
- `style` 修正 LESS 数学运算符。 (PR #426 by @ManiaciaChao)
|
||||
- `Chore` 修复执行 `yarn serve` 的报错。 (issue #424)
|
||||
|
||||
|
||||
## 3.8.1 (2021-06-24)
|
||||
|
||||
- `Fix(Log)` 不再合并包含 object 或 array 的重复日志,以避免合并结构相同但取值不同的对象。
|
||||
- `Fix(Log)` 修复日志过滤器(Filter)在点选日志类型 tab 后不生效的问题。
|
||||
- `Fix(Network)` 修复 url 以 `//` 开头时产生的错误。 (PR #414 by @kooritea)
|
||||
- `Chore` 移除 babel-loader 的 `exclude: node_modules` 选项以避免第三方库的兼容性问题。 (issue #404, #407)
|
||||
- `Refactor(Log)` 转换 Log 和 System 面板为 `.ts` 文件。
|
||||
|
||||
|
||||
## 3.8.0 (2021-06-23)
|
||||
|
||||
- `Feat(Log)` 新增显示资源(image/video/link/script)加载失败报错。 (PR #411 by @zimv)
|
||||
- `Chore` 新增 Webpack 配置 `target: ['web', 'es5']` 以避免兼容性问题。 (issue #404)
|
||||
- `Fix(Network)` 修复 `new URL('x', undefined)` 第二参数为 `undefined` 时的报错。 (PR #409 by @moonkop)
|
||||
|
||||
|
||||
## 3.7.0 (2021-05-27)
|
||||
|
||||
- `Feat(Storage)` 对于大体积 value 先展示预览值,以避免堵塞渲染。 (issue #300)
|
||||
- `Feat(Storage)` 新增复制按钮、删除按钮。
|
||||
- `Feat(Core)` 当初始参数 `theme` 为空时,跟随系统默认主题色。
|
||||
- `Refactpr(Storage)` 转换 Storage 面板为 `.ts` 文件。
|
||||
- `Fix(Network)` 使用 `forEach` 而非 `.entries()` 来遍历 `headers` 以避免一些兼容性问题。 (issue #404)
|
||||
- `Fix(Network)` 修复 `Content-Type` 为空时导致的报错。
|
||||
|
||||
|
||||
## 3.6.1 (2021-05-24)
|
||||
|
||||
- `Fix(Network)` 修复 "Invalid base URL" 错误。 (PR #402)
|
||||
|
||||
|
||||
## 3.6.0 (2021-05-21)
|
||||
|
||||
- `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(Core)` 开始使用 TypeScript 重构代码。现在 Network 面板首先转成了 `.ts` 文件。
|
||||
- `Fix(Network)` 修复移除 Network 面板后没有恢复原生 `window.fetch()` 方法的问题。
|
||||
- `Fix(Storage)` 修复清除所有 cookie 时无法完全删除非顶级域名下的 cookie 的问题。 (issue #398)
|
||||
- `Fix(Element)` 修复当 element 的 `attributes` 或 `characterData` 变化时 element 被嵌套渲染的问题。 (issue #399)
|
||||
|
||||
|
||||
## 3.5.2 (2021-05-13)
|
||||
|
||||
- `Chore` 升级到 Webpack5,并升级所有 NPM packages 到最新版本。
|
||||
- `Fix(Core)` 修复因 `selection` 选区引起的点击事件无效问题。
|
||||
- `Fix(Log)` 当日志数量达到 `maxLogNumber` 上限时清空对应的 `cachedLogs`。
|
||||
- `Fix(Log)` 修复 XSS 漏洞。
|
||||
|
||||
|
||||
## 3.5.1 (2021-05-07)
|
||||
|
||||
- `Chore(Babel)` 修复由 `catch` 写法引起的 babel-loader 构建问题。 (PR #392 by @myl0204)
|
||||
- `Fix(Network)` 修复语法笔误。 (PR #388 by @xovel)
|
||||
|
||||
|
||||
## 3.5.0 (2021-04-28)
|
||||
|
||||
- `Feature(Log)` 新增复制单行日志的能力。 (by @akai)
|
||||
- `Feature(Plugin)` 新第三方插件 [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools)。 (by @Zippowxk)
|
||||
- `Perf(System)` 将 "System" 字段改名为 "Client",并新增 `MacOS` 系统版本号。
|
||||
- `Fix(Log)` 使用自然排序来排序 object 和 array 的键值。 (issue #372)
|
||||
- `Fix(Network)` 修复当 `contentType` 为 `text/html` 时潜在的 JSON 错误。 (by @zimv)
|
||||
- `Fix(Network)` 修复 `disableLogScrolling` 参数在 Network 面板中不生效的问题。 (issue #282, #379)
|
||||
|
||||
|
||||
## v3.4.1 (2021-04-09)
|
||||
|
||||
- `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(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(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(Core)` 修复若干小问题。(#267 by @Molunerfinn, #272 by @domom)
|
||||
- `Fix(Storage)` 修复当 cookie `path=/` 或设置了 `domain` 时删除失败的问题。(#264 by @qianxinfeng)
|
||||
- `Perf(Core)` 在 `window DOMContentLoaded` 而不是 `window load` 时显示 vConsole。
|
||||
|
||||
|
||||
## v3.3.2 (2019-07-04)
|
||||
|
||||
- `Feature(Core)` 增加 TypeScript 声明文件。(by @jas0ncn)
|
||||
- `Fix(Core)` 修复开关按钮拖动后位置不对的问题。(by @rexschuang)
|
||||
- `Fix(Core)` 修复若干小问题。(by @stenders)
|
||||
- `Fix(Log)` 不在列表底部时避免自动滚动。(by @ele828)
|
||||
|
||||
|
||||
## v3.3.0 (2019-02-02)
|
||||
|
||||
- `Feature(Log)` 新增自动合并相同日志的能力。频繁输出相同日志时不再会被刷屏。
|
||||
- `Fix(Log)` 修复格式化日志(如 `console.log('[foo]', 'bar')`)无法显示到 Log 面板的问题。
|
||||
|
||||
|
||||
## v3.2.2 (2019-01-17)
|
||||
|
||||
- `Feature` 新增控制台输入提示。 (by @65147400)
|
||||
- `Feature` 支持 SessionStorage。 (by @hkc452)
|
||||
- `Fix` 修复 `JSON.stringify` 函数被错误地改写的问题。
|
||||
- `Fix` 修复清空日志时没有重置 `logNumber` 的问题。 (by @liuyuekeng)
|
||||
- `Fix` 修复 Network 面板中 HTML 标签未被 encode 的问题。 (by @mokang)
|
||||
- `Fix` 修复 Storage 面板 decode 内容时可能会导致崩溃的问题。 (by @wolfsilver)
|
||||
- `Fix` 修复 CSP 签名获取失败问题。 (by @scotthuang)
|
||||
- `Perf` 增加底部安全区域,适配 iPhone X 等全面屏。 (by @dingyi1993)
|
||||
|
||||
|
||||
## v3.2.0 (2018-04-10)
|
||||
|
||||
- `Feature` 支持 `console.time()` 及 `console.timeEnd()`。
|
||||
- `Feature` 新增 `disableLogScrolling` 配置项(`vConsole.option`),用于禁止新日志引起的自动滚动到底部。
|
||||
- `Fix` 修复初始化后立即调用 `setOption` 引起的错误。
|
||||
- `Fix` 修复 cookies 显示错误的问题。
|
||||
- `Fix` 修复 "Uncaught InvalidStateError" 错误。 (by @fireyy)
|
||||
|
||||
|
||||
## v3.1.0 (2017-12-27)
|
||||
|
||||
- `Feature` 新增 `vConsole.showSwitch()` 及 `vConsole.hideSwitch()` 方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。
|
||||
- `Feature` 新增 `onReady` 及 `onClearLog` 回调方法,位于 `vConsole.option`。
|
||||
- `Feature` 调用 `console.clear` 时将自动清除面板中的日志。
|
||||
- `Fix` 修复 Windows 下构建引起的 `\r` 转义问题。
|
||||
- `Fix` 修复 iOS8 或其它低版本系统中的 `Symbol` 错误。
|
||||
|
||||
|
||||
## v3.0.0 (2017-09-27)
|
||||
|
||||
基础:
|
||||
|
||||
- `Feature` 需要手动初始化 vConsole:`var vConsole = new VConsole(option)`。
|
||||
- `Feature` 新增 `vConsole.option` 配置项,配置项可在实例化时传入,也可通过 `vConsole.setOption(key, value)` 更新。
|
||||
- `Feature` 支持自定义按需加载内置插件,配置项为 `option` 里的 `defaultPlugins` 字段。
|
||||
- `Perf` 支持 CSP 规则 `unsafe-eval` 和 `unsafe-inline`。
|
||||
- `Perf` 优化 `initial-scale < 1` 时的 `font-size`。
|
||||
|
||||
Log 插件:
|
||||
|
||||
- `Feature` 支持 `maxLogNumber` 配置项,以控制面板内展示的最多日志数量。
|
||||
- `Fix` 修复打印大型复杂 object 时引起的崩溃问题。
|
||||
- `Perf` 只有 `console.log('[system]', xxx)` 这种将 `[system]` 放在第一位参数的写法,才会输出到 System 面板。因此可以规避 `[foo] bar` 这类格式无法正确打印到 Log 面板的问题。
|
||||
|
||||
Network 插件:
|
||||
|
||||
- `Feature` 新增 `Query String Parameters` 和 `Form Data` 两栏,以展示 GET 和 POST 的参数。
|
||||
- `Perf` 自动格式化展示 JSON 类型的回包。
|
||||
- `Fix` 修复 status 一直为 "Pending" 的问题。这种问题一般是引入了第三方的 HTTP 库而引起的。
|
||||
|
||||
|
||||
插件模块:
|
||||
|
||||
- `Feature` 在 `init` 事件触发时/之后,插件实例内可以通过 `this.vConsole` 来获取到 vConsole 的对象实例。
|
||||
- `Feature` 新增 `updateOption` 事件,以监测 `vConsole.option` 的更新。
|
||||
- `Feature` 新增 Element 面板作为默认的内置插件。
|
||||
- `Feature` 新增 Storage 面板作为默认的内置插件。
|
||||
|
||||
|
||||
|
||||
## v2.x.x
|
||||
|
||||
## v2.5.2 (2016-12-27)
|
||||
|
||||
- `Fix` 捕获执行自定义命令行时发生的错误。
|
||||
|
||||
|
||||
## v2.5.1 (2016-10-18)
|
||||
|
||||
- `Fix` 修复一些情况下的 `scrollHeight` 错误。
|
||||
- `Fix` 修正 iOS 8 下的 flex 布局问题。
|
||||
- `Perf` 性能增强。
|
||||
|
||||
|
||||
## v2.5.0 (2016-09-28)
|
||||
|
||||
- `Feature` 新增 `vConsole.removePlugin()` 方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。
|
||||
- `Feature` 新增 `remove` 插件事件,请查阅[插件:Event 事件列表](./doc/plugin_event_list_CN.md)。
|
||||
- `Perf` 页面不会随着 vConsole 的滚动而滚动。
|
||||
- `Fix` 修正 `window.onerror()` 内的函数调用笔误。
|
||||
|
||||
|
||||
## v2.4.0 (2016-08-31)
|
||||
|
||||
- `Feature` 新增 `addTopBar` 插件事件,请查阅[插件:Event 事件列表](./doc/plugin_event_list_CN.md)。
|
||||
- `Feature` 新增日志类型筛选功能。
|
||||
- `Perf` 若 log 列表不处于最底部,当打印新 log 时,列表则不会自动滚动到最新 log 处。
|
||||
- `Perf` 优化了一些 UI 样式问题。
|
||||
- `Fix` 修正打印 object 类型 log 时的 XSS 问题。
|
||||
- `Fix` 在某些特殊情况中,开关按钮将不会再被定位出页面外。
|
||||
|
||||
|
||||
## v2.3.1 (2016-08-16)
|
||||
|
||||
- `Fix` 删除 V2.3.0 中的 `tap` 事件,恢复为 `click` 事件(依旧支持快速响应),以避免冲突。
|
||||
- `Perf` 删除 System tab 中的 `now` 项目并新增 `navigationStart` 时间戳。
|
||||
|
||||
|
||||
## v2.3.0 (2016-08-15)
|
||||
|
||||
- `Feature` 支持逐级展开 Object 或 Array 的子元素。
|
||||
- `Feature` 支持显示 Object 内的不可枚举属性。
|
||||
- `Perf` 支持在 vConsole 的 DOM 容器内使用 `tap` 事件以代替 `click` 事件。
|
||||
|
||||
|
||||
## v2.2.1 (2016-08-08)
|
||||
|
||||
- `Feature` 在 System 面板中添加完整的 performance timing 测速点。
|
||||
- `Perf` 在 README 中新增第三方插件列表。
|
||||
|
||||
|
||||
## v2.2.0 (2016-07-13)
|
||||
|
||||
- `Feature` 新增 `vConsole.version` 属性,以获取当前版本号。
|
||||
- `Feature` 新增 `XMLHttpRequest` 的 `xhr._noVConsole` 属性,以控制一个网络请求是否显示在 Network tab 中。
|
||||
|
||||
|
||||
## v2.1.0 (2016-06-29)
|
||||
|
||||
- `Feature` 新增 `vConsole.tool` 及 `vConsole.$` 辅助函数,请查阅[辅助函数](./doc/helper_functions_CN.md)。
|
||||
- `Feature` 公开部分 vConsole 的属性及方法,请查阅[公共属性及方法](./doc/public_properties_methods_CN.md)。
|
||||
- `Fix` 修复 `window.onerror()` 中 `error` 可能为空而导致堆栈读取错误的问题。
|
||||
- `Fix` 修复当 `xhr.readyState < 4` 时读取 `xhr.status` 可能导致错误的问题。
|
||||
|
||||
|
||||
## v2.0.1 (2016-06-16)
|
||||
|
||||
- `Fix` 修复 vConsole 可能无法运行在 X5 内核浏览器的问题。
|
||||
- `Fix` 修复某些设备不支持 `localStorage` 的问题。
|
||||
- `Fix` 修复布尔值在 Log 面板展示不正确的问题。
|
||||
- `Perf` 优化在 Android 设备下的 UI 表现。
|
||||
|
||||
|
||||
## v2.0.0 (2016-06-05)
|
||||
|
||||
- `Feature` 完全重构,支持自定义插件,请查阅[插件:入门](./doc/plugin_getting_started_CN.md)。
|
||||
- `Feature` 支持手动输入、执行命令行。
|
||||
- `Feature` 支持打印循环引用的对象。
|
||||
- `Feature` 支持在 Network 面板查看请求的 headers 和 response。
|
||||
- `Perf` 开关按钮不会再被拖出屏幕外部。
|
||||
- `Perf` 自动在 System 面板打印 User Agent。
|
||||
- `Perf` 打印 log 时会显示时间。
|
||||
- `Fix` 修复 getDate() 返回错误时间的问题。
|
||||
- `Fix` 修复同步 AJAX 变异步 AJAX 的问题。
|
||||
|
||||
|
||||
|
||||
# v1.x.x
|
||||
|
||||
## v1.3.0 (2016-05-20)
|
||||
|
||||
- `Feature` 支持拖拽右下角开关。
|
||||
- `Fix` 修复异步加载导致初始化失败的问题。
|
||||
|
||||
## v1.2.1 (2016-05-16)
|
||||
|
||||
- `Fix` 修复发送 POST 请求时丢失数据的问题。
|
||||
|
||||
|
||||
## v1.2.0 (2016-05-11)
|
||||
|
||||
- `Feature` 新增网络面板,可展示 AJAX 请求。
|
||||
- `Feature` 废弃 `vConsole.ready()` 方法。
|
||||
- `Perf` 支持 Object/Array 结构化展示,不再以 JSON 字符串输出。
|
||||
- `Perf` 新增英文 README 及 CHANGELOG 文档。
|
||||
- `Perf` 优化 UI 体验。
|
||||
|
||||
|
||||
## v1.1.0 (2016-05-06)
|
||||
|
||||
- `Feature` 支持 `window.onerror()` 的异常信息捕获。
|
||||
- `Feature` 支持 `[default|system|...]` 日志格式,将 log 输出到指定面板。
|
||||
|
||||
|
||||
## v1.0.5 (2016-04-29)
|
||||
|
||||
- `Fix` 修复 webpack 编译失败的问题。
|
||||
- `Fix` 修复打印 HTML 字符串可能导致的 XSS 问题。
|
||||
|
||||
|
||||
## v1.0.4 (2016-04-28)
|
||||
|
||||
- `Fix` 修复 `package.json` 的 main 路径。
|
||||
- `Perf` 优化 example 的 demo 页面。
|
||||
|
||||
|
||||
## v1.0.2 (2016-04-27)
|
||||
|
||||
- 初始发布。
|
||||
9
node_modules/vconsole/LICENSE
generated
vendored
Normal file
9
node_modules/vconsole/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
Tencent is pleased to support the open source community by making vConsole available.
|
||||
|
||||
Copyright (C) 2017 THL A29 Limited, a Tencent company. All rights reserved.
|
||||
|
||||
If you have downloaded a copy of the vConsole binary from Tencent, please note that the vConsole binary is licensed under the MIT License.
|
||||
|
||||
If you have downloaded a copy of the vConsole source code from Tencent, please note that vConsole source code is licensed under the MIT License, except for the third-party components listed below which are subject to different license terms. Your integration of vConsole into your own projects may require compliance with the MIT License, as well as the other licenses applicable to the third-party components included within vConsole.
|
||||
|
||||
A copy of the MIT License is included in this file.
|
||||
196
node_modules/vconsole/README.md
generated
vendored
Normal file
196
node_modules/vconsole/README.md
generated
vendored
Normal file
@@ -0,0 +1,196 @@
|
||||
English | [简体中文](./README_CN.md)
|
||||
|
||||
vConsole
|
||||
===
|
||||
|
||||
A lightweight, extendable front-end developer tool for mobile web page.
|
||||
|
||||
vConsole is framework-free, you can use it in Vue or React or any other framework application.
|
||||
|
||||
Now vConsole is the official debugging tool for WeChat Miniprograms.
|
||||
|
||||
---
|
||||
|
||||
## Features
|
||||
|
||||
- Logs: `console.log|info|error|...`
|
||||
- Network: `XMLHttpRequest`, `Fetch`, `sendBeacon`
|
||||
- Element: HTML elements tree
|
||||
- Storage: `Cookies`, `LocalStorage`, `SessionStorage`
|
||||
- Execute JS command manually
|
||||
- Custom plugins
|
||||
|
||||
For details, please see the screenshots below.
|
||||
|
||||
---
|
||||
|
||||
## Release Notes
|
||||
|
||||
Latest version: [](https://www.npmjs.com/package/vconsole)
|
||||
|
||||
Detailed release notes for each version are available on [Changelog](./CHANGELOG.md).
|
||||
|
||||
---
|
||||
|
||||
## Guide
|
||||
|
||||
See [Tutorial](./doc/tutorial.md) for more usage details.
|
||||
|
||||
For installation, there are 2 primary ways of adding vConsole to a project:
|
||||
|
||||
#### Method 1: Using npm (Recommended)
|
||||
|
||||
```bash
|
||||
$ npm install vconsole
|
||||
```
|
||||
|
||||
```javascript
|
||||
import VConsole from 'vconsole';
|
||||
|
||||
const vConsole = new VConsole();
|
||||
// or init with options
|
||||
const vConsole = new VConsole({ theme: 'dark' });
|
||||
|
||||
// call `console` methods as usual
|
||||
console.log('Hello world');
|
||||
|
||||
// remove it when you finish debugging
|
||||
vConsole.destroy();
|
||||
```
|
||||
|
||||
#### Method 2: Using CDN in HTML:
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||
<script>
|
||||
// VConsole will be exported to `window.VConsole` by default.
|
||||
var vConsole = new window.VConsole();
|
||||
</script>
|
||||
```
|
||||
|
||||
Available CDN:
|
||||
|
||||
- https://unpkg.com/vconsole@latest/dist/vconsole.min.js
|
||||
- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js
|
||||
|
||||
---
|
||||
|
||||
## Preview
|
||||
|
||||
[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html)
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## Screenshots
|
||||
|
||||
### Overview
|
||||
|
||||
<details>
|
||||
<summary>Light theme</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Dark theme</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Log Panel
|
||||
|
||||
<details>
|
||||
<summary>Log styling</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Command line</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### System Panel
|
||||
|
||||
<details>
|
||||
<summary>Performance info</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Output logs to different panel</summary>
|
||||
|
||||
```javascript
|
||||
console.log('output to Log panel.')
|
||||
console.log('[system]', 'output to System panel.')
|
||||
```
|
||||
</details>
|
||||
|
||||
### Network Panel
|
||||
|
||||
<details>
|
||||
<summary>Request details</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Element Panel
|
||||
|
||||
<details>
|
||||
<summary>Realtime HTML elements structure</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Storage Panel
|
||||
|
||||
<details>
|
||||
<summary>Add, edit, delete or copy Cookies / LocalStorage / SessionStorage</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## Documentation
|
||||
|
||||
vConsole:
|
||||
|
||||
- [Tutorial](./doc/tutorial.md)
|
||||
- [Public Properties & Methods](./doc/public_properties_methods.md)
|
||||
- [Builtin Plugin: Properties & Methods](./doc/plugin_properties_methods.md)
|
||||
|
||||
Custom Plugin:
|
||||
|
||||
- [Plugin: Getting Started](./doc/plugin_getting_started.md)
|
||||
- [Plugin: Building a Plugin](./doc/plugin_building_a_plugin.md)
|
||||
- [Plugin: Event List](./doc/plugin_event_list.md)
|
||||
|
||||
---
|
||||
|
||||
## Third-party Plugins
|
||||
|
||||
- [vConsole-sources](https://github.com/WechatFE/vConsole-sources)
|
||||
- [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin)
|
||||
- [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats)
|
||||
- [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools)
|
||||
- [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin)
|
||||
- [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole)
|
||||
|
||||
---
|
||||
|
||||
## Feedback
|
||||
|
||||
QQ Group: 497430533
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
[The MIT License](./LICENSE)
|
||||
199
node_modules/vconsole/README_CN.md
generated
vendored
Normal file
199
node_modules/vconsole/README_CN.md
generated
vendored
Normal file
@@ -0,0 +1,199 @@
|
||||
[English](./README.md) | 简体中文
|
||||
|
||||
vConsole
|
||||
===
|
||||
|
||||
一个轻量、可拓展、针对手机网页的前端开发者调试面板。
|
||||
|
||||
vConsole 是框架无关的,可以在 Vue、React 或其他任何框架中使用。
|
||||
|
||||
现在 vConsole 是微信小程序的官方调试工具。
|
||||
|
||||
---
|
||||
|
||||
## 功能特性
|
||||
|
||||
- 日志(Logs): `console.log|info|error|...`
|
||||
- 网络(Network): `XMLHttpRequest`, `Fetch`, `sendBeacon`
|
||||
- 节点(Element): HTML 节点树
|
||||
- 存储(Storage): `Cookies`, `LocalStorage`, `SessionStorage`
|
||||
- 手动执行 JS 命令行
|
||||
- 自定义插件
|
||||
|
||||
详情可参考下方的截图。
|
||||
|
||||
---
|
||||
|
||||
## 版本说明
|
||||
|
||||
最新版本: [](https://www.npmjs.com/package/vconsole)
|
||||
|
||||
每个版本的详细说明请参阅 [Changelog](./CHANGELOG_CN.md)。
|
||||
|
||||
---
|
||||
|
||||
## 上手
|
||||
|
||||
详细使用方法请参阅[使用教程](./doc/tutorial_CN.md)。
|
||||
|
||||
将 vConsole 添加到项目中主要有以下方式:
|
||||
|
||||
#### 方法一:使用 npm(推荐)
|
||||
|
||||
```bash
|
||||
$ npm install vconsole
|
||||
```
|
||||
|
||||
Import 并初始化后,即可使用 `console.log` 功能,如 Chrome devtools 上一样。
|
||||
|
||||
```javascript
|
||||
import VConsole from 'vconsole';
|
||||
|
||||
const vConsole = new VConsole();
|
||||
// 或者使用配置参数来初始化,详情见文档
|
||||
const vConsole = new VConsole({ theme: 'dark' });
|
||||
|
||||
// 接下来即可照常使用 `console` 等方法
|
||||
console.log('Hello world');
|
||||
|
||||
// 结束调试后,可移除掉
|
||||
vConsole.destroy();
|
||||
```
|
||||
|
||||
#### 方法二:使用 CDN 直接插入到 HTML
|
||||
|
||||
```html
|
||||
<script src="https://unpkg.com/vconsole@latest/dist/vconsole.min.js"></script>
|
||||
<script>
|
||||
// VConsole 默认会挂载到 `window.VConsole` 上
|
||||
var vConsole = new window.VConsole();
|
||||
</script>
|
||||
```
|
||||
|
||||
可用的 CDN:
|
||||
|
||||
- https://unpkg.com/vconsole@latest/dist/vconsole.min.js
|
||||
- https://cdn.jsdelivr.net/npm/vconsole@latest/dist/vconsole.min.js
|
||||
|
||||
---
|
||||
|
||||
## 手机预览
|
||||
|
||||
[http://wechatfe.github.io/vconsole/demo.html](http://wechatfe.github.io/vconsole/demo.html)
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## 截图
|
||||
|
||||
### 概览
|
||||
|
||||
<details>
|
||||
<summary>浅色主题</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>深色主题</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Log 面板
|
||||
|
||||
<details>
|
||||
<summary>Log 样式</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>命令行</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### System 面板
|
||||
|
||||
<details>
|
||||
<summary>Performance 信息</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>输入日志到不同的 log 面板</summary>
|
||||
|
||||
```javascript
|
||||
console.log('output to Log panel.')
|
||||
console.log('[system]', 'output to System panel.')
|
||||
```
|
||||
</details>
|
||||
|
||||
### Network 面板
|
||||
|
||||
<details>
|
||||
<summary>请求、回包的详情</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Element 面板
|
||||
|
||||
<details>
|
||||
<summary>查看 HTML 对象结构</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
### Storage 面板
|
||||
|
||||
<details>
|
||||
<summary>添加、编辑、删除、复制 Cookies / LocalStorage / SessionStorage</summary>
|
||||
|
||||

|
||||
</details>
|
||||
|
||||
---
|
||||
|
||||
## 文档
|
||||
|
||||
|
||||
vConsole 本体:
|
||||
|
||||
- [使用教程](./doc/tutorial_CN.md)
|
||||
- [公共属性及方法](./doc/public_properties_methods_CN.md)
|
||||
- [内置插件:属性及方法](./doc/plugin_properties_methods_CN.md)
|
||||
|
||||
自定义插件:
|
||||
|
||||
- [插件:入门](./doc/plugin_getting_started_CN.md)
|
||||
- [插件:编写插件](./doc/plugin_building_a_plugin_CN.md)
|
||||
- [插件:Event 事件列表](./doc/plugin_event_list_CN.md)
|
||||
|
||||
---
|
||||
|
||||
## 第三方插件列表
|
||||
|
||||
- [vConsole-sources](https://github.com/WechatFE/vConsole-sources)
|
||||
- [vconsole-webpack-plugin](https://github.com/diamont1001/vconsole-webpack-plugin)
|
||||
- [vconsole-stats-plugin](https://github.com/smackgg/vConsole-Stats)
|
||||
- [vconsole-vue-devtools-plugin](https://github.com/Zippowxk/vue-vconsole-devtools)
|
||||
- [vconsole-outputlog-plugin](https://github.com/sunlanda/vconsole-outputlog-plugin)
|
||||
- [vite-plugin-vconsole](https://github.com/vadxq/vite-plugin-vconsole)
|
||||
|
||||
---
|
||||
|
||||
## 交流反馈
|
||||
|
||||
QQ 群:497430533
|
||||
|
||||

|
||||
|
||||
---
|
||||
|
||||
## License
|
||||
|
||||
[The MIT License](./LICENSE)
|
||||
24
node_modules/vconsole/build/vendor.d.ts
generated
vendored
Normal file
24
node_modules/vconsole/build/vendor.d.ts
generated
vendored
Normal file
@@ -0,0 +1,24 @@
|
||||
declare module 'vendor/core-js/stable/symbol' {
|
||||
}
|
||||
|
||||
declare module 'vendor/mutation-observer' {
|
||||
export class MutationObserver {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vendor/svelte' {
|
||||
export class SvelteComponent {
|
||||
}
|
||||
}
|
||||
|
||||
declare module 'vendor/svelte/store' {
|
||||
export interface Subscriber<T> {
|
||||
}
|
||||
export interface Unsubscriber {
|
||||
}
|
||||
export interface Updater<T> {
|
||||
}
|
||||
export interface Writable<T> {
|
||||
}
|
||||
}
|
||||
|
||||
1237
node_modules/vconsole/dist/vconsole.min.d.ts
generated
vendored
Normal file
1237
node_modules/vconsole/dist/vconsole.min.d.ts
generated
vendored
Normal file
File diff suppressed because it is too large
Load Diff
10
node_modules/vconsole/dist/vconsole.min.js
generated
vendored
Normal file
10
node_modules/vconsole/dist/vconsole.min.js
generated
vendored
Normal file
File diff suppressed because one or more lines are too long
70
node_modules/vconsole/package.json
generated
vendored
Normal file
70
node_modules/vconsole/package.json
generated
vendored
Normal file
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"name": "vconsole",
|
||||
"version": "3.15.1",
|
||||
"description": "A lightweight, extendable front-end developer tool for mobile web page.",
|
||||
"homepage": "https://github.com/Tencent/vConsole",
|
||||
"files": [
|
||||
"dist/*",
|
||||
"build/vendor.d.ts",
|
||||
"CHANGELOG*",
|
||||
"README*"
|
||||
],
|
||||
"main": "dist/vconsole.min.js",
|
||||
"typings": "dist/vconsole.min.d.ts",
|
||||
"scripts": {
|
||||
"build": "webpack --mode=production --progress --env target=web",
|
||||
"build:wx": "webpack --mode=production --progress --env target=wx",
|
||||
"build:typings": "node ./build/build.typings.js",
|
||||
"build:dev": "webpack --mode=development --progress",
|
||||
"watch": "webpack --mode=development --watch --progress",
|
||||
"serve": "webpack serve --config webpack.serve.config --progress",
|
||||
"test:pack": "npx npm-packlist"
|
||||
},
|
||||
"sideEffects": [
|
||||
"lib/*",
|
||||
"element/*",
|
||||
"network/*",
|
||||
"storage/*"
|
||||
],
|
||||
"keywords": [
|
||||
"console",
|
||||
"debug",
|
||||
"mobile"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/Tencent/vConsole.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"@babel/runtime": "^7.17.2",
|
||||
"copy-text-to-clipboard": "^3.0.1",
|
||||
"core-js": "^3.11.0",
|
||||
"mutation-observer": "^1.0.3"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "^7.14.0",
|
||||
"@babel/plugin-proposal-class-properties": "^7.13.0",
|
||||
"@babel/plugin-proposal-export-namespace-from": "^7.12.13",
|
||||
"@babel/plugin-proposal-object-rest-spread": "^7.13.8",
|
||||
"@babel/plugin-transform-block-scoping": "^7.16.0",
|
||||
"@babel/plugin-transform-runtime": "^7.17.0",
|
||||
"@babel/preset-env": "^7.14.1",
|
||||
"@babel/preset-typescript": "^7.13.0",
|
||||
"babel-loader": "^8.2.4",
|
||||
"babel-plugin-add-module-exports": "^1.0.4",
|
||||
"css-loader": "^6.7.1",
|
||||
"less": "^4.1.2",
|
||||
"less-loader": "^10.2.0",
|
||||
"style-loader": "^3.3.1",
|
||||
"svelte": "^3.47.0",
|
||||
"svelte-loader": "^3.1.2",
|
||||
"svelte-preprocess": "^4.10.6",
|
||||
"typescript": "^4.6.3",
|
||||
"webpack": "^5.72.0",
|
||||
"webpack-cli": "^4.9.2",
|
||||
"webpack-dev-server": "^4.8.1",
|
||||
"webpack-merge": "^5.8.0"
|
||||
},
|
||||
"author": "Tencent",
|
||||
"license": "MIT"
|
||||
}
|
||||
Reference in New Issue
Block a user