← 输入框|github.com|刷新
Skip to content

Tags

Tags

v4.1.1

Toggle v4.1.1's commit message
bump version 4.1.1

v4.1.0

Toggle v4.1.0's commit message
fix: an Excel and a CSV file in one upload ended the server; --inspec…

…t marks endpoints without a route

Found by running the docs examples against 4.1.0 (the first is not new in 4.x).

- upload: a handler is never handed the same request twice. With "upload for excel" and
  "fallback_handler = csv", a request with an Excel file and a CSV file made the CSV handler fall back to
  itself until the stack overflowed and the process ended.
- --endpoints and --inspect: "internalOnly": true on an endpoint that has no HTTP route (an MCP-only tool).
- changelog: both, and that --inspect runs the enabled generators.

v4.0.1

Toggle v4.0.1's commit message
fix: 4.0.1 - login with claim-mapped parameters, JWT claim names and …

…logout, typed SQL file defaults, TsClient types

Found by upgrading the docs examples to 4.0.0 and running each of them.

- login: request values for claim-mapped parameters are kept on login endpoints. 4.0.0 dropped them for
  anonymous callers, so a login routine with a _username/_user_name parameter answered 404 when user
  parameters were enabled (regression in 4.0.0).
- JWT: schemes are registered with MapInboundClaims = false (also for refresh tokens), so claims keep the
  names the login routine returned. "roles" and "email" were renamed by the handler: authorize <role>
  answered 403 and the claims were NULL in user parameters and the user context.
- logout: a scheme whose handler cannot sign out (JWT bearer) is skipped instead of answering 500.
- SQL files: the default of a typed parameter (@PARAM $2 quantity int default 1) is converted to the
  parameter type; it was bound as text and failed with 500 when the request left the parameter out.
- TsClient: DefaultJsonType falls back to "any" as documented (was "string"); a multi-command file with
  the void annotation returns void; a pass-through proxy function is Promise<Response> also when status
  codes are included.
- HTTP Custom Type and proxy timeout messages use the invariant culture.

Tests for each fix; changelog/v4.0.1.md; version 4.0.1; NpgsqlRest.TsClient 1.38.1.

Review before release: the TsClient package version tags all say 1.38.1 (only <Version> did, so the package
would have been built as 1.38.0 and skipped as a duplicate); npm/package.json 4.0.1; changelog notes on
tokens refreshed by earlier versions.

v4.0.0

Toggle v4.0.0's commit message
ci: publish to NuGet with trusted publishing instead of a stored API key

The stored key had expired and stopped the 4.0.0 release at the publish step. nuget.org now has a policy that
trusts this repository and build-test-publish.yml; NuGet/login exchanges GitHub's token for a key that is
valid for one hour. Nothing to renew.

v3.21.0

Toggle v3.21.0's commit message
bump version 3.21.0

v3.20.0

Toggle v3.20.0's commit message
fix(cli): --validate must not crash on a missing required env var

Also for the 3.20.0 release:
- docs: update README.md (Dart client, React Query hooks, MCP tool
  schemas/llms.txt, HTTP QUERY, OpenAPI 3.0/3.1, test count 2,484)
- docs: update .claude/skills/npgsqlrest (SKILL.md, annotations-reference.md,
  regenerated configuration-reference.jsonc)
- docs: add QUERY to the http/proxy/proxy_out --annotations syntax strings
- test: fix WireMock port collision (SqlFileHttpClientTypeFixture 50954 -> 50956)
  that intermittently failed the parallel Proxy fixtures

v3.19.0

Toggle v3.19.0's commit message
bump 3.19.0 and update skill files

v3.18.2

Toggle v3.18.2's commit message
bump version 3.18.2

v3.18.1

Toggle v3.18.1's commit message
feat(proxy): forward all automatic parameters to proxy upstream consi…

…stently (v3.18.1)

When an endpoint is a proxy, all server-filled parameters now forward to
the upstream through one unified path: user claims, IP address, HTTP
Custom Type fields, and resolved-parameter expressions.

Placement mirrors the endpoint's own signature, NOT the HTTP verb:
- a @body_parameter_name param carries the raw request body;
- otherwise RequestParamType decides — QueryString appends to the proxy
  query string, BodyJson merges into the proxy JSON body (typed:
  numbers / booleans / embedded json / strings) when the method carries
  a body.

Additive: the verbatim incoming request is still forwarded; the
automatic params are added on top so the upstream receives the same
parameter set the routine would.

The previous claim/IP-only query append in BuildTargetUrl is removed and
folded into the unified mechanism. Behavior change: claims/IP now follow
RequestParamType (unchanged for GET/QueryString — still query; for
BodyJson endpoints they now go to the body).

Notes: body merge only for JSON content types (multipart/non-JSON
forwarded verbatim); only expanded per-field HTTP-type params forwarded.

Tests cover GET-query, POST-body (typed), param_type-query on POST, and
resolved-param forwarding; existing claim/IP proxy tests pass unchanged.
Full suite green (2288). See changelog/v3.18.1.md.

v3.18.0

Toggle v3.18.0's commit message
upgrade references