Skip to content

v0.0.22 (alpha)

Pre-release
Pre-release
Compare
Choose a tag to compare
@dead-claudia dead-claudia released this 05 Jun 05:01
· 360 commits to master since this release

Changes since last release

  • Many core reflection methods were pulled into a separate reflection API. These may be accessed via t.reflect(), and the methods moved are:
    • t.wrap -> reflect.wrap
    • t.add -> reflect.add
    • t.base -> reflect.base
    • t.reporters -> reflect.activeReporters
    • t.timeout (getter, not setter) -> reflect.activeTimeout
    • t.do -> reflect.do
    • t.checkInit -> reflect.checkInit
    • t.AssertionError -> reflect.AssertionError
    • t.inline -> reflect.inline
    • t.define, when not wrapped, is synonymous with reflect.define
  • New reflection APIs were added:
    • reflect.root()
    • reflect.runnable()
    • reflect.skipped()
    • reflect.root()
    • reflect.async()
    • reflect.parent()
    • reflect.methods()
    • reflect.reporters() (own, not active)
    • reflect.timeout() (own, not active)
  • The TypeScript definitions now have their methods documented with actual JSDoc-style comments.
  • t.reporter(...) and t.use(...) no longer accept arrays at all, but they are still variadic.
  • t.define/reflect.define will not let you overwrite API methods.
  • reflect.add (was t.add) will not let you overwrite existing methods or values. These must be deleted or set to undefined first.
  • reflect.wrap (was t.wrap) will not let you overwrite t.reflect or the internal t._. These must be deleted or set to undefined first.
  • Clarified docs in several places
  • Several bug fixes