Closed tonyboylehub closed 3 weeks ago
Latest commit: f9033faf62b896b8b85d31138ce1b832200846ea
The changes in this PR will be included in the next version bump.
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](https://github.com/metaplex-foundation/umi/new/feat/add-option-wrapNullish?filename=.changeset/forty-ladybugs-chew.md&value=---%0A%22%40metaplex-foundation%2Fumi-options%22%3A%20patch%0A---%0A%0Aadd%20wrapNullish()%20as%20an%20available%20option%0A)
The latest updates on your projects. Learn more about Vercel for Git ↗︎
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
umi-docs | ✅ Ready (Inspect) | Visit Preview | 💬 Add feedback | Oct 25, 2024 9:13pm |
@blockiosaurus before I merge this are we happy that all these packages are going up a major release?
Yup that's fine by me.
wrapNullable
didn't account for an undefined input and would result in a return value ofsome(undefined)
causingisNone
checks to not pass ifundefined
was thenullable
value.Added a
wrapNullish
function to check for bothnull
and undefined which will return the value ofnone()
ifnull
orundefined
is the presentednullish
value.Nullish
type added.wrapNullish
function added.wrapNullish
added.