Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

Releases: rdking/Class.js

2.2.0

23 Nov 04:17
Compare
Choose a tag to compare

It's finally happened. I've reached a point where new features will be slow coming, if they happen at all. All the changes I've made since the 2.1.0 build have pretty much been bug fixes of one kind or another. I've gone almost a week without needing to tweak anything in Class.js, so it's my guess that it's pretty stable. Feel free to hammer away at it.

You can now access this project through npm under the name "java-class".

As always, I'll try to maintain the documentation at: http://thekingsnotice.blogspot.com

Now with Type contraints!

28 Aug 19:56
Compare
Choose a tag to compare

The new type constraints allow you to specify a Class that the returned value must be an instance of, or Interface that the returned value must implement. This version is also loaded with bug fixes that bring it more in parity with the functionality of a traditional Object-Oriented language.

2.0.1

04 May 13:47
Compare
Choose a tag to compare

This is the 2.0 final release. This version fixes the typo, the boxing errors, and the broken support for inherited static members found in the 2.0 pre-release

2.0

29 Apr 13:58
Compare
Choose a tag to compare
2.0 Pre-release
Pre-release

This release contains a completed implementation of object-oriented classes, including almost every possible feature of classes in a JavaScript-compatible fashion.

1.0.1: More Fixes

11 Dec 03:52
Compare
Choose a tag to compare

This version fixes a few typo's and other errors I made when changing Class.js to support private constructors.

Class.js Library

04 Dec 16:40
Compare
Choose a tag to compare

This is the initial release of the Class.js Library. This release includes:

  • Class.js: A Class Definition Factory that produces constructor functions and full use of Public, Private, and Protected scope.
  • WeakMap.js: A JavaScript WeakMap implementation that only leaks one GUID per object added to the map. All value data for a given key is destroyed when the key is garbage collected. This WeakMap implementation meets the requirements of the current specification save for the GUID sized leak.
  • Enum.js: An Enumeration Definition Factory that produces constructor functions. The constructor produces enumeration objects that can only take values from the corresponding Enumeration.
  • Functor.js: A simple Dynamic Method Binder that allows a function to be dynamically rebound to any object without affecting the original function reference or the object being bound.