diff --git a/CHANGELOG.md b/CHANGELOG.md index 97bda038..3134d767 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,14 +4,29 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). -### UNRELEASED +### [v0.9.0] +### Breaking Changes +- Context Extension has been deprecated. Context is now reported using OGC Features compliant numberMatched and numberReturned +- Paging return from search using prev/next properties has been deprecated. Paging is now available in the spec compliant Links + +### Added +- Add support for Casei and Accenti (Fixes #237). (Also, requires the addition of the unaccent extension) +- Add numberReturned and numberMatched fields for ItemCollection. BREAKING CHANGE: As the context extension is deprecated, this also removes the "context" item from results. - Updated docs on automated updates of collection extents. (CLOSES #247) +- stac search now returns paging information using standards compliant links rather than prev/next properties (Fixes #265) ### Fixed - Fix issue when installing or migrating pgstac using a non superuser (particularly when using the default role found on RDS). (FIXES #239). Backports fix into migrations for 0.8.2, 0.8.3, and 0.8.4. - Adds fixes/updates to documentation - Fixes issue when using geometry with the strict queryables setting set. +- Fixes issue when there is a None rather than an empty dictionary in hydration. +- Use "debug" log level rather than "log" to prevent growth in log messages due to differences in how client_min_messages and log_min_messages treat log levels. (Fixes #242) +- Refactor search_query and search_where functions to eliminate race condition when running identical queries. (Fixes #233) +- Fixes CQL2 Parser for Between operator (Fixes #251) +- Update PyO3 for rust hydration performance improvements. + + ## [v0.8.4] @@ -438,7 +453,7 @@ _TODO_ ### Fixed - Fixed issue with pypgstac loads which caused some writes to fail ([#18](https://github.com/stac-utils/pgstac/pull/18)) - +[v0.9.0]: https://github.com/stac-utils/pgstac/compare/v0.8.4...v0.9.0 [v0.8.4]: https://github.com/stac-utils/pgstac/compare/v0.8.2...v0.8.4 [v0.8.3]: https://github.com/stac-utils/pgstac/compare/v0.8.2...v0.8.3 [v0.8.2]: https://github.com/stac-utils/pgstac/compare/v0.8.1...v0.8.2 diff --git a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql b/src/pgstac/migrations/pgstac.0.8.5-0.9.0.sql similarity index 99% rename from src/pgstac/migrations/pgstac.0.8.5-unreleased.sql rename to src/pgstac/migrations/pgstac.0.8.5-0.9.0.sql index f79b2771..bbb84c0e 100644 --- a/src/pgstac/migrations/pgstac.0.8.5-unreleased.sql +++ b/src/pgstac/migrations/pgstac.0.8.5-0.9.0.sql @@ -10,7 +10,7 @@ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN CREATE EXTENSION IF NOT EXISTS btree_gist; END IF; - IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN + IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='unaccent') THEN CREATE EXTENSION IF NOT EXISTS unaccent; END IF; END; @@ -1209,4 +1209,4 @@ RESET ROLE; SET ROLE pgstac_ingest; SELECT update_partition_stats_q(partition) FROM partitions_view; -SELECT set_version('unreleased'); +SELECT set_version('0.9.0'); diff --git a/src/pgstac/migrations/pgstac.unreleased.sql b/src/pgstac/migrations/pgstac.0.9.0.sql similarity index 99% rename from src/pgstac/migrations/pgstac.unreleased.sql rename to src/pgstac/migrations/pgstac.0.9.0.sql index 6bbe3bb8..508a6d11 100644 --- a/src/pgstac/migrations/pgstac.unreleased.sql +++ b/src/pgstac/migrations/pgstac.0.9.0.sql @@ -8,7 +8,7 @@ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN CREATE EXTENSION IF NOT EXISTS btree_gist; END IF; - IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN + IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='unaccent') THEN CREATE EXTENSION IF NOT EXISTS unaccent; END IF; END; @@ -4498,4 +4498,4 @@ RESET ROLE; SET ROLE pgstac_ingest; SELECT update_partition_stats_q(partition) FROM partitions_view; -SELECT set_version('unreleased'); +SELECT set_version('0.9.0'); diff --git a/src/pgstac/pgstac.sql b/src/pgstac/pgstac.sql index 27b50f0f..3ceaea99 120000 --- a/src/pgstac/pgstac.sql +++ b/src/pgstac/pgstac.sql @@ -1 +1 @@ -migrations/pgstac.unreleased.sql \ No newline at end of file +migrations/pgstac.0.9.0.sql \ No newline at end of file diff --git a/src/pgstac/sql/000_idempotent_pre.sql b/src/pgstac/sql/000_idempotent_pre.sql index 6a629bf2..9f558e4b 100644 --- a/src/pgstac/sql/000_idempotent_pre.sql +++ b/src/pgstac/sql/000_idempotent_pre.sql @@ -8,7 +8,7 @@ BEGIN IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN CREATE EXTENSION IF NOT EXISTS btree_gist; END IF; - IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='btree_gist') THEN + IF NOT EXISTS (SELECT 1 FROM pg_extension WHERE extname='unaccent') THEN CREATE EXTENSION IF NOT EXISTS unaccent; END IF; END; diff --git a/src/pgstac/sql/999_version.sql b/src/pgstac/sql/999_version.sql index ecd86ef1..aa341971 100644 --- a/src/pgstac/sql/999_version.sql +++ b/src/pgstac/sql/999_version.sql @@ -1 +1 @@ -SELECT set_version('unreleased'); +SELECT set_version('0.9.0'); diff --git a/src/pypgstac/pyproject.toml b/src/pypgstac/pyproject.toml index 0600c9b5..39206bf1 100644 --- a/src/pypgstac/pyproject.toml +++ b/src/pypgstac/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pypgstac" -version = "0.8.5-dev" +version = "0.9.0" description = "Schema, functions and a python library for storing and accessing STAC collections and items in PostgreSQL" readme = "README.md" requires-python = ">=3.8" diff --git a/src/pypgstac/python/pypgstac/version.py b/src/pypgstac/python/pypgstac/version.py index 20abd169..2f71490f 100644 --- a/src/pypgstac/python/pypgstac/version.py +++ b/src/pypgstac/python/pypgstac/version.py @@ -1,2 +1,2 @@ """Version.""" -__version__ = "0.8.5-dev" +__version__ = "0.9.0"