Skip to content

Upgrade to Polhem 1.2.0 - #3

Merged
jeff377 merged 1 commit into
mainfrom
claude/upgrade-polhem-1.2.0
Oct 3, 2026
Merged

jeff377 merged 1 commit into
mainfrom
claude/upgrade-polhem-1.2.0

Conversation

@jeff377

@jeff377 jeff377 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Polhem 1.2.0 removes Polhem.Api.AspNetCore and ApiServiceOptions (ADR-049 in polhem-dev/polhem). The server follows the upgrade in Polhem's changelog:

  • Polhem.Api.AspNetCore is replaced by Polhem.JsonRpc.AspNetCore 1.0.0; AddControllers/MapControllers by AddJsonRpcServer() and MapJsonRpc("/api"), and the empty ApiController is deleted.
  • app.UsePolhemFramework() becomes services.AddPolhemApiKeyGateCheck(), which runs when the host starts, after the seeder has created st_api_key.
  • ApiServiceOptions.Initialize(...) becomes AddPolhemPayload(...).
  • Every Polhem.* package reference moves to 1.2.0.

The server code matches apps/Polhem.Northwind/Polhem.Northwind.Server in polhem-dev/polhem at v1.2.0.

Verified locally: the server, desktop and browser heads build with no warnings; the server starts, and polhem-connector-js's smoke test passes against it (plain, encoded and encrypted calls, sign-in, getFormSchema('Category'), sign-out). The iOS and Android heads are left to CI.

Polhem 1.2.0 removes Polhem.Api.AspNetCore and ApiServiceOptions (ADR-049 in polhem-dev/polhem). The server serves the API with Polhem.JsonRpc.AspNetCore (AddJsonRpcServer, MapJsonRpc), checks the API key gate at startup with AddPolhemApiKeyGateCheck, and registers the payload options with AddPolhemPayload. The empty ApiController is deleted.
@jeff377
jeff377 merged commit b049f52 into main Oct 3, 2026
2 checks passed
@jeff377
jeff377 deleted the claude/upgrade-polhem-1.2.0 branch October 3, 2026 07:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant