Skip to content
Discussion options

You must be logged in to vote

Hi @mrankine! I'm Dosu and I’m helping the valibot team.

Valibot does not currently document minimum supported browser versions or provide guidance on polyfills for Object.hasOwn. The codebase uses Object.hasOwn directly, which is only available in browsers that support ECMAScript 2022 and newer. If you need to support older browsers, you will need to add a polyfill for Object.hasOwn yourself. The maintainer's general stance is to rely on modern JavaScript features and expect users to manage polyfills or upgrade their environments as needed. There are plans to improve documentation around runtime requirements in the future, but nothing is published yet citation.

For a polyfill, you can use:

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mrankine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant