Skip to content

Bump jsonschema from 3.2.0 to 4.1.1 in /tools#48

Closed
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/tools/jsonschema-4.1.1
Closed

Bump jsonschema from 3.2.0 to 4.1.1 in /tools#48
dependabot[bot] wants to merge 1 commit intomasterfrom
dependabot/pip/tools/jsonschema-4.1.1

Conversation

@dependabot
Copy link
Copy Markdown

@dependabot dependabot bot commented on behalf of github Oct 20, 2021

Bumps jsonschema from 3.2.0 to 4.1.1.

Release notes

Sourced from jsonschema's releases.

v4.1.1

What's Changed

New Contributors

Full Changelog: python-jsonschema/jsonschema@v4.1.0...v4.1.1

v4.1.0

Full Changelog: python-jsonschema/jsonschema@v4.0.1...v4.1.0

v4.1.0a1

Full Changelog: python-jsonschema/jsonschema@v4.0.1...v4.1.0a1

v4.0.1

  • Partial support for Draft 2020-12 (as well as 2019-09). Thanks to Thomas Schmidt and Harald Nezbeda.
  • False and 0 are now properly considered non-equal even recursively within a container (#686). As part of this change, uniqueItems validation may be slower in some cases. Please feel free to report any significant performance regressions, though in some cases they may be difficult to address given the specification requirement.
  • The CLI has been improved, and in particular now supports a --output option (with plain (default) or pretty arguments) to control the output format. Future work may add additional machine-parsable output formats.
  • Code surrounding DEFAULT_TYPES and the legacy mechanism for specifying types to validators have been removed, as per the deprecation policy. Validators should use the TypeChecker object to customize the set of Python types corresponding to JSON Schema types.
  • Validation errors now have a json_path attribute, describing their location in JSON path format
  • Support for the IP address and domain name formats has been improved
  • Support for Python 2 has been dropped, with python_requires properly set.
  • multipleOf could overflow when given sufficiently large numbers. Now, when an overflow occurs, jsonschema will fall back to using fraction division (#746).
  • jsonschema.__version__, jsonschema.validators.validators, jsonschema.validators.meta_schemas and jsonschema.RefResolver.in_scope have been deprecated, as has passing a second-argument schema to Validator.iter_errors and Validator.is_valid.

This patch release fixes an issue with the way python_requires was declared (i.e. with how the supported Python versions were declared).

v4.0.0

  • Partial support for Draft 2020-12 (as well as 2019-09).

... (truncated)

Changelog

Sourced from jsonschema's changelog.

v4.1.1

  • Fix prefixItems not indicating which item was invalid within the instance path (#862)

v4.1.0

  • Add Python 3.10 to the list of supported Python versions

v4.0.1

  • Fix the declaration of minimum supported Python version (#846)

v4.0.0

  • Partial support for Draft 2020-12 (as well as 2019-09). Thanks to Thomas Schmidt and Harald Nezbeda.
  • False and 0 are now properly considered non-equal even recursively within a container (#686). As part of this change, uniqueItems validation may be slower in some cases. Please feel free to report any significant performance regressions, though in some cases they may be difficult to address given the specification requirement.
  • The CLI has been improved, and in particular now supports a --output option (with plain (default) or pretty arguments) to control the output format. Future work may add additional machine-parsable output formats.
  • Code surrounding DEFAULT_TYPES and the legacy mechanism for specifying types to validators have been removed, as per the deprecation policy. Validators should use the TypeChecker object to customize the set of Python types corresponding to JSON Schema types.
  • Validation errors now have a json_path attribute, describing their location in JSON path format
  • Support for the IP address and domain name formats has been improved
  • Support for Python 2 has been dropped, with python_requires properly set.
  • multipleOf could overflow when given sufficiently large numbers. Now, when an overflow occurs, jsonschema will fall back to using fraction division (#746).
  • jsonschema.__version__, jsonschema.validators.validators, jsonschema.validators.meta_schemas and jsonschema.RefResolver.in_scope have been deprecated, as has passing a second-argument schema to Validator.iter_errors and Validator.is_valid.
Commits
  • d582ebc Add v4.1.1 to the CHANGELOG.
  • 8406a3b Skip more more new leap second tests.
  • d837e97 Merge commit '4ecbea58e0828696f7714abba624e2160518fddd'
  • 4ecbea5 Squashed 'json/' changes from 54440eab4..ba3a90534
  • 53864d2 Merge pull request #862 from jhashkes/fix/prefixitems-indexing
  • ff1a2bf fix prefixItems index reporting in ValidationError
  • 2cf3dc2 Slightly reword the tagline.
  • bb60c9b Add 4.1.0 to the changelog.
  • 14b6879 Sigh, back to full clones.
  • f2754e2 Try autocreating release notes.
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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 python Pull requests that update Python code labels Oct 20, 2021
@dependabot @github
Copy link
Copy Markdown
Author

dependabot bot commented on behalf of github Oct 21, 2021

Superseded by #50.

@dependabot dependabot bot closed this Oct 21, 2021
@dependabot dependabot bot deleted the dependabot/pip/tools/jsonschema-4.1.1 branch October 21, 2021 04:25
rniwa pushed a commit that referenced this pull request Mar 19, 2025
…hich has only a collapsible white-space

In bug 1925635, I moved the post processing after deleting ranges in
`EditorBase::DeleteRangesWithTransaction` into the `HTMLEditor`'s override.
At this time, I makes it uses `HTMLEditUtils::IsEmptyNode` to check whether
the `Text` and its containers become empty. Therefore, if `Ctrl`+`Backspace`
deletes the only word in the `Text` which starts with a collapsible white-space
causes deleting the `Text` after deleting all visible characters in the `Text`.

Therefore, this makes check it with `Text::TextDataLength` too before searching
the most distant ancestor inline element which becomes empty.

However, it may cause leading invisible white-spaces of the only word visible
because `nsFrameSelection` computes the word range strictly in the `Text`.
Therefore, this patch also makes `HTMLEditor::DeleteRangesWithTransaction` and
`AutoDeleteRangesHandler::ComputeRangesToDeleteRangesWithTransaction` extend
each range to delete to include surrounding invisible white-spaces too.

Therefore, this patch adds the new method to `AutoClonedRangeArray`.

Then, I hit 4 existing bugs with new test failures.

One is `HTMLEditUtils::LineRequiresPaddingLineBreakToBeVisible`.  It checks
whether the candidate point to insert a `<br>` is followed by a block boundary
first.  Then, it checks whether the candidate point follows a collapsible
white-space or a block boundary.  However, it uses
`WSRunScanner::ScanPreviousVisibleNodeOrBlockBoundary()` which ignores invisible
white-spaces.  Therefore, it will ignore the new invisible white-space and
reaches preceding `Text`.  Thus, it fails to put a `<br>` and makes the new
invisible white-space "fixed" as invisible.

Therefore, this patch rewrites the check with using
`HTMLEditUtils::GetPreviousLeafContentOrPreviousBlockElement()`.

Next one is, `HTMLEditor::DeleteEmptyInclusiveAncestorInlineElements()`
returns end of deleted node if it's followed by a non-editable node, i.e.,
an element has `contenteditable="false"`.  Therefore, its caller inserts a
`<br>` to the end of the container when deleting preceding editable node of a
non-editable node.

Therefore, this patch removes the editable state check.

Next, `AutoBlockElementsJoiner::HandleDeleteNonCollapsedRange` may put a padding
`<br>` after the moved line, but it does not assume that the moved line does not
ends with a block boundary.  This causes failing #46 and #48 tests in
`text_bug772796.html`.  E.g., when pressing `Delete` in
`<div>foo[]<div><span style="white-space:pre"><div>bar</div>baz</span>`, we move
the second `<div>` as a child of the parent `<span>` to end of the first `<div>`
like `<div>foo<span style="white-space:pre"><div>bar</div></span></div>...`.
Without the change, it starts to put unnecessary `<br>` after ` the `<span>`
because of the bug fix in `HTMLEditUtils::LineRequiresPaddingLineBreakToBeVisible`
above.  This result is completely odd from the users point of view (looks like
just move caret), but we should avoid to put the unnecessary `<br>`.

Finally, we'll fail an assertion when putting caret at the last of
`AutoBlockElementsJoiner::DeleteContentInRange` because it forgets to flush
the tracking range before using it. This appeared by the changes above.

Therefore, this patch fixes this bug too.

Differential Revision: https://phabricator.services.mozilla.com/D240703

bugzilla-url: https://bugzilla.mozilla.org/show_bug.cgi?id=1951518
gecko-commit: 2260ab21bbf0c3e9f7d5eb7cda4fb9300c02be90
gecko-reviewers: m_kato
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 python Pull requests that update Python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants