Skip to content

Releases: t2ym/thin-hook

Pre-release 0.0.148 with Context Generator Rename

01 Apr 01:53
Compare
Choose a tag to compare

Notes

  • [Context Generator Compatibility] Since 0.0.148 with #144, the old context generator "method" is renamed as "oldMethod" and the "cachedMethod" is renamed as "method" and become the new default context generator. The "cachedMethod" remains as an alias for the new "method" context generator. There are slight changes in the new "method" context generator. A warning message is shown on the debug console to notify the change.
old name new name feature
method oldMethod script.js,Class,method
cachedMethod method script.js,Class,method including computed property names

Pre-release 0.0.116 with 'use strict' support

23 Sep 10:01
Compare
Choose a tag to compare

Notes:

  • Hooked internal arrow functions are no longer invoked by apply() with this
  • 'use strict'; remains at the first statement of a target non-arrow function when hooked

Pre-release 0.0.108 with hook function calls

19 Sep 15:00
Compare
Choose a tag to compare

Notes

  • Fix #104 Hook function calls needs updates of demo/hook-callback.js, which now tracks bound functions via hooked function calls instead of wrapper arrow functions.
  • Be careful on slight changes in ACL especially Function object
  • Be careful on registration of the hooked Function object in demo/hook-native-api.js

Pre-release 0.0.101 with primitive access control list (in progress)

13 Sep 06:18
Compare
Choose a tag to compare

Notes

  • Access control list implementation is still in its proof of concept stage and its design may change
  • The ACL in the demo blocks write access to constructor, prototype, __proto__ of global objects
  • It blocks listing of all the properties in window object

Pre-release 0.0.96 with updated super hooking

07 Sep 08:07
Compare
Choose a tag to compare

Pre-release 0.0.96 with updated super hooking

  • Fix #87 and Fix #88 for super hooking
  • Update required for the hook callback function (see the updated README)
    • New operations __hook__('op', ...) for super.property access
      • 's.', 's=', 's+=', ..., 's++', 's()'