anu-verzum 1.20.0 → 1.21.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  <h3>@author: <strong>Anubis-programmer</strong></h3>
6
6
  <h3>@license: <strong>MIT</strong></h3>
7
- <h3>@version: <strong>1.20.0</strong></h3>
7
+ <h3>@version: <strong>1.21.1</strong></h3>
8
8
 
9
9
  <br>
10
10
 
@@ -73,6 +73,20 @@ module.exports = require('anu-verzum/webpack.config')(__dirname, {
73
73
  });
74
74
  ```
75
75
 
76
+ Use `plugins` to append additional webpack plugins after the built-in `HtmlWebpackPlugin`:
77
+
78
+ ```js
79
+ const webpack = require('webpack');
80
+
81
+ module.exports = require('anu-verzum/webpack.config')(__dirname, {
82
+ plugins: [
83
+ new webpack.DefinePlugin({
84
+ 'process.env.API_URL': JSON.stringify(process.env.API_URL)
85
+ })
86
+ ]
87
+ });
88
+ ```
89
+
76
90
  <h3 id="importing-in-your-files">Importing in your files</h3>
77
91
 
78
92
  Every file that contains JSX must import `Anu`, because the JSX transform expands to `Anu.createElement(...)` calls at compile time:
@@ -357,12 +357,6 @@ const commitWork = effect => {
357
357
  } else if (effect.effectTag === UPDATE) {
358
358
  if (effect && effect.stateNode && effect.alternate && effect.alternate.props && effect.props) {
359
359
  if (effect.tag === HOST_COMPONENT) {
360
- const nextDomSibling = getNextHostNode(effect, domParent);
361
- if (nextDomSibling) {
362
- domParent.insertBefore(effect.stateNode, nextDomSibling);
363
- } else {
364
- domParent.appendChild(effect.stateNode);
365
- }
366
360
  (0, _domUtils.updateDomProperties)(effect.stateNode, effect.alternate.props, effect.props, _domUtils.SVG_ELEMENT_LIST.indexOf(effect.type) > -1);
367
361
  if (effect.ref) {
368
362
  effect.ref.current = effect.stateNode;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "anu-verzum",
3
- "version": "1.20.0",
3
+ "version": "1.21.1",
4
4
  "description": "A \"React-like\" UI library that supports JSX syntax, Redux-like state management, array-rendering, i18n, routing and many more.",
5
5
  "keywords": [
6
6
  "anu-verzum",
package/webpack.config.js CHANGED
@@ -26,7 +26,8 @@ module.exports = (projectRoot, options = {}) => ({
26
26
  plugins: [
27
27
  new HtmlWebpackPlugin({
28
28
  template: options.template ?? path.join(projectRoot, 'index.html')
29
- })
29
+ }),
30
+ ...(options.plugins ?? [])
30
31
  ],
31
32
  devServer: {
32
33
  port: options.port ?? 3000,