Skip to content
This repository was archived by the owner on May 17, 2019. It is now read-only.

Commit 402ad4b

Browse files
ganemonefusion-bot[bot]
authored and
fusion-bot[bot]
committed
Migrate to new fusion-plugin api
#59
1 parent ebd6be5 commit 402ad4b

File tree

4 files changed

+30
-31
lines changed

4 files changed

+30
-31
lines changed

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,21 @@
3333
"eslint-plugin-cup": "1.0.0",
3434
"eslint-plugin-flowtype": "2.42.0",
3535
"eslint-plugin-import": "^2.8.0",
36-
"eslint-plugin-prettier": "2.5.0",
36+
"eslint-plugin-prettier": "2.6.0",
3737
"eslint-plugin-react": "7.6.1",
3838
"flow-bin": "0.64.0",
39-
"fusion-core": "0.3.0",
40-
"fusion-plugin-universal-events": "0.3.0",
39+
"fusion-core": "^0.3.3",
40+
"fusion-plugin-universal-events": "0.3.3",
4141
"fusion-test-utils": "0.4.2",
42-
"fusion-tokens": "0.0.5",
42+
"fusion-tokens": "^0.0.6",
4343
"nyc": "11.4.1",
4444
"prettier": "1.10.2",
4545
"tape-cup": "4.7.1",
4646
"unitest": "2.1.1"
4747
},
4848
"peerDependencies": {
49-
"fusion-core": "^0.3.0-4",
50-
"fusion-tokens": "0.0.5"
49+
"fusion-core": "^0.3.3",
50+
"fusion-tokens": "^0.0.6"
5151
},
5252
"scripts": {
5353
"clean": "rm -rf dist",

src/server.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default __NODE__ &&
1414
createPlugin({
1515
deps: {
1616
emitter: UniversalEventsToken,
17-
config: UniversalLoggerConfigToken,
17+
config: UniversalLoggerConfigToken.optional,
1818
},
1919
provides: ({emitter, config}) => {
2020
const logger = new Logger(config);

src/tokens.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
* LICENSE file in the root directory of this source tree.
55
*/
66

7-
import {createOptionalToken} from 'fusion-tokens';
7+
import {createToken} from 'fusion-core';
88

9-
export const UniversalLoggerConfigToken = createOptionalToken(
10-
'UniversalLoggerConfigToken',
11-
null
9+
export const UniversalLoggerConfigToken = createToken(
10+
'UniversalLoggerConfigToken'
1211
);

yarn.lock

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,8 @@ acorn-jsx@^3.0.0:
702702
acorn "^3.0.4"
703703

704704
acorn@>=2.5.2, acorn@^5.0.0, acorn@^5.2.1:
705-
version "5.3.0"
706-
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.3.0.tgz#7446d39459c54fb49a80e6ee6478149b940ec822"
705+
version "5.4.1"
706+
resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.4.1.tgz#fdc58d9d17f4a4e98d102ded826a9b9759125102"
707707

708708
acorn@^3.0.4:
709709
version "3.3.0"
@@ -1683,8 +1683,8 @@ ee-first@1.1.1:
16831683
resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d"
16841684

16851685
electron-to-chromium@^1.3.30:
1686-
version "1.3.31"
1687-
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.31.tgz#00d832cba9fe2358652b0c48a8816c8e3a037e9f"
1686+
version "1.3.32"
1687+
resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.3.32.tgz#11d0684c0840e003c4be8928f8ac5f35dbc2b4e6"
16881688

16891689
elliptic@^6.0.0:
16901690
version "6.4.0"
@@ -1896,9 +1896,9 @@ eslint-plugin-import@^2.8.0:
18961896
minimatch "^3.0.3"
18971897
read-pkg-up "^2.0.0"
18981898

1899-
eslint-plugin-prettier@2.5.0:
1900-
version "2.5.0"
1901-
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.5.0.tgz#39a91dd7528eaf19cd42c0ee3f2c1f684606a05f"
1899+
eslint-plugin-prettier@2.6.0:
1900+
version "2.6.0"
1901+
resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.6.0.tgz#33e4e228bdb06142d03c560ce04ec23f6c767dd7"
19021902
dependencies:
19031903
fast-diff "^1.1.1"
19041904
jest-docblock "^21.0.0"
@@ -2264,18 +2264,18 @@ functional-red-black-tree@^1.0.1:
22642264
version "1.0.1"
22652265
resolved "https://registry.yarnpkg.com/functional-red-black-tree/-/functional-red-black-tree-1.0.1.tgz#1b0ab3bd553b2a0d6399d29c0e3ea0b252078327"
22662266

2267-
fusion-core@0.3.0:
2268-
version "0.3.0"
2269-
resolved "https://registry.yarnpkg.com/fusion-core/-/fusion-core-0.3.0.tgz#0ce2a5b17c2e1948f05fbcdee808c7bcf5d8eadf"
2267+
fusion-core@^0.3.3:
2268+
version "0.3.3"
2269+
resolved "https://registry.yarnpkg.com/fusion-core/-/fusion-core-0.3.3.tgz#2be141a18afe93963469998c3076ac9ed99f798a"
22702270
dependencies:
22712271
koa "^2.3.0"
22722272
koa-compose "^4.0.0"
22732273
node-mocks-http "^1.6.6"
22742274
toposort "^1.0.6"
22752275

2276-
fusion-plugin-universal-events@0.3.0:
2277-
version "0.3.0"
2278-
resolved "https://registry.yarnpkg.com/fusion-plugin-universal-events/-/fusion-plugin-universal-events-0.3.0.tgz#fb88370679b36ae70a6140ac89f84a1e2009ddd1"
2276+
fusion-plugin-universal-events@0.3.3:
2277+
version "0.3.3"
2278+
resolved "https://registry.yarnpkg.com/fusion-plugin-universal-events/-/fusion-plugin-universal-events-0.3.3.tgz#54f3a24778498f4dfe31f0a585fc4289fd43fdcb"
22792279
dependencies:
22802280
koa-bodyparser "4.2.0"
22812281

@@ -2287,9 +2287,9 @@ fusion-test-utils@0.4.2:
22872287
koa "^2.4.1"
22882288
node-mocks-http "^1.6.6"
22892289

2290-
fusion-tokens@0.0.5:
2291-
version "0.0.5"
2292-
resolved "https://registry.yarnpkg.com/fusion-tokens/-/fusion-tokens-0.0.5.tgz#71af057ab696046c43e89ca06dfe47cdbaeac6d8"
2290+
fusion-tokens@^0.0.6:
2291+
version "0.0.6"
2292+
resolved "https://registry.yarnpkg.com/fusion-tokens/-/fusion-tokens-0.0.6.tgz#71606a0109918dc098eb43cc0a3b877beb111d4d"
22932293

22942294
gauge@~2.7.3:
22952295
version "2.7.4"
@@ -3219,8 +3219,8 @@ mime@^1.3.4:
32193219
resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1"
32203220

32213221
mimic-fn@^1.0.0:
3222-
version "1.1.0"
3223-
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.1.0.tgz#e667783d92e89dbd342818b5230b9d62a672ad18"
3222+
version "1.2.0"
3223+
resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-1.2.0.tgz#820c86a39334640e99516928bd03fca88057d022"
32243224

32253225
minimalistic-assert@^1.0.0:
32263226
version "1.0.0"
@@ -4043,8 +4043,8 @@ rollup-pluginutils@^2.0.1:
40434043
micromatch "^2.3.11"
40444044

40454045
rollup@^0.55.1:
4046-
version "0.55.1"
4047-
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.55.1.tgz#baf4f23abe3014b29e56dea7d72d9946e56ac7dd"
4046+
version "0.55.3"
4047+
resolved "https://registry.yarnpkg.com/rollup/-/rollup-0.55.3.tgz#0af082a766d51c3058430c8372442ff5207d8736"
40484048

40494049
run-async@^2.2.0:
40504050
version "2.3.0"

0 commit comments

Comments
 (0)