title: Is TaffyDB still valid?
body: <p>I tried to install TaffyDB using the command <code>npm install --production taffy</code> given on the <a href="https://github.com/typicaljoe/taffydb" rel="nofollow noreferrer">Github</a> repository and I got the warning &quot;npm WARN deprecated taffy@2.6.2: Please do not use this package it has a major security vunability - check <a href="https://snyk.io/vuln/search?q=taffy&amp;type=npm" rel="nofollow noreferrer">https://snyk.io/vuln/search?q=taffy&amp;type=npm</a> for details.&quot;</p>
  <p>Is there a new version somewhere or should TaffyDB not be used anymore? If not, are there better alternatives? All I would like to do is select an item in a JSON array using a set of values in NextJS.</p>
  <p>To be more specific, I have an array of product variants with, for simplicity, just a set of option values i.e.</p>
  <pre><code>product_variants = [
    {
      &quot;id&quot;: 1,
      &quot;color&quot;: &quot;red&quot;,
      &quot;size&quot;: &quot;medium&quot;,
      &quot;material&quot;: &quot;polyester&quot;
    },
    {
      &quot;id&quot;: 2,
      &quot;color&quot;: &quot;blue&quot;,
      &quot;size&quot;: &quot;medium&quot;,
      &quot;material&quot;: &quot;polyester&quot;
    },
    {
      &quot;id&quot;: 3,
      &quot;color&quot;: &quot;red&quot;,
      &quot;size&quot;: &quot;small&quot;,
      &quot;material&quot;: &quot;nylon&quot;
    },
    ...
  ]
  </code></pre>
  <p>When a user clicks a selection of buttons on the product detail page e.g. <code>{&quot;color&quot;:&quot;red&quot;, &quot;size&quot;:&quot;small&quot;}</code>, I want to be able to extract product variants matching this set of selections.</p>
  <p>I'm new to JavaScript but not at all to programming and am unsure what I can use to achieve my objective.</p>