Skip to content

Replace joi with superstruct#188

Merged
shellscape merged 2 commits intomasterfrom
superstruct
Oct 9, 2020
Merged

Replace joi with superstruct#188
shellscape merged 2 commits intomasterfrom
superstruct

Conversation

@TrySound
Copy link
Collaborator

@TrySound TrySound commented Oct 7, 2020

This PR contains:

  • bugfix
  • feature
  • refactor
  • tests
  • documentation
  • metadata

Breaking Changes?

  • yes
  • no

If yes, please describe the breakage.

Please Describe Your Changes

Joi has a poor documentation and hard to find changelog in issues.
In this diff I migrated to suggested by @shellscape "superstruct"
which does not have dependencies and simpler to extend.

Joi has a poor documentation and hard to find changelog in issues.
In this diff I migrated to suggested by @shellscape "superstruct"
which does not have dependencies and simpler to extend.
lib/validate.js Outdated
]
};
const promise = refinement(any(), 'promise-like', (value) => {
console.log(value, isPromise(value));
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we'll probably want to delete this one yeah?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missed this one

TrySound added a commit to shellscape/webpack-plugin-ramdisk that referenced this pull request Oct 8, 2020
shellscape pushed a commit to shellscape/webpack-plugin-ramdisk that referenced this pull request Oct 9, 2020
@shellscape shellscape merged commit bda7369 into master Oct 9, 2020
@shellscape shellscape deleted the superstruct branch October 9, 2020 03:38
bz2 added a commit to bz2/license-checker-webpack-plugin that referenced this pull request Nov 14, 2020
The joi validation package is deprecated/moving repository.

Going off shellscape/webpack-plugin-serve#188 superstruct seems a solid
replacement. Basic validation works fine, and can be customised as
needed.

Add some tests for option validation.
unindented pushed a commit to microsoft/license-checker-webpack-plugin that referenced this pull request Nov 15, 2020
The joi validation package is deprecated/moving repository.

Going off shellscape/webpack-plugin-serve#188 superstruct seems a solid
replacement. Basic validation works fine, and can be customised as
needed.

Add some tests for option validation.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants