Skip to content

v1.0.7

Compare
Choose a tag to compare
@talatkuyuk talatkuyuk released this 26 Dec 14:24
· 20 commits to main since this release

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 the tsconfig.json
  • updated the README.md having at least node version 16+
  • fixed "Cannot find module" error in ts-jest test environment by adding moduleResolution
  • added a callback function for the title option (breaking change !!!)
    Before, the title option was null | undefined. If you wanted not to add a title node, the option was title: null.
    Now, the title option is a callback function(type?: string, title?: string) => string | null | undefined. If you want not to add a title node, the option is title: () => 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 to string option
    It will also provides you to define dynamic tag names and class names.
  • added the test files covering the new options