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 bug that caused issues in constructor function #42

Merged
merged 2 commits into from
May 14, 2022
Merged

Conversation

M-Scott-Lassiter
Copy link
Owner

Proposed Changes

Fix behavior that allowed bad dictionary values to make it through if passed in the constructor function.

Pull Request Checklist

Please check if your PR fulfills the following requirements:

  • I have read the CONTRIBUTING guidelines
  • My commits follow the appropriate guidance
  • I certify that I have the appropriate permissions to add these changes to the repository
  • An issue is open for the changes proposed
  • I have added/updated tests for new code changes (if applicable)
  • Documentation has been added/updated (if applicable)
  • I built (npm run build) locally and pushed all changes

Issues Addressed: #41

Other Information

None

…he constructor

Although directly setting bad dictionary values (e.g. `encoder.dictionary = null`) would throw an
error, using the constructor did not (e.g. `encoder = new AlphanumericEncoder( { dictionary: null }
)` ). This was due to the manner in which the constructor was checking to see if these optional
values were passed or not. This patch corrects that unintended behavior.

Resolves: #41
@M-Scott-Lassiter M-Scott-Lassiter added the bug Something isn't working label May 14, 2022
@M-Scott-Lassiter M-Scott-Lassiter self-assigned this May 14, 2022
@M-Scott-Lassiter M-Scott-Lassiter changed the title Next Fix bug that caused issues in constructor function May 14, 2022
@M-Scott-Lassiter M-Scott-Lassiter merged commit e2b1e45 into main May 14, 2022
@M-Scott-Lassiter
Copy link
Owner Author

🎉 This PR is included in version 1.5.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant