Skip to content

Commit 44d673d

Browse files
authored
Merge pull request #760 from zaninime/preactx
Update to Preact X
2 parents 9d6ce00 + eefeddd commit 44d673d

5 files changed

Lines changed: 154 additions & 66 deletions

File tree

examples/example-preact/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@
2828
"fela-plugin-prefixer": "^11.0.2",
2929
"fela-plugin-unit": "^11.0.2",
3030
"fela-plugin-validator": "^11.0.2",
31-
"preact": "^8.1.0",
32-
"preact-context": "^1.1.2",
31+
"preact": "^10.2.1",
3332
"preact-fela": "^11.0.2",
3433
"preact-render-to-string": "^3.6.0",
3534
"webpack": "^2.6.1",

packages/preact-fela/package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@
2424
"author": "Robin Frischmann",
2525
"license": "MIT",
2626
"peerDependencies": {
27-
"preact": "^8.2.7",
28-
"preact-context": "^1.1.2"
27+
"preact": "^10.2.1"
2928
},
3029
"dependencies": {
3130
"fela-bindings": "^11.0.2",

packages/preact-fela/src/RendererProvider.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export default RendererProviderFactory(
99
Component,
1010
RendererContext,
1111
createElement,
12-
([children]) => children,
12+
children => children,
1313
{
1414
defaultProps: {
1515
renderToDOM: true,

packages/preact-fela/src/context.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* @flow */
22
// $FlowFixMe
3-
import { createContext } from 'preact-context'
3+
import { createContext } from 'preact'
44

55
// $FlowFixMe
66
export const RendererContext = createContext()

0 commit comments

Comments
 (0)