Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump ajv from 6.12.6 to 7.2.1 #2350

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Mar 8, 2021

Bumps ajv from 6.12.6 to 7.2.1.

Release notes

Sourced from ajv's releases.

v7.2.1

Add tests and fix parsers compiled with ajv.compileParser from JTD schemas:

  • fail on invalid JSON:
    • trailing comma in arrays/objects
    • invalid JSON numbers
    • control characters in strings
  • fix parsing of u-escaped characters
  • do not fail on duplicate object keys (consistent with JSON.parse)

Compiled parsers are now:

  • consistent with JSON.parse in case of invalid JSON
  • only parse data that is valid for JTD schema

It is a breaking change for compiled parsers compared with 7.2.0 that was released earlier pn the same day.

v7.2.0

strictRequired option (off by default) - to log or fail if properties used in JSON Schema "required" are not defined in "properties" (@​PBug90, #1403)

Compiled parsers (as fast as JSON.parse on valid JSON, but replace validation and fail much faster on invalid JSON) and serializers (10x+ faster than JSON.stringify) from JSON Type Definition schemas (#1454) - see examples in javascript and typescript

Please note: there are fixes to compiled parsers in 7.2.1

The website migrated to VuePress and documentation is restructured to make navigating Ajv documentation and learning easier - this is still work in progress, but already some improvement on the information structure. Any feedback/corrections would be very much appreciated!

Improved TypeScript support for JSONSchemaType:

  • JTDSchemaType utility type to convert your data type into the type of JTD schema, to simplify its writing and to make sure it is consistent with your data type, with type inference support for ajv methods (@​erikbrinkman, #1446, #1456, #1457, #1475) - see example here
  • Alternatively, you can use JTDDataType utility type to convert your JTD schema type into the type of data (@​erikbrinkman, #1458) - see this example

Other improvements by @​Fdawgs (#1466), @​t7yang (#1472, #1473), @​koba04 (#1460)

v7.1.1

Support readonly arrays with JSONSchemaType (@​LinusU, #1447)

v7.1.0

Support for JSON Type Definition RFC 8927 - a simple schema language provided as an alternative to JSON Schema.

See these docs:

Allow ":" in keyword names (#1421, @​teq0)

v7.0.4

Fix: duplicate functions in standalone validation code with mutually recursive schemas (#1361) Fix: reference resolution when base URI change was not applied (#1414)

v7.0.3

Fixes:

... (truncated)

Commits
  • dd0eab5 7.2.1
  • 8136725 docs: hide outbound link icon from links with images
  • 8e07f30 fix: JSON parsers
  • 6cd8eb8 JSON parse tests from nst/JSONTestSuite
  • 0249f0f site: collapsible sidebar
  • 9823d1d 7.2.0
  • db553ad fix type inference for JTDSchemaType in compileParser/Serializer
  • 23293be docs: add code block header
  • 848d3f2 docs: JSONDataType
  • 0aa047b fix indentation in code samples, turn off prettier for md files
  • Additional commits viewable in compare view

Dependabot compatibility score

You can trigger a rebase of this PR by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Mar 8, 2021
@pullapprove
Copy link

pullapprove bot commented Mar 8, 2021

Hey @dependabot[bot], thanks for the PR! The review will start once
the tests, CI checks and PR requirements (see checklist in your PR) have passed.

@codecov
Copy link

codecov bot commented Mar 8, 2021

Codecov Report

Merging #2350 (6d4b520) into develop (5e4f7c5) will decrease coverage by 56.15%.
The diff coverage is n/a.

Impacted file tree graph

@@             Coverage Diff              @@
##           develop    #2350       +/-   ##
============================================
- Coverage    74.70%   18.54%   -56.16%     
============================================
  Files          496      497        +1     
  Lines        13891    13930       +39     
============================================
- Hits         10377     2584     -7793     
- Misses        3514    11346     +7832     
Impacted Files Coverage Δ
src/swagger.js 0.00% <0.00%> (-100.00%) ⬇️
src/components/index.js 0.00% <0.00%> (-100.00%) ⬇️
src/services/docs/index.js 0.00% <0.00%> (-100.00%) ⬇️
src/services/help/index.js 0.00% <0.00%> (-100.00%) ⬇️
src/services/help/model.js 0.00% <0.00%> (-100.00%) ⬇️
src/utils/facadeLocator.js 0.00% <0.00%> (-100.00%) ⬇️
src/components/user/index.js 0.00% <0.00%> (-100.00%) ⬇️
src/services/config/index.js 0.00% <0.00%> (-100.00%) ⬇️
src/services/helpers/hash.js 0.00% <0.00%> (-100.00%) ⬇️
src/externalServices/index.js 0.00% <0.00%> (-100.00%) ⬇️
... and 383 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e4f7c5...6d4b520. Read the comment docs.

@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ajv-7.2.1 branch 3 times, most recently from 7a8382b to 0af16b2 Compare March 12, 2021 00:02
Bumps [ajv](https://github.com/ajv-validator/ajv) from 6.12.6 to 7.2.1.
- [Release notes](https://github.com/ajv-validator/ajv/releases)
- [Commits](ajv-validator/ajv@v6.12.6...v7.2.1)

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/npm_and_yarn/ajv-7.2.1 branch from 0af16b2 to 6d4b520 Compare March 15, 2021 00:03
@dependabot @github
Copy link
Contributor Author

dependabot bot commented on behalf of github Mar 22, 2021

Superseded by #2389.

@dependabot dependabot bot closed this Mar 22, 2021
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/ajv-7.2.1 branch March 22, 2021 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

0 participants