* 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>
12 KiB
@bbob/vue3
4.3.0
Minor Changes
-
#280
9a69869Thanks @JiLiZART! - Now all file protocol urls will be escaped likefile://some/path/to/filewill be converted tofile%3A//some/path/to/file -
24c9655Thanks @JiLiZART! - Add supportwidthandheightandaltfor[img]tag -
#272
0566241Thanks @JiLiZART! - AddedwhitespaceInTagsparsing option (true by default) with this option you can disable parsing[tags with spaces]it will be considered as textimport 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
0edd490Thanks @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
40041a0Thanks @JiLiZART! - NowReactpreset@bbob/preset-reactsupportscolortagimport preset from "@bbob/preset-react"; import { render } from "@bbob/react"; const html = render( "[color=#ff0000]This text should be red[/color]", preset() ); -
#297
29f909aThanks @JiLiZART! - Now@bbob/parsercorrectly parses nested tags likeHello World[u]Wrong underline[u] This is another text [u]and this, too[/u]to
Hello World[u]Wrong underline[u] This is another text <u>and this, too</u>Fixes #296, #295
-
#290
e943184Thanks @JiLiZART! - Now@bbob/parserin context free tags mode correctly parsescode like
[code][codeButton]text[/codeButton][/code]will be parsed correctly to
<code>[codeButton]text[/codeButton]</code>Fixes #289
-
Updated dependencies [
9a69869,24c9655,0edd490,40041a0,29f909a,e943184,0566241]:- @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
-
#251
ccab54aThanks @JiLiZART! - New option flagcaseFreeTagshas been addedThis flag allows to parse case insensitive tags like
[h1]some[/H1]-><h1>some</h1>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
caseFreeTagstoparsefunctionimport { parse } from "@bbob/parser"; const ast = parse("[h1]some[/H1]", { caseFreeTags: true, });BREAKING CHANGE:
isTokenNestedfunction now accepts stringtokenValueinstead oftokenChanged codecov.io to coveralls.io for test coverage
Patch Changes
-
#267
8a9cfd6Thanks @JiLiZART! - Fix types for BbobCoreOptions -
Updated dependencies [
ccab54a,8a9cfd6]:- @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
27c8c4bThanks @GetPastTheMonkey! - RemoveddefaultPropsand Warning for deprecated defaultProps - Updated dependencies [
27c8c4b]:- @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
Patch Changes
- Updated dependencies [
4084874]:- @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
16ad521Thanks @JiLiZART! - Addedvue3andreactexamples inexamplesfolderFor
vue2andvue3plugins you can use now<bbob-bbcode>,<BBobBBCode>and<BBCode>tags -
Updated dependencies [
16ad521]:- @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
7f931eeThanks @rda-wimi! - fix(#237): Ensure types definitions presence in published packages -
Updated dependencies [
7f931ee]:- @bbob/core@4.0.2
- @bbob/html@4.0.2
4.0.1
Patch Changes
-
dd7696cThanks @JiLiZART! - Fixes problem where@bbob/html@4.0.0depends on@bbob/core@3.0.2instead of^4.0.0 -
Updated dependencies [
dd7696c]:- @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
Minor Changes
-
#233
270f564Thanks @JiLiZART! - ** BREAKING CHANGE **TagNode.createmethod now by default passnullto content instead of empty array[]// 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
3575982Thanks @JiLiZART! - All build processes and CI actions now using PNPM as default Package Manager
Patch Changes
- Updated dependencies [
270f564,8797f7f,3575982]:- @bbob/plugin-helper@4.0.0
- @bbob/core@4.0.0
- @bbob/html@4.0.0
3.0.2
Patch Changes
-
#191
0c78831Thanks @JiLiZART! - Now HTML5 Preset supportscolortag[color="red"]Red Text[/color]Also fixes bug with case insensitive tags in
onlyAllowTagsNow you can pash1andH1and they will be treated as same tags -
Updated dependencies [
0c78831]:- @bbob/core@3.0.2
- @bbob/html@3.0.2
- @bbob/plugin-helper@3.0.2
3.0.1
Patch Changes
-
#186
603c3eaThanks @JiLiZART! - Fixes bug where nested tagquotelost[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
49065d2Thanks @JiLiZART! - # Vue3 supportNow you can use
@bbobparser invue3Example usage
npm i @bbob/vue3 @bbob/preset-vueimport { defineComponent } from "vue"; import VueBbob from "@bbob/vue3"; Vue.use(VueBbob);<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]:- @bbob/core@3.0.0
- @bbob/html@3.0.0
- @bbob/plugin-helper@3.0.0