Releases: memothelemo/rbxts-binder
Releases · memothelemo/rbxts-binder
6.0.0-ts.3
This release name is named that way because of the automation done by the publish.yml action.
Changes
- Fix documentation from the NPM package itself and the API.
There's no need for you to update this package because it is a not drastic change. Besides of all that,
Quenty didn't update Binder for awhile now.
6.0.0-ts.2
This release name is named that way because of the automation done by the publish.yml action.
Changes
- You can now make a Binder by a function or an object that has
Createmethod. - Fixed issues when importing dependencies from the main module.
Function
const binder = new Binder("Bird", (inst) => {
print("Wow, a new bird!", inst);
return {
Destroy() {
print("Uh oh, the bird is gone!");
},
};
});Object
const binder = new Binder("Hello", {
Create(instance: Instance) {
print("Wow a new bird!", instance);
return {
Destroy() {
print("Uh oh, the bird is gone!");
},
};
},
});v4.8.0-ts.0
Do not republish when editing after it is created
v4.2.0-ts.1
Changes:
Destroymethod is no longer required in BinderClass interface (thanks to MaidTaskUtils)camelCaseandPasalCasesupport for deconstructing Binder class constructor- You can now pass arguments from the Binder class constructor.
Example:
import Binder, { BinderClass } from "@rbxts/binder";
class World implements BinderClass {
constructor(instance: Instance, worldSize: number) {
print(worldSize > 100 ? "That's so huge!" : "Reasonable size?");
}
}
const worldBinder = new Binder("World", World, 100);- Modified binder's constructor typings (don't guarantee to be worked everytime, but let's see if there's any complaints)
v4.1.1-ts.0
Breaking changes:
GetAllSetmethod return type changed fromArray<[T, boolean]>toMap<T, true>- Binder will binds object in whatever descendant as long as it is tagged from CollectionService.
- If you would like filter out objects that are in whitelisted descendants, use
SetDescendantsWhitelist.
- If you would like filter out objects that are in whitelisted descendants, use
Changes:
- Added
ClassNameproperty in every Binder class - Updated
@rbxts/compiler-typesand@rbxts/typesto latest respective versions. - Added
Promisemethod (ObserveInstancemethod like) - Uses modern
tasklibrary provided by ROBLOX - Changed the package version to
v4.1.1to make it match from the original Binder module.