From 1cea903d152c37f0edd94c5edeb4960e0ab33c4a Mon Sep 17 00:00:00 2001 From: HerringtonDarkholme <2883231+HerringtonDarkholme@users.noreply.github.com> Date: Mon, 6 May 2024 14:11:08 -0700 Subject: [PATCH] 0.21.4 bump version --- CHANGELOG.md | 11 ++++++++++ Cargo.lock | 18 +++++++-------- Cargo.toml | 12 +++++----- crates/napi/npm/darwin-arm64/package.json | 2 +- crates/napi/npm/darwin-x64/package.json | 2 +- crates/napi/npm/linux-arm64-gnu/package.json | 2 +- crates/napi/npm/linux-x64-gnu/package.json | 2 +- crates/napi/npm/linux-x64-musl/package.json | 2 +- crates/napi/npm/win32-arm64-msvc/package.json | 2 +- crates/napi/npm/win32-ia32-msvc/package.json | 2 +- crates/napi/npm/win32-x64-msvc/package.json | 2 +- crates/napi/package.json | 2 +- crates/pyo3/pyproject.toml | 2 +- npm/package.json | 16 +++++++------- npm/platforms/darwin-arm64/package.json | 2 +- npm/platforms/darwin-x64/package.json | 2 +- npm/platforms/linux-arm64-gnu/package.json | 2 +- npm/platforms/linux-x64-gnu/package.json | 2 +- npm/platforms/win32-arm64-msvc/package.json | 2 +- npm/platforms/win32-ia32-msvc/package.json | 2 +- npm/platforms/win32-x64-msvc/package.json | 2 +- pyproject.toml | 2 +- schemas/rule.json | 22 +++++++++---------- 23 files changed, 63 insertions(+), 52 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ebe706e395..5062d6b977 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,8 +4,19 @@ All notable changes to this project will be documented in this file. Dates are d Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog). +#### [0.21.4](https://github.com/ast-grep/ast-grep/compare/0.21.3...0.21.4) + +- fix: build from source [`#1125`](https://github.com/ast-grep/ast-grep/pull/1125) +- doc: update how to install via cargo [`#1118`](https://github.com/ast-grep/ast-grep/issues/1118) +- feat: report undefined util rules [`#1106`](https://github.com/ast-grep/ast-grep/issues/1106) +- **Breaking change:** feat: separate RuleCoreError and RuleConfigError [`d96efa9`](https://github.com/ast-grep/ast-grep/commit/d96efa97382b0ec8e11031b54de137f43c1d8bf6) +- refactor: move Transformation into a standalone module [`b51cc95`](https://github.com/ast-grep/ast-grep/commit/b51cc957c87c98d3edbce3f5abdd8c1d43a77b18) +- fix(deps): update dependency @babel/core to v7.24.5 [`77ea8bd`](https://github.com/ast-grep/ast-grep/commit/77ea8bd8239aa2a305c5dac34d7308cb572b2ef9) + #### [0.21.3](https://github.com/ast-grep/ast-grep/compare/0.21.2...0.21.3) +> 2 May 2024 + - feat: make pattern more permissive [`#1087`](https://github.com/ast-grep/ast-grep/issues/1087) - refactor: further simplify test case [`8188473`](https://github.com/ast-grep/ast-grep/commit/8188473f6729fff25704a68786d45999b52eb7aa) - refactor: make rewrite test simplier [`5a754ef`](https://github.com/ast-grep/ast-grep/commit/5a754eff27c6ba549a35f5728ec315a4727bfe71) diff --git a/Cargo.lock b/Cargo.lock index 618fd41b95..a9c55690bb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -112,7 +112,7 @@ dependencies = [ [[package]] name = "ast-grep" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ansi_term", "anyhow", @@ -143,7 +143,7 @@ dependencies = [ [[package]] name = "ast-grep-config" -version = "0.21.3" +version = "0.21.4" dependencies = [ "anyhow", "ast-grep-core", @@ -159,7 +159,7 @@ dependencies = [ [[package]] name = "ast-grep-core" -version = "0.21.3" +version = "0.21.4" dependencies = [ "bit-set", "regex", @@ -170,7 +170,7 @@ dependencies = [ [[package]] name = "ast-grep-dynamic" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ast-grep-core", "ignore", @@ -182,7 +182,7 @@ dependencies = [ [[package]] name = "ast-grep-language" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ast-grep-core", "ignore", @@ -212,7 +212,7 @@ dependencies = [ [[package]] name = "ast-grep-lsp" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ast-grep-config", "ast-grep-core", @@ -226,7 +226,7 @@ dependencies = [ [[package]] name = "ast-grep-napi" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ast-grep-config", "ast-grep-core", @@ -244,7 +244,7 @@ dependencies = [ [[package]] name = "ast-grep-py" -version = "0.21.3" +version = "0.21.4" dependencies = [ "anyhow", "ast-grep-config", @@ -310,7 +310,7 @@ dependencies = [ [[package]] name = "benches" -version = "0.21.3" +version = "0.21.4" dependencies = [ "ast-grep-config", "ast-grep-core", diff --git a/Cargo.toml b/Cargo.toml index c12c8c916a..913ae16144 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,7 +11,7 @@ resolver = "2" lto = true [workspace.package] -version = "0.21.3" +version = "0.21.4" authors = ["Herrington Darkholme <2883231+HerringtonDarkholme@users.noreply.github.com>"] edition = "2021" license = "MIT" @@ -22,11 +22,11 @@ rust-version = "1.67" readme = "README.md" [workspace.dependencies] -ast-grep-core = { path = "crates/core", version = "0.21.3" } -ast-grep-config = { path = "crates/config", version = "0.21.3" } -ast-grep-dynamic = { path = "crates/dynamic", version = "0.21.3" } -ast-grep-language = { path = "crates/language", version = "0.21.3" } -ast-grep-lsp = { path = "crates/lsp", version = "0.21.3" } +ast-grep-core = { path = "crates/core", version = "0.21.4" } +ast-grep-config = { path = "crates/config", version = "0.21.4" } +ast-grep-dynamic = { path = "crates/dynamic", version = "0.21.4" } +ast-grep-language = { path = "crates/language", version = "0.21.4" } +ast-grep-lsp = { path = "crates/lsp", version = "0.21.4" } bit-set = { version = "0.5.3" } ignore = { version = "0.4.22" } diff --git a/crates/napi/npm/darwin-arm64/package.json b/crates/napi/npm/darwin-arm64/package.json index a5199e7e9b..8a32f4a107 100644 --- a/crates/napi/npm/darwin-arm64/package.json +++ b/crates/napi/npm/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-darwin-arm64", - "version": "0.21.3", + "version": "0.21.4", "os": [ "darwin" ], diff --git a/crates/napi/npm/darwin-x64/package.json b/crates/napi/npm/darwin-x64/package.json index 2e2f3fe1ec..d1aac49278 100644 --- a/crates/napi/npm/darwin-x64/package.json +++ b/crates/napi/npm/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-darwin-x64", - "version": "0.21.3", + "version": "0.21.4", "os": [ "darwin" ], diff --git a/crates/napi/npm/linux-arm64-gnu/package.json b/crates/napi/npm/linux-arm64-gnu/package.json index 91a1ccc908..4127b4c8e1 100644 --- a/crates/napi/npm/linux-arm64-gnu/package.json +++ b/crates/napi/npm/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-linux-arm64-gnu", - "version": "0.21.3", + "version": "0.21.4", "os": [ "linux" ], diff --git a/crates/napi/npm/linux-x64-gnu/package.json b/crates/napi/npm/linux-x64-gnu/package.json index 8c5ae8a4d6..955a83566a 100644 --- a/crates/napi/npm/linux-x64-gnu/package.json +++ b/crates/napi/npm/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-linux-x64-gnu", - "version": "0.21.3", + "version": "0.21.4", "os": [ "linux" ], diff --git a/crates/napi/npm/linux-x64-musl/package.json b/crates/napi/npm/linux-x64-musl/package.json index 3ac76dc3c6..f995d4e59b 100644 --- a/crates/napi/npm/linux-x64-musl/package.json +++ b/crates/napi/npm/linux-x64-musl/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-linux-x64-musl", - "version": "0.21.3", + "version": "0.21.4", "os": [ "linux" ], diff --git a/crates/napi/npm/win32-arm64-msvc/package.json b/crates/napi/npm/win32-arm64-msvc/package.json index fba43b98ec..cfe085735b 100644 --- a/crates/napi/npm/win32-arm64-msvc/package.json +++ b/crates/napi/npm/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-win32-arm64-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/crates/napi/npm/win32-ia32-msvc/package.json b/crates/napi/npm/win32-ia32-msvc/package.json index 31aad226e3..8cbc722809 100644 --- a/crates/napi/npm/win32-ia32-msvc/package.json +++ b/crates/napi/npm/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-win32-ia32-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/crates/napi/npm/win32-x64-msvc/package.json b/crates/napi/npm/win32-x64-msvc/package.json index c58520c19c..d0eef12a94 100644 --- a/crates/napi/npm/win32-x64-msvc/package.json +++ b/crates/napi/npm/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi-win32-x64-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/crates/napi/package.json b/crates/napi/package.json index 5cae3794e7..4525fea9c0 100644 --- a/crates/napi/package.json +++ b/crates/napi/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/napi", - "version": "0.21.3", + "version": "0.21.4", "description": "Search and Rewrite code at large scale using precise AST pattern", "homepage": "https://ast-grep.github.io", "main": "index.js", diff --git a/crates/pyo3/pyproject.toml b/crates/pyo3/pyproject.toml index d2de6f8c49..ed0f16910f 100644 --- a/crates/pyo3/pyproject.toml +++ b/crates/pyo3/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "maturin" [project] name = "ast-grep-py" requires-python = ">=3.8" -version = "0.21.3" +version = "0.21.4" description = "Structural Search and Rewrite code at large scale using precise AST pattern." authors = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }] maintainers = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }] diff --git a/npm/package.json b/npm/package.json index 8e25b20b70..d7af184c12 100644 --- a/npm/package.json +++ b/npm/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli", - "version": "0.21.3", + "version": "0.21.4", "publishConfig": { "access": "public" }, @@ -29,13 +29,13 @@ "postinstall": "node postinstall.js" }, "optionalDependencies": { - "@ast-grep/cli-win32-arm64-msvc": "0.21.3", - "@ast-grep/cli-win32-ia32-msvc": "0.21.3", - "@ast-grep/cli-win32-x64-msvc": "0.21.3", - "@ast-grep/cli-darwin-arm64": "0.21.3", - "@ast-grep/cli-darwin-x64": "0.21.3", - "@ast-grep/cli-linux-arm64-gnu": "0.21.3", - "@ast-grep/cli-linux-x64-gnu": "0.21.3" + "@ast-grep/cli-win32-arm64-msvc": "0.21.4", + "@ast-grep/cli-win32-ia32-msvc": "0.21.4", + "@ast-grep/cli-win32-x64-msvc": "0.21.4", + "@ast-grep/cli-darwin-arm64": "0.21.4", + "@ast-grep/cli-darwin-x64": "0.21.4", + "@ast-grep/cli-linux-arm64-gnu": "0.21.4", + "@ast-grep/cli-linux-x64-gnu": "0.21.4" }, "bin": { "sg": "sg", diff --git a/npm/platforms/darwin-arm64/package.json b/npm/platforms/darwin-arm64/package.json index 5a64587ca0..b9a75b8de2 100644 --- a/npm/platforms/darwin-arm64/package.json +++ b/npm/platforms/darwin-arm64/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-darwin-arm64", - "version": "0.21.3", + "version": "0.21.4", "os": [ "darwin" ], diff --git a/npm/platforms/darwin-x64/package.json b/npm/platforms/darwin-x64/package.json index 7af2ad1c29..acf41ee86b 100644 --- a/npm/platforms/darwin-x64/package.json +++ b/npm/platforms/darwin-x64/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-darwin-x64", - "version": "0.21.3", + "version": "0.21.4", "os": [ "darwin" ], diff --git a/npm/platforms/linux-arm64-gnu/package.json b/npm/platforms/linux-arm64-gnu/package.json index 5c0097ee87..5cc68ef5eb 100644 --- a/npm/platforms/linux-arm64-gnu/package.json +++ b/npm/platforms/linux-arm64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-linux-arm64-gnu", - "version": "0.21.3", + "version": "0.21.4", "os": [ "linux" ], diff --git a/npm/platforms/linux-x64-gnu/package.json b/npm/platforms/linux-x64-gnu/package.json index 6f0dba6761..adcdf46f43 100644 --- a/npm/platforms/linux-x64-gnu/package.json +++ b/npm/platforms/linux-x64-gnu/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-linux-x64-gnu", - "version": "0.21.3", + "version": "0.21.4", "os": [ "linux" ], diff --git a/npm/platforms/win32-arm64-msvc/package.json b/npm/platforms/win32-arm64-msvc/package.json index 97bd240cb0..7cc8e7ffb5 100644 --- a/npm/platforms/win32-arm64-msvc/package.json +++ b/npm/platforms/win32-arm64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-win32-arm64-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/npm/platforms/win32-ia32-msvc/package.json b/npm/platforms/win32-ia32-msvc/package.json index f66f1016d0..899c3dd2f3 100644 --- a/npm/platforms/win32-ia32-msvc/package.json +++ b/npm/platforms/win32-ia32-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-win32-ia32-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/npm/platforms/win32-x64-msvc/package.json b/npm/platforms/win32-x64-msvc/package.json index 4308010af5..e4a2ce8a3a 100644 --- a/npm/platforms/win32-x64-msvc/package.json +++ b/npm/platforms/win32-x64-msvc/package.json @@ -1,6 +1,6 @@ { "name": "@ast-grep/cli-win32-x64-msvc", - "version": "0.21.3", + "version": "0.21.4", "os": [ "win32" ], diff --git a/pyproject.toml b/pyproject.toml index 27a2384726..b4e98d0abd 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "maturin" [project] name = "ast-grep-cli" -version = "0.21.3" +version = "0.21.4" description = "Structural Search and Rewrite code at large scale using precise AST pattern." authors = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }] maintainers = [{ name = "Herrington Darkholme", email = "2883231+HerringtonDarkholme@users.noreply.github.com" }] diff --git a/schemas/rule.json b/schemas/rule.json index 198656d2ec..facacc7897 100644 --- a/schemas/rule.json +++ b/schemas/rule.json @@ -118,7 +118,7 @@ "null" ], "additionalProperties": { - "$ref": "#/definitions/Transformation" + "$ref": "#/definitions/Transformation_for_String" } }, "url": { @@ -140,7 +140,7 @@ } }, "definitions": { - "Convert": { + "Convert_for_String": { "description": "Converts the source meta variable's text content to a specified case format.", "type": "object", "required": [ @@ -325,7 +325,7 @@ } } }, - "Replace": { + "Replace_for_String": { "description": "Replaces a substring in the meta variable's text content with another string.", "type": "object", "required": [ @@ -348,7 +348,7 @@ } } }, - "Rewrite": { + "Rewrite_for_String": { "type": "object", "required": [ "rewriters", @@ -460,7 +460,7 @@ "null" ], "additionalProperties": { - "$ref": "#/definitions/Transformation" + "$ref": "#/definitions/Transformation_for_String" } }, "utils": { @@ -635,7 +635,7 @@ "pascalCase" ] }, - "Substring": { + "Substring_for_String": { "description": "Extracts a substring from the meta variable's text content.\n\nBoth `start_char` and `end_char` support negative indexing, which counts character from the end of an array, moving backwards.", "type": "object", "required": [ @@ -664,7 +664,7 @@ } } }, - "Transformation": { + "Transformation_for_String": { "description": "Represents a transformation that can be applied to a matched AST node. Available transformations are `substring`, `replace` and `convert`.", "oneOf": [ { @@ -674,7 +674,7 @@ ], "properties": { "substring": { - "$ref": "#/definitions/Substring" + "$ref": "#/definitions/Substring_for_String" } }, "additionalProperties": false @@ -686,7 +686,7 @@ ], "properties": { "replace": { - "$ref": "#/definitions/Replace" + "$ref": "#/definitions/Replace_for_String" } }, "additionalProperties": false @@ -698,7 +698,7 @@ ], "properties": { "convert": { - "$ref": "#/definitions/Convert" + "$ref": "#/definitions/Convert_for_String" } }, "additionalProperties": false @@ -710,7 +710,7 @@ ], "properties": { "rewrite": { - "$ref": "#/definitions/Rewrite" + "$ref": "#/definitions/Rewrite_for_String" } }, "additionalProperties": false