2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-14 18:42:24 +03:00

chore(release): publish v4.3.0 (#279)

* chore(release): release

* fix: lock file

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Nikolay Kost <JiLiZART@Gmail.com>
This commit is contained in:
github-actions[bot]
2025-10-17 13:57:29 +02:00
committed by GitHub
parent 322f88ad42
commit 2677542ccc
34 changed files with 1101 additions and 267 deletions
+77
View File
@@ -1,5 +1,82 @@
# Change Log
## 4.3.0
### Minor Changes
- [#280](https://github.com/JiLiZART/BBob/pull/280) [`9a69869`](https://github.com/JiLiZART/BBob/commit/9a6986965e986f8ea1f3217439ee639733a72e01) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now all file protocol urls will be escaped like `file://some/path/to/file` will be converted to `file%3A//some/path/to/file`
- [`24c9655`](https://github.com/JiLiZART/BBob/commit/24c9655e2be9c24ff7552e927b6d32b1782e0a96) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Add support `width` and `height` and `alt` for `[img]` tag
- [#272](https://github.com/JiLiZART/BBob/pull/272) [`0566241`](https://github.com/JiLiZART/BBob/commit/0566241e2315cae0879ecb3ab467c83e99f0cc49) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Added `whitespaceInTags` parsing option (true by default) with this option you can disable parsing `[tags with spaces]` it will be considered as text
```js
import html5 from "@bbob/preset-html5";
import parse from "@bbob/html";
const html = parse("[b]lorem[/b] [foo bar] [i]ipsum[/i]", html5(), {
whitespaceInTags: false,
});
console.log(html); // <b>lorem </b> [foo bar] <i>ipsum</i>
```
### Patch Changes
- [#291](https://github.com/JiLiZART/BBob/pull/291) [`0edd490`](https://github.com/JiLiZART/BBob/commit/0edd490a245bf50d1cac21645be905287081fae3) Thanks [@longnguyen2004](https://github.com/longnguyen2004)! - fix: proper module resolution in all cases (Node CJS, Node ESM, bundler)
Allow usages of this library in ESM scenarios (Vite SSR, pure Node using ESM) by fixing incorrect exports of the ESM output (use correct .mjs extension, separate types files for CJS and ESM output, package.json fixes)
Fixes #232, #214, #135
- [#294](https://github.com/JiLiZART/BBob/pull/294) [`40041a0`](https://github.com/JiLiZART/BBob/commit/40041a06806c1ded21435f102c4c0838e372fce5) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now `React` preset `@bbob/preset-react` supports `color` tag
```js
import preset from "@bbob/preset-react";
import { render } from "@bbob/react";
const html = render(
"[color=#ff0000]This text should be red[/color]",
preset()
);
```
- [#297](https://github.com/JiLiZART/BBob/pull/297) [`29f909a`](https://github.com/JiLiZART/BBob/commit/29f909a589bd7b7ac67ec2003b3c7138ce5898cc) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now `@bbob/parser` correctly parses nested tags like
```html
Hello World[u]Wrong underline[u] This is another text [u]and this, too[/u]
```
to
```html
Hello World[u]Wrong underline[u] This is another text <u>and this, too</u>
```
Fixes #296, #295
- [#290](https://github.com/JiLiZART/BBob/pull/290) [`e943184`](https://github.com/JiLiZART/BBob/commit/e943184294c42e35e161d4c5775aa22731fa2c5a) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now `@bbob/parser` in context free tags mode correctly parses
code like
```html
[code][codeButton]text[/codeButton][/code]
```
will be parsed correctly to
```html
<code>[codeButton]text[/codeButton]</code>
```
Fixes #289
- Updated dependencies [[`9a69869`](https://github.com/JiLiZART/BBob/commit/9a6986965e986f8ea1f3217439ee639733a72e01), [`24c9655`](https://github.com/JiLiZART/BBob/commit/24c9655e2be9c24ff7552e927b6d32b1782e0a96), [`0edd490`](https://github.com/JiLiZART/BBob/commit/0edd490a245bf50d1cac21645be905287081fae3), [`40041a0`](https://github.com/JiLiZART/BBob/commit/40041a06806c1ded21435f102c4c0838e372fce5), [`29f909a`](https://github.com/JiLiZART/BBob/commit/29f909a589bd7b7ac67ec2003b3c7138ce5898cc), [`e943184`](https://github.com/JiLiZART/BBob/commit/e943184294c42e35e161d4c5775aa22731fa2c5a), [`0566241`](https://github.com/JiLiZART/BBob/commit/0566241e2315cae0879ecb3ab467c83e99f0cc49)]:
- @bbob/types@4.3.0
- @bbob/core@4.3.0
- @bbob/html@4.3.0
- @bbob/plugin-helper@4.3.0
## 4.2.0
### Minor Changes
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@bbob/react",
"version": "4.2.0",
"version": "4.3.0",
"description": "A BBCode to React Renderer part of @bbob",
"keywords": [
"react",