Skip to content

Releases: tolking/components-helper

v2.2.0

28 Nov 03:47
d61c6f2
Compare
Choose a tag to compare

berak change

  • change the type to module (#45)
- index.js
+ index.cjs
- index.es.js
+ index.js

v2.1.5

30 Sep 12:45
42eee08
Compare
Choose a tag to compare

fix

  • optimize file writing (#42)
  • incompatible with pure number types (#43)

v2.1.4

23 Oct 07:18
b390f5f
Compare
Choose a tag to compare

feat

  • add fastGlobConfig for fast-glob (#39)

fix

  • the attribute-value should change with type (#38)

v2.1.3

29 Sep 03:59
b3e2a14
Compare
Choose a tag to compare

feat

  • compatible with more types
  • move events to js/events
  • add config slotsType (#36)

v2.1.2

05 Sep 08:28
9e24c79
Compare
Choose a tag to compare

feat

  • support filter options from type
  • export utils functions

fix

  • miss type boolean
  • partial separator not replaced

v2.1.1

04 Sep 10:36
7738f20
Compare
Choose a tag to compare

feat

  • add config reWebTypesType
  • improve types for web-types

v2.1.0

03 Sep 12:15
c018eba
Compare
Choose a tag to compare

feat

  • update web-types to 2.0
  • add attribute enum autosuggestion for web-types

v2.0.0

03 Feb 05:22
a8052bf
Compare
Choose a tag to compare

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
1d2fd17
Compare
Choose a tag to compare

feat

  • export all types

fix

  • support windows path

v1.0.4

14 Aug 07:26
61cf40b
Compare
Choose a tag to compare

feat

  • add reWebTypesSource config

fix

  • the header error of description in tags