Skip to content

Releases: poppinss/macroable

Improvements to singleton getter cache property

05 Jul 04:48
Compare
Choose a tag to compare
  • improvement: do not leak getters to class instance 5dcc650
  • feat: add prettier 31ba74e
  • chore: update dependencies 7948e8a

v4.0.4...v5.0.0

Updating underlying dependencies

12 Apr 19:16
Compare
Choose a tag to compare

Updating underlying dependencies

09 Apr 04:07
Compare
Choose a tag to compare

Updating underlying dependencies

07 Feb 03:20
Compare
Choose a tag to compare

Allow any level of the prototype chain to initiate macros and getters objects

30 Dec 09:46
Compare
Choose a tag to compare
  • refactor: do not raise exception when any level in the prototype chain defines macros and getters 13b5a8b

v4.0.0...v4.0.1

Add a guard to ensure that macros and getters object are always initiated

19 Dec 12:41
Compare
Choose a tag to compare

Breaking Change

Renamed internal properties _macros and _getters to macros and getters and also Macroable will complain when these properties are not defined on the parent class. For example:

class Foo extends Macroable {}

new Foo() // throws error
class Foo extends Macroable {}
Foo.macros = {}
Foo.getters = {}

new Foo() // works fine

Commits

  • docs(README): update badges url eb60941
  • ci: remove travis,appveyor in favor of circleci 59c5d3f
  • docs(REAMDE): update usage docs 1997389
  • chore(package): remove unwanted dependencies 7c5eb1d
  • refactor: raise exception when macros and getters are not initiated on class 66c046e
  • chore: update dependencies a4c40b8

v3.0.0...v4.0.0

Allow generics for the macro and getter callbacks

22 Nov 09:08
Compare
Choose a tag to compare
  • chore: use np for release 93da334
  • feat: allow passing this to macroable fn 78b3d81
  • chore: update dependencies a357ddd

2.0.2...v3.0.0