- Updated to upstream
1.15.7
Janitor source- Fixed an error when setting
SuppressInstanceReDestroy
- Safeguarded
LinkToInstances
from accepting non-instances at runtime - Support
instanceof
TS usage
- Fixed an error when setting
-
Updated to upstream
1.15.4
Janitor source -
Added a toggle to avoid double destruction of instances.
-
Fixed an error being thrown when an ended thread is cleaned up.
- Updated to upstream
1.15.3
Janitor source- Adds
RemoveNoClean
,RemoveListNoClean
, andGetAll
methods
- Adds
- Fixed
Is
method type definition
- Added a new
LinkToInstance
method which will instead useInstance.Destroying
. - Added traceback to
Janitor:AddPromise
for invalid promises. - The legacy
LinkToInstance
method has been renamed toLegacyLinkToInstance
. - Fixed Janitor not warning about an invalid
MethodName
for threads and functions. - Fixed incorrect documentation about
Janitor.CurrentlyCleaning
.
- Fixed
RemoveList
definitions
- You can now add a
thread
using:Add
. This will cancel said thread when the Janitor is cleaned up. - Added
__tostring
to the Janitor class. - Added
:RemoveList
as an alternative to long:Remove
chains. - Added the properties of
Janitor
andRbxScriptConnection
to the documentation. - Recompiled with L+ C Edition.
- Put
RbxScriptConnection
in a separate file. - Documentation now will split the code examples by language more obviously.
Janitor.AddPromise
now will handle cancellations properly.Janitor.Cleanup
now uses a while loop instead of a for loop when cleaning up to fix adding other janitors during cleanup.
- Fixed Janitor loading bug
- Removes the change from
1.13.6-ts.0
where cleanup tasks were no longer called synchronously.- Janitor now calls the cleanup tasks one-by-one, synchronously.
- Added thread safety
- Fixed
README.md
changelog.
- Removed unused types.
- Updated TS package to match Luau package (release).
- Fixed LinkToInstance for deferred Signal type. This does slightly worsen stack traces, but it shouldn't be as bad as it breaking.
- Fixed major bug where destroyed Janitors added to a Janitor do not clean up nicely. See official release page for example code.
- Reduced the size of Scheduler.
- Added
__tostring
toIndicesReference
. - Added safety check to
AddPromise
. - Added
ClassName
to Janitor object. - Changed version to match the official release.
- Fixed link to Janitor repository in README.md.
- Removed the usage of global state.
- Optimized the
LinkToInstances
function.
- Fixed the return type of
Janitor.Add
to return the object passed. - Fixed
Janitor.Add
to accepttrue
formethodName
when passing a function
- Fixed the imports to
Scheduler
being the wrong path
- Fixed
README.md
example - Changed
package.json
keywords
- Simplified
Add
types - Credited Validark
- Fixed
README.md
- Initial release