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
Copy file name to clipboardExpand all lines: sdf/whatsnew.mdx
+58-9Lines changed: 58 additions & 9 deletions
Original file line number
Diff line number
Diff line change
@@ -6,9 +6,61 @@ sidebar_position: 20
6
6
7
7
# Beta 2
8
8
9
+
## Upgrading
10
+
11
+
To upgrade CLI to the beta2, run the following command:
12
+
13
+
```bash
14
+
$ fvm install sdf-beta2
15
+
```
16
+
17
+
To upgrade host workers, shutdown and restart the worker:
18
+
19
+
```bash
20
+
$ sdf worker shutdown <host-worker-name>
21
+
$ sdf worker create <host-worker-name>
22
+
```
23
+
24
+
For upgrading cloud workers, please contact [InfinyOn support](#infinyon-support).
25
+
26
+
### Compatibility and Breaking changes
27
+
28
+
`0.4.0` version of dataflow is no longer supported. Please upgrade to `0.5.0`.
29
+
The version of the dataflow is specified in the `apiVersion` field in the dataflow file.
30
+
31
+
32
+
33
+
### CLI changes
34
+
35
+
Publishing command is simplified.
36
+
`sdf hub publish` -> `sdf publish`
37
+
38
+
39
+
`run` command is separated into `run` and `deploy`. Please see [deployment] for details:
40
+
41
+
To run dataflow in ephemeral mode:
42
+
Beta1.1: `sdf run --ephemeral`
43
+
Beta2: `sdf run`
44
+
45
+
46
+
To run dataflow in a worker:
47
+
Beta1.1: `sdf run`,
48
+
Beta2: `sdf deploy`
49
+
50
+
51
+
### Package migration
52
+
53
+
Since beta2, the packages functions are consolidated in a single rust crate on generation. This allows us to share types and logic between different package functions.
54
+
55
+
In order to migrate your existing packages, you need to generate your package (`sdf generate`) using the `sdf-beta2` version and then copy the code in the new location of the generated code.
56
+
57
+
In other words, for each function, the logic in `rust/<function-name>/src/lib.rs` must be copied on `rust/<package-name>/src/<function_name>.rs`. But please, make sure that all the attributes in `#[sdf]` attribute macro matches with the attributes that we get on code generation.
58
+
59
+
60
+
9
61
## New Features
10
62
11
-
- Support for customizing JSON serialization and deserialization
63
+
- Support for customizing JSON serialization and deserialization (see [custom serialization])
12
64
13
65
## Improvements
14
66
@@ -24,21 +76,18 @@ sidebar_position: 20
24
76
- Worker: Worker listing with `-all` shows the version.
25
77
- Config: Producer config now supports `compression`, `isolation`, and `timeout`.
26
78
- Cloud: Cloud supports larger worker storage.
79
+
- Cloud: Secret support
27
80
- Package: Generated codes are consolidated and hidden from developers.
28
81
- Operator: Operator error messages are sent to log.
29
82
30
83
## Bug Fixes
31
84
- CLI show list of created topics
32
85
33
-
## Breaking Changes
34
-
35
-
V4 of dataflow is no longer supported. Please upgrade to V5.
86
+
## InfinyOn Support
36
87
37
-
## Package migration
88
+
For any questions or issues, please contact InfinyOn support at support@infinyon.com or https://discordapp.com/invite/bBG2dTz
38
89
39
-
Since beta2, the packages functions are consolidated in a single rust crate on generation. This allows us to share types and logic between different package functions.
40
-
41
-
In order to migrate your existing packages, you need to generate your package (`sdf generate`) using the `sdf-beta2` version and then copy the code in the new location of the generated code.
42
90
43
-
In other words, for each function, the logic in `rust/<function-name>/src/lib.rs` must be copied on `rust/<package-name>/src/<function_name>.rs`. But please, make sure that all the attributes in `#[sdf]` attribute macro matches with the attributes that we get on code generation.
0 commit comments