Nikolay Kost
270f5645f8
fix( #206 ): TagNode.create now with null content argument by default ( #233 )
...
* 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
2024-06-24 01:32:15 +03:00
Nikolay Kost
8797f7f363
feat: typescript support ( #185 )
...
* feat: initial typescript support
* feat: typescript support
* feat(plugin-helper): move files to typescript
* chore: update lock files
* feat: preset types
* fix: build
* fix: benchmark
* fix: remove pnpm cache
* fix: bench action
* fix: pnpm recursive install
* fix: nx cache
* fix: lock file
* fix: workflows
* fix: lerna support in pnpm
* fix: pnpm workspace
* fix: remove unused files
* fix: pnpm lock file
* fix: update lerna for support pnpm
* fix: lerna bootstrap
* fix: rollup build
* fix: update nx
* fix: build
* fix: add nx dep target
* fix: remove nx cache
* fix: workflow run on push only for master
* fix: test workflow run on push only for master
* fix: remove parallel for gen types
* fix: benchmark
* fix: benchmark imports
* fix: pnpm
* fix: types errors and pnpm
* fix: types
* fix: types
* refactor: parser
* fix(parser): tests
* fix: preset tests
* fix: react types
* fix: react type declarations
* fix: pnpm lock file
* fix: react preset types
* fix: lock file
* fix: vue2 types
* feat: dev container support
* fix: types
* fix: types
* refactor: rewrite pkg-task, add nx gen-types deps, fix react/render.ts
* refactor: types
* fix: types
* fix: rename gen-types to types
* fix: nx build order
* fix: nx reset
* fix: define nx deps explicit
* fix: build
* fix: nx
* fix: nx order build
* fix: nx deps
* fix: bbob cli tests
* fix: tests
* fix: cli tests and import
* fix: test cover
* fix: cli cover
2024-04-23 21:11:14 +02:00
Nikolay Kost
2d1a08ba9a
chore: update build system and dependencies ( #155 )
...
* chore: fix swc + rollup transform
* chore: fix pkg-task args parsing
* chore: update lerna, rollup and swc to build proper es6 files
* chore: fix swc build for es targets
* ci: nodes matrix to newest versions
* ci: rollup to mjs, swc to json
* ci: add canary publish
* ci: no git tag for canary
* ci: no private publish for canary
* ci: remove --canary from publish-canary
* fix: remove gitHead from package.json
* fix: tests setup
* fix: bbob plugin helper imports
* fix: plugin helper build priority and circular deps
* fix: add nx for parallel build
* fix: npm ci
* fix: code ql
* fix: remove exports directive
* fix: rollup build
* fix: vue2 test and minify
* fix: bundle size limits
* feat: bundlephobia pr review
* feat: bundlephobia more popular action
* feat: publish branch to npm
* fix: secret NPM token
* fix: bundlephobia version
* fix: remove bundlephobia checker
* fix: npm publish in PR
* chore: release 2.8.3
* chore: fix test runs on CI, removed 14.x version
* fix: sync package-lock
* fix: remove lock files in sub packages
* fix: bundlesize > bundlesize2
* fix: update lock files
* fix: lock file in vue2-example
2022-12-18 03:09:56 +02:00
Nikolay Kostyurin
5ceb2f0fa4
fix(plugin-helper): escape case insensitive javascript: attrs
2020-07-08 19:34:12 +02:00
Nikolay Kostyurin
87f38fe97e
fix(html): escape bad html ( #67 )
...
* feat(preset-html5): add feature to filter javascript: urls
* fix(plugin-helper): escape html in attrs
* fix(plugin-helper): tests for html escape
* refactor(preset-html5): remove html escape from preset
* feat(preset): add ability to pass and extend preset options
2020-07-05 15:23:22 +02:00
Nikolay Kostyurin
a16b9f73b0
fix(parser): don't eat not allowed tags with params ( #58 ) fixes #54
...
* feat(parser): write test for only allowed tags parsing
* chore(parser): rename only allowed test
* fix(parser): only allowed tag rendering
* fix(plugin-helper): add new TagNode toString tests
2020-04-12 21:14:52 +02:00
Nikolay Kostyurin
f28f19e64c
feat(plugin-helper): move getUniqAttr from preset to plugin helper ( #63 )
2020-04-12 16:18:47 +02:00
Vladimir
09ff9af9a2
fix(plugin-helper): avoid some malformed attributes in attrsToString ( #26 )
...
* attrsToString: To avoid some malformed attributes
Error:
```
TypeError: Cannot convert undefined or null to object
at Function.keys (<anonymous>)
at attrsToString
```
This errors appears if no `attrs` setted in custom tag:
```
const BBcodePresetTemp = BbobPresetHTML5.extend((tags: any) => {
tags.br = () => ({
tag: 'br',
// attrs: {}, // <-- Comment this line for error and add [br] to text
content: null,
});
return tags;
});
```
2019-06-27 08:49:28 +02:00
Nikolay Kostyurin
c9e1dabf40
feat(html): @bbob/html now can be used without @bbob/core
2019-03-29 10:29:16 +02:00
Nikolay Kostyurin
505152bf4c
fix(plugin-helper): better handle content of TagNode
2018-09-24 00:30:46 +02:00
Nikolay Kostyurin
32a7fb51da
refactor(*): convert to babel and generation to lib, es, dist folders ( #2 )
...
* refactor(*): convert to babel and generation to lib, es, dist
* chore(*): remove generated files
* fix(*): lint run command
2018-09-09 23:55:28 +02:00
Nikolay Kostyurin
1a84968ea2
feat(*): react render support, move some helper functions to plugin-helper
2018-08-09 02:45:19 +02:00
Nikolay Kostyurin
846d93a2a4
style(plugin-helper): fix eslint errors
2018-08-06 23:57:26 +02:00
Nikolay Kostyurin
fb78c4fefb
refactor(*): move helper fucntions from core and preset-html5 to separate package — plugin-helper
2018-08-06 23:52:44 +02:00