2
0
mirror of https://github.com/tenrok/BBob.git synced 2026-05-30 15:24:05 +03:00
Commit Graph

12 Commits

Author SHA1 Message Date
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