Skip to content

Releases: wizard04wsu/Class

v10.0.1

21 Jun 02:21
e056f3d
Compare
Choose a tag to compare
  • use new.target to check if the constructor was called with the new keyword, instead of using a Proxy
  • various changes to make things easier to read and to match more closely with native classes

v10.0.0 - complete rewrite

29 May 19:32
6795960
Compare
Choose a tag to compare
  • now a JavaScript module
  • uses Proxy objects to intercept execution of the class function, more easily distinguishing between instance creation and just calling the function
  • $super works nearly the same as JavaScript's super keyword, and returns a reference to the protected members
  • more errors are thrown regarding this and $super
  • better documentation

v9.0.0

21 May 21:14
2479a65
Compare
Choose a tag to compare

Converted it to a JavaScript module instead of an anonymous function.

v8.0.0

30 Oct 16:25
f23d22f
Compare
Choose a tag to compare

Reworked protected values so that they're accessible from Super.protected and do not require special functions to add/remove members.

v7.0.0

23 Sep 17:09
Compare
Choose a tag to compare
  • replace Super.addProtectedMember() and Super.removeProtectedMember() with Super.defineProtectedMember()
  • bug fixes & optimizations

Release version 6.2.2

21 Mar 19:40
cd24051
Compare
Choose a tag to compare
  • update README.md
  • reduce memory usage
    • move function definitions so they aren't recreated for every instance
    • set value of no-longer-needed variables to null
    • delete add/removeProtectedMember methods from Super argument when exiting constructor

Release version 6.2.1

06 Mar 19:24
6fd4464
Compare
Choose a tag to compare
Update Class.js

- move noConflict() related variable declarations closer to relevant code

Release version 6.2.0

05 Mar 18:45
305bdfa
Compare
Choose a tag to compare
  • fixed some bugs
  • cleaned up some code
  • added a console warning if 'Super()' isn't called in a constructor
  • prevented 'Super()' from being executed more than once in a constructor

Release version 6.1.0

03 Mar 03:43
8fb4334
Compare
Choose a tag to compare

Added functionality to allow for protected properties, making private items accessible to subclasses from within their constructors.

Release version 6.0.2

27 Feb 21:06
f5c195d
Compare
Choose a tag to compare

Got rid of some unneeded code and updated README.md