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

feat: Improve how values are validated in filter utils #161

Merged
merged 3 commits into from
Feb 14, 2025

Conversation

reobin
Copy link
Member

@reobin reobin commented Feb 14, 2025

Description

  • createEqFilter will now accept 0 or false, for example. Will refuse actually undefined values.
  • Also remove createBoolFilter as it's the same as createEqFilter. (I'm open to different opinions on this, we could deprecate or keep it).
  • (minor) Added printing of the name of the package being built in the build script.

Found this when trying to use createGtFilter('...', 0) and my filter wouldn't be applied.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update (if none of the other choices apply)

Checklist

  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • I have updated the documentation accordingly.

* `createEqFilter` will now accept 0 or false, for example. Will refuse
  actually undefined values.

Found this when trying to use `createGtFilter('...', 0)` and my filter
wouldn't be applied.
@reobin reobin requested review from jm42 and rlajous February 14, 2025 19:51
@reobin reobin self-assigned this Feb 14, 2025
Copy link

vercel bot commented Feb 14, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
poap-js ⬜️ Ignored (Inspect) Visit Preview Feb 14, 2025 8:49pm

Copy link
Member

@jm42 jm42 left a comment

Choose a reason for hiding this comment

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

Please, add a entry to the changelog.

@reobin reobin merged commit 59312ce into main Feb 14, 2025
3 checks passed
@reobin reobin deleted the feat/filter-improvements branch February 14, 2025 21:25
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