Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replaceAll is not a function #6

Closed
Azarel19 opened this issue Mar 5, 2024 · 3 comments
Closed

replaceAll is not a function #6

Azarel19 opened this issue Mar 5, 2024 · 3 comments
Labels

Comments

@Azarel19
Copy link

Azarel19 commented Mar 5, 2024

Describe the bug
Good day, a problem arises during the release of my TypeScript library. At the final step of the release, the semantic-release-telegram-bot plugin is called, but the call ends with an error: "TypeError: unified(...).use(...).use(...).use(...).use(...).use(...).use(...).processSync(...).toString(...).replaceAll is not a function". Most likely the issue is that in my project I'm using node.js 14 and in the tsconfig.json file, the "target" parameter is set to "es2015". I can't upgrade to newer versions due to support for legacy code. I would like to request either to replace the method replaceAll with replace or to add a polyfill to support the old code.

To Reproduce
To reproduce, you will need to use node.js 14 for project building and set a target parameter value lower than "es2021" in the tsconfig.json file.

Expected behavior
There have been no issues with methods that were recently added to the ECMAScript standard and are used in your library.

Screenshots
Screenshot_50

Desktop (please complete the following information):

  • OS: Windows
  • Browser: chrome
  • Version: 122.0.6261.71
@skoropadas
Copy link
Owner

Hi, no problem I'll fix it

Copy link

github-actions bot commented Mar 5, 2024

🎉 This issue has been resolved in version 1.1.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@Azarel19
Copy link
Author

Azarel19 commented Mar 5, 2024

Огромное тебе спасибо от всей команды КПИ.ВРАЧ. И привет от Тани)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants