Skip to content

Latest commit

 

History

History
602 lines (424 loc) · 37.1 KB

CHANGELOG.md

File metadata and controls

602 lines (424 loc) · 37.1 KB

Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

Generated by auto-changelog.

25 May 2023

  • fix: bump tree-sitter-facade version and support next_all on web a48ba62
  • fix: update tree-sitter-facade version 8e44f6a
  • chore: update changelog 78f751a

24 May 2023

24 May 2023

  • fix: implement generic Doc replacer for pattern #405
  • fix: use get_range instead as_slice to handle byte_offset and underlying arry size #400
  • chore: bump version 998691d
  • feat: support generic new Pattern/Root from str 36d91e7
  • chore: use workspace package info 960fa8d

18 May 2023

  • perf: optimize relational rule's stopBy: neighbor #358
  • perf: optimize node's next_all by tree-cursor #358
  • test: add test for node operators ac38cb8
  • refactor: add comments for ansi link d9ebbe5
  • test: add test for precedes/follows serialization 1d7d8ff

13 May 2023

13 May 2023

  • docs: fix readme typo #366
  • chore: add cargo build before git tag #367
  • 0.5.2 bump version 54ba0a7
  • feat: add go setting a1d579b
  • fix: fix fmt and clippy efab639

12 May 2023

12 May 2023

12 May 2023

12 May 2023

  • feat: provide additional binary name ast-grep #361
  • fix: support custom lang for sg run #357
  • feat: support dynamic lib loading #347
  • feat: replace SupportLanguage with SgLang f6014f9
  • Used result in test code to remove unwrap 07bcf7e
  • feat: improve implementation of dynamic lang 3757887

23 April 2023

23 April 2023

23 April 2023

23 April 2023

  • feat: reduce MetaVarEnv cloning in any #217
  • fix: support correct row/col offset for napi! #336
  • refactor: break down napi modules 67062a6
  • feat: migrate node 5e15d8d
  • feat: change ts_parser to source a3bef23

6 April 2023

6 April 2023

  • infra: add criterion benchmark #141
  • feat: Add edit option for rules without fix #297
  • feat: optimize readability of test output #293
  • test: add integration test for run #292
  • refactor: move out lib and main a95c19e
  • fix(deps): update rust crate clap to 4.2.1 b3fb9c9
  • feat: add base_dir for new command 2a75a0a

11 March 2023

  • fix: find_rule should also find contingent rule #286
  • feat: create new project/util/rule command #266
  • feat: add write sgconfig 750df87
  • feat: rename find_config to find_rules 8e5a181
  • 0.3.2 bump version 4f41f46

28 February 2023

28 February 2023

  • fix: fix panic when matching root node #275
  • 0.3.1 bump version 703467e
  • fix: fix napi error 3d305a6
  • chore: bump version 067b0f3

28 February 2023

  • fix: add is_named_leaf #276
  • fix: report indirect cyclic dependencies #272
  • fix: register global rules by dependent order #269
  • [feature] register util rules by their topological sort order #270
  • feat: change stopBy default value to neighbor #265
  • feat: add global utils #250
  • feat: add thrift support #255
  • fix: avoid strong reference in ReferentRule #253
  • refactor: factor out deserialize rule a6207ae
  • refactor: move stop_by to separate file 398c53d
  • refactor: reorganize rule and serialization 37a303f

8 February 2023

8 February 2023

  • feat: add maybe to differentiate null/missing/value #241
  • feat: add error exit code #238
  • refactor: disable color by default if output is not tty #239
  • feat: unify immediate and until to stopBy ff69866
  • 0.2.6 bump version 136a75f
  • feat: support field in Inside c503f0f

4 February 2023

4 February 2023

  • feat: improve napi error message #227
  • feat: add reference 303ec8c
  • feat: add find_in_files 07735df
  • feat: add napi findInFiles 3f4e847

29 January 2023

30 January 2023

  • perf: use potential_kinds for more scenarios #221
  • refactor: remove var_matchers from MetaVarEnv #218
  • refactor: remove get meta_var_matchers in Matcher #218
  • refactor: split scan and run bf1e7e2
  • Revert "perf: use potential_kinds for more scenarios" c264e32
  • refactor: remove duplicate MatchUnit/filter_file ab2222e

27 January 2023

27 January 2023

  • feat: make inside util inclusive #205
  • feat: support search multiple paths #207
  • fix: use return number for napi #205
  • 0.2.3 bump version 753e972
  • refactor: use stop_by for all relational rule 279edeb
  • refactor: cleaner StopBy matching 974a307

25 January 2023

25 January 2023

24 January 2023

24 January 2023

24 January 2023

24 January 2023

  • feat: support multi node pattern #199
  • [refactor] Extract a match node iterator function in matcher_tree #199
  • feat: print out serialized rule message #200
  • fix: fix nested leaf match crash in non-entrant traversal #197
  • feat: add Dart support #172
  • fix: fix wrong line number in diff #192
  • feat: support inclusive until #191
  • feat: allow shorthands to combine all rule kinds 51f72db
  • refactor: refactor deser for better error message f28f964
  • 0.2.0 bump version e580932

16 January 2023

16 January 2023

  • fix: revert write env for unmatched pattern #190
  • fix: fix Has relation #188
  • feat: add rule info to config fixer #122
  • refactor: deduplicate json printer code #185
  • feat: add regex matcher 0a40ed2
  • 0.1.18 bump version bfdde22
  • feat: add debugging assert 5b17e8b

15 January 2023

15 January 2023

  • feat: add error handling for parsing RuleConfig #182
  • feat: better error handling in constraints config #181
  • feat: improve error handling in config #181
  • 0.1.17 bump version 0a638f1
  • feat: add try_new for pattern creation a9510d2
  • refactor: cleanup public API 875ef1e

14 January 2023

14 January 2023

  • fix(deps): update rust crate ignore to 0.4.19 #165
  • fix(deps): update rust crate globset to 0.4.10 #164
  • feat: support --no-ignore for scan/test #162
  • fix: fix two adjacent sticking but not overlapping matches #171
  • feat: add source 1a23b6a
  • 0.1.16 bump version 8cc6765
  • feat: add adopt method to safely create Node 6ea01ae

8 January 2023

8 January 2023

  • feat: make tree-sitter-* parsers optional dependencies #160
  • 0.1.15 bump version fa56cf1
  • refactor: use macro to abstract away repetitive lang method impl fb58b15
  • feat: edit cargo toml 1611af5

4 January 2023

  • chore(deps): update dependency @napi-rs/cli to v2.14.0 #149
  • fix(deps): update rust crate num_cpus to 1.15.0 #147
  • fix(deps): update rust crate clap to 4.0.32 #145
  • chore(deps): update robinraju/release-downloader action to v1.7 #146
  • fix(deps): update rust crate serde_json to 1.0.91 #136
  • fix(deps): update rust crate serde_yaml to 0.9.16 #137
  • fix(deps): update rust crate serde_yaml to 0.9.15 #116
  • feat: merge adjacent matches in match printing #134
  • feat: refactor printers to accept output destination #153
  • feat: add traversal mod for sg-core #152
  • [refactor] simplify Matcher trait #151
  • feat: move interactive printer #135
  • feat: implement better heading show #150
  • test: add test for command arg parsing #128
  • feat: support run only one rule for scanning #139
  • feat: support color control on run/scan output #131
  • fix: fix stackoverflow in find_node_impl #148
  • feat: add labels and env info to json output #121
  • refactor: abstract out scan as worker #138
  • refactor: use mpsc for non-interactive output #125
  • feature: extract out a language crate #126
  • refactor: remove some inner call #3
  • refactor: extract out two printers 9328cd7
  • feat: fix interactive print rule 17fbaf0
  • feat: migrate run with specific lang ea46263

