Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Update ajv, deep-equal, json-pointer, commander and other dependencies #565

Merged
merged 7 commits into from
Mar 26, 2021

Conversation

kuba-kubula
Copy link
Member

@kuba-kubula kuba-kubula commented Mar 19, 2021

closes #252
closes #481

closes #520
closes #535
closes #539
closes #540

closes #547

closes #558

closes #562

closes #564

@kuba-kubula kuba-kubula added dependencies security Pull requests that address a security vulnerability labels Mar 19, 2021
@kuba-kubula kuba-kubula changed the title Uupdate ajv, deep-equal, json-pointer, commander and other dependencies Update ajv, deep-equal, json-pointer, commander and other dependencies Mar 19, 2021
package.json Outdated
"media-typer": "1.1.0",
"tv4": "1.3.0",
"url": "0.11.0"
"url-parse": "1.5.1"

Choose a reason for hiding this comment

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

It'd be great if you could have a look at #536. Technically url is just a dev-dependency right now.

Copy link
Member Author

Choose a reason for hiding this comment

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

Based on the code of validate.js - there's still the validateURI function using deep-clone to do comparison of a query-string regardless of ordering of key=value pairs.

Copy link
Member Author

Choose a reason for hiding this comment

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

building CommonJS sure - I might look into it.
You're right that url could be a devDependency, as NodeJs has its version as part of core.
Have to 🤔 about it a bit more.

Copy link
Member Author

Choose a reason for hiding this comment

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

@realityking I'm more or less thinking about actually reusing uri-js instead of any url-parse/url/native-url or what-not (that package is anyway used by ajv, so it is present at all cost)

Choose a reason for hiding this comment

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

Not a bad idea. Another idea could be to move to the native URL API (https://nodejs.org/api/url.html#url_the_whatwg_url_api) and either polyfill for older browsers or ask users to polyfill themselves.

Copy link
Contributor

@artem-zakharchenko artem-zakharchenko left a comment

Choose a reason for hiding this comment

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

The url update is good, but I've left some comments about moving some dependencies into dev dependencies.

- function to convert legacy Amanda/TV4 error messages
  to Gavel-compliant structure
- function to convert TV4 to headers error message
- function to warn on using deprecated functionality
@kuba-kubula kuba-kubula merged commit ca75f18 into master Mar 26, 2021
@kuba-kubula kuba-kubula deleted the kubula/update_deep-equal_json-pointer branch March 26, 2021 12:44
@ApiaryBot
Copy link
Collaborator

🎉 This PR is included in version 10.0.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies released security Pull requests that address a security vulnerability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants