5
0
forked from pool/ast-grep

Commit Graph

  • b4f151aec1 - Update to 0.39.3: * add some tests for hcl 756499e * add tree-sitter-hcl to ast-grep-language package deps 26b638a * fix(deps): update rust crate clap to v4.5.42 4d047eb main Michael Vetter 2025-08-13 06:40:27 +00:00
  • 3191780d18 - Update to 0.39.1: * fix: update package 8c2327b * fix: fix build d59c219 * fix: remove json format 90369a4 Michael Vetter 2025-07-25 06:37:14 +00:00
  • 7769a4b1a9 - Update to 0.38.7: * refactor: remove biome configuration and update linting tool to oxlint ed3e5b1 * chore(deps): update dependency @ast-grep/napi to v0.38.6 9e5f1e0 * Revert "fix(deps): update rust crate tower-lsp-server to 0.22.0" 7d8e872 Michael Vetter 2025-07-11 08:30:54 +00:00
  • 6f10bc6e99 - Update to 0.38.6: * fix(deps): update rust crate tower-lsp-server to 0.22.0 #2056 * feat: allow sgconfig.yml to not have required ruleDirs field #2059 * fix: ast-grep -h should not fail if sgconfig is wrong #2054 * chore(deps): update dependency @ast-grep/napi to v0.38.5 c7a41d6 * Revert "fix(deps): update rust crate tower-lsp-server to 0.22.0 #205 * fix(deps): update rust crate toml_edit to v0.22.27 84cff96 Michael Vetter 2025-06-24 07:41:20 +00:00
  • 2272c4893a - Update to 0.38.5: * feat: add simple cli multi fix #2036 * fix: quit option should keep accepted changes #2031 * feat: add better styling handle 1a2b72c * feat: add fix switching 791c9a0 * chore(deps): update dependency ava to v6.4.0 0e51f2b - Update to 0.38.4: - Update to 0.38.3: Michael Vetter 2025-06-12 07:00:43 +00:00
  • 3e568d4dfd - Update to 0.38.5: * feat: support file level suppression #1541 * feat: add include-off rule in sg test #2023 * feat: add multiple fix in vscode lsp 9e9a282 * chore(deps): update dependency @ast-grep/napi to v0.38.3 58dcc5b * test: add file level suppression test 93d04c7 Michael Vetter 2025-06-02 05:47:53 +00:00
  • 621e293e77 - Update to 0.38.1: * chore(deps): update dependency @ast-grep/napi to v0.38.0 227bab3 * Revert "fix: simplify version" a5d9fd8 * fix(deps): update rust crate clap to v4.5.38 cc8047c Michael Vetter 2025-05-14 07:24:17 +00:00
  • e51e584188 - Update to 0.37.0: * fix: use docker image instead #1930 * chore(deps): update dependency @ast-grep/napi to v0.36.3 3dca58c * fix: update crate a88a073 * perf: more efficient node ancestor calculation a1ed329 Michael Vetter 2025-04-17 07:02:58 +00:00
  • 2ddd4e667a - Update to 0.36.3: * fix: transformation indent #1405 * feat: YAML schema validation for node and field types e0a5a47 * chore(deps): update dependency @ast-grep/napi to v0.36.2 f291ef3 * fix(deps): update rust crate crossterm to 0.29.0 4c62fe5 Michael Vetter 2025-04-14 08:32:37 +00:00
  • 8da8bfa11a - Update to 0.36.2: * fix: report-style short should not print out diff #1884 * fix: fix do not push empty unused suppressions #1882 * chore: Remove tree-sitter wasm facade 47b14fe * Revert "chore: Remove tree-sitter wasm facade" a449617 * fix: remove optimize 7365a68 Michael Vetter 2025-03-21 07:10:12 +00:00
  • 4a5de78df7 - Update to 0.36.1: * fix: fix globs not working with lang #1861 * perf: use smallvec for filter_file_{pattern, rule} #1858 * fix(deps): update dependency @swc/core to v1.11.8 a0d9e10 * perf: save pattern clone and doc clone in multi-lang-doc 1113384 * perf: remove duplicate pattern match 6eba6d9 Michael Vetter 2025-03-12 08:20:55 +00:00
  • e47f622a2d - Update to 0.36.0: * perf: remove preScan struct #1837 * refactor: change Worker trait signature #1849 * fix: fix inconsistent matching in relaxed mode #1848 * feat: allow richer metadata format #1854 * fix: do not display color for error when not in tty #1850 * fix: make scan respect --globs flag #1842 * feat: move processing to worker thread #143 * feat: move matching to worker #143 * refactor: remove Matches/Diffs macro in cli #1819 * Breaking change: fix: bump min msrv 846be66 * refactor: split colored printer 083a5f9 * refactor: moved interactive printer b9bedf4 Michael Vetter 2025-03-10 07:38:54 +00:00
  • 81f82032ed - Update to 0.10.1: Fixes: * Don't error out if options in front matter doesn't include auto_render_languages (#454) * Bump sixel-rs to 0.4.1 to fix build in aarch64 and riscv64 (#452) Michael Vetter 2025-02-21 16:01:13 +00:00
  • b442b21809 - Update to 0.34.4: * fix: fix bininstall #1744 * fix(deps): update dependency @swc/core to v1.10.12 3eea108 * chore(deps): update rust crate tempfile to v3.16.0 6939cca * chore(deps): update dependency @types/node to v22.12.0 ea05951 Michael Vetter 2025-02-03 07:17:05 +00:00
  • a8ce89ac7b - Update to 0.34.3: * fix: fix binary command again 2c9034c Michael Vetter 2025-01-28 13:38:31 +00:00
  • 77b78a7d9e - Update to 0.33.1: * feat: Support passing rule config to SgNode match methods (matches, has, inside, follows, precedes) #1730 * chore(deps): update dependency @ast-grep/napi to v0.33.0 61f7177 * fix(deps): update dependency typescript to v5.7.3 85a7204 * fix(deps): update dependency tree-sitter to v0.22.4 ec70763 Michael Vetter 2025-01-13 15:12:30 +00:00
  • 1c27cff8d8 - Update to 0.33.0: * Breaking change: refactor: move pyo3 registration to CustomLang 4ddb08f * feat: introduce napi_lang for dynamic loading 1a8d782 * chore(deps): update dependency @ast-grep/napi to v0.32.3 713244f Michael Vetter 2025-01-07 11:09:54 +00:00
  • e9f5762d72 - Update to 0.32.3: * feat: print fixed rules count #1708 * fix: move unused suppressions to config crate #1624 * fix: allow malformed pattern to be dumped as tree #804 * fix: fix files not recognize in lsp #1691 * fix: fix crash when internal node has no child #1688 * feat: use mutable self in Printer trait 5e3835a * feat: reduce binary size by remove Printer polymorphism 8b735cf * feat: resolve rule id for ScanResult 9a7f3cc Michael Vetter 2025-01-02 07:15:10 +00:00
  • ce2113b74e - Update to 0.32.2: * fix: linting 10f3e74 * feat: distinguish manual type annotation 4558c48 * feat: add ChildTypes helper 0d477e9 Michael Vetter 2024-12-27 16:53:57 +00:00
  • 3d8bd0d573 - Update to 0.31.1: * feat: update tree-sitter dependency to 0.24.4 91a2b46 * fix(deps): update dependency @swc/core to v1.10.0 526648b * fix: fix new clippy error ebfcbcd Michael Vetter 2024-12-16 11:36:17 +00:00
  • 445b84296b - Update to 0.30.1: * fix: fix --config=config.yml arg parse #1617 * fix: update python version #1614 * fix(deps): update dependency @swc/core to v1.9.3 63c1c8d * chore: revert pyo3 2022f38 * feat: add rule entity inspection c569ec7 Michael Vetter 2024-11-27 08:22:08 +00:00
  • b2467efcb5 - Update to 0.29.0: * feat: support override severity of unused-suppression #1556 * feat: unify configuration reading #1557 * feat: unify configuration #1557 * refactor: improve file config handling #1553 * refactor: revamp configuration file discovering and custom language registration #1553 * feat(scan): support context, before/after flags #1549 * feat: add RuleOverwrite to override rule severity from CLI #1061 * Breaking change: feat: support --config in sg new cfe472f * feat: add rule overwrite impl fb4ac07 * fix(deps): update dependency @swc/core to v1.7.36 c11fd89 Michael Vetter 2024-10-30 08:48:43 +00:00
  • 74ae0177ec - Update to 0.28.1: * feat: report unused suppression #1346 * feat: make number of threads configurable #1498 * doc: add bug report yaml #1462 * refactor: rename tracing f83dbe9 * fix: fix bug report bug agains 61921f7 * fix(deps): update dependency @babel/core to v7.25.8 cf06185 Michael Vetter 2024-10-20 10:00:01 +00:00
  • acae30abaf - Update to 0.28.0: * feat: TypeScript types for Rules in NAPI #1038 * feat:support glob path match in CLI #1062 * refactor: move input/output args to standalone file 3d937cb * refactor: move worker outside of utils 84ea621 * fix(deps): update babel monorepo to v7.25.7 b989f05 Michael Vetter 2024-10-07 08:38:22 +00:00
  • 7099ac1b7f - Update to 0.27.3: * feat: add prettified pattern debug 70d33b5 * fix(deps): update rust crate pyo3 to v0.22.3 683e398 * test: add test for CST a79f13f Michael Vetter 2024-09-23 07:11:57 +00:00
  • b310e6d7cc - Update to 0.27.1: * fix: create .gitkeep file in new dirs #1273 * fix: fix unwrap error for unfound dir #1456 * fix(deps): update dependency @swc/core to v1.7.23 5fd4101 * chore(deps): update dependency @types/node to v20.16.5 294e402 * fix: improve error message d46df6a Michael Vetter 2024-09-09 06:26:49 +00:00
  • 6b044d7a64 - Update to 0.26.3: * fix: fix wrong transformation indentation #1405 * fix: compare only kind for unnamed nodes #1419 * fix(deps): update dependency @swc/core to v1.7.18 9ecb02c * fix(deps): update dependency @swc/core to v1.7.14 459d20a * test: add test for transformation indentation e0bfaf2 Michael Vetter 2024-08-26 07:09:00 +00:00
  • 19e9a88105 Accepting request 1195162 from home:hrauch:branches:utilities Michael Vetter 2024-08-22 05:37:33 +00:00
  • b308e0cb9d - Update to 0.26.2: * fix: readopt matched metavar in napi #1380 * chore: update napi definition 07e084a * fix(deps): update dependency @swc/core to v1.7.11 835b06f * fix(deps): update dependency @swc/core to v1.7.10 d7a3820 Michael Vetter 2024-08-19 06:07:03 +00:00
  • 4c12bc5737 - Update to 0.26.1: * feat: support dynamic language in pyo3 #1143 * test: add test for load dynamic lang in python 236f4ab * feat: add py_lang registration function 43e74e7 * feat: add pytype for register language 8b660cf Michael Vetter 2024-08-10 04:40:12 +00:00
  • 081ca92ebb - Update to 0.26.0: * feat: Additional impls for language types #1379 * feat: append note to error message if available #1384 * fix: LSP should skip files outside the workspace root #1382 * fix(deps): update dependency @babel/core to v7.25.2 3b0be88 * refactor: split two macros b760eb8 * refactor: simplify visitor 5ae03ae Michael Vetter 2024-08-08 05:27:48 +00:00
  • 4ead18a822 - Update to 0.25.7: * feat: add charCount to split lines #1381 * chore(deps): update dependency @types/node to v20.14.14 bca7e7b * fix(deps): update rust crate clap to v4.5.13 c143464 * fix(deps): update rust crate toml_edit to v0.22.20 170da4c Michael Vetter 2024-08-07 05:37:01 +00:00
  • 3f79b0a021 - Update to 0.25.6: * feat: add --selector in sg run #1378 * fix: fix clippy new complaints a4cc793 * fix(deps): update dependency @swc/core to v1.7.5 d3ee100 * chore(deps): update rust crate tree-sitter to v0.22.2 93d684a Michael Vetter 2024-08-05 05:55:47 +00:00
  • dc7197f276 - Update to 0.25.5: * feat: support using transform in rule message #1366 * test: add test for skipping multiple ellipsis #1365 * feat: Support ast-grep-ignore comment on same line as violation #1347 * Revert "feat: add wasm engine support" 78b1633 * feat: add wasm engine support ff77914 * refactor: remove old find/scan 58a3646 Michael Vetter 2024-08-02 06:34:25 +00:00
  • 0e89b941b1 - Update to 0.9.7: * #1500: Fix builds for Rust 1.80. Michael Vetter 2024-07-26 06:02:51 +00:00
  • 9fa3c82974 - Update to 0.25.3: * feat: support custom language injection #1309 * feat: register embedded language 416e28e * fix(deps): update dependency @babel/core to v7.24.9 8c5dd00 * fix(deps): update dependency @swc/core to v1.7.0 61f6a14 Michael Vetter 2024-07-23 09:39:45 +00:00
  • 30fece47ee - Update to 0.25.2: * fix: only present code action when there are truly fixable diagnostic #1327 * refactor: move some function out of lsp 1e6b477 * fix: use fix in data for fix all command d358d45 * fix: update fix all lsp b760b9b Michael Vetter 2024-07-19 07:52:12 +00:00
  • b0201c975c - Update to 0.25.1: * fix: make config file work outside of workspace root #1326 * fix: fix napi musl bde7f34 * fix: debug napi 2d87fc5 Michael Vetter 2024-07-15 04:10:24 +00:00
  • d5b559c5cf - Update to 0.24.1: * fix: skip missing node in pattern #1256 * doc: add cli help text for debug format 1754382 Michael Vetter 2024-06-27 05:48:20 +00:00
  • 67f7ffc7d9 - Update to 0.24.0: * feat: add debug ast and cst #1218 * feat: add strictness in PyO3 #1246 * feat: add strictness flag in cli #1243 * test: add test for different strictness #1241 * feat: add strictness to YAML #1239 * Breaking change: fix: update API for fix 4971ac2 * Breaking change: fix: change deletedLength to endPos in napi c0e9a65 * feat: add colorized output 22f279c Michael Vetter 2024-06-24 07:27:05 +00:00
  • 9ded712c97 - Update to 0.23.0: * feat: add typings for pyo3 #676 * refactor: remove unused old code 3ffd1d9 * fix(deps): update babel monorepo to v7.24.7 b4aebaf * refactor: add new abstraction for match_tree 079bc7d Michael Vetter 2024-06-11 10:16:10 +00:00
  • f31dd02dd1 - Update to 0.22.6: * fix: add Edit to export list #1186 * feat: add modify edit range feature in pyo3 1e31253 * test: add test for modifying edit 7044811 * fix: addClass Edit in pyo3 d81c6c3 Michael Vetter 2024-06-05 06:21:28 +00:00
  • 50d9fbbe86 - Update to 0.22.5: * feat: support all languages in napi #1170 * Breaking change: refactor: rename Frontend Language to Lang c582c16 * refactor: move find files operations to standalone files 8ebb888 * feat: support more languages in napi 19e3baa Michael Vetter 2024-06-03 06:28:41 +00:00
  • 6240635aa2 - Update to 0.22.4: * feat: use var defined in utils in transform/fix #1155 * fix: fix pattern polluting env #1164 * test: add python fix test #1161 * feat: add fix related feature to pyo3 #1159 * test: add test for napi test #1160 * feat: add commit_fix and fix to napi #1158 * fix(deps): update babel monorepo to v7.24.6 0898b55 * fix(deps): update dependency @swc/core to v1.5.7 9beda6e * feat: add edit/fix sketch 6817854 Michael Vetter 2024-05-27 07:11:49 +00:00
  • a345895ac3 - Update to 0.22.3: * fix: fix napi test #1140 * fix: use dumb implementation for web-tree-sitter 5cb7052 * chore: fix asset names 70cef40 * fix af20be8 Michael Vetter 2024-05-13 14:08:39 +00:00
  • f0ee5b230a - Update to 0.22.2: * fix: fix releases 3a6e553 * fix: fix efaa1ca * fix: debug e39fd12 Michael Vetter 2024-05-13 06:58:43 +00:00
  • f4113a1bea - Update to 0.21.4: * fix: build from source #1125 * doc: update how to install via cargo #1118 * feat: report undefined util rules #1106 * Breaking change: feat: separate RuleCoreError and RuleConfigError d96efa9 * refactor: move Transformation into a standalone module b51cc95 * fix(deps): update dependency @babel/core to v7.24.5 77ea8bd Michael Vetter 2024-05-07 06:39:39 +00:00
  • 1d326f69c4 - Update to 0.21.3: * feat: make pattern more permissive #1087 * refactor: further simplify test case 8188473 * refactor: make rewrite test simplier 5a754ef * test: add test for contextual pattern defined var 2d6bae8 Michael Vetter 2024-05-03 05:36:53 +00:00
  • ecfe72679f - Update to 0.21.2: * feat: Allow to use meta variable captured outside of rewrite rule inside the rewriter #1072 * refactor: move rule_core test out of rule_core 1e8af4c * feat: move check variable usage out to a standalone file f086d10 * refactor: move check var around cfe3529 Michael Vetter 2024-05-02 10:26:26 +00:00
  • d605b2baea - Update to 0.21.1: * feat: find defined vars in utils cbc6534 * fix: add referent rule stack overflow test case f7f24e1 * feat: add utils defined vars 59001eb Michael Vetter 2024-04-29 07:08:06 +00:00
  • e122ce0d11 - Update to 0.20.5: * fix: add parse global util error 2482a86 * fix: ignore test 6c2cd46 Michael Vetter 2024-04-11 14:28:44 +00:00
  • 5eefde02b4 - Update to 0.20.4: * fix: fix new deprecation note of Rust 2024 a70565e * fix: fix quickfix fef3dfc * fix: better fix message e0b5875 Michael Vetter 2024-04-08 12:42:11 +00:00
  • 0a307ed612 - Update to 0.20.3: * feat(lsp): run "source.fixAll.ast-grep" onsave #1021 * test: move the integration-test to test folder f2ff77a * chore: cargo update 83394e9 * refactor: move logging and io out of on_apply_all_fix cd79cda Michael Vetter 2024-04-08 06:28:02 +00:00
  • 20e797b171 - Update to 0.20.2: * feat: make test --update-all not report error #771 * fix: fix update cases f8132a4 * refactor: less indentation for interactive reporter 203bd35 * feat: improve accept 441a548 Michael Vetter 2024-03-28 07:27:14 +00:00
  • 797c0e938f - Update to 0.20.1: * feat: respect suppression in lsp #1019 Michael Vetter 2024-03-25 06:27:07 +00:00
  • 81e64dad62 - Update to 0.19.4: * LSP default message for diagnostics #970 * feat: Add error messaging for rule file parsing failures #968 * feat: add html testing and tweak html #977 * fix(deps): update dependency @babel/core to v7.24.0 a14741d * fix(deps): update dependency @swc/core to v1.4.6 4a397f4 * fix(deps): update rust crate pyo3 to 0.20.3 23653c2 Michael Vetter 2024-03-11 07:33:54 +00:00
  • bf2786fad0 - Update to 0.19.3: * fix(deps): update dependency @swc/core to v1.4.2 67450cb * refactor: move rewriters to SerializableRuleConfig d98c062 * fix(deps): update rust crate inquire to 0.7.0 86ec845 Michael Vetter 2024-02-26 07:27:00 +00:00
  • 76ace2fcf9 - Update to 0.19.2: * fix: improve expando char replacement #883 * feat(napi): add support for napi linux x64 musl c4d7902 * fix: fix wrong spacing matching 0e8b4f0 * Update README.md 9636a1a Michael Vetter 2024-02-23 06:00:02 +00:00
  • 8775462299 - Update to 0.19.1: * fix: avoid input stream when --update-all #943 * fix: update cargo lock 8a893e7 * fix(deps): update dependency @swc/core to v1.4.1 d18fd70 * chore(deps): update dependency @types/node to v20.11.19 40d3fa0 Michael Vetter 2024-02-20 05:59:58 +00:00
  • 561afb8bc6 - Update to 0.19.0: * Breaking change: refactor: remove unused type generic 9b13d41 * Breaking change: fix: update pyo3 test ff10e81 * fix: fix parallel thread output be230ca Michael Vetter 2024-02-15 08:08:23 +00:00
  • 2ed74cd4ff - Update to 0.18.1: * Breaking change: refactor: use more concise name 6a4a17c Michael Vetter 2024-02-01 08:07:32 +00:00
  • 4adab32322 - Update to 0.18.0: * Breaking change: refactor: remove IndentSensitive trait #868 * feat: add support for rewriters #855 * Breaking change: refactor: rename RuleWithConstraints to RuleCore #862 * feat: move fix to SerializableRuleCore #859 * Breaking change: refactor: remove MetaVarMatchers beb6f50 * Breaking change: feat: move fixer to RuleCore 8a43a26 * Breaking change: refactor: move language out of SerializableRuleCore c5e0dc8 * Breaking change: refactor: remove Content generic from Fixer 87bbf93 * Breaking change: feat: improve get_fixer signature e629e0f * Breaking change: refactor: make TemplateFix non-generic 0f462a5 * feat: migrate constraints to Rule 230ee9c * refactor: move SerializableRuleCore to rule_core mod 3a303c1 Michael Vetter 2024-01-31 15:22:20 +00:00
  • db64f1fd85 - Update to 0.17.1: * feat: respect user's language extension option #848 Michael Vetter 2024-01-13 08:21:57 +00:00
  • 9079870d87 - Update to 0.17.0: * Breaking change: feat: change get_fixer to return Fixer 07c5363 * feat: add modify_range for tweaking fix range selection eeb2f98 * feat: rename modify_range -> get_replace_range 54837df Michael Vetter 2024-01-12 07:45:56 +00:00
  • 366ab6487d OBS-URL: https://build.opensuse.org/package/show/utilities/ast-grep?expand=0&rev=10 Michael Vetter 2024-01-06 10:57:31 +00:00
  • 37065db258 - Update to 0.16.1: * feat: add support for bash and php #639 * Breaking change: fix: more strict meta var parsing 13ad32b * Breaking change: refactor: remove thrift language 26ecdf6 * fix(deps): update dependency @swc/core to v1.3.102 9ca9711 Michael Vetter 2024-01-06 09:23:57 +00:00
  • b2d0220756 - Update to 0.16.0: * feat: add language globs to findInFiles in napi #780 * Breaking change: fix: rename MetaVar for better naming #805 * refactor: reorgnanize napi file structure 93f8577 * refactor: move file type related function out of lib 64e33a3 * feat: handle FileOption in LangOption::infer 7bc3efe Michael Vetter 2023-12-30 13:14:04 +00:00
  • 491e5eae7b - Update to 0.15.1: * feat: support mutliple rules in -r and --inline-rules #786 * refactor: unify run_worker and run_std_in #785 * Breaking change: feat: --stdin now always awaits user input #791 * feat: support --inline-rules option for sg scan #396 * refactor: separate PathWorker and StdInWorker and Worker ef3d8ad * test: add test cases for sg scan ed35c71 * fix: revert github action a2f22d8 Michael Vetter 2023-12-18 08:01:16 +00:00
  • 8cafba3700 - Update to 0.15.0: * Breaking change: feat: reduce metavar_env string allocation e1ab015 * Breaking change: fix: remove pattern as replacer f6e4293 * Breaking change: feat: better metavar detection e1ab18a Michael Vetter 2023-12-17 01:28:28 +00:00
  • 594ec69867 Accepting request 1132617 from utilities Dominique Leuenberger 2023-12-12 18:32:17 +00:00
  • 41be3913f2 Accepting request 1132616 from home:jubalh Michael Vetter 2023-12-12 08:54:21 +00:00