2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00
Files
bbob/packages/bbob-core/CHANGELOG.md
T
github-actions[bot] 5904ef46ed chore(release): publish v4.3.1 (#298)
chore(release): release

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-10-17 14:36:07 +02:00

19 KiB

Change Log

4.3.1

Patch Changes

  • #281 322f88a Thanks @JiLiZART! - Now @bbob/parser correctly 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 9a69869 Thanks @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 Thanks @JiLiZART! - Add support width and height and alt for [img] tag

  • #272 0566241 Thanks @JiLiZART! - Added whitespaceInTags parsing option (true by default) with this option you can disable parsing [tags with spaces] it will be considered as text

    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 0edd490 Thanks @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 40041a0 Thanks @JiLiZART! - Now React preset @bbob/preset-react supports color tag

    import preset from "@bbob/preset-react";
    import { render } from "@bbob/react";
    
    const html = render(
      "[color=#ff0000]This text should be red[/color]",
      preset()
    );
    
  • #297 29f909a Thanks @JiLiZART! - Now @bbob/parser correctly parses nested tags like

    Hello 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 e943184 Thanks @JiLiZART! - Now @bbob/parser in context free tags mode correctly parses

    code 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 ccab54a Thanks @JiLiZART! - New option flag caseFreeTags has been added

    This 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 caseFreeTags to parse function

    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

4.1.1

Patch Changes

  • #248 27c8c4b Thanks @GetPastTheMonkey! - Removed defaultProps and 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 16ad521 Thanks @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]:

    • @bbob/parser@4.0.3
    • @bbob/plugin-helper@4.0.3
    • @bbob/types@4.0.3

4.0.2

Patch Changes

  • #238 7f931ee Thanks @rda-wimi! - fix(#237): Ensure types definitions presence in published packages

4.0.1

Patch Changes

  • dd7696c Thanks @JiLiZART! - Fixes problem where @bbob/html@4.0.0 depends on @bbob/core@3.0.2 instead 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 270f564 Thanks @JiLiZART! - ** BREAKING CHANGE **

    TagNode.create method now by default pass null to 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 3575982 Thanks @JiLiZART! - All build processes and CI actions now using PNPM as default Package Manager

Patch Changes

3.0.2

Patch Changes

  • #191 0c78831 Thanks @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]:

    • @bbob/parser@3.0.2

3.0.0

Major Changes

  • #182 49065d2 Thanks @JiLiZART! - # Vue3 support

    Now you can use @bbob parser in vue3

    Example usage

    npm i @bbob/vue3 @bbob/preset-vue
    
    import { 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 start and 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

  • parser: rewrite lexer to make it faster (#50) (772d422)

2.6.1 (2020-12-15)

Features

  • parser: rewrite lexer to make it faster (#50) (772d422)

2.6.0 (2020-12-10)

Features

  • parser: rewrite lexer to make it faster (#50) (772d422)

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

  • core: allow to pass dynamic data in options for render (#59) (0b74be7)

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

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

  • core: add helper function to plugin api (e189a39)
  • core: implement plugin api (ee047e8)

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