Releases: t2ym/thin-hook
Releases · t2ym/thin-hook
Pre-release 0.0.148 with Context Generator Rename
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
Notes:
- Hooked internal arrow functions are no longer invoked by
apply()
withthis
'use strict';
remains at the first statement of a target non-arrow function when hooked
Pre-release 0.0.108 with hook function calls
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 indemo/hook-native-api.js
Pre-release 0.0.101 with primitive access control list (in progress)
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