Skip to content

Commit

Permalink
chore(release): publish v2.9.0 (#170)
Browse files Browse the repository at this point in the history
* chore: update readme to latest API

* chore: release 2.9.0
  • Loading branch information
JiLiZART authored Jan 29, 2023
1 parent 19e8dd6 commit a05e5ce
Show file tree
Hide file tree
Showing 41 changed files with 282 additions and 100 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/BBob/compare/v2.8.3...v2.9.0) (2023-01-29)


### Features

* **parser:** context free tag mode ([#165](https://github.com/JiLiZART/BBob/issues/165)) ([19e8dd6](https://github.com/JiLiZART/BBob/commit/19e8dd659e8c36779c73def8d914edfc219fbf72))

## [2.8.3](https://github.com/JiLiZART/BBob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
47 changes: 38 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ written in pure javascript, no dependencies
### Basic usage <a name="basic-usage"></a>

```shell
npm i @bbob/core @bbob/html @bbob/preset-html5
npm i @bbob/html @bbob/preset-html5
```

```js
Expand All @@ -103,16 +103,44 @@ console.log(processed); // <span style="font-style: italic;">Text</span>
npm i @bbob/react @bbob/preset-react
```

```js
```jsx
import React from 'react'
import {render} from 'react-dom'
import bbobReactRender from '@bbob/react/es/render'
import presetReact from '@bbob/preset-react'

const options = { onlyAllowTags: ['i'], enableEscapeTags: true, contextFreeTags: ['code'] }
const content = bbobReactRender(`[i]Text[/i]`, presetReact(), options)
import BBCode from '@bbob/react';
import presetReact from '@bbob/preset-react';

const plugins = [presetReact()];

export default () => (
<BBCode plugins={plugins}>
[table]
[tr]
[td]table 1[/td]
[td]table 2[/td]
[/tr]
[tr]
[td]table 3[/td]
[td]table 4[/td]
[/tr]
[/table]
</BBCode>
)
```

console.log(render(<span>{content}</span>)); // <span><span style="font-style: italic;">Text</span></span>
```jsx
import { render } from '@bbob/react'

export default () => render(`
[table]
[tr]
[td]table 1[/td]
[td]table 2[/td]
[/tr]
[tr]
[td]table 3[/td]
[td]table 4[/td]
[/tr]
[/table]
`)
```

### Vue 2 usage <a name="vue2-usage"></a>
Expand Down Expand Up @@ -152,6 +180,7 @@ Vue.use(VueBbob);
})
</script>
```

More examples available in <a href="https://github.com/JiLiZART/BBob/tree/master/examples">examples folder</a>

### Parse options <a name="parse-options"></a>
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.11.0",
"version": "2.8.3",
"version": "2.9.0",
"packages": [
"benchmark",
"scripts",
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions packages/bbob-cli/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/bbob/compare/v2.8.3...v2.9.0) (2023-01-29)

**Note:** Version bump only for package @bbob/cli





## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
8 changes: 4 additions & 4 deletions packages/bbob-cli/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/bbob-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbob/cli",
"version": "2.8.3",
"version": "2.9.0",
"description": "Comand line bbcode parser",
"main": "lib/cli.js",
"bin": {
Expand All @@ -10,8 +10,8 @@
"lib": "lib"
},
"dependencies": {
"@bbob/html": "^2.8.3",
"@bbob/preset-html5": "^2.8.3",
"@bbob/html": "^2.9.0",
"@bbob/preset-html5": "^2.9.0",
"commander": "^2.15.1"
},
"repository": {
Expand Down
8 changes: 8 additions & 0 deletions packages/bbob-core/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/bbob/compare/v2.8.3...v2.9.0) (2023-01-29)

**Note:** Version bump only for package @bbob/core





## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
14 changes: 2 additions & 12 deletions packages/bbob-core/README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,4 @@
# @bbob/core
[![install size](https://packagephobia.now.sh/badge?p=@bbob/core)](https://packagephobia.now.sh/result?p=@bbob/core) [![Known Vulnerabilities](https://snyk.io/test/github/JiLiZART/bbob/badge.svg?targetFile=packages%2Fbbob-core%2Fpackage.json)](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-core%2Fpackage.json)

## Usage

```js
import bbob from '@bbob/core'
import { render } from '@bbob/html'
import presetHTML5 from '@bbob/preset-html5'
const code = `[i]Text[/i]`;

const html = bbob(presetHTML5()).process(code, { render }).html;

console.log(html); // <span style="font-style: italic;">Text</span>
```
> Internal package for @bbob/html @bbob/react @bbob/vue2
6 changes: 3 additions & 3 deletions packages/bbob-core/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/bbob-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbob/core",
"version": "2.8.3",
"version": "2.9.0",
"description": "⚡️Blazing-fast js-bbcode-parser, bbcode js, that transforms and parses to AST with plugin support in pure javascript, no dependencies",
"keywords": [
"bbcode",
Expand All @@ -20,7 +20,7 @@
"core"
],
"dependencies": {
"@bbob/parser": "^2.8.3"
"@bbob/parser": "^2.9.0"
},
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
8 changes: 8 additions & 0 deletions packages/bbob-html/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/bbob/compare/v2.8.3...v2.9.0) (2023-01-29)

**Note:** Version bump only for package @bbob/html





## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
17 changes: 16 additions & 1 deletion packages/bbob-html/README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,17 @@
#@bbob/html
# @bbob/html
[![install size](https://packagephobia.now.sh/badge?p=@bbob/html)](https://packagephobia.now.sh/result?p=@bbob/html) [![Known Vulnerabilities](https://snyk.io/test/github/JiLiZART/bbob/badge.svg?targetFile=packages%2Fbbob-html%2Fpackage.json)](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-html%2Fpackage.json)

> Converts @bbob/parser AST tree to html
```shell
npm i @bbob/html @bbob/preset-html5
```

```js
import bbobHTML from '@bbob/html'
import presetHTML5 from '@bbob/preset-html5'

const processed = bbobHTML(`[i]Text[/i]`, presetHTML5())

console.log(processed); // <span style="font-style: italic;">Text</span>
```
8 changes: 4 additions & 4 deletions packages/bbob-html/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions packages/bbob-html/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbob/html",
"version": "2.8.3",
"version": "2.9.0",
"description": "A BBCode to HTML Renderer part of @bbob",
"keywords": [
"html",
Expand All @@ -9,8 +9,8 @@
"bbob"
],
"dependencies": {
"@bbob/core": "^2.8.3",
"@bbob/plugin-helper": "^2.8.3"
"@bbob/core": "^2.9.0",
"@bbob/plugin-helper": "^2.9.0"
},
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
11 changes: 11 additions & 0 deletions packages/bbob-parser/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/bbob/compare/v2.8.3...v2.9.0) (2023-01-29)


### Features

* **parser:** context free tag mode ([#165](https://github.com/JiLiZART/bbob/issues/165)) ([19e8dd6](https://github.com/JiLiZART/bbob/commit/19e8dd659e8c36779c73def8d914edfc219fbf72))





## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
6 changes: 3 additions & 3 deletions packages/bbob-parser/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/bbob-parser/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbob/parser",
"version": "2.8.3",
"version": "2.9.0",
"description": "A BBCode to AST Parser part of @bbob",
"keywords": [
"bbcode",
Expand All @@ -13,7 +13,7 @@
"parse"
],
"dependencies": {
"@bbob/plugin-helper": "^2.8.3"
"@bbob/plugin-helper": "^2.9.0"
},
"main": "lib/index.js",
"module": "es/index.js",
Expand Down
11 changes: 11 additions & 0 deletions packages/bbob-plugin-helper/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [2.9.0](https://github.com/JiLiZART/bbob/compare/v2.8.3...v2.9.0) (2023-01-29)


### Features

* **parser:** context free tag mode ([#165](https://github.com/JiLiZART/bbob/issues/165)) ([19e8dd6](https://github.com/JiLiZART/bbob/commit/19e8dd659e8c36779c73def8d914edfc219fbf72))





## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)


Expand Down
4 changes: 2 additions & 2 deletions packages/bbob-plugin-helper/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/bbob-plugin-helper/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@bbob/plugin-helper",
"version": "2.8.3",
"version": "2.9.0",
"description": "Set of utils to help write plugins for @bbob/core",
"keywords": [
"bbob",
Expand Down
Loading

0 comments on commit a05e5ce

Please sign in to comment.