devjar 0.2.1 → 0.2.2

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
@@ -1,8 +1,8 @@
1
1
  # devjar
2
- > bundless runtime for your ESM JavaScript project in browser
2
+ > live code runtime for your react project in browser
3
3
 
4
4
 
5
- ![image](https://repository-images.githubusercontent.com/483779830/23b4d7c8-dd8e-48b0-a3ea-c519e8236714)
5
+ ![image](https://repository-images.githubusercontent.com/483779830/28347c03-774a-4766-b113-54041fad1e72)
6
6
 
7
7
  ### Install
8
8
 
package/lib/index.mjs CHANGED
@@ -56,8 +56,9 @@ function createRenderer(createModule_, getModulePath) {
56
56
  const _jsx = React_.createElement
57
57
  const root = document.getElementById('root')
58
58
  class ErrorBoundary extends React_.Component {
59
- state = {
60
- error: null,
59
+ constructor(props) {
60
+ super(props)
61
+ this.state = { error: null }
61
62
  }
62
63
  componentDidCatch(error) {
63
64
  this.setState({ error })
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "devjar",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./lib/index.mjs",
@@ -31,6 +31,6 @@
31
31
  "next": "canary",
32
32
  "react": "^18.0.0",
33
33
  "react-dom": "^18.0.0",
34
- "sugar-high": "^0.4.2"
34
+ "sugar-high": "^0.4.4"
35
35
  }
36
36
  }