Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<Version>` 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 `<Version>` 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`.

Expand Down
2 changes: 1 addition & 1 deletion clients/dotnet/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<!-- One version for the four packages (SqlGuardLlm, SqlGuardLlm.Extensions, SqlGuardLlm.EntityFrameworkCore,
SqlGuardLlm.SemanticKernel). release.yml requires it to equal the engine release (pyproject.toml). -->
<PropertyGroup>
<Version>1.0.0</Version>
<Version>1.1.0</Version>
<!-- SourceLink (built into the .NET SDK), symbol packages (.snupkg) and reproducible builds. -->
<PublishRepositoryUrl>true</PublishRepositoryUrl>
<IncludeSymbols>true</IncludeSymbols>
Expand Down
4 changes: 2 additions & 2 deletions clients/node/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion clients/node/package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
6 changes: 3 additions & 3 deletions server.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -23,7 +23,7 @@
{
"type": "named",
"name": "--with",
"value": "sqlguardllm[mcp]==1.0.0"
"value": "sqlguardllm[mcp]==1.1.0"
}
],
"packageArguments": [
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading