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

fix(apca-silver-plus): don't reverse in place #132

Merged
merged 3 commits into from
Sep 3, 2024

Conversation

MatteoPieroni
Copy link
Contributor

Hey folks, I found a small issue with the silver check:

we were reversing the array in place, which meant the array was being reversed and re-reversed. I switched it to reverse a copy of the original array, so that we don't taint it.

Copy link

changeset-bot bot commented Aug 21, 2024

🦋 Changeset detected

Latest commit: f7c60d9

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
apca-check Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@MatteoPieroni
Copy link
Contributor Author

@giamir , just tagging you here for visibility, cause I know GitHub notifications can be lost easily 🙂

Copy link
Collaborator

@giamir giamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @MatteoPieroni for the PR and sorry for the late feedback on it.

I think I understand the problem you have encountered but before merging the PR I would like to have a corresponding test in place to prevent similar regressions in the future.

I think you should be able to add a test case in the index.test.ts file under the silver plus describe showcasing the issue this PR is fixing.

Let me know if you need further guidance and thanks for the contribution.

@MatteoPieroni
Copy link
Contributor Author

Thank you @giamir!

I've added the test, not sure on the test title, happy to change if you have a better idea 🙂

Copy link
Collaborator

@giamir giamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are good to merge. Thanks for the contribution @MatteoPieroni and for your patience. Will cut a new patch release shortly.

@giamir giamir merged commit 90ca26a into StackExchange:main Sep 3, 2024
2 checks passed
@github-actions github-actions bot mentioned this pull request Sep 3, 2024
@giamir
Copy link
Collaborator

giamir commented Sep 3, 2024

https://www.npmjs.com/package/apca-check/v/0.1.1

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

Successfully merging this pull request may close these issues.

2 participants