18 December 2022

18 December 2022

  • fix(deps): update rust crate serde_json to 1.0.90 #115
  • Update dependency @napi-rs/cli to v2.13.3 #114
  • feat: implement proper json output 0c031c1
  • chore: add changelog d6fc114
  • feat: add json output support f33e39f

15 December 2022

15 December 2022

  • Update dependency @napi-rs/cli to v2.13.2 #103
  • Update dependency typescript to v4.9.4 #104
  • Update Rust crate tree-sitter-java to 0.20.0 #105
  • Update dependency chalk to v5.2.0 #106
  • feat: use better color output for readability #111
  • feat: support version and help argument #110
  • fix: skip extremely large file #109
  • chore: add changelog d6fc114
  • 0.1.12 bump version 5ea05eb
  • fix: use get_matcher instead of get_rule in verify 4b4ea8e

11 December 2022

11 December 2022

  • 0.1.11 bump version 1ba3c13
  • feat: add get all keys in meta var env 8203945

7 December 2022

7 December 2022

  • Update Rust crate clap to 4.0.29 #102
  • Update Rust crate serde_json to 1.0.89 #101
  • Update Rust crate clap to 4.0.28 #100
  • Update dependency @napi-rs/cli to v2.13.0 #99
  • Update dependency ava to v5.1.0 #97
  • Update dependency typescript to v4.9.3 #98
  • Update Rust crate similar to 2.2.1 #95
  • Update dependency @napi-rs/cli to v2.12.1 #92
  • Update Rust crate clap to 4.0.23 #91
  • chore: break down matcher to smaller files and add potential kind 74e5e7d
  • feat: improve contingent rule handling 9c500af
  • feat: add augmented rules c7dc0fe

5 November 2022

5 November 2022

  • Update Rust crate regex to 1.7.0 #88
  • feat: add contingent rules with tests #82
  • Update Rust crate clap to 4.0.19 #83
  • Update Rust crate tree-sitter-lua to 0.0.14 #84
  • Update Rust crate num_cpus to 1.14.0 #86
  • Update Rust crate tree-sitter-rust to 0.20.3 #85
  • 0.1.9 bump version 0ddb562

31 October 2022

31 October 2022

  • Update robinraju/release-downloader action to v1.6 #81
  • refactor: move relational rule outside 4c5321d
  • test: add test for inside/has 428dd62
  • fix: fix precedes/follows operator 020bb3c

27 October 2022

27 October 2022

  • Update dependency ava to v5 #77
  • Update Rust crate serde_yaml to 0.9.14 #76
  • Update Rust crate clap to 4.0.18 #74
  • Update Rust crate serde_json to 1.0.87 #75
  • Update dependency chalk to v5.1.2 #73
  • Update dependency @napi-rs/cli to v2.12.0 #66
  • Update Rust crate serde_json to 1.0.86 #70
  • Update Rust crate tree-sitter-swift to 0.3.4 #69
  • Update dependency chalk to v5.1.0 #67
  • Revert "Update dependency @swc-node/register to v1.5.2 (#62)" #64
  • 0.1.6 fix napi d2501ed
  • [feat] refine test command 3802816
  • [feat] add test command e45039e

3 October 2022

3 October 2022

  • Revert "Update dependency @swc-node/register to v1.5.2 (#62)" #64
  • Update dependency typescript to v4.8.4 #63
  • Update dependency @swc-node/register to v1.5.2 #62
  • fix(52): normalize file path output in command line #55
  • [docs] add interactive argument explanation #59
  • [chore] migrate github pages cc38e5a
  • 0.1.6 fix napi d2501ed
  • [feat] better error reporting 8e94d1e

21 September 2022

21 September 2022

  • [feat] more thorough napi support 6b2bfe0
  • 0.1.4 remove optional dep 84b0e59
  • [feat] add support for rule matching in napi 78dbe99

