nanoevents
Advanced tools
Comparing version 5.1.0 to 5.1.1
# Change Log | ||
This project adheres to [Semantic Versioning](http://semver.org/). | ||
## 5.1.1 | ||
* Add temporary workaround for React Native. | ||
## 5.1 | ||
@@ -5,0 +8,0 @@ * Add `Unsubscribe` type. |
{ | ||
"name": "nanoevents", | ||
"version": "5.1.0", | ||
"version": "5.1.1", | ||
"description": "Simple and tiny (72 bytes) event emitter library", | ||
@@ -23,3 +23,2 @@ "keywords": [ | ||
"sideEffects": false, | ||
"types": "./index.d.ts", | ||
"type": "module", | ||
@@ -33,3 +32,4 @@ "main": "index.cjs", | ||
} | ||
} | ||
}, | ||
"react-native": "index.cjs.js" | ||
} |
@@ -49,2 +49,3 @@ # Nano Events | ||
* [Remove All Listeners](#remove-all-listeners) | ||
* [React Native](#react-native) | ||
@@ -210,1 +211,15 @@ | ||
``` | ||
## React Native | ||
Adding this lines to `metro.config.js` will fix | ||
[temporary issue](https://github.com/facebook/metro/issues/535) of React Native. | ||
```js | ||
module.exports = { | ||
resolver: { | ||
resolverMainFields: ['react-native', 'browser', 'main'] | ||
} | ||
} | ||
``` |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10389
8
120
224