Tommy Wolfheart
Tommy Wolfheart

Reputation: 583

Is TaffyDB still valid?

I tried to install TaffyDB using the command npm install --production taffy given on the Github repository and I got the warning "npm WARN deprecated [email protected]: Please do not use this package it has a major security vunability - check https://snyk.io/vuln/search?q=taffy&type=npm for details."

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.

To be more specific, I have an array of product variants with, for simplicity, just a set of option values i.e.

product_variants = [
  {
    "id": 1,
    "color": "red",
    "size": "medium",
    "material": "polyester"
  },
  {
    "id": 2,
    "color": "blue",
    "size": "medium",
    "material": "polyester"
  },
  {
    "id": 3,
    "color": "red",
    "size": "small",
    "material": "nylon"
  },
  ...
]

When a user clicks a selection of buttons on the product detail page e.g. {"color":"red", "size":"small"}, I want to be able to extract product variants matching this set of selections.

I'm new to JavaScript but not at all to programming and am unsure what I can use to achieve my objective.

Upvotes: 1

Views: 1232

Answers (0)

Related Questions