2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-15 11:59:37 +03:00

chore(release): publish v2.9.0 (#170)

* chore: update readme to latest API

* chore: release 2.9.0
This commit is contained in:
Nikolay Kost
2023-01-29 17:55:46 +02:00
committed by GitHub
parent 19e8dd659e
commit a05e5cef07
41 changed files with 281 additions and 99 deletions
+7
View File
@@ -3,6 +3,13 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/BBob/compare/v2.8.2...v2.8.3) (2022-12-18)
+37 -8
View File
@@ -85,7 +85,7 @@ written in pure javascript, no dependencies
### Basic usage <a name="basic-usage"></a> ### Basic usage <a name="basic-usage"></a>
```shell ```shell
npm i @bbob/core @bbob/html @bbob/preset-html5 npm i @bbob/html @bbob/preset-html5
``` ```
```js ```js
@@ -103,16 +103,44 @@ console.log(processed); // <span style="font-style: italic;">Text</span>
npm i @bbob/react @bbob/preset-react npm i @bbob/react @bbob/preset-react
``` ```
```js ```jsx
import React from 'react' import React from 'react'
import {render} from 'react-dom' import BBCode from '@bbob/react';
import bbobReactRender from '@bbob/react/es/render' import presetReact from '@bbob/preset-react';
import presetReact from '@bbob/preset-react'
const options = { onlyAllowTags: ['i'], enableEscapeTags: true, contextFreeTags: ['code'] } const plugins = [presetReact()];
const content = bbobReactRender(`[i]Text[/i]`, presetReact(), options)
console.log(render(<span>{content}</span>)); // <span><span style="font-style: italic;">Text</span></span> 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>
)
```
```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> ### Vue 2 usage <a name="vue2-usage"></a>
@@ -152,6 +180,7 @@ Vue.use(VueBbob);
}) })
</script> </script>
``` ```
More examples available in <a href="https://github.com/JiLiZART/BBob/tree/master/examples">examples folder</a> More examples available in <a href="https://github.com/JiLiZART/BBob/tree/master/examples">examples folder</a>
### Parse options <a name="parse-options"></a> ### Parse options <a name="parse-options"></a>
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"lerna": "2.11.0", "lerna": "2.11.0",
"version": "2.8.3", "version": "2.9.0",
"packages": [ "packages": [
"benchmark", "benchmark",
"scripts", "scripts",
+2 -2
View File
@@ -13,8 +13,8 @@
"@rollup/plugin-node-resolve": "15.0.1", "@rollup/plugin-node-resolve": "15.0.1",
"@rollup/plugin-replace": "5.0.1", "@rollup/plugin-replace": "5.0.1",
"@size-limit/preset-small-lib": "6.0.1", "@size-limit/preset-small-lib": "6.0.1",
"@swc/cli": "^0.1.57", "@swc/cli": "0.1.57",
"@swc/core": "^1.3.16", "@swc/core": "1.3.16",
"@swc/jest": "0.2.23", "@swc/jest": "0.2.23",
"bundlesize2": "0.0.31", "bundlesize2": "0.0.31",
"cross-env": "7.0.3", "cross-env": "7.0.3",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+4 -4
View File
@@ -1,16 +1,16 @@
{ {
"name": "@bbob/cli", "name": "@bbob/cli",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/cli", "name": "@bbob/cli",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/preset-html5": "^2.8.3", "@bbob/preset-html5": "^2.9.0",
"commander": "^2.15.1" "commander": "^2.15.1"
}, },
"bin": { "bin": {
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/cli", "name": "@bbob/cli",
"version": "2.8.3", "version": "2.9.0",
"description": "Comand line bbcode parser", "description": "Comand line bbcode parser",
"main": "lib/cli.js", "main": "lib/cli.js",
"bin": { "bin": {
@@ -10,8 +10,8 @@
"lib": "lib" "lib": "lib"
}, },
"dependencies": { "dependencies": {
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/preset-html5": "^2.8.3", "@bbob/preset-html5": "^2.9.0",
"commander": "^2.15.1" "commander": "^2.15.1"
}, },
"repository": { "repository": {
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+2 -12
View File
@@ -1,14 +1,4 @@
# @bbob/core # @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 > Internal package for @bbob/html @bbob/react @bbob/vue2
```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>
```
+3 -3
View File
@@ -1,15 +1,15 @@
{ {
"name": "@bbob/core", "name": "@bbob/core",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/core", "name": "@bbob/core",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/parser": "^2.8.3" "@bbob/parser": "^2.9.0"
} }
}, },
"../bbob-parser": { "../bbob-parser": {
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/core", "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", "description": "⚡️Blazing-fast js-bbcode-parser, bbcode js, that transforms and parses to AST with plugin support in pure javascript, no dependencies",
"keywords": [ "keywords": [
"bbcode", "bbcode",
@@ -20,7 +20,7 @@
"core" "core"
], ],
"dependencies": { "dependencies": {
"@bbob/parser": "^2.8.3" "@bbob/parser": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+16 -1
View File
@@ -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 > 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>
```
+4 -4
View File
@@ -1,16 +1,16 @@
{ {
"name": "@bbob/html", "name": "@bbob/html",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/html", "name": "@bbob/html",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
} }
}, },
"../bbob-core": { "../bbob-core": {
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/html", "name": "@bbob/html",
"version": "2.8.3", "version": "2.9.0",
"description": "A BBCode to HTML Renderer part of @bbob", "description": "A BBCode to HTML Renderer part of @bbob",
"keywords": [ "keywords": [
"html", "html",
@@ -9,8 +9,8 @@
"bbob" "bbob"
], ],
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+11
View File
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+3 -3
View File
@@ -1,15 +1,15 @@
{ {
"name": "@bbob/parser", "name": "@bbob/parser",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/parser", "name": "@bbob/parser",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
} }
}, },
"node_modules/@bbob/plugin-helper": { "node_modules/@bbob/plugin-helper": {
+2 -2
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/parser", "name": "@bbob/parser",
"version": "2.8.3", "version": "2.9.0",
"description": "A BBCode to AST Parser part of @bbob", "description": "A BBCode to AST Parser part of @bbob",
"keywords": [ "keywords": [
"bbcode", "bbcode",
@@ -13,7 +13,7 @@
"parse" "parse"
], ],
"dependencies": { "dependencies": {
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+11
View File
@@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "@bbob/plugin-helper", "name": "@bbob/plugin-helper",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/plugin-helper", "name": "@bbob/plugin-helper",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT" "license": "MIT"
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/plugin-helper", "name": "@bbob/plugin-helper",
"version": "2.8.3", "version": "2.9.0",
"description": "Set of utils to help write plugins for @bbob/core", "description": "Set of utils to help write plugins for @bbob/core",
"keywords": [ "keywords": [
"bbob", "bbob",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/preset-html5
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+5 -5
View File
@@ -1,19 +1,19 @@
{ {
"name": "@bbob/preset-html5", "name": "@bbob/preset-html5",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/preset-html5", "name": "@bbob/preset-html5",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/plugin-helper": "^2.8.3", "@bbob/plugin-helper": "^2.9.0",
"@bbob/preset": "^2.8.3" "@bbob/preset": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/html": "^2.8.3" "@bbob/html": "^2.9.0"
} }
}, },
"../bbob-core": { "../bbob-core": {
+4 -4
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/preset-html5", "name": "@bbob/preset-html5",
"version": "2.8.3", "version": "2.9.0",
"description": "HTML5 preset to transform BBCode to HTML for @bbob/parser", "description": "HTML5 preset to transform BBCode to HTML for @bbob/parser",
"keywords": [ "keywords": [
"preset", "preset",
@@ -8,11 +8,11 @@
"bbob" "bbob"
], ],
"dependencies": { "dependencies": {
"@bbob/plugin-helper": "^2.8.3", "@bbob/plugin-helper": "^2.9.0",
"@bbob/preset": "^2.8.3" "@bbob/preset": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/html": "^2.8.3" "@bbob/html": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/preset-react
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+4 -4
View File
@@ -1,18 +1,18 @@
{ {
"name": "@bbob/preset-react", "name": "@bbob/preset-react",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/preset-react", "name": "@bbob/preset-react",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/preset-html5": "^2.8.3" "@bbob/preset-html5": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/core": "^2.8.3" "@bbob/core": "^2.9.0"
} }
}, },
"../bbob-core": { "../bbob-core": {
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/preset-react", "name": "@bbob/preset-react",
"version": "2.8.3", "version": "2.9.0",
"description": "React preset to transform BBCode to React for @bbob/react", "description": "React preset to transform BBCode to React for @bbob/react",
"keywords": [ "keywords": [
"bbob", "bbob",
@@ -8,10 +8,10 @@
"react" "react"
], ],
"dependencies": { "dependencies": {
"@bbob/preset-html5": "^2.8.3" "@bbob/preset-html5": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/core": "^2.8.3" "@bbob/core": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/preset-vue
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+4 -4
View File
@@ -1,18 +1,18 @@
{ {
"name": "@bbob/preset-vue", "name": "@bbob/preset-vue",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/preset-vue", "name": "@bbob/preset-vue",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/preset-html5": "^2.8.3" "@bbob/preset-html5": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/core": "^2.8.3" "@bbob/core": "^2.9.0"
} }
}, },
"../bbob-core": { "../bbob-core": {
+3 -3
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/preset-vue", "name": "@bbob/preset-vue",
"version": "2.8.3", "version": "2.9.0",
"description": "Vue preset to transform BBCode to Vue for @bbob/vue*", "description": "Vue preset to transform BBCode to Vue for @bbob/vue*",
"keywords": [ "keywords": [
"bbob", "bbob",
@@ -8,10 +8,10 @@
"vue" "vue"
], ],
"dependencies": { "dependencies": {
"@bbob/preset-html5": "^2.8.3" "@bbob/preset-html5": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/core": "^2.8.3" "@bbob/core": "^2.9.0"
}, },
"main": "lib/index.js", "main": "lib/index.js",
"module": "es/index.js", "module": "es/index.js",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/preset
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+2 -2
View File
@@ -1,12 +1,12 @@
{ {
"name": "@bbob/preset", "name": "@bbob/preset",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/preset", "name": "@bbob/preset",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT" "license": "MIT"
} }
} }
+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/preset", "name": "@bbob/preset",
"version": "2.8.3", "version": "2.9.0",
"description": "Base preset for creating extensible presets for @bbob/core", "description": "Base preset for creating extensible presets for @bbob/core",
"keywords": [ "keywords": [
"preset", "preset",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/react
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+7
View File
@@ -1,4 +1,11 @@
# @bbob/react # @bbob/react
[![install size](https://packagephobia.now.sh/badge?p=@bbob/react)](https://packagephobia.now.sh/result?p=@bbob/react) [![Known Vulnerabilities](https://snyk.io/test/github/JiLiZART/bbob/badge.svg?targetFile=packages%2Fbbob-react%2Fpackage.json)](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-react%2Fpackage.json)
> Converts @bbob/parser AST tree to React
```shell
npm i @bbob/react @bbob/preset-react
```
```jsx ```jsx
import React from 'react' import React from 'react'
+6 -6
View File
@@ -1,20 +1,20 @@
{ {
"name": "@bbob/react", "name": "@bbob/react",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/react", "name": "@bbob/react",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/preset-react": "^2.8.3", "@bbob/preset-react": "^2.9.0",
"@testing-library/jest-dom": "^5.16.4", "@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "13.x", "@testing-library/react": "13.x",
"react": "18.x", "react": "18.x",
+5 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/react", "name": "@bbob/react",
"version": "2.8.3", "version": "2.9.0",
"description": "A BBCode to React Renderer part of @bbob", "description": "A BBCode to React Renderer part of @bbob",
"keywords": [ "keywords": [
"react", "react",
@@ -9,16 +9,16 @@
"bbob" "bbob"
], ],
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"peerDependencies": { "peerDependencies": {
"prop-types": "> 15.0", "prop-types": "> 15.0",
"react": "> 15.0" "react": "> 15.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/preset-react": "^2.8.3", "@bbob/preset-react": "^2.9.0",
"@testing-library/jest-dom": "^5.16.4", "@testing-library/jest-dom": "^5.16.4",
"@testing-library/react": "13.x", "@testing-library/react": "13.x",
"react": "18.x", "react": "18.x",
+8
View File
@@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file. All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. 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/vue2
## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18) ## [2.8.3](https://github.com/JiLiZART/bbob/compare/v2.8.2...v2.8.3) (2022-12-18)
+40
View File
@@ -1 +1,41 @@
# @bbob/vue2 # @bbob/vue2
[![install size](https://packagephobia.now.sh/badge?p=@bbob/vue2)](https://packagephobia.now.sh/result?p=@bbob/vue2) [![Known Vulnerabilities](https://snyk.io/test/github/JiLiZART/bbob/badge.svg?targetFile=packages%2Fbbob-vue2%2Fpackage.json)](https://snyk.io/test/github/JiLiZART/bbob?targetFile=packages%2Fbbob-vue2%2Fpackage.json)
> Converts @bbob/parser AST tree to Vue 2
```shell
npm i @bbob/vue2 @bbob/preset-vue
```
```js
import Vue from 'vue'
import VueBbob from '@bbob/vue2';
Vue.use(VueBbob);
```
```html
<template>
<div class="vue2">
<h2>Generated vue2 here</h2>
<bbob-bbcode container="div" :plugins="plugins">{{ bbcode }}</bbob-bbcode>
</div>
</template>
<script>
import Vue from 'vue'
import preset from '@bbob/preset-vue'
export default Vue.extend({
name: 'App',
data() {
return {
bbcode: 'Text [b]bolded[/b] and [i]Some Name[/i]',
plugins: [
preset()
],
}
}
})
</script>
```
+6 -6
View File
@@ -1,20 +1,20 @@
{ {
"name": "@bbob/vue2", "name": "@bbob/vue2",
"version": "2.8.3", "version": "2.9.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@bbob/vue2", "name": "@bbob/vue2",
"version": "2.8.3", "version": "2.9.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"devDependencies": { "devDependencies": {
"@bbob/preset-vue": "^2.8.3", "@bbob/preset-vue": "^2.9.0",
"@testing-library/vue": "5.8.3", "@testing-library/vue": "5.8.3",
"vue": "2.7.14", "vue": "2.7.14",
"vue-template-compiler": "2.7.14" "vue-template-compiler": "2.7.14"
+5 -5
View File
@@ -1,6 +1,6 @@
{ {
"name": "@bbob/vue2", "name": "@bbob/vue2",
"version": "2.8.3", "version": "2.9.0",
"description": "A BBCode to Vue2 Renderer part of @bbob", "description": "A BBCode to Vue2 Renderer part of @bbob",
"keywords": [ "keywords": [
"vue", "vue",
@@ -9,15 +9,15 @@
"bbob" "bbob"
], ],
"dependencies": { "dependencies": {
"@bbob/core": "^2.8.3", "@bbob/core": "^2.9.0",
"@bbob/html": "^2.8.3", "@bbob/html": "^2.9.0",
"@bbob/plugin-helper": "^2.8.3" "@bbob/plugin-helper": "^2.9.0"
}, },
"peerDependencies": { "peerDependencies": {
"vue": "2.x" "vue": "2.x"
}, },
"devDependencies": { "devDependencies": {
"@bbob/preset-vue": "^2.8.3", "@bbob/preset-vue": "^2.9.0",
"@testing-library/vue": "5.8.3", "@testing-library/vue": "5.8.3",
"vue": "2.7.14", "vue": "2.7.14",
"vue-template-compiler": "2.7.14" "vue-template-compiler": "2.7.14"