Tags: code4ward/text-wrapper
Tags
chore(package.json): Some little improvements and corrections. Especi… …ally puppeteer minor-version... Some little improvements and corrections. Especially puppeteer minor-version was restricted to avoid possible chromium-version incompatibilities (note that `PUPPETEER_SKIP_CHROMIUM_DOWNLOAD` usually has been set).
fix(debug): Instance-property `debug` was removed and replaced with a…
… static and global one
1. Imported `debug` (from 'debug') was exported totally to be fully accessible from the API.
Also, Its mode was changed to be static, correctly. Instance-mode was a mistake.
2. debug-mode was disabled by default (`debug.disable()`). Even in `DEBUG` env-var presence.
The consumer must be enabled it when needed.
3. "<@MODULE_NAME@>:" prefix was added to debuggers' namespaces.
In this library it will replaced with "text-wrapper:" at build-time. See 'rollup-plugin-replace'
BREAKING CHANGE:
1. Instance-property `debug` was removed and replaced with a static and global one
2. debug-mode was disabled by default (`debug.disable()`). Even in `DEBUG` env-var presence.
3. "<@MODULE_NAME@>:" prefix was added to debuggers' namespaces.
docs(typedoc): TypeDoc output reverted back here (docs/)
feat(TextWrapper.ts): `wrapper()` function (static-method) was added … …to do the job easier 1. `wrapper` function (static-method) was added. 2. documentation was changed based on this new feature. See "Basic Usage" (of README) especially. 3. new test was added to cover this new function. Other changes: "supports-color" was upgraded: v6.1.0 => v7.0.0
feat(vLen calculation): Ability to calculate `visualLen` of lines whe… …n '\t' in the middle or the end The length of TAB character is not fixed and depends on its offset (visualOffset). So the related parts of the source was edited to implementing this feature correctly. The most important edited part is `getVisualLength()` method.
PreviousNext