diff --git a/CHANGELOG.md b/CHANGELOG.md index 8c2faea..f930e91 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,22 @@ Sections used: Added, Changed, Deprecated (an API that still works but will be r ## [Unreleased] +## [1.1.0] - 2026-12-03 + +A minor release. The stable API (the guard, the violation codes, the policy schema, the CLI and HTTP protocol v1) only gains optional fields and options; everything new below is experimental and may change in a minor release ([STABILITY](docs/STABILITY.md)). The one default that changed is under **Changed**. + +### Changed + +- `--max-cost` or `--max-plan-rows` on an engine whose plan has no such number (SQLite, DuckDB) is now an error at startup instead of being ignored with a warning (#292). Backends with no plan reader (Oracle, MariaDB) still warn and ignore. + +### Deprecated + +- The `limit_reached` field of the MCP `query` result is true whenever `row_count` equals the limit, even when nothing was cut. Use `truncated`. It stays through 1.x and is not removed before 2.0 (#295). + +### Fixed + +- The `explain_query` tool description promised the rewritten SQL, which it never returns (#296), and several docs still called released features unreleased (#297). + ### Added - **Plan checks** (#292, [guide](docs/PLAN_CHECKS.md), experimental): `sqlguardllm.plan.PlanGuard` judges the database's own plan for a query the guard allowed (it only accepts a `CheckResult`, so the rewritten SQL is what is explained, never `ANALYZE`) against `max_cost`, `max_rows` and `full_scan_tables`, with `on_exceed` `deny` or `warn`; `sqlalchemy_runner` runs the statements. Plans are read for PostgreSQL, MySQL, **SQL Server (`SHOWPLAN_XML`), DuckDB and SQLite**, with SQLite and MySQL aliases resolved through the SQL. `sqlguardllm mcp` gains `--plan-full-scan TABLE` and `--plan-on-exceed`, and a warn-mode query runs with `status: "warned"` and the reasons in `warnings`. **Changed:** `--max-cost` or `--max-plan-rows` on an engine whose plan has no such number (SQLite, DuckDB) is now an error at startup instead of being ignored with a warning; backends with no plan reader (Oracle, MariaDB) still warn and ignore. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f1c9c2c..c2a60fa 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -81,7 +81,7 @@ This project follows the [Contributor Covenant](CODE_OF_CONDUCT.md). Be kind; cr Maintainers only. Every release goes to PyPI, npm and NuGet together, with one version. -1. Set the version in `pyproject.toml` (for example `1.0.0`) and the matching one in `clients/node/package.json` and `` of `clients/dotnet/src/SqlGuardLlm/SqlGuardLlm.csproj` (`1.0.0`; `b1` is `-beta.1`, `rc1` is `-rc.1`), then run `uv lock` and `npm install --package-lock-only` in `clients/node`. +1. Set the version in `pyproject.toml` (for example `1.0.0`) and the matching one in `clients/node/package.json`, in `` of `clients/dotnet/Directory.Build.props` (shared by the four .NET packages; `1.0.0`; `b1` is `-beta.1`, `rc1` is `-rc.1`) and in `server.json` (the top-level `version`, the package `version` and the `sqlguardllm[mcp]==` pin in `runtimeArguments`), then run `uv lock` and `npm install --package-lock-only` in `clients/node`. 2. Move the `Unreleased` notes in `CHANGELOG.md` under `## [1.0.0] - YYYY-MM-DD`. 3. Merge to `main`, then tag: `git tag -a v1.0.0 -m "sqlguardllm 1.0.0" && git push origin v1.0.0`. diff --git a/clients/dotnet/Directory.Build.props b/clients/dotnet/Directory.Build.props index 968c303..553f270 100644 --- a/clients/dotnet/Directory.Build.props +++ b/clients/dotnet/Directory.Build.props @@ -2,7 +2,7 @@ - 1.0.0 + 1.1.0 true true diff --git a/clients/node/package-lock.json b/clients/node/package-lock.json index 069d566..eb278c6 100644 --- a/clients/node/package-lock.json +++ b/clients/node/package-lock.json @@ -1,12 +1,12 @@ { "name": "sqlguardllm", - "version": "1.0.0", + "version": "1.1.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "sqlguardllm", - "version": "1.0.0", + "version": "1.1.0", "license": "Apache-2.0", "devDependencies": { "@types/node": "^26.6.11", diff --git a/clients/node/package.json b/clients/node/package.json index 7e43e6a..01b985a 100644 --- a/clients/node/package.json +++ b/clients/node/package.json @@ -1,6 +1,6 @@ { "name": "sqlguardllm", - "version": "1.0.0", + "version": "1.1.0", "description": "Official Node.js/TypeScript client for the sqlguardllm SQL firewall server", "license": "Apache-2.0", "repository": { diff --git a/pyproject.toml b/pyproject.toml index ff8c688..8230a68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "sqlguardllm" -version = "1.0.0" +version = "1.1.0" description = "The SQL firewall for LLM apps: validate SQL written by AI and rewrite it read-only, allowlisted, row-filtered and limited." readme = "docs/pypi.md" requires-python = ">=3.10" diff --git a/server.json b/server.json index 6f97343..639a16e 100644 --- a/server.json +++ b/server.json @@ -8,13 +8,13 @@ "source": "github", "id": "1472316445" }, - "version": "1.0.0", + "version": "1.1.0", "packages": [ { "registryType": "pypi", "registryBaseUrl": "https://pypi.org", "identifier": "sqlguardllm", - "version": "1.0.0", + "version": "1.1.0", "runtimeHint": "uvx", "transport": { "type": "stdio" @@ -23,7 +23,7 @@ { "type": "named", "name": "--with", - "value": "sqlguardllm[mcp]==1.0.0" + "value": "sqlguardllm[mcp]==1.1.0" } ], "packageArguments": [ diff --git a/uv.lock b/uv.lock index db761bb..b641e57 100644 --- a/uv.lock +++ b/uv.lock @@ -3130,7 +3130,7 @@ wheels = [ [[package]] name = "sqlguardllm" -version = "1.0.0" +version = "1.1.0" source = { editable = "." } dependencies = [ { name = "sqlglot" },