Skip to content

Releases: memothelemo/rbxts-binder

6.0.0-ts.3

07 Aug 20:13
0372f6f

Choose a tag to compare

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

24 May 17:42

Choose a tag to compare

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 Create method.
  • 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

24 Jan 20:55
74bae49

Choose a tag to compare

Do not republish when editing after it is created

v4.2.0-ts.1

03 Nov 20:47

Choose a tag to compare

Changes:

  • Destroy method is no longer required in BinderClass interface (thanks to MaidTaskUtils)
  • camelCase and PasalCase support 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

14 Oct 18:21

Choose a tag to compare

Breaking changes:

  • GetAllSet method return type changed from Array<[T, boolean]> to Map<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.

Changes:

  • Added ClassName property in every Binder class
  • Updated @rbxts/compiler-types and @rbxts/types to latest respective versions.
  • Added Promise method (ObserveInstance method like)
  • Uses modern task library provided by ROBLOX
  • Changed the package version to v4.1.1 to make it match from the original Binder module.