chore(release): release Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
19 KiB
Change Log
4.3.1
Patch Changes
-
#281
322f88aThanks @JiLiZART! - Now@bbob/parsercorrectly parses tags like[url=javascript:alert('XSS ME');]TEXT[/url]to correct attributes
{ "tag": "url", "attrs": { "javascript:alert('XSS ME')": "javascript:alert('XSS ME')" }, "content": ["TEXT"], "start": { "from": 0, "to": 38 }, "end": { "from": 38, "to": 42 } }Fixes #300
-
Updated dependencies [
322f88a]:- @bbob/parser@4.3.1
- @bbob/plugin-helper@4.3.1
- @bbob/types@4.3.1
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/parser@4.3.0
- @bbob/types@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/parser@4.2.0
- @bbob/types@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/parser@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/parser@4.1.0
- @bbob/types@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/parser@4.0.3
- @bbob/plugin-helper@4.0.3
- @bbob/types@4.0.3
4.0.2
Patch Changes
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/parser@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 [
05246b2,270f564,8797f7f,3575982]:- @bbob/parser@4.0.0
- @bbob/plugin-helper@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/parser@3.0.2
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/parser@3.0.0
All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
2.9.0 (2023-01-29)
Note: Version bump only for package @bbob/core
2.8.3 (2022-12-18)
Bug Fixes
- remove gitHead from package.json (2b3ffa9)
2.8.2 (2022-11-28)
Note: Version bump only for package @bbob/core
2.8.1 (2022-05-24)
Note: Version bump only for package @bbob/core
2.8.0 (2021-11-28)
Features
BREAKING CHANGES
-
now we use swc.rs as main bundler and transpiler instead of babel
- jest now uses swc
- rollup now uses swc
-
feat: benchmark now separate package with
npm startand colored output- benchmark as separate package with error throw if package drops performance
-
feat: all lerna packages now using scripts/pkg-task
-
feat(github): publish to npm and github registry
- when release was created this action automaticly publish packages to npm and github
-
feat(github): move all from Travis CI to Github Actions
- code analysis and tests now using github actions
-
test: increase tests coverage
- add more tests for @bbob/react, @bbob/vue2 and @bbob/parser
2.7.1 (2021-11-04)
Note: Version bump only for package @bbob/core
2.7.0 (2021-05-19)
Features
2.6.2 (2020-12-16)
Features
2.6.1 (2020-12-15)
Features
2.6.0 (2020-12-10)
Features
2.5.8 (2020-07-08)
Note: Version bump only for package @bbob/core
2.5.7 (2020-07-05)
Note: Version bump only for package @bbob/core
2.5.6 (2020-04-12)
Note: Version bump only for package @bbob/core
2.5.5 (2020-03-25)
Features
2.5.4 (2019-09-25)
Note: Version bump only for package @bbob/core
2.5.3 (2019-08-11)
Note: Version bump only for package @bbob/core
2.5.2 (2019-06-30)
Note: Version bump only for package @bbob/core
2.5.1 (2019-06-18)
Note: Version bump only for package @bbob/core
2.5.0 (2019-06-17)
Note: Version bump only for package @bbob/core
2.4.0 (2019-03-29)
Features
- core: add tree.messages array and tree.options (cd2b6fd)
2.3.4 (2019-03-29)
Note: Version bump only for package @bbob/core
2.3.3 (2019-03-29)
Note: Version bump only for package @bbob/core
2.3.2 (2019-03-09)
Note: Version bump only for package @bbob/core
2.3.1 (2019-03-04)
Note: Version bump only for package @bbob/core
2.2.0 (2018-10-11)
Bug Fixes
- core: string walk api test error (bdd8bbd)
Features
- core: add helper function to plugin api (e189a39)
- core: implement plugin api (ee047e8)
- core: raw tree property support (bdfd3f6)
- new @bbob/html api (#4) (575c1bb)
2.1.0 (2018-10-07)
- feat(core): raw tree property support (bdfd3f6)
2.0.2 (2018-10-07)
Bug Fixes
- core: string walk api test error (bdd8bbd)
2.0.1 (2018-09-23)
Note: Version bump only for package @bbob/core
1.1.0 (2018-08-09)
Features
1.0.6 (2018-07-13)
Note: Version bump only for package @bbob/core
1.0.5 (2018-07-11)
Note: Version bump only for package @bbob/core
1.0.4 (2018-07-10)
Note: Version bump only for package @bbob/core
1.0.3 (2018-07-10)
Note: Version bump only for package @bbob/core