Releases: CraftsBlock/CraftsNet
v3.7.2-2
Minor Updates
- chore: Better version matching by @CrAfTsArMy in #42
Full Changelog: v3.7.1...v3.7.2-2
v3.7.2
Caution
A bug in craftscore version 3.8.14 caused craftsnet to crash on startup if listeners were registered. A hotfix is already included in version 3.7.2-2 of craftsnet.
Major Updates
- fix: Sort addons correctly respecting thier depends by @CrAfTsArMy in #33
- chore: Allow more chars and limit names to 128 chars by @CrAfTsArMy in #34
- chore: Allow more characters for addon names by @CrAfTsArMy in #37
- refactor: Use addon class name if no meta annotation is present by @CrAfTsArMy in #41
Minor Updates
- docs: Remove version tags in java doc by @CrAfTsArMy in #32
- chore: Load the artifact loader only if needed by @CrAfTsArMy in #36
- chore: Merge in app and file addon loading process by @CrAfTsArMy in #39
- refactor: Use CompletableFuture#allOf by @CrAfTsArMy in b14d7c3
- refactor: Replace stream with for loop by @CrAfTsArMy in 6180057
- refactor: STACK_WALKER is now accessible by @CrAfTsArMy in cfb4f16
Bug Fixes
- fix: No longer clear short ttl lists by @CrAfTsArMy in #35
- fix: Fix ReflectionUtils#restrictToCallers by @CrAfTsArMy in #40
- fix: Fix code sources for in app addons by @CrAfTsArMy in c250431 (Special thanks to @DevJohannes for reporting the bug)
Full Changelog: v3.7.1...v3.7.2
v3.7.1
Major Updates
- feat: Add HttpStatusException and handling by @CrAfTsArMy in #26
Minor Updates
- chore: Use the same StackWalker instance by @CrAfTsArMy in #25
- refactor: Unpack and rethrow reflection related exceptions by @CrAfTsArMy in #27
Bug Fixes
- fix: Hold the addons until all addons have been disabled by @CrAfTsArMy in #24
Full Changelog: v3.7.0...v3.7.1
v3.7.0
Major Updates
- refactor: Better instance management by @CrAfTsArMy in #8
- feat: better service loader by @CrAfTsArMy in #10
- chore: Use the new ObjectSerializer for session persist by @CrAfTsArMy in #15
- feat: Better response handling by @CrAfTsArMy in #17
- feat: Add custom http codes by @CrAfTsArMy in #20
Minor Updates
- refactor: Remove for removal marked deprecated methods by @CrAfTsArMy in #5
- refactor: Removing uses of the internal ByteBuffer by @CrAfTsArMy in #6
- chore: Bump versions by @CrAfTsArMy in #18
- refactor: Use method handles underlying for reflection operations by @CrAfTsArMy in #19
Bug Fixes
- fix: Add missing schedule for removals by @CrAfTsArMy in #7
- fix: Continue read when middlewares are cancelled by @CrAfTsArMy in #9 (Special thanks to @empfi for reporting the bug)
- fix: Do not keep the last message in memory by @CrAfTsArMy in #11
- fix: Better persistent sessions and refactor by @CrAfTsArMy in #12
- fix: Fix BufferOverflowException on message read by @CrAfTsArMy in #16
Full Changelog: v3.6.0...v3.7.0
v3.6.0
Note
As of this version, we have decided to remove CLI integration for craftsnet, as it is not necessary for most use cases.
If you need to integrate a CLI into your craftsnet instance, you can use the new extension for craftsnet called “CraftsNet CLI,” which adds back the removed features.
Major Updates
- Add session to BaseExchange by @CrAfTsArMy in c10389a
- Add a context for temp storing references by @CrAfTsArMy in 98fa584
- Remove cli integration by @CrAfTsArMy in aa7b03b
- Mark restart as deprecated by @CrAfTsArMy in deabedf
Minor Updates
- Optimize web middleware calling by @CrAfTsArMy in f3a0b60
- Add custom cast method to TypeUtils by @CrAfTsArMy in 14d7235
Bug Fixes
- Correclty catch transformer exceptions by @CrAfTsArMy in b93a759 (Special thanks to @empfi for reporting the bug)
- Parse the body stream directly by @CrAfTsArMy in b2934e6 (Special thanks to @liyanic for reporting the bug)
- Correctly extract dynamic path params by @CrAfTsArMy in 05548d0 (Special thanks to @liyanic for reporting the bug)
- Transformers not working properly by @CrAfTsArMy in eac8ec3
- Ping and pong messages should not be handled by @CrAfTsArMy in c6282dc
- Sanitize origins in cors policy by @CrAfTsArMy in 59e3704
- Make / in shared path no longer optional ._. by @CrAfTsArMy in 6d0c67b
Full Changelog: v3.5.5...v3.6.0
v3.5.5
Note
The systems labelled as preview in the previous releases are now stable and safe to use.
Minor Updates
- Use the ReflectionUtils for all reflective operations by @CrAfTsArMy in 83b658f
- Replace the reflection use when checking requirements by @CrAfTsArMy in 54ff439
- Add a built-in UUIDTransformer by @CrAfTsArMy in beba076
- Addons getAddon methods are static again by @CrAfTsArMy in e5edb85
- Better naming for class loaders by @CrAfTsArMy in e063400
Bug Fixes
- Wrap IllegalArgumentException on method invoke by @CrAfTsArMy in 38d419f
- Reuse the buffer when reading ws frames by @CrAfTsArMy in f8cd902
- Only show a warning when the spi is not present by @CrAfTsArMy in fe36a17 (Special thanks to @liyanic for reporting the bug)
- Do not double start the ws server by @CrAfTsArMy in 70cb5cb (Special thanks to @liyanic & @RaphyTwin for reporting the bug)
- Allow multiple dynamic path params in one by @CrAfTsArMy in e41d33d
Full Changelog: v3.5.4...v3.5.5
v3.5.4
Warning
This version does not mark previous functions marked as [PREVIEW] as stable. These functions can be changed at any time in the future as long as they have not been marked as stable.
Minor Updates
- Split MutatedPrintStream into more specific streams by @CrAfTsArMy in 7a13c51
Bug Fixes
- Fix for wrong requirement matching by @CrAfTsArMy in d3187f1 (Special thanks to @RaphyTwin for reporting the bug)
- Skip the version check if it is disabled by @CrAfTsArMy in cd72547
- Print tab before the ascii color by @CrAfTsArMy in 9b76f5e
Full Changelog: v3.5.3...v3.5.4
v3.5.3
Caution
In this version two bugs have been introduced which cause CraftsNet to fail to resolve requirements correctly. Please use CraftsNet 3.5.4 instead!
Note
The systems labelled as preview in the previous releases are now stable and safe to use.
Major Updates
- Fix frame data duplication when sending by @CrAfTsArMy in 7d51576
- Fix frame data duplication when reading by @CrAfTsArMy in 2b860d0
- No more usage of inefficient Utils#getMethod by @CrAfTsArMy in f6395aa
- Remove mapping generic from Requirement by @CrAfTsArMy in fa54f01
- Fix middleware list duplication on each read by @CrAfTsArMy in 37e578e
- Use RequirementMethodLink to cache methods by @CrAfTsArMy in 29066e0
- Use CodecMethodLink to cache codec methods by @CrAfTsArMy in c96b86d
Minor Updates
- Speed up ClosureCode#fromInt by @CrAfTsArMy in cd6590c
- Speed up Opcode#fromInt by @CrAfTsArMy in 9268db0
- New methods in ClosureCode & Opcode by @CrAfTsArMy in 6d88069
- Use new check methods from ClosureCode by @CrAfTsArMy in 917ecac
- Add TypeUtils#convertTypeToClass by @CrAfTsArMy in d5a5af1
Bug Fixes
- Declared the main attribute as optional by @CrAfTsArMy in 0f8089f
- Fixed restrictToCallers by @CrAfTsArMy in 2a3203a
- Set read frames as end-masked by @CrAfTsArMy in 18e0f6b
- Add check for payload length by @CrAfTsArMy in 998b309
- Only sent back messages when connected by @CrAfTsArMy in 4ef1edc
- Create a unmodifiable view only once by @CrAfTsArMy in 7c0b801
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.5.2...v3.5.3
v3.5.2
Note
The systems labelled as preview in the previous releases are now stable and safe to use.
Major Updates
- Added for removal plans by @CrAfTsArMy in 197cfa1
- Added getDataPath to Addon.java by @CrAfTsArMy in cc5b1e4
- Allowing formats in strings when logging by @CrAfTsArMy in 4b493c7
Minor Updates
- Added LogStreamMutatorAutoRegisterHandler by @CrAfTsArMy in 4001e41
- Rename areEquivalent to equals by @CrAfTsArMy in cb30b27
- Better error handling in the start process by @CrAfTsArMy in 547ae45
Bug Fixes
- Fixed a weird restart bug by @CrAfTsArMy in 8e15a11
- Respect array types by @CrAfTsArMy in 5642dba
- Check if the encoder is null before encoding by @CrAfTsArMy in c47a65b
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.5.1...v3.5.2
v3.5.1
Warning
This version does not mark previous functions marked as [PREVIEW] as stable. These functions can be changed at any time in the future as long as they have not been marked as stable.
Minor Updates
- Rename getConstructor to findConstructor by @CrAfTsArMy in 4e19a8f
- Added a new invokeMethod method by @CrAfTsArMy in 9e23c3a
- Better warning text by @CrAfTsArMy in b47125a
- Simplify logic in MultipartFormBody by @CrAfTsArMy in c802ddb
Bug Fixes
- Fixed startup order to fix a critical bug by @CrAfTsArMy in 368e14b (Special thanks to @RaphyTwin for reporting the bug)
- Allow auto register of nested classes by @CrAfTsArMy in 95694b8
- Check the key before retrieving it by @CrAfTsArMy in 52469c5 (Special thanks to @RaphyTwin and @Idiotischer for reporting the bug)
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.5.0...v3.5.1