uiwjs / react-markdown-editor

A markdown editor with preview, implemented with React.js and TypeScript.
https://uiwjs.github.io/react-markdown-editor
MIT License
337 stars 34 forks source link

chore(deps): update dependency tsbb to v4 - autoclosed #199

Closed renovate[bot] closed 1 year ago

renovate[bot] commented 1 year ago

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
tsbb (source) ^3.7.6 -> ^4.0.0 age adoption passing confidence

Release Notes

jaywcjlove/tsbb ### [`v4.1.0`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.1.0) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.8...v4.1.0) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.1.0/file/README.md) Documentation v4.1.0: https://raw.githack.com/jaywcjlove/tsbb/fe0887f/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.8...v4.1.0 ```bash npm i tsbb@4.1.0 npm i create-tsbb@4.1.0 npm init tsbb@latest my-app -- --example typenexus ``` - 🎨 style: ouptimize output logs. [`da2c83a`](https://togithub.com/jaywcjlove/tsbb/commit/da2c83a) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🌟 feat: add ` --bail ` command parameter. [`a324d26`](https://togithub.com/jaywcjlove/tsbb/commit/a324d26) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.8`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.8) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.7...v4.0.8) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.8/file/README.md) Documentation v4.0.8: https://raw.githack.com/jaywcjlove/tsbb/d891524/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.7...v4.0.8 ```bash npm i tsbb@4.0.8 npm i create-tsbb@4.0.8 npm init tsbb@latest my-app -- --example typenexus ``` - 💄 chore: update workflows config. [`cfe784f`](https://togithub.com/jaywcjlove/tsbb/commit/cfe784f) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🐞 fix: fix windows exclude copy file compatibility issue. [`8f0ee54`](https://togithub.com/jaywcjlove/tsbb/commit/8f0ee54) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 💄 chore: update workflows config. [`b9f7773`](https://togithub.com/jaywcjlove/tsbb/commit/b9f7773) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 💄 chore: update workflows config. [`ef46425`](https://togithub.com/jaywcjlove/tsbb/commit/ef46425) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🎨 style: optimize output logs. [`e8923e0`](https://togithub.com/jaywcjlove/tsbb/commit/e8923e0) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🎨 style: optimize output entry file log. [`11c4cff`](https://togithub.com/jaywcjlove/tsbb/commit/11c4cff) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 💄 chore(example): update scripts field in package.json [`49ec723`](https://togithub.com/jaywcjlove/tsbb/commit/49ec723) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🎨 style: output error logs when adding a new command. [`c3f463d`](https://togithub.com/jaywcjlove/tsbb/commit/c3f463d) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 💄 chore: update workflows config. [`6dc32da`](https://togithub.com/jaywcjlove/tsbb/commit/6dc32da) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🎨 style: add error prompt for windows. [`3888fe8`](https://togithub.com/jaywcjlove/tsbb/commit/3888fe8) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.7`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.7) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.6...v4.0.7) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.7/file/README.md) Documentation v4.0.7: https://raw.githack.com/jaywcjlove/tsbb/801c3fb/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.6...v4.0.7 ```bash npm i tsbb@4.0.7 ``` - 🐞 fix: fix exclude copying tsconfig.json file issue. [`182ae23`](https://togithub.com/jaywcjlove/tsbb/commit/182ae23) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.6`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.6) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.5...v4.0.6) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.6/file/README.md) Documentation v4.0.6: https://raw.githack.com/jaywcjlove/tsbb/59c10b0/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.5...v4.0.6 ```bash npm i tsbb@4.0.6 ``` - 🐞 fix: fix JSON modules new feature warning. [`322e1c7`](https://togithub.com/jaywcjlove/tsbb/commit/322e1c7) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.5`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.5) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.4...v4.0.5) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.5/file/README.md) Documentation v4.0.5: https://raw.githack.com/jaywcjlove/tsbb/7e9cc06/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.4...v4.0.5 ```bash npm i tsbb@4.0.5 ``` - 🐞 fix(deps): add missing dependency package [@​types/jest](https://togithub.com/types/jest). [`ec1587b`](https://togithub.com/jaywcjlove/tsbb/commit/ec1587b) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.4`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.4) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.3...v4.0.4) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.4/file/README.md) Documentation v4.0.4: https://raw.githack.com/jaywcjlove/tsbb/f93eda3/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.3...v4.0.4 ```bash npm i tsbb@4.0.4 ``` - 🐞 fix: test files are not escaped. [`1cce5b4`](https://togithub.com/jaywcjlove/tsbb/commit/1cce5b4) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.3`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.3) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.2...v4.0.3) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.3/file/README.md) Documentation v4.0.3: https://raw.githack.com/jaywcjlove/tsbb/f99ba6d/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.2...v4.0.3 ```bash npm i tsbb@4.0.3 ``` - 🐞 fix: fix that files other than js cannot be copied in babel mode. [`cbd4670`](https://togithub.com/jaywcjlove/tsbb/commit/cbd4670) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.2`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.2) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.1...v4.0.2) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.2/file/README.md) Documentation v4.0.2: https://raw.githack.com/jaywcjlove/tsbb/a992232/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.1...v4.0.2 ```bash npm i tsbb@4.0.2 ``` - 🆎 type: fix copy \*d.ts issue. [`9625b57`](https://togithub.com/jaywcjlove/tsbb/commit/9625b57) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 💄 chore: update workflows config. [`c92da6d`](https://togithub.com/jaywcjlove/tsbb/commit/c92da6d) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.1`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.1) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v4.0.0...v4.0.1) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.1/file/README.md) Documentation v4.0.1: https://raw.githack.com/jaywcjlove/tsbb/28ce177/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.0...v4.0.1 ```bash npm i tsbb@4.0.1 ``` - 🐞 fix: fix babel compile cjs issue. [`fa0d90c`](https://togithub.com/jaywcjlove/tsbb/commit/fa0d90c) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 📈 perf: optimize babel transform file. [`1f0747e`](https://togithub.com/jaywcjlove/tsbb/commit/1f0747e) [@​jaywcjlove](https://togithub.com/jaywcjlove) - 🆎 type(core): fix type errors. [`b3d6865`](https://togithub.com/jaywcjlove/tsbb/commit/b3d6865) [@​jaywcjlove](https://togithub.com/jaywcjlove) ### [`v4.0.0`](https://togithub.com/jaywcjlove/tsbb/releases/tag/v4.0.0) [Compare Source](https://togithub.com/jaywcjlove/tsbb/compare/v3.7.9...v4.0.0) [![](https://img.shields.io/badge/Open%20in-unpkg-blue)](https://uiwjs.github.io/npm-unpkg/#/pkg/tsbb@4.0.0/file/README.md) Documentation v4.0.0: https://raw.githack.com/jaywcjlove/tsbb/9963c7e/index.html\ Comparing Changes: https://github.com/jaywcjlove/tsbb/compare/v4.0.0-alpha.3...v4.0.0\ Migrate from tsbb 3.x to 4.x: [https://github.com/jaywcjlove/tsbb/issues/439](https://togithub.com/jaywcjlove/tsbb/issues/439) ```bash npm i tsbb@4.0.0 ``` #### Updates in version v4 1. Updated typescript v5 dependency 2. Updated jest v29 dependency 3. Refactored feature package management 4. Refactored create-tsbb based on package internal examples generation 5. Updated template examples ```diff - tsbb build [options] + tsbb build [source…] [options] - --entry, -e - --emit-type - --no-emit-type - --disable-babel - --no-babel-option - --file-names, -f + --use-babel Use Babel.(works in babel) --source-maps Enables the generation of sourcemap files.(works in babel) --env-name The current active environment used during configuration loading.(works in babel) --esm Output "esm" directory.(works in babel) --cjs Output "cjs" directory.(works in babel) ``` ```diff - $ tsbb build --file-names src/main.ts --file-names src/good.ts + $ tsbb build src/main.ts src/good.ts ``` ```diff - $ tsbb build --entry src/main.ts + $ tsbb build src/main.ts ``` ```bash $ tsbb build src/*.ts # Build your project. $ tsbb build src/main.ts src/good.ts # Specify the entry directory. ``` ```bash $ tsbb build src/*.ts --use-babel --no-source-maps # No ".js.map" file is generated. (works in babel) $ tsbb watch src/*.ts --use-babel --cjs ./cjs # Watch Output directory. $ tsbb build src/*.ts --use-babel --esm ./es # Output directory. $ tsbb build src/*.ts --use-babel --use-vue # To add Vue JSX support. $ tsbb test # Run test suites related $ tsbb test --coverage --bail # Test coverage information should be collected ``` ```diff Usage: create-tsbb [options] [--help|h] Options: --version, -v Show version number --help, -h Displays help information. - --output, -o Output directory. --example, -e Example from: https://jaywcjlove.github.io/tsbb , default: "basic" --force, -f Overwrite target directory if it exists. default: false - --path, -p Specify the download target git address. default: "https://jaywcjlove.github.io/tsbb" ``` #### TypeScript Project To configure the **`tsconfig.json`** properly, you must first define either the **`include`** or **`files`** field(s) to specify which files need to be compiled. Once you've done that, you can then specify the **`outDir`** for the output directory in the configuration. ```typescript { "$schema": "http://json.schemastore.org/tsconfig", "compilerOptions": { "module": "commonjs", "target": "esnext", "outDir": "./lib", "strict": true, "skipLibCheck": true }, "include": ["src/**/*"], "exclude": [ "node_modules", "**/*.spec.ts" ] } ``` After completing `tsconfig.json` configuration, you can configure *scripts* in `package.json`: ```javascript { "scripts": { "watch": "tsbb watch", "build": "tsbb build" }, "devDependencies": { "tsbb": "*" } } ``` #### Babel Project Adding the parameter `--use-babel` to your project enables babel to compile and output **`cjs`**/**`esm`** files simultaneously, while **`ts`** is only needed for *type* output. ```bash $ tsbb build "src/*ts" --use-babel ``` You can change the built-in settings of Babel by adding a **`.babelrc`** configuration file. Additionally, you can modify the **Babel** configurations for **`esm`** and **`cjs`** separately through environment variables. Please refer to the example below: ```js { "env": { "cjs": { "presets": ["@​babel/preset-typescript"] }, "esm": { "presets": ["@​babel/preset-env", { "modules": false, "loose": true, "targets": { "esmodules": true, }, }] } } } ``` At compile time, specify the environment variable `--envName='xxx'` to enable reading of relevant configurations from the settings. This environment variable can also be customized. ```js { "env": { "xxx": { ... } } } ```

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.



This PR has been generated by Mend Renovate. View repository job log here.