Skip to content

Conversation

@CommanderRoot
Copy link
Contributor

String.prototype.substr() is deprecated so we replace it with String.prototype.slice() which works similarily but isn't deprecated.
.substr() probably isn't going away anytime soon but the change is trivial so it doesn't hurt to do it.

String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
@stockiNail stockiNail added this to the 2.0.0 milestone Mar 18, 2022
@kurkle kurkle merged commit 67989c8 into chartjs:master Mar 18, 2022
@kurkle
Copy link
Member

kurkle commented Mar 18, 2022

Merged as this was not a breaking change. If we decide to release another minor for v1, the milestone of this pr needs to be updated.

@stockiNail
Copy link
Collaborator

@kurkle I have seen that this PR created a release note 1.4.1 even if tagged as 2.0.0: https://github.com/chartjs/chartjs-plugin-annotation/releases/tag/untagged-e554510da7259acef101

I don't know if this is correct and a normal behavior.

@kurkle
Copy link
Member

kurkle commented Mar 24, 2022

release-drafter determines the version based on version resolver config:

version-resolver:
major:
labels:
- 'breaking change'
minor:
labels:
- 'enhancement'
patch:
labels:
- 'bug'
- 'chore'
- 'types'
default: patch

so unless its a major or minor, its a patch :)

it will update after new commits are added.

@stockiNail
Copy link
Collaborator

@kurkle thank you very much for explanation and apologize for this stupid question. I'm still trying to understand how it works all GHA in place for this project.

@kurkle
Copy link
Member

kurkle commented Mar 24, 2022

https://en.wikipedia.org/wiki/No_such_thing_as_a_stupid_question

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants