Skip to content

v0.5.3

Choose a tag to compare

@iamkm1 iamkm1 released this 24 Jul 19:34

Fixes

  • Incomplete SSB population years are no longer exposed as complete totals. profiles.municipality() aggregated SSB's per-sex, per-age population cells and skipped any suppressed (null) cell, so a year missing one or more components was published as a finished count — and year-over-year change was computed against that partial figure. Completeness is now tracked per year: a year yields a total only when every cell is numeric. Missing data is treated as unknown, never zero, so an incomplete year is omitted and change is only ever computed between two complete years.
  • Municipality input is validated before any provider request. An empty or whitespace-only query is now trimmed and rejected with InputValidationError before the HTTP client is invoked, instead of spending an SSB request and failing later with NotFoundError.

No public API or type changes. Published with npm provenance (SLSA); the registry gitHead matches this tag.