2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-06-20 20:00:33 +03:00
Files
bbob/packages/bbob-vue3/CHANGELOG.md
T
github-actions[bot] b09f4fa3c7 chore(release): publish v4.2.0 (#268)
chore(release): release

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-11-26 13:34:17 +02:00

222 lines
7.7 KiB
Markdown

# @bbob/vue3
## 4.2.0
### Minor Changes
- [#251](https://github.com/JiLiZART/BBob/pull/251) [`ccab54a`](https://github.com/JiLiZART/BBob/commit/ccab54a4547b67d0ea61644e36ca57fdbe8c6491) Thanks [@JiLiZART](https://github.com/JiLiZART)! - New option flag `caseFreeTags` has been added
This flag allows to parse case insensitive tags like `[h1]some[/H1]` -> `<h1>some</h1>`
```js
import html from "@bbob/html";
import presetHTML5 from "@bbob/preset-html5";
const processed = html(`[h1]some[/H1]`, presetHTML5(), {
caseFreeTags: true,
});
console.log(processed); // <h1>some</h1>
```
Also now you can pass `caseFreeTags` to `parse` function
```js
import { parse } from "@bbob/parser";
const ast = parse("[h1]some[/H1]", {
caseFreeTags: true,
});
```
BREAKING CHANGE: `isTokenNested` function now accepts string `tokenValue` instead of `token`
Changed codecov.io to coveralls.io for test coverage
### Patch Changes
- [#267](https://github.com/JiLiZART/BBob/pull/267) [`8a9cfd6`](https://github.com/JiLiZART/BBob/commit/8a9cfd67c0f1a9fe6cc8cd74b68b7cdf3d393841) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Fix types for BbobCoreOptions
- Updated dependencies [[`ccab54a`](https://github.com/JiLiZART/BBob/commit/ccab54a4547b67d0ea61644e36ca57fdbe8c6491), [`8a9cfd6`](https://github.com/JiLiZART/BBob/commit/8a9cfd67c0f1a9fe6cc8cd74b68b7cdf3d393841)]:
- @bbob/types@4.2.0
- @bbob/core@4.2.0
- @bbob/html@4.2.0
- @bbob/plugin-helper@4.2.0
## 4.1.1
### Patch Changes
- [#248](https://github.com/JiLiZART/BBob/pull/248) [`27c8c4b`](https://github.com/JiLiZART/BBob/commit/27c8c4b869bc0e26905e1b4555036ac65baaa1c6) Thanks [@GetPastTheMonkey](https://github.com/GetPastTheMonkey)! - Removed `defaultProps` and
Warning for deprecated defaultProps
- Updated dependencies [[`27c8c4b`](https://github.com/JiLiZART/BBob/commit/27c8c4b869bc0e26905e1b4555036ac65baaa1c6)]:
- @bbob/core@4.1.1
- @bbob/html@4.1.1
- @bbob/plugin-helper@4.1.1
- @bbob/types@4.1.1
## 4.1.0
### Minor Changes
- [#246](https://github.com/JiLiZART/BBob/pull/246) [`4084874`](https://github.com/JiLiZART/BBob/commit/40848747d4c52a3752ff3803f7643072e916631e) Thanks [@Alteras1](https://github.com/Alteras1)! - feat: Add start and end positions of tag nodes
### Patch Changes
- Updated dependencies [[`4084874`](https://github.com/JiLiZART/BBob/commit/40848747d4c52a3752ff3803f7643072e916631e)]:
- @bbob/plugin-helper@4.1.0
- @bbob/types@4.1.0
- @bbob/core@4.1.0
- @bbob/html@4.1.0
## 4.0.3
### Patch Changes
- [#242](https://github.com/JiLiZART/BBob/pull/242) [`16ad521`](https://github.com/JiLiZART/BBob/commit/16ad5216dbdb58f15baa79a7f4596e6281043f5f) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Added `vue3` and `react` examples in `examples` folder
For `vue2` and `vue3` plugins you can use now `<bbob-bbcode>`, `<BBobBBCode>` and `<BBCode>` tags
- Updated dependencies [[`16ad521`](https://github.com/JiLiZART/BBob/commit/16ad5216dbdb58f15baa79a7f4596e6281043f5f)]:
- @bbob/core@4.0.3
- @bbob/html@4.0.3
- @bbob/plugin-helper@4.0.3
- @bbob/types@4.0.3
## 4.0.2
### Patch Changes
- [#238](https://github.com/JiLiZART/BBob/pull/238) [`7f931ee`](https://github.com/JiLiZART/BBob/commit/7f931eee9a6cf9022e14459f265e8c49ffefdb2a) Thanks [@rda-wimi](https://github.com/rda-wimi)! - fix(#237): Ensure types definitions presence in published packages
- Updated dependencies [[`7f931ee`](https://github.com/JiLiZART/BBob/commit/7f931eee9a6cf9022e14459f265e8c49ffefdb2a)]:
- @bbob/core@4.0.2
- @bbob/html@4.0.2
## 4.0.1
### Patch Changes
- [`dd7696c`](https://github.com/JiLiZART/BBob/commit/dd7696ca4bc5122563d897048f46ca6a16f21de6) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Fixes problem where `@bbob/html@4.0.0` depends on `@bbob/core@3.0.2` instead of `^4.0.0`
- Updated dependencies [[`dd7696c`](https://github.com/JiLiZART/BBob/commit/dd7696ca4bc5122563d897048f46ca6a16f21de6)]:
- @bbob/core@4.0.1
- @bbob/html@4.0.1
- @bbob/plugin-helper@4.0.1
- @bbob/types@4.0.1
## 4.0.0
### Major Changes
- [#185](https://github.com/JiLiZART/BBob/pull/185) [`8797f7f`](https://github.com/JiLiZART/BBob/commit/8797f7f363a34b6a53578e0b2f50033cbb6a7eeb) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now BBob supports Typescript with typings
### Minor Changes
- [#233](https://github.com/JiLiZART/BBob/pull/233) [`270f564`](https://github.com/JiLiZART/BBob/commit/270f5645f8c5b536d61883998a8dc4854f296f37) Thanks [@JiLiZART](https://github.com/JiLiZART)! - ** BREAKING CHANGE **
`TagNode.create` method now by default pass `null` to content instead of empty array `[]`
```js
// new behavior
TagNode.create("img").toString(); // -> [img]
// old behavior
TagNode.create("img", {}, []).toString(); // -> [img][/img]
```
Migrate all calls of `TagNode.create('test-tag')` to `TagNode.create('test-tag', {}, [])
- [#199](https://github.com/JiLiZART/BBob/pull/199) [`3575982`](https://github.com/JiLiZART/BBob/commit/3575982b280cc45c9cedaf7a059491a324c1b514) Thanks [@JiLiZART](https://github.com/JiLiZART)! - All build processes and CI actions now using PNPM as default Package Manager
### Patch Changes
- Updated dependencies [[`270f564`](https://github.com/JiLiZART/BBob/commit/270f5645f8c5b536d61883998a8dc4854f296f37), [`8797f7f`](https://github.com/JiLiZART/BBob/commit/8797f7f363a34b6a53578e0b2f50033cbb6a7eeb), [`3575982`](https://github.com/JiLiZART/BBob/commit/3575982b280cc45c9cedaf7a059491a324c1b514)]:
- @bbob/plugin-helper@4.0.0
- @bbob/core@4.0.0
- @bbob/html@4.0.0
## 3.0.2
### Patch Changes
- [#191](https://github.com/JiLiZART/BBob/pull/191) [`0c78831`](https://github.com/JiLiZART/BBob/commit/0c78831372b02216c9be5d95cd8b857c18f81540) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Now HTML5 Preset supports `color` tag
```
[color="red"]Red Text[/color]
```
Also fixes bug with case insensitive tags in `onlyAllowTags`
Now you can pas `h1` and `H1` and they will be treated as same tags
- Updated dependencies [[`0c78831`](https://github.com/JiLiZART/BBob/commit/0c78831372b02216c9be5d95cd8b857c18f81540)]:
- @bbob/core@3.0.2
- @bbob/html@3.0.2
- @bbob/plugin-helper@3.0.2
## 3.0.1
### Patch Changes
- [#186](https://github.com/JiLiZART/BBob/pull/186) [`603c3ea`](https://github.com/JiLiZART/BBob/commit/603c3ead0f2b895a447dd9cfe98ce6ef27eec79c) Thanks [@JiLiZART](https://github.com/JiLiZART)! - Fixes bug where nested tag `quote` lost
```
[color=red]test[/color]
[quote]xxxsdfasdf
sdfasdfasdf
[url=xxx]xxx[/url]
```
Now content not will be lost, but not closed tag will displayed as raw text
## 3.0.0
### Major Changes
- [#182](https://github.com/JiLiZART/BBob/pull/182) [`49065d2`](https://github.com/JiLiZART/BBob/commit/49065d239b69e054b360596353d5b810282d259d) Thanks [@JiLiZART](https://github.com/JiLiZART)! - # Vue3 support
Now you can use `@bbob` parser in `vue3`
Example usage
```shell
npm i @bbob/vue3 @bbob/preset-vue
```
```js
import { defineComponent } from "vue";
import VueBbob from "@bbob/vue3";
Vue.use(VueBbob);
```
```html
<template>
<div class="vue3">
<h2>Generated vue3 here</h2>
<bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
</div>
</template>
<script>
import { defineComponent } from "vue";
import preset from "@bbob/preset-vue";
export default defineComponent({
name: "App",
data() {
return {
bbcode: "Text [b]bolded[/b] and [i]Some Name[/i]",
plugins: [preset()],
};
},
});
</script>
```
### Patch Changes
- Updated dependencies [[`49065d2`](https://github.com/JiLiZART/BBob/commit/49065d239b69e054b360596353d5b810282d259d)]:
- @bbob/core@3.0.0
- @bbob/html@3.0.0
- @bbob/plugin-helper@3.0.0