Skip to content
This repository was archived by the owner on Aug 17, 2025. It is now read-only.

1.1.0

Choose a tag to compare

@shysolocup shysolocup released this 18 Sep 20:06
· 185 commits to main since this release
811c645

aepl 1.1.0

Added functions

  • add() | addNew() | new()
  • addFunc() | addFunction()
  • addProp() | addProperty()
  • addClass() | addSubClass()
  • addChore()
  • addAsyncChore()
  • addAsyncFunc()
const { Class } = require('aepl');
const { Stew } = require('stews');


new Class("Main", class {
   constructor() {
        this.data = new Stew([1, 2, 3]);
   }
});


Main.add("prop", "reversed", function() {
    return this.data.reverse();
});


Main.addNew("prop", "shuffled", function() {
    return this.data.shuffle();
});


let main = new Main();


console.log(main.reversed); // [3, 2, 1]
console.log(main.shuffled); // [2, 1, 3]

Updated class builder

I updated it so you can create new things from inside of already created instances

new Class("Main", class {
   constructor() {
        this.data = [1, 2, 3];
   }
});


let main = new Main();


new main.Property("reversed", function() {
    return this.data.reverse();
});


console.log(main.reversed); // [3, 2, 1]

  • Added Sub/sub ref to subclasses
  • Updated README, tags, and description
  • Added event handler advanced example in docs