Skip to content

Commit

Permalink
docs: added note for upgrading for plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
titanism committed Jun 13, 2022
1 parent 4278aa7 commit 2d95a6d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions UPGRADING.md
Expand Up @@ -55,6 +55,19 @@ Here is a complete list of the underlying changes made:

* If you are on Node version <= v12.20.0, please upgrade to the latest Node v12, but preferably please upgrade to the latest Node LTS (at the time of this writing it is Node v16, but if you can't upgrade to Node v16, at least upgrade to Node v14). Node v12 is EOL as of April 2022.

* Plugins will need to now `return init()` if you override the `init` function, for example (this is the change we had to make in `@breejs/ts-worker`):

```diff
// define accepted extensions
Bree.prototype.init = function () {
if (!this.config.acceptedExtensions.includes('.ts'))
this.config.acceptedExtensions.push('.ts');

- oldInit.bind(this)();
+ return oldInit.bind(this)();
};
```


## Upgrading from v7 to v8

Expand Down

0 comments on commit 2d95a6d

Please sign in to comment.