Skip to content

Commit f4cd3f0

Browse files
committed
Hardcoding release notes
1 parent 8b74a63 commit f4cd3f0

File tree

1 file changed

+258
-4
lines changed

1 file changed

+258
-4
lines changed

articles/cosmos-db/sql-api-sdk-python.md

Lines changed: 258 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,6 @@ ms.devlang: python
88
ms.topic: reference
99
ms.date: 05/20/2020
1010
ms.author: anfeldma
11-
12-
1311
---
1412
# Azure Cosmos DB Python SDK for SQL API: Release notes and resources
1513

@@ -36,11 +34,267 @@ ms.author: anfeldma
3634
|**Get started**|[Get started with the Python SDK](create-sql-api-python.md)|
3735
|**Current supported platform**|[Python 2.7](https://www.python.org/downloads/) and [Python 3.5.3+](https://www.python.org/downloads/)|
3836

39-
[!INCLUDE[Release notes](~/cosmosdb-python-sdk/sdk/cosmos/azure-cosmos/CHANGELOG.md)]
37+
## Release History
38+
39+
### 4.0.0 (2020-05-20)
40+
41+
* Stable release.
42+
* Added HttpLoggingPolicy to pipeline to enable passing in a custom logger for request and response headers.
43+
44+
### 4.0.0b6
45+
46+
* Fixed bug in synchronized_request for media APIs.
47+
* Removed MediaReadMode and MediaRequestTimeout from ConnectionPolicy as media requests are not supported.
48+
49+
### 4.0.0b5
50+
51+
* azure.cosmos.errors module deprecated and replaced by azure.cosmos.exceptions
52+
* The access condition parameters (`access_condition`, `if_match`, `if_none_match`) have been deprecated in favor of separate `match_condition` and `etag` parameters.
53+
* Fixed bug in routing map provider.
54+
* Added query Distinct, Offset, and Limit support.
55+
* Default document query execution context now used for
56+
57+
* ChangeFeed queries
58+
* single partition queries (partitionkey, partitionKeyRangeId is present in options)
59+
* Non-document queries
60+
61+
* Errors out for aggregates on multiple partitions, with enable cross partition query set to true, but no "value" keyword present
62+
* Hits query plan endpoint for other scenarios to fetch query plan
63+
* Added `__repr__` support for Cosmos entity objects.
64+
* Updated documentation.
65+
66+
### 4.0.0b4
67+
68+
* Added support for a `timeout` keyword argument to all operations to specify an absolute timeout in seconds within which the operation must be completed. If the timeout value is exceeded, a `azure.cosmos.errors.CosmosClientTimeoutError` will be raised.
69+
70+
* Added a new `ConnectionRetryPolicy` to manage retry behavior during HTTP connection errors.
71+
72+
* Added new constructor and per-operation configuration keyword arguments:
73+
74+
* `retry_total` - Maximum retry attempts.
75+
* `retry_backoff_max` - Maximum retry wait time in seconds.
76+
* `retry_fixed_interval` - Fixed retry interval in milliseconds.
77+
* `retry_read` - Maximum number of sockets read retry attempts.
78+
* `retry_connect` - Maximum number of connection error retry attempts.
79+
* `retry_status` - Maximum number of retry attempts on error status codes.
80+
* `retry_on_status_codes` - A list of specific status codes to retry on.
81+
* `retry_backoff_factor` - Factor to calculate wait time between retry attempts.
82+
83+
### 4.0.0b3
84+
85+
* Added `create_database_if_not_exists()` and `create_container_if_not_exists` functionalities to CosmosClient and Database respectively.
86+
87+
### 4.0.0b2
88+
89+
* Version 4.0.0b2 is the second iteration in our efforts to build a client library that suits the Python language best practices.
90+
91+
**Breaking changes**
92+
93+
* The client connection has been adapted to consume the HTTP pipeline defined in `azure.core.pipeline`.
94+
95+
* Interactive objects have now been renamed as proxies. This includes:
96+
97+
* `Database` -> `DatabaseProxy`
98+
* `User` -> `UserProxy`
99+
* `Container` -> `ContainerProxy`
100+
* `Scripts` -> `ScriptsProxy`
101+
102+
* The constructor of `CosmosClient` has been updated:
103+
104+
* The `auth` parameter has been renamed to `credential` and will now take an authentication type directly. This means the master key value, a dictionary of resource tokens, or a list of permissions can be passed in. However the old dictionary format is still supported.
105+
106+
* The `connection_policy` parameter has been made a keyword only parameter, and while it is still supported, each of the individual attributes of the policy can now be passed in as explicit keyword arguments:
107+
108+
* `request_timeout`
109+
* `media_request_timeout`
110+
* `connection_mode`
111+
* `media_read_mode`
112+
* `proxy_config`
113+
* `enable_endpoint_discovery`
114+
* `preferred_locations`
115+
* `multiple_write_locations`
116+
117+
* A new constructor has been added to `CosmosClient` to enable creation via a connection string retrieved from the Azure portal.
118+
119+
* Some `read_all` operations have been renamed to `list` operations:
120+
121+
* `CosmosClient.read_all_databases` -> `CosmosClient.list_databases`
122+
* `Container.read_all_conflicts` -> `ContainerProxy.list_conflicts`
123+
* `Database.read_all_containers` -> `DatabaseProxy.list_containers`
124+
* `Database.read_all_users` -> `DatabaseProxy.list_users`
125+
* `User.read_all_permissions` -> `UserProxy.list_permissions`
126+
127+
* All operations that take `request_options` or `feed_options` parameters, these have been moved to keyword only parameters. In addition, while these options dictionaries are still supported, each of the individual options within the dictionary are now supported as explicit keyword arguments.
128+
129+
* The error hierarchy is now inherited from `azure.core.AzureError` instead of, which has been removed.
130+
131+
* `HTTPFailure` has been renamed to `CosmosHttpResponseError`
132+
* `JSONParseFailure` has been removed and replaced by `azure.core.DecodeError`
133+
* Added additional errors for specific response codes:
134+
* `CosmosResourceNotFoundError` for status 404
135+
* `CosmosResourceExistsError` for status 409
136+
* `CosmosAccessConditionFailedError` for status 412
137+
138+
* `CosmosClient` can now be run in a context manager to handle closing the client connection.
139+
140+
* Iterable responses (for example, query responses and list responses) are now of type `azure.core.paging.ItemPaged`. The method `fetch_next_block` has been replaced by a secondary iterator, accessed by the `by_page` method.
141+
142+
### 4.0.0b1
143+
144+
Version 4.0.0b1 is the first preview of our efforts to create a user-friendly client library that suits the Python language best practices. For more information about this, and preview releases of other Azure SDK libraries, please visit https://aka.ms/azure-sdk-preview1-python.
145+
146+
**Breaking changes: New API design**
147+
148+
* Operations are now scoped to a particular client:
149+
150+
* `CosmosClient`: This client handles account-level operations. This includes managing service properties and listing the databases within an account.
151+
* `Database`: This client handles database-level operations. This includes creating and deleting containers, users, and stored procedures. It can be accessed from a cosmosClient` instance by name.
152+
* `Container`: This client handles operations for a particular container. This includes querying and inserting items and managing properties.
153+
* `User`: This client handles operations for a particular user. This includes adding and deleting permissions and managing user properties.
154+
155+
These clients can be accessed by navigating down the client hierarchy using the `get_<child>_client` method. For full details on the new API, please see the [reference documentation](https://aka.ms/azsdk-python-cosmos-ref).
156+
157+
* Clients are accessed by name rather than by ID. No need to concatenate strings to create links.
158+
159+
* No more need to import types and methods from individual modules. The public API surface area is available directly in the `azure.cosmos` package.
160+
161+
* Individual request properties can be provided as keyword arguments rather than constructing a separate `RequestOptions` instance.
162+
163+
### 3.0.2
164+
165+
* Added Support for MultiPolygon Datatype
166+
* Bug Fix in Session Read Retry Policy
167+
* Bug Fix for Incorrect padding issues while decoding base 64 strings
168+
169+
### 3.0.1
170+
171+
* Bug fix in LocationCache
172+
* Bug fix endpoint retry logic
173+
* Fixed documentation
174+
175+
### 3.0.0
176+
177+
* Multi-regions write support added
178+
* Naming changes
179+
* DocumentClient to CosmosClient
180+
* Collection to Container
181+
* Document to Item
182+
* Package name updated to "azure-cosmos"
183+
* Namespace updated to "azure.cosmos"
184+
185+
### 2.3.3
186+
187+
* Added support for proxy
188+
* Added support for reading change feed
189+
* Added support for collection quota headers
190+
* Bugfix for large session tokens issue
191+
* Bugfix for ReadMedia API
192+
* Bugfix in partition key range cache
193+
194+
### 2.3.2
195+
196+
* Added support for default retries on connection issues.
197+
198+
### 2.3.1
199+
200+
* Updated documentation to reference Azure Cosmos DB instead of Azure DocumentDB.
201+
202+
### 2.3.0
203+
204+
* This SDK version requires the latest version of Azure Cosmos DB Emulator available for download from https://aka.ms/cosmosdb-emulator.
205+
206+
### 2.2.1
207+
208+
* bugfix for aggregate dict
209+
* bugfix for trimming slashes in the resource link
210+
* tests for unicode encoding
211+
212+
### 2.2.0
213+
214+
* Added support for Request Unit per Minute (RU/m) feature.
215+
* Added support for a new consistency level called ConsistentPrefix.
216+
217+
### 2.1.0
218+
219+
* Added support for aggregation queries (COUNT, MIN, MAX, SUM, and AVG).
220+
* Added an option for disabling SSL verification when running against DocumentDB Emulator.
221+
* Removed the restriction of dependent requests module to be exactly 2.10.0.
222+
* Lowered minimum throughput on partitioned collections from 10,100 RU/s to 2500 RU/s.
223+
* Added support for enabling script logging during stored procedure execution.
224+
* REST API version bumped to '2017-01-19' with this release.
225+
226+
### 2.0.1
227+
228+
* Made editorial changes to documentation comments.
229+
230+
### 2.0.0
231+
232+
* Added support for Python 3.5.
233+
* Added support for connection pooling using the requests module.
234+
* Added support for session consistency.
235+
* Added support for TOP/ORDERBY queries for partitioned collections.
236+
237+
### 1.9.0
238+
239+
* Added retry policy support for throttled requests. (Throttled requests receive a request rate too large exception, error code 429.)
240+
By default, DocumentDB retries nine times for each request when error code 429 is encountered, honoring the retryAfter time in the response header.
241+
A fixed retry interval time can now be set as part of the RetryOptions property on the ConnectionPolicy object if you want to ignore the retryAfter time returned by server between the retries.
242+
DocumentDB now waits for a maximum of 30 seconds for each request that is being throttled (irrespective of retry count) and returns the response with error code 429.
243+
This time can also be overridden in the RetryOptions property on ConnectionPolicy object.
244+
245+
* DocumentDB now returns x-ms-throttle-retry-count and x-ms-throttle-retry-wait-time-ms as the response headers in every request to denote the throttle retry count
246+
and the cumulative time the request waited between the retries.
247+
248+
* Removed the RetryPolicy class and the corresponding property (retry_policy) exposed on the document_client class and instead introduced a RetryOptions class
249+
exposing the RetryOptions property on ConnectionPolicy class that can be used to override some of the default retry options.
250+
251+
### 1.8.0
252+
253+
* Added the support for geo-replicated database accounts.
254+
* Test fixes to move the global host and masterKey into the individual test classes.
255+
256+
### 1.7.0
257+
258+
* Added the support for Time To Live(TTL) feature for documents.
259+
260+
### 1.6.1
261+
262+
* Bug fixes related to server-side partitioning to allow special characters in partition key path.
263+
264+
### 1.6.0
265+
266+
* Added the support for server-side partitioned collections feature.
267+
268+
### 1.5.0
269+
270+
* Added Client-side sharding framework to the SDK. Implemented HashPartionResolver and RangePartitionResolver classes.
271+
272+
### 1.4.2
273+
274+
* Implement Upsert. New UpsertXXX methods added to support Upsert feature.
275+
* Implement ID-Based Routing. No public API changes, all changes internal.
276+
277+
### 1.3.0
278+
279+
* Release skipped to bring version number in alignment with other SDKs
280+
281+
### 1.2.0
282+
283+
* Supports GeoSpatial index.
284+
* Validates ID property for all resources. Ids for resources cannot contain `?, /, #, \\` characters or end with a space.
285+
* Adds new header "index transformation progress" to ResourceResponse.
286+
287+
### 1.1.0
288+
289+
* Implements V2 indexing policy
290+
291+
### 1.0.1
292+
293+
* Supports proxy connection
40294

41295
## Release & retirement dates
42296

43-
Microsoft provides notification at least **12 months** in advance of retiring an SDK in order to smooth the transition to a newer/supported version. New features and functionality and optimizations are only added to the current SDK, as such it is recommend that you always upgrade to the latest SDK version as early as possible.
297+
Microsoft provides notification at least **12 months** in advance of retiring an SDK in order to smooth the transition to a newer/supported version. New features and functionality and optimizations are only added to the current SDK, as such it is recommended that you always upgrade to the latest SDK version as early as possible.
44298

45299
Any request to Azure Cosmos DB using a retired SDK are rejected by the service.
46300

0 commit comments

Comments
 (0)