You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Deprecated addTag(key:value:), addField(key:value:), and time(time:) in favor of using the mutable properties.
BREAKING CHANGE: Point is now a value type which can cause breaking behaviour in code expecting the behaviour of a reference type.
BREAKING CHANGE: addTag(key:value:), addField(key:value:), and time(time:) have mutating versions when called and the result is discarded.
BREAKING CHANGE: Minimum swift version is now 5.7
Copy file name to clipboardExpand all lines: CHANGELOG.md
+11-1
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,14 @@
1
-
## 1.8.0 [unreleased]
1
+
## 2.0.0 [unreleased]
2
+
3
+
`Point` has been updated from a class to a `Sendable` struct. This allows passing instances of `Point` across arbitrary concurrent contexts without introducing a risk of data races. Anywhere using `Point` will need to be updated to account for the change from a class to a struct.
4
+
5
+
The minimum swift version has been raised to 5.7 to support the `Sendable` protocol.
6
+
7
+
`addTag(key:value:)`, `addField(key:value:)`, and `time(time:)` have been deprecated in favor of passing values to `Point.init` or mutating the properties directly. Since the methods mutated the instance and returned the instance, they aren't compatible with `Point` becoming a struct. To simplify migration, each method now has two versions: one that mutates the instance and one that returns a new modified instance. The methods returning a new instance can still be chained together but the result must be assigned to a variable. The methods that mutate the instance can no longer be chained together, but don't require assigning the result to a variable.
8
+
9
+
### Features
10
+
1.[#69](https://github.com/influxdata/influxdb-client-swift/pull/69) Updated `Point` to be a sendable struct
11
+
1.[#70](https://github.com/influxdata/influxdb-client-swift/pull/70): Improved usability of `Point` by adding tags, fields, and time to the initializer and making the properties public and mutable
0 commit comments