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: src/content/docs/adventure/migration/adventure-4.x.md
+11-4Lines changed: 11 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,20 +17,24 @@ This means that you can no longer extend these classes, although you shouldn't h
17
17
One relatively common incorrect usage was to create custom `Component` implementations.
18
18
This is now no longer possible, and you should instead be using the `VirtualComponent` API.
19
19
20
-
Adventure has also migrated to using JSpecify for nullness annotations.
21
-
These are applied at a module level, so unless otherwise specified, everything should be treated as non-null.
22
-
23
20
Another side effect of wanting a modern codebase is that the `adventure-extra-kotlin` module has been removed.
24
21
This module will be re-introduced in a separate repo under a new module in the future.
25
22
This will allow for more flexibility working around the more frequent Kotlin updates.
26
23
27
24
The `adventure-text-serializer-gson-legacy-impl` module has also been removed.
28
25
This module has been replaced with the implementation-agnostic `adventure-text-serializer-json-legacy-impl` module.
29
26
27
+
Finally, Adventure now contains proper `module-info.java` files for those of you using the Java 9+ module system.
28
+
29
+
## Updated dependencies
30
+
31
+
Adventure has migrated to using JSpecify for nullness annotations.
32
+
These are applied at a module level, so unless otherwise specified, everything should be treated as non-null.
33
+
30
34
As most of the internal implementation of Adventure is now using records, we no longer have need to use the Examination library for `toString` generation.
31
35
The Examination library has been entirely removed from Adventure and is no longer a transitive dependency.
32
36
33
-
Finally, Adventure now contains proper `module-info.java` files for those of you using the Java 9+ module system.
37
+
The `adventure-text-logger-slf4j` module has been updated to use SLF4J 2.0.
34
38
35
39
## Breaking changes
36
40
@@ -102,3 +106,6 @@ This section documents the removals that have been made and how you can migrate
102
106
This has been replaced with the equivalent `PlainTextComponentSerializer` class.
103
107
***`ClickEvent$Action#payloadType` has been removed.**\
104
108
As click event actions are now typed, this field is no longer required.
109
+
***Typos have been removed.**\
110
+
Some incorrectly spelt/named methods, such as `Argument#numeric` and `ComponentSerializer#deseializeOrNull`, have been removed.
111
+
These methods have been deprecated, and correctly spelt/named methods have been available for a while.
0 commit comments