Skip to content

Update ajv to version 6.#60

Merged
gajus merged 1 commit intogajus:masterfrom
realityking:ajv-6
Feb 15, 2018
Merged

Update ajv to version 6.#60
gajus merged 1 commit intogajus:masterfrom
realityking:ajv-6

Conversation

@realityking
Copy link
Copy Markdown
Contributor

Extracted from #57

Comment thread test/config.js

before(() => {
const ajv = new Ajv({allErrors: true});
ajv.addMetaSchema(ajvSchemaDraft06);
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Whats the reason this is needed?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

AJV 6 was updated to use draft-07 by default. Since AJV's schema's are draft-06 this is necessary.

The schema should probably be updated to draft-07 at some point but IMHO that can/should be a second step.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

ETA for this getting released?

Copy link
Copy Markdown

@mikermcneil mikermcneil Feb 23, 2018

Choose a reason for hiding this comment

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

@gajus Would love to have this released as a patch as well-- I'm happy to help on anything else needed to make that happen ASAP. This is currently causing NPM warnings for anyone with the latest version of eslint installed in their projects (or any 4.x release of eslint for that matter) -- and thus for every Sails v1 user with a newly generated project. (Because table is a few levels deep, we can't pin it at the application level, and we don't want to confuse new Node users by including a shrinkwrap instead of a package-lock file)

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

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

Published.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

@gajus thank you!

Unfortunately, eslint pinned itself to 4.0.2 (presumably due to some unusual usage of require?) So for anyone else following this-- as of now, it is still a problem. Hoping we can get it resolved: eslint/eslint@6b71fd0#commitcomment-28261398

In the mean time, I'll just fork and republish like I did with @sailshq/htmlhint and @sailshq/lodash so we make all the exciting warnings go away (hopefully for good).

@gajus gajus merged commit eec96ab into gajus:master Feb 15, 2018
@realityking realityking deleted the ajv-6 branch February 15, 2018 17:35
mikermcneil referenced this pull request in eslint/eslint Mar 25, 2018
The different version of "table" dependency is causing a conflict with eslint 4.18.1 that requires "ajv": "^5.3.0"
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.

4 participants