v1.0.7
Release notes and the changes made by @talatkuyuk
- updated the dependencies and fixed the type issues
- refactored the
.npmrc
file - refactored the
package.json
and thetsconfig.json
- updated the
README.md
having at least node version 16+ - fixed "Cannot find module" error in
ts-jest
test environment by addingmoduleResolution
- added a
callback function
for thetitle
option (breaking change !!!)
Before, thetitle
option wasnull | undefined
. If you wanted not to add atitle
node, the option wastitle: null
.
Now, thetitle
option is a callback function(type?: string, title?: string) => string | null | undefined
. If you want not to add atitle
node, the option istitle: () => null
. With that callback function, you are able to change the titles according to your logic. - added
callback function
option for the TagName and ClassName options in addition tostring
option
It will also provides you to define dynamic tag names and class names. - added the test files covering the new options