mirror of
https://github.com/tenrok/BBob.git
synced 2026-05-15 11:59:37 +03:00
chore(release): publish v4.2.0 (#268)
chore(release): release Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
8a9cfd67c0
commit
b09f4fa3c7
@@ -1,42 +0,0 @@
|
||||
---
|
||||
"@bbob/parser": minor
|
||||
"@bbob/types": minor
|
||||
"@bbob/cli": minor
|
||||
"@bbob/core": minor
|
||||
"@bbob/html": minor
|
||||
"@bbob/plugin-helper": minor
|
||||
"@bbob/preset": minor
|
||||
"@bbob/preset-html5": minor
|
||||
"@bbob/preset-react": minor
|
||||
"@bbob/preset-vue": minor
|
||||
"@bbob/react": minor
|
||||
"@bbob/vue2": minor
|
||||
"@bbob/vue3": minor
|
||||
---
|
||||
|
||||
New option flag `caseFreeTags` has been added
|
||||
|
||||
This flag allows to parse case insensitive tags like `[h1]some[/H1]` -> `<h1>some</h1>`
|
||||
|
||||
```js
|
||||
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
|
||||
|
||||
```js
|
||||
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
|
||||
@@ -1,17 +0,0 @@
|
||||
---
|
||||
"@bbob/react": patch
|
||||
"@bbob/cli": patch
|
||||
"@bbob/core": patch
|
||||
"@bbob/html": patch
|
||||
"@bbob/parser": patch
|
||||
"@bbob/plugin-helper": patch
|
||||
"@bbob/preset": patch
|
||||
"@bbob/preset-html5": patch
|
||||
"@bbob/preset-react": patch
|
||||
"@bbob/preset-vue": patch
|
||||
"@bbob/types": patch
|
||||
"@bbob/vue2": patch
|
||||
"@bbob/vue3": patch
|
||||
---
|
||||
|
||||
Fix types for BbobCoreOptions
|
||||
Reference in New Issue
Block a user