mirror of
https://github.com/tenrok/BBob.git
synced 2026-06-17 19:21:20 +03:00
* fix: TagNode.create with null content by default * Create five-meals-sing.md * fix: tests * fix(preset): types inference * fix: preset types * fix: preset types * fix: lock file, parser and utils * refactor: move types to separate package * fix(preset): add @bbob/core to dev deps * fix(preset): lock file * test(preset-vue): create tags * test(preset-vue): tests * chore(nx): fix nx cover deps * chore: changesets
This commit is contained in:
@@ -0,0 +1,27 @@
|
||||
---
|
||||
"@bbob/plugin-helper": minor
|
||||
"@bbob/preset-html5": minor
|
||||
"@bbob/preset-react": minor
|
||||
"@bbob/preset-vue": minor
|
||||
"@bbob/parser": minor
|
||||
"@bbob/preset": minor
|
||||
"@bbob/react": minor
|
||||
"@bbob/core": minor
|
||||
"@bbob/html": minor
|
||||
"@bbob/vue2": minor
|
||||
"@bbob/vue3": minor
|
||||
"@bbob/cli": minor
|
||||
---
|
||||
|
||||
** BREAKING CHANGE **
|
||||
|
||||
`TagNode.create` method now by default pass `null` to content instead of empty array `[]`
|
||||
|
||||
```js
|
||||
// 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', {}, [])
|
||||
Reference in New Issue
Block a user