Releases: CraftsBlock/CraftsNet
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
v3.5.0
Caution
In this version two bugs have been introduced which cause CraftsNet to fail to start properly under certain circumstances. Please use CraftsNet 3.5.1 instead!
Note
Some new functions are marked as [PREVIEW]. The marking means that this function is not yet fully completed and may change in the future.
The systems labelled as preview in the previous releases are now stable and safe to use.
Major Updates
- Retrieving CraftsNet is now much easier by @CrAfTsArMy in e47d13a
- Added LogStreamMutator for mutating log by @CrAfTsArMy in ee550e2
- Delete MessageReceiver as it has no longer a purpose by @CrAfTsArMy in fdd5858
- Relocated ReflectionUtils by @CrAfTsArMy in 716d904
- Added some new reflection utils by @CrAfTsArMy in 261e6ba
- Added a encoder / decoder system by @CrAfTsArMy in 83c5076
- Added websocket message encoder & decoder by @CrAfTsArMy in 901b7b9
Minor Updates
- Optimized typed bodies by @CrAfTsArMy in 4faa645
- Added new body types by @CrAfTsArMy in fd777c3
- Added websocket-port param by @CrAfTsArMy in 3778ac4
- No longer store fully parsed patterns by @CrAfTsArMy in 2752f8b
- Added restrictToCallers to ReflectionUtils by @CrAfTsArMy in 654c4c8
Bug Fixes
- Clean up after addon loading by @CrAfTsArMy in 82c12ca
- Infinite thread creation on auto register fixed by @CrAfTsArMy in ba86029 (Special thanks to @liyanic for reporting the bug)
- Fixed missing variables on addon loading by @CrAfTsArMy in ba6bcd7 (Special thanks to @liyanic for reporting the bug)
- Made runnable jars runnable again by @CrAfTsArMy in d007b8a
- Optimized the pattern used for version matching by @CrAfTsArMy in dfe6709
- Small fragment logic correction by @CrAfTsArMy in 35986e3
- Check for no mappings sockets by @CrAfTsArMy in 8f6a77e
- Skip empty command lines by @CrAfTsArMy in 8067599 (Special thanks to @Idiotischer for reporting the bug)
- Fixed some major requirement problems by @CrAfTsArMy in 237a26b (Special thanks to @Rokoyfa for reporting the bug)
- Fixed a startup error by @CrAfTsArMy in a6ebbae (Special thanks to @liyanic for reporting the bug)
- Correctly check the method params of sockets by @CrAfTsArMy in 62f2f75
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.4.3...v3.5.0
v3.4.3
Note
Some new functions are marked as [PREVIEW]. The marking means that this function is not yet fully completed and may change in the future.
The systems labelled as preview in the previous releases are now stable and safe to use.
Major Updates
- CraftsNet can be obtained via the Classloader by @CrAfTsArMy in a87b917
[PREVIEW] - Allow all addons in constructors by @CrAfTsArMy in 672c6d4
[PREVIEW] - Merged loading process of addons (file addon & builder addons) by @CrAfTsArMy in 623589a
[PREVIEW] - Bumped maven resolving to the newest version by @CrAfTsArMy in a23911b
[PREVIEW] - [FIX] Fixed broken dependency class loading by @CrAfTsArMy in ed49500
- Handle return values of handler methods by @CrAfTsArMy in 14fb3be
[PREVIEW]
Minor Updates
- Added header name variables by @CrAfTsArMy in 66a402f
- Optimized the HttpMethod and CorsPolicy by @CrAfTsArMy in 0ad4113
- Added a default value for base in extractGeneric by @CrAfTsArMy in d04ddde
- Used new methods of HttpMethod by @CrAfTsArMy in de436a1
- Better control for generateSecure's used chars by @CrAfTsArMy in f2d9320
- Use stronger keys for ssl by @CrAfTsArMy in f94d483
- Move to new craftscore modular versioning by @CrAfTsArMy in e6a89b5
- Use .env files for secrets by @CrAfTsArMy in 0686909
- Optimized handling of exceptions by @CrAfTsArMy in d593b50
- Added an SQLDriverLoader by @CrAfTsArMy in 9829455
- Optimized SessionStorage and SessionInfo by @CrAfTsArMy in f552091
- Better check for release version by @CrAfTsArMy in 41df9b5
Bug Fixes
- Revalidate sessions on reload by @CrAfTsArMy in 734e196
- Fixed ExceptionInInitializerError in HttpMethod by @CrAfTsArMy in 7895d76
- Fixed ConcurrentModificationException by @CrAfTsArMy in f54a92c (Special thanks to @liyanic 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.4.2...v3.4.3
v3.4.2
Tip
As a hotfix for the previous version, this version fixes several major bugs in the session system. With this version, a bug has been fixed which caused a deadlock in the session storage! Furthermore, another bug has been fixed that prevented the deletion of session cookies on older browsers.
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
- Added a AllAddonsDisabledEvent event by @CrAfTsArMy in 62553ef
- Bump version of craftscore to 3.8.4-SNAPSHOT by @CrAfTsArMy in cd8a7ab
Bug Fixes
- Fixed deadlock on session storages by @CrAfTsArMy in f20b622
- Fixed session cookie bug on older browsers by @CrAfTsArMy in ede0cff
- Check the session file size before reading by @CrAfTsArMy in f8e44f8
- Check if the session file is a regular file by @CrAfTsArMy in 31121f7
- Fixed the behaviour of HttpMethod#convert by @CrAfTsArMy in 8f8b465
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.4.1...v3.4.2
v3.4.1
Caution
In this version a bug has been introduced which leads to a deadlock in the session storage! In addition, another bug has been discovered which prevents the deletion of session cookies on older browsers. Please use CraftsNet 3.4.2-SNAPSHOT instead!
Warning
This version of CraftsNet completely changes the return values of PassphraseUtils, which makes this version incompatible with older addons that use the PassphraseUtils class to generate passphrases. Also, 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.
Major Updates
- generateSecure now safely generate byte[] instead of Strings by @CrAfTsArMy in 655fd10
Minor Updates
- Better exception text for final frame appends by @CrAfTsArMy in a7f1f4f
Bug Fixes
- Check for left over jobs to complete by @CrAfTsArMy in 113ef1a
- Restore session cookie value after deletion by @CrAfTsArMy in 002d77b
- Securing the key used in the SSL context by @CrAfTsArMy in f6c05ff
This is not the complete changelog, there are some more small fixes and improvements. You can find the complete changelog here: v3.4.0...v3.4.1