Skip to content

fix(deps): update dependency superstruct to v2#148

Open
renovate[bot] wants to merge 1 commit intomainfrom
renovate/superstruct-2.x
Open

fix(deps): update dependency superstruct to v2#148
renovate[bot] wants to merge 1 commit intomainfrom
renovate/superstruct-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate bot commented Jul 27, 2025

This PR contains the following updates:

Package Change Age Confidence
superstruct ^0.16.0^2.0.0 age confidence

Release Notes

ianstormtaylor/superstruct (superstruct)

v2.0.2

Compare Source

v2.0.1

Compare Source

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
  • Validation now correctly fails when arrays are passed to object(), type(), and record() structs.
  • When coercing an object() (via mask(), create() or validate() with the coerce: true option), arrays will no longer be automatically converted to objects with indexes as keys. See this PR comment.
New
  • The library and its TypeScript typings are now compatible with NodeNext/Node16 module resolution. This means that if you are using the library with TypeScript and ECMAScript modules at the same time, you should no longer run into issues!
Fixed
  • Using mask() with union() now correctly masks union members instead of incorrectly failing validation.
Deprecations
  • Use with Node.js v14 is now deprecated. Due to incompatible tooling, we are no longer able to test Superstruct on this version of Node.js. Use at your own risk.
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! ✌️

v1.0.4

Compare Source

Fixes
Documentation

v1.0.3

Compare Source

v1.0.2

Compare Source

v1.0.1

Compare Source

v1.0.0

Compare Source

NEW

Added an optional message argument to override error messages. You can now pass in a message argument to all of the error checking functions which will override any error message with your own message. If you do, Superstruct's original descriptive message will still be accessible via error.cause.

assert(data, User, 'The user is invalid!')
// StructError: The user is invalid!

Configuration

📅 Schedule: Branch creation - Between 12:00 AM and 11:59 PM ( * 0-23 * * * ) in timezone America/New_York, 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.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@vercel
Copy link
Copy Markdown

vercel bot commented Jul 27, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
admin-web-app Ready Ready Preview, Comment Mar 5, 2026 5:38pm

Request Review

@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 3e8ca94 to deb444e Compare July 27, 2025 07:11
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from deb444e to 53b3262 Compare July 27, 2025 23:30
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 53b3262 to 6cd496f Compare August 2, 2025 23:43
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 6cd496f to 3ed8af8 Compare August 3, 2025 00:40
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 3ed8af8 to f655ff1 Compare August 3, 2025 00:56
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from f655ff1 to 5bd72e9 Compare August 3, 2025 12:36
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 5bd72e9 to 3f8946a Compare August 3, 2025 20:38
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 3f8946a to 7b35dc5 Compare August 10, 2025 14:19
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 7b35dc5 to c7cd61f Compare August 10, 2025 20:23
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from c7cd61f to f3a892d Compare August 13, 2025 14:09
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from f3a892d to ba795dc Compare August 19, 2025 19:00
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from ba795dc to 3c25de1 Compare September 9, 2025 12:48
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch 2 times, most recently from 3f2fcb9 to 1a10f24 Compare September 21, 2025 02:34
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 1a10f24 to 29a237c Compare September 24, 2025 04:34
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 29a237c to 4042701 Compare September 25, 2025 19:10
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 4042701 to 331d56e Compare October 21, 2025 10:10
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 331d56e to 150b452 Compare October 24, 2025 05:11
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 150b452 to 52c700f Compare November 10, 2025 18:54
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 52c700f to ece4632 Compare December 21, 2025 00:13
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from ece4632 to 0faf384 Compare January 4, 2026 20:18
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from 0faf384 to b6fbdf6 Compare January 19, 2026 19:52
@renovate renovate bot force-pushed the renovate/superstruct-2.x branch from b6fbdf6 to d35b6b0 Compare February 15, 2026 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants