From c1dcd9f511fd327d63224be7d8fc211d855e4792 Mon Sep 17 00:00:00 2001 From: thepaperpilot Date: Tue, 18 Apr 2023 20:57:31 -0500 Subject: [PATCH] Add note about options func to migration guide --- docs/guide/migrations/0-6.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/guide/migrations/0-6.md b/docs/guide/migrations/0-6.md index 0acf7619..2b8cec1e 100644 --- a/docs/guide/migrations/0-6.md +++ b/docs/guide/migrations/0-6.md @@ -126,6 +126,10 @@ Modifiers now display negative effects in red. The current implementation assume Modifiers have renamed their `revert` property to `invert` to match the terms used by formulas. Update any custom modifiers you've created accordingly. +### Custom Features + +Lazy proxies now call the options function with the base object as the `this` argument and the first parameter. Features with `options` functions are expected to pass the base object as the `this` argument and first parameter as well. The `OptionsFunc` type has already been updated for this, so TS will complain if you skip this migration step. + ## Fixing visibility changes Visibility properties now work with booleans, which has several implications.