Breaking Changes
-
Previously deprecated flat methods on
DataverseClient(create,update,delete,get,list,query_sql,upload_file, etc.) are now removed; use the namespaced operations:client.records,client.query,client.tables,client.files,client.batch(#175) -
client.query.sql_select(),client.query.sql_joins(),client.query.sql_join()are removed (#175) -
QueryBuilder.execute()now returns a flatQueryResultinstead ofIterable[Record]; useexecute_pages()for lazy iteration (#175)Run
dataverse-migrate --dry-run .to automatically rewrite v0 call sites (pip install PowerPlatform-Dataverse-Client[migration]).
Added
- Async client —
AsyncDataverseClientwith full feature parity to the sync SDK; all operation namespaces available withasync withlifecycle management. Install withpip install PowerPlatform-Dataverse-Client[async](#171) - Single-record fetch —
client.records.retrieve(table, record_id, *, select, expand, include_annotations)returnsNoneon 404 instead of raising;expandadds$expandfor navigation-property expansion on the single-record GET;include_annotationsmaps to thePrefer: odata.include-annotationsheader for formatted values and lookup labels (#175) - Multi-record fetch —
client.records.list(table, *, filter, select, top, orderby, expand, page_size, count, include_annotations)returns an eager flatQueryResult; GA replacement forrecords.get()without a record ID;page_sizecontrolsPrefer: odata.maxpagesize,count=Trueadds$count=true,include_annotationsrequests formatted values (#175) - Streaming multi-record fetch —
client.records.list_pages(...)yields oneQueryResultper HTTP page; streaming counterpart tolist()with the same parameter set (#175) - FetchXML —
client.query.fetchxml(xml)returns an inertFetchXmlQuery; no HTTP call until.execute()or.execute_pages(). Paging implements the documented Dataverse algorithm: annotation parsed as outer XML,pagingcookieattribute double URL-decoded, server-suppliedpagenumberused for the next page,morerecordshandled as bothbooland"true"string,UserWarningemitted on simple-paging fallback, 32,768-character URL limit enforced (documented Dataverse GET cap), 10,000-page circuit breaker against runaway iteration (#175) - Streaming QueryBuilder —
QueryBuilder.execute_pages()lazily yields oneQueryResultper HTTP page; replaces deprecatedexecute(by_page=True)(#175) - Composable filters —
QueryBuilder.where(col("name") == "Contoso")with Python operators (==,>,&,|,~); replaces the deprecatedfilter_eq(),filter_contains(), and otherfilter_*helpers (#175) QueryResultindexing —result[0]returns aRecord;result[1:5]returns a newQueryResult(#175)DataverseModelprotocol — structuralProtocolinmodels/protocol.pyfor typed entity classes; enables CRUD operations without manual table names or dict serialization (#175)- Top-level re-exports —
col(),raw(),QueryResult, andDataverseModelimportable directly from the top-levelPowerPlatform.Dataversepackage (#175) - Shorter imports — public types (
Record,DataverseError,QueryBuilder,BatchResult, and others) now importable directly fromPowerPlatform.Dataverse.models,.core, and.operations(#165) - Migration tool — installed as the
dataverse-migrateconsole script (also runnable viapython -m PowerPlatform.Dataverse.migration.migrate_v0_to_v1); rewrites v0 call sites to the v1 API with--dry-runsupport; coverscreate,update,delete,get,list,fetchxml, and query-builder patterns; emits a[NEEDS-MANUAL]label for files with no auto-rewrites but manual attention needed, and appends a trailing note on[MIGRATED]lines when manual items remain. Requires the[migration]optional extra (pip install PowerPlatform-Dataverse-Client[migration]) (#175)
Changed
records.get()deprecation extended: calling with arecord_idemitsDeprecationWarningdirecting callers toretrieve(); calling without arecord_iddirects callers tolist()(#175)OperationContextnow validates keys and values against an allowlist; unknown keys or non-conforming values raiseValidationError, preventing PII from reaching theUser-Agentheader (#181)- Table creation now uses the
CreateEntitiesAPI, improving performance (#183) float/doublecolumn precision default raised from 2 to 5 decimal places, preventing silent truncation of values like2.718(#185)- Server inner error messages now surface in
HttpError.messageon both single-request and batch paths (#185) pandas.DataFramewith MultiIndex columns now raises a descriptive error with a flatten hint instead of failing deep in serialization (#185)
Fixed
- Client creation no longer errors on Python 3.10 and 3.11 (#188)
- SQL guardrails now catch write statements hidden inside comments, string literals, or zero-width prefixes (#185)
Deprecated
QueryBuilder.execute(by_page=True)andexecute(by_page=False)emitUserWarning; useexecute_pages()andexecute()respectively (#175)client.query.odata_select(),client.query.odata_expands(),client.query.odata_expand(),client.query.odata_bind()emitDeprecationWarning; navigation-property helpers are replaced byQueryBuilder.expand()(#175)