19 September 2022

19 September 2022

  • [chore] remove unsupported packages dba569b
  • 0.1.4 fix napi package 233be67
  • 0.1.4 remove optional dep 84b0e59

19 September 2022

19 September 2022

  • Update dependency vite to v3.1.2 #46
  • Update dependency @algolia/client-search to v4.14.2 #47
  • Update Rust crate tree-sitter-lua to 0.0.13 #44
  • Update Rust crate tree-sitter-swift to 0.3.3 #45
  • Update Rust crate clap to 3.2.22 #42
  • Pin dependencies #41
  • Update Rust crate serde_yaml to 0.9.13 #43
  • [fix] reimplement language Python to override expando_char #40
  • Update dependency vue to v3.2.39 #34
  • Update dependency vue-tsc to v0.40.13 #35
  • Update dependency @vitejs/plugin-vue to v3.1.0 #36
  • Update dependency vite to v3.1.0 #37
  • Update dependency detect-libc to v2 #39
  • Update actions/checkout action to v3 #38
  • Update dependency typescript to v4.8.3 #33
  • Pin dependency detect-libc to v1.0.3 #32
  • [feat] use vitepress to host docs ad09d42
  • [feat] add YAML config to playground e54b244
  • [feat] improve styling e8d4f0d

6 September 2022

  • Update dependency vue-tsc to v0.40.6 #29
  • Update dependency web-tree-sitter to v0.20.7 #28
  • Update Rust crate clap to 3.2.20 #27
  • Update Rust crate serde_yaml to 0.9.11 #18
  • Update dependency vue-tsc to v0.40.5 #26
  • Update Rust crate clap to 3.2.19 #24
  • Update Rust crate dashmap to 5.4.0 #25
  • Pin dependencies #20
  • Update dependency vue to v3.2.38 #23
  • Update Rust crate tree-sitter-swift to 0.3.2 #16
  • Update Rust crate similar to 2.2.0 #19
  • Update Rust crate tree-sitter-lua to 0.0.12 #14
  • Update Rust crate tree-sitter-swift to 0.3.1 #15
  • Update Rust crate clap to 3.2.17 #10
  • Update Rust crate tree-sitter-c to 0.20.2 #13
  • Update Rust crate console_error_panic_hook to 0.1.7 #12
  • Pin dependencies #9
  • Configure Renovate #1
  • [fix] Add Rust exmaple test, fix #6 #6
  • [feat] add napi support 532f055
  • [feat]: add csharp 9a14a4b
  • [fix] update napi ae6d5f1

23 August 2022

5 September 2022

v0.1.0

5 September 2022

  • Update dependency vue-tsc to v0.40.6 #29
  • Update dependency web-tree-sitter to v0.20.7 #28
  • Update Rust crate clap to 3.2.20 #27
  • Update Rust crate serde_yaml to 0.9.11 #18
  • Update dependency vue-tsc to v0.40.5 #26
  • Update Rust crate clap to 3.2.19 #24
  • Update Rust crate dashmap to 5.4.0 #25
  • Pin dependencies #20
  • Update dependency vue to v3.2.38 #23
  • Update Rust crate tree-sitter-swift to 0.3.2 #16
  • Update Rust crate similar to 2.2.0 #19
  • Update Rust crate tree-sitter-lua to 0.0.12 #14
  • Update Rust crate tree-sitter-swift to 0.3.1 #15
  • Update Rust crate clap to 3.2.17 #10
  • Update Rust crate tree-sitter-c to 0.20.2 #13
  • Update Rust crate console_error_panic_hook to 0.1.7 #12
  • Pin dependencies #9
  • Configure Renovate #1
  • fix(playground): color in dark mode #2
  • [fix] Add Rust exmaple test, fix #6 #6
  • [feat] add napi support 532f055
  • initial commit 94db982
  • [feat] initial wasm research 041cc64