Update dependency superstruct to v2 #21324
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.0.4
->2.0.2
Release Notes
ianstormtaylor/superstruct (superstruct)
v2.0.2
Compare Source
be4bc95
v2.0.1
Compare Source
5d18222
05254f0
5a884ac
v2.0.0
Compare Source
Some changes in Superstruct v2.0 are potentially breaking if you were using the library in unusual and/or undocumented ways. Since it has been almost 2 years since the last significant release, we want to make sure that we don't ruin someone's day by surprising them with a fix that changes buggy behavior they were relying on. For this reason, some changes that would ordinarily be considered a fix are marked as breaking.
🚀 For the absolute majority of users, this should be a smooth upgrade that will not require any changes.
Breaking
object()
,type()
, andrecord()
structs.object()
(viamask()
,create()
orvalidate()
with thecoerce: true
option), arrays will no longer be automatically converted to objects with indexes as keys. See this PR comment.New
Fixed
mask()
withunion()
now correctly masks union members instead of incorrectly failing validation.Deprecations
New Maintainers & Next Steps
Project maintenance has moved to a new volunteer team: @arturmuller and @yeoffrey. Hello there! 👋 We are currently going through the existing issues and PRs, trying to resolve or close the backlog. This might take a little while so please bear with us.
If you are interested in contributing — or helping us process the backlog — we would love your help. Don't hesitate to help us triage, open an issue, or submit a PR. You can also join our Superstruct maintainers Discord: https://discord.gg/pdHrQBjQ96.
If you have questions, suggestions, or are just not sure about something related to Superstruct, head over to GitHub Discussions! We have recently enabled this feature to help us differentiate between actual issues/bugs and everything else. We hope this will be a great new place where Superstruct users can get quick help from us — the maintainers — but also from the community as a whole.
See you at the next release! ✌️
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.