From 2b164493e434f11c5d8fa2397511c70f4dc3fac4bd7a01eba546db897a352361 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 5 Apr 2023 19:29:14 +0000 Subject: [PATCH] Accepting request 1077592 from home:mcepl:neovim - Update to version 0.20.8: - 0.20.8 - recovered - cicd: fix bug in release workflow - Bumps [webbrowser](https://github.com/amodm/webbrowser-rs) from 0.5.5 to 0.8.3. - cli: Bump tree-sitter dependency to 0.20.10 - Update python error corpus to reflect grammar changes - Improve the performance of running a query in a small range of a large file - Add API for checking if a pattern in a query is non-local - Fix bug in maintenance of query cursor's tree depth - Restructure query_cursor_advance to explicitly control which hidden nodes it descends into - Extract 'internal' versions of tree cursor movement fns that allow visiting hidden nodes - Group analysis state sets into QueryAnalysis struct - Precompute the set of repetition symbols that can match rootless patterns - Add --row-range, --quiet, and --time flags to query subcommand - Fix CLI build on windows - Clear the parse stack when terminating parsing early due to error cost - This fixes a bug where the parse tree would not be rebalanced if this code path was taken. - Add --dot flag to parse subcommand, for printing tree as DOT graph - Derive Hash for Language - docs: apply `scheme` marker for all query syntax snippets - fix: possible rollover of nanoseconds in clock.h - cli: make error message more specific for building in `docker` - cli: Improve init-config with respect to TREE_SITTER_DIR - docs: merge of all binding and grammar link PRs - Exclude huge generated files from `git diff` output - loader: use portable way of path joining - loader: add TREE_SITTER_LIBDIR; cli: add --libdir to `tree-sitter generate` - cli: add -b, --build flags for `tree-sitter generate` - Remove unused no-minimize arg for the generate command - cli: Fix build.rs in case of the current branch ref was packed - Support SHA lookup in .git/packed-refs - fix: possible rollover of nanoseconds in clock.h - Fix permanent rebuild triggering in a git worktree due to wrong git branch file path - fix(cli): Racing on playground webserver port binding - Fix test output formatting for rules starting with M/U - Allow web-tree-sitter to work with Emscripten 3 - Add __cxa_atexit to exports - Add `memset` to exports - Add 'stringToUTF16' and 'AsciiToString' to exported method - Configure compiled WASM grammars to not catch rejections - Add Erlang to list of Available Parsers - Fix test output formatting for rules starting with M/U - Previously the rule names could not begin with an uppercase M or U because the test output formatter assumed that they represent special tokens: MISSING or UEXPECTED. - Allow retrieving a tree's list of included ranges, fix some included range bugs - Add tests that randomly edit files with disjoint included ranges - Fix suppression of empty tokens during error handling at included range boundaries - Fix parse error when reusing a node at the end of an included range - fix(cli): Racing on playground webserver port binding - Add doc comments for tree included ranges getter - Fix adjustment of trees' included ranges on edits - Add D grammar - it is quite complete for D 2.100. - Add Erlang to list of Available Parsers - Add twig parser in documentation - Fix integer size of subtree's child count field - Explain in the docs that npm install supports limited platforms - Removed upstreamed patch CVE-2022-45299-update-webbrowser.patch OBS-URL: https://build.opensuse.org/request/show/1077592 OBS-URL: https://build.opensuse.org/package/show/editors/tree-sitter?expand=0&rev=15 --- CVE-2022-45299-update-webbrowser.patch | 15 ----- _service | 7 +-- tree-sitter-0.20.7.tar.xz | 3 - tree-sitter-0.20.8.tar.xz | 3 + tree-sitter.changes | 80 ++++++++++++++++++++++++++ tree-sitter.spec | 5 +- vendor.tar.xz | 4 +- 7 files changed, 89 insertions(+), 28 deletions(-) delete mode 100644 CVE-2022-45299-update-webbrowser.patch delete mode 100644 tree-sitter-0.20.7.tar.xz create mode 100644 tree-sitter-0.20.8.tar.xz diff --git a/CVE-2022-45299-update-webbrowser.patch b/CVE-2022-45299-update-webbrowser.patch deleted file mode 100644 index 5f7a0d9..0000000 --- a/CVE-2022-45299-update-webbrowser.patch +++ /dev/null @@ -1,15 +0,0 @@ ---- - cli/Cargo.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/cli/Cargo.toml -+++ b/cli/Cargo.toml -@@ -37,7 +37,7 @@ serde = { version = "1.0.130", features - smallbitvec = "2.5.1" - tiny_http = "0.8" - walkdir = "2.3" --webbrowser = "0.5.1" -+webbrowser = "0.8.4" - which = "4.1.0" - - [dependencies.tree-sitter] diff --git a/_service b/_service index b819225..a2e9e7e 100644 --- a/_service +++ b/_service @@ -1,5 +1,5 @@ - + - tree-sitter + tree-sitter-*.tar.xz xz true - tree-sitter diff --git a/tree-sitter-0.20.7.tar.xz b/tree-sitter-0.20.7.tar.xz deleted file mode 100644 index 9c2366a..0000000 --- a/tree-sitter-0.20.7.tar.xz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:da2bc9edd3d7fe65f20827713d876f9decc53212df40185fa661169ed43e38d5 -size 527604 diff --git a/tree-sitter-0.20.8.tar.xz b/tree-sitter-0.20.8.tar.xz new file mode 100644 index 0000000..1dbf802 --- /dev/null +++ b/tree-sitter-0.20.8.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6181ede0b7470bfca37e293e7d5dc1d16469b9485d13f13a605baec4a8b1f791 +size 2941223 diff --git a/tree-sitter.changes b/tree-sitter.changes index d0a6b16..662a2cb 100644 --- a/tree-sitter.changes +++ b/tree-sitter.changes @@ -1,3 +1,83 @@ +------------------------------------------------------------------- +Wed Apr 5 18:02:16 UTC 2023 - Matej Cepl + +- Update to version 0.20.8: + - 0.20.8 - recovered + - cicd: fix bug in release workflow + - Bumps [webbrowser](https://github.com/amodm/webbrowser-rs) + from 0.5.5 to 0.8.3. + - cli: Bump tree-sitter dependency to 0.20.10 + - Update python error corpus to reflect grammar changes + - Improve the performance of running a query in a small range + of a large file + - Add API for checking if a pattern in a query is non-local + - Fix bug in maintenance of query cursor's tree depth + - Restructure query_cursor_advance to explicitly control which + hidden nodes it descends into + - Extract 'internal' versions of tree cursor movement fns that + allow visiting hidden nodes + - Group analysis state sets into QueryAnalysis struct + - Precompute the set of repetition symbols that can match + rootless patterns + - Add --row-range, --quiet, and --time flags to query + subcommand + - Fix CLI build on windows + - Clear the parse stack when terminating parsing early due to + error cost + - This fixes a bug where the parse tree would not be rebalanced + if this code path was taken. + - Add --dot flag to parse subcommand, for printing tree as DOT + graph + - Derive Hash for Language + - docs: apply `scheme` marker for all query syntax snippets + - fix: possible rollover of nanoseconds in clock.h + - cli: make error message more specific for building in + `docker` + - cli: Improve init-config with respect to TREE_SITTER_DIR + - docs: merge of all binding and grammar link PRs + - Exclude huge generated files from `git diff` output + - loader: use portable way of path joining + - loader: add TREE_SITTER_LIBDIR; cli: add --libdir to + `tree-sitter generate` + - cli: add -b, --build flags for `tree-sitter generate` + - Remove unused no-minimize arg for the generate command + - cli: Fix build.rs in case of the current branch ref was + packed + - Support SHA lookup in .git/packed-refs + - fix: possible rollover of nanoseconds in clock.h + - Fix permanent rebuild triggering in a git worktree due to + wrong git branch file path + - fix(cli): Racing on playground webserver port binding + - Fix test output formatting for rules starting with M/U + - Allow web-tree-sitter to work with Emscripten 3 + - Add __cxa_atexit to exports + - Add `memset` to exports + - Add 'stringToUTF16' and 'AsciiToString' to exported method + - Configure compiled WASM grammars to not catch rejections + - Add Erlang to list of Available Parsers + - Fix test output formatting for rules starting with M/U + - Previously the rule names could not begin with an uppercase + M or U because the test output formatter assumed that they + represent special tokens: MISSING or UEXPECTED. + - Allow retrieving a tree's list of included ranges, fix some + included range bugs + - Add tests that randomly edit files with disjoint included + ranges + - Fix suppression of empty tokens during error handling at + included range boundaries + - Fix parse error when reusing a node at the end of an included + range + - fix(cli): Racing on playground webserver port binding + - Add doc comments for tree included ranges getter + - Fix adjustment of trees' included ranges on edits + - Add D grammar - it is quite complete for D 2.100. + - Add Erlang to list of Available Parsers + - Add twig parser in documentation + - Fix integer size of subtree's child count field + - Explain in the docs that npm install supports limited + platforms +- Removed upstreamed patch CVE-2022-45299-update-webbrowser.patch + ------------------------------------------------------------------- Wed Mar 1 13:55:27 UTC 2023 - Matej Cepl diff --git a/tree-sitter.spec b/tree-sitter.spec index 4e4001f..218a8b2 100644 --- a/tree-sitter.spec +++ b/tree-sitter.spec @@ -19,7 +19,7 @@ %define somajor 0 %define libdirname tree_sitter Name: tree-sitter -Version: 0.20.7 +Version: 0.20.8 Release: 0 Summary: An incremental parsing system for programming tools License: MIT @@ -27,9 +27,6 @@ URL: https://tree-sitter.github.io/ Source0: https://github.com/tree-sitter/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.xz Source1: vendor.tar.xz Source2: cargo_config -# PATCH-FIX-UPSTREAM CVE-2022-45299-update-webbrowser.patch bsc#1207196 mcepl@suse.com -# Use more recent version of webbrowser-rs -Patch0: CVE-2022-45299-update-webbrowser.patch BuildRequires: cargo-packaging BuildRequires: rust > 1.40 Requires: lib%{name}%{somajor} = %{version} diff --git a/vendor.tar.xz b/vendor.tar.xz index 4cfa32f..d3d47ba 100644 --- a/vendor.tar.xz +++ b/vendor.tar.xz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:75a09d0cfc00ece53acb11649f0c3753fe215693fa51add1f8cb959ada676fdb -size 19780556 +oid sha256:e8ce5ccc428ccbdd44a3c3de0dd506dc5d9079fe90347fac5d5c7f885f87ad08 +size 16831820