Releases: tolking/components-helper
Releases · tolking/components-helper
v2.2.0
28 Nov 03:47
Compare
Sorry, something went wrong.
No results found
berak change
change the type to module (#45 )
- index.js
+ index.cjs
- index.es.js
+ index.js
v2.1.5
30 Sep 12:45
Compare
Sorry, something went wrong.
No results found
fix
optimize file writing (#42 )
incompatible with pure number types (#43 )
v2.1.4
23 Oct 07:18
Compare
Sorry, something went wrong.
No results found
feat
add fastGlobConfig for fast-glob (#39 )
fix
the attribute-value should change with type (#38 )
v2.1.3
29 Sep 03:59
Compare
Sorry, something went wrong.
No results found
feat
compatible with more types
move events to js/events
add config slotsType (#36 )
v2.1.2
05 Sep 08:28
Compare
Sorry, something went wrong.
No results found
feat
support filter options from type
export utils functions
fix
miss type boolean
partial separator not replaced
v2.1.1
04 Sep 10:36
Compare
Sorry, something went wrong.
No results found
feat
add config reWebTypesType
improve types for web-types
v2.1.0
03 Sep 12:15
Compare
Sorry, something went wrong.
No results found
feat
update web-types to 2.0
add attribute enum autosuggestion for web-types
v2.0.0
03 Feb 05:22
Compare
Sorry, something went wrong.
No results found
feat
export all function
use matchAll replace match
add RegExp for titleRegExp tableRegExp and fileNameRegExp
migration guide
- const helper = require('../lib/index')
+ const helper = require('../lib/index').default
# or
- const helper = require('../lib/index')
+ const { main } = require('../lib/index')
It is recommended to replace regular strings with RegExp
{
- titleRegExp: '#+\\s+(.*)\\n+([^(#|\\n)]*)',
+ titleRegExp: /#+\s+(.*)\n+([^(#|\n)]*)/g,
- titleRegExp: '#+\\s+(.*)\\n+>\\s*([^(#|\\n)]*)',
+ titleRegExp: /#+\s+(.*)\n+>\s*([^(#|\n)]*)/g,
- tableRegExp: '#+\\s+(.*)\\n+(\\|?.+\\|.+)\\n\\|?\\s*:?-+:?\\s*\\|.+((\\n\\|?.+\\|.+)+)',
+ tableRegExp: /#+\s+(.*)\n+(\|?.+\|.+)\n\|?\s*:?-+:?\s*\|.+((\n\|?.+\|.+)+)/g,
- tableRegExp: '#+\\s+(.*\\s*Props|.*\\s*Events|.*\\s*Slots|.*\\s*Directives)\\s*\\n+(\\|?.+\\|.+)\\n\\|?\\s*:?-+:?\\s*\\|.+((\\n\\|?.+\\|.+)+)',
+ tableRegExp: /#+\s+(.*\s*Props|.*\s*Events|.*\s*Slots|.*\s*Directives)\n+(\|?.+\|.+)\n\|?\s*:?-+:?\s*\|.+((\n\|?.+\|.+)+)/g,
- fileNameRegExp: '\\/((\\w|-)+)\\.\\w+$',
+ fileNameRegExp: /\/((\w|-)+)\.\w+$/,
}
v1.0.5
10 Dec 06:41
Compare
Sorry, something went wrong.
No results found
v1.0.4
14 Aug 07:26
Compare
Sorry, something went wrong.
No results found
feat
add reWebTypesSource config
fix
the header error of description in tags