Skip to content

Commit

Permalink
Upgrade deps (#308)
Browse files Browse the repository at this point in the history
* Upgrade JS dependencies

A few patch changes added in here as a patch change in prettier was actually a breaking change :/ so I thought I'd do the lot

* Fix issue with new babel not compiling panda-session

See relevant discussion jestjs/jest#6053 (comment)
  • Loading branch information
RichieAHB committed Apr 30, 2018
1 parent 8d1e95d commit 0450f4d
Show file tree
Hide file tree
Showing 43 changed files with 1,332 additions and 1,460 deletions.
19 changes: 0 additions & 19 deletions client-v2/.babelrc

This file was deleted.

19 changes: 19 additions & 0 deletions client-v2/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = {
presets: [
[
'@babel/env',
{
useBuiltIns: 'usage',
targets: {
browsers: ['chrome >= 49', 'firefox >= 48', 'safari >= 10', '> 1%']
}
}
],
'@babel/react',
'@babel/flow'
],
plugins: [
'@babel/plugin-proposal-object-rest-spread',
'transform-class-properties'
]
};
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/@babel/cli_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 26746b607d948daa9ca3060e91fa7897
// flow-typed version: <<STUB>>/@babel/cli_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: bd3f8621434dfe15bd829f8dab10ba3d
// flow-typed version: <<STUB>>/@babel/cli_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
25 changes: 23 additions & 2 deletions client-v2/flow-typed/npm/@babel/core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 38e42e085d520052512f25b343345de0
// flow-typed version: <<STUB>>/@babel/core_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: e4b0101c80a429d95709c2d3cd5c13e8
// flow-typed version: <<STUB>>/@babel/core_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -46,10 +46,22 @@ declare module '@babel/core/lib/config/files/index' {
declare module.exports: any;
}

declare module '@babel/core/lib/config/files/package' {
declare module.exports: any;
}

declare module '@babel/core/lib/config/files/plugins' {
declare module.exports: any;
}

declare module '@babel/core/lib/config/files/types' {
declare module.exports: any;
}

declare module '@babel/core/lib/config/files/utils' {
declare module.exports: any;
}

declare module '@babel/core/lib/config/full' {
declare module.exports: any;
}
Expand Down Expand Up @@ -193,9 +205,18 @@ declare module '@babel/core/lib/config/files/index-browser.js' {
declare module '@babel/core/lib/config/files/index.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/index'>;
}
declare module '@babel/core/lib/config/files/package.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/package'>;
}
declare module '@babel/core/lib/config/files/plugins.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/plugins'>;
}
declare module '@babel/core/lib/config/files/types.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/types'>;
}
declare module '@babel/core/lib/config/files/utils.js' {
declare module.exports: $Exports<'@babel/core/lib/config/files/utils'>;
}
declare module '@babel/core/lib/config/full.js' {
declare module.exports: $Exports<'@babel/core/lib/config/full'>;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b3f806b2cbeca58e13a985bd22c53358
// flow-typed version: <<STUB>>/@babel/plugin-proposal-object-rest-spread_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: b3f35b94a4c770880015ecf3f8456080
// flow-typed version: <<STUB>>/@babel/plugin-proposal-object-rest-spread_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
18 changes: 16 additions & 2 deletions client-v2/flow-typed/npm/@babel/polyfill_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: fb9ea3734f5ed6cc6ee3a24719d00915
// flow-typed version: <<STUB>>/@babel/polyfill_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: ebba19230f59e4e6d2b9104c1d905ef9
// flow-typed version: <<STUB>>/@babel/polyfill_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down Expand Up @@ -38,6 +38,14 @@ declare module '@babel/polyfill/lib/index' {
declare module.exports: any;
}

declare module '@babel/polyfill/lib/noConflict' {
declare module.exports: any;
}

declare module '@babel/polyfill/noConflict' {
declare module.exports: any;
}

declare module '@babel/polyfill/scripts/postpublish' {
declare module.exports: any;
}
Expand All @@ -59,6 +67,12 @@ declare module '@babel/polyfill/dist/polyfill.min.js' {
declare module '@babel/polyfill/lib/index.js' {
declare module.exports: $Exports<'@babel/polyfill/lib/index'>;
}
declare module '@babel/polyfill/lib/noConflict.js' {
declare module.exports: $Exports<'@babel/polyfill/lib/noConflict'>;
}
declare module '@babel/polyfill/noConflict.js' {
declare module.exports: $Exports<'@babel/polyfill/noConflict'>;
}
declare module '@babel/polyfill/scripts/postpublish.js' {
declare module.exports: $Exports<'@babel/polyfill/scripts/postpublish'>;
}
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/@babel/preset-env_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: f72b39496ce97f4c5a15be655164d39d
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: 4dbc7be39c65a592e53886d8987cd922
// flow-typed version: <<STUB>>/@babel/preset-env_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/@babel/preset-flow_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: f9f73245b20359952aa528eebce0e666
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: 82d1cb7cb4e579b15dbe2814f6b47f3e
// flow-typed version: <<STUB>>/@babel/preset-flow_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/@babel/preset-react_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 2798996242dbaac923e48e7846e78e75
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: 66dd3b0631683ecae0846bf79813e9dd
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/@babel/register_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 8bf82a4f37aa5a8b2ace8f9040a728d8
// flow-typed version: <<STUB>>/@babel/register_v^7.0.0-beta.42/flow_v0.68.0
// flow-typed signature: 67e89aee3960b4fb713c60bc8861fd29
// flow-typed version: <<STUB>>/@babel/register_v^7.0.0-beta.44/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/babel-core_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 505142e867c89cbc867dedeb7255e2f2
// flow-typed version: <<STUB>>/babel-core_v^7.0.0-0/flow_v0.68.0
// flow-typed signature: c7055e9eee73f3eefb671ceedff55269
// flow-typed version: <<STUB>>/babel-core_v^7.0.0-0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d7ee538b2f8f84031dddac928498db22
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.2/flow_v0.68.0
// flow-typed signature: 7d8a567071271aca71f1d7c450898abf
// flow-typed version: <<STUB>>/babel-eslint_v^8.2.2/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 7c647843980c34cf616effa23468a234
// flow-typed version: <<STUB>>/babel-jest_v^23.0.0-alpha.0/flow_v0.68.0
// flow-typed signature: 9b9ced8713ed143583267978b5ec91bb
// flow-typed version: <<STUB>>/babel-jest_v^22.4.3/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/babel-loader_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 220815f810e733a8aca061cf7538241d
// flow-typed version: <<STUB>>/babel-loader_v^8.0.0-beta/flow_v0.68.0
// flow-typed signature: 0524dba7eb51e032e5478dbcee2763cb
// flow-typed version: <<STUB>>/babel-loader_v^8.0.0-beta/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9ff098d5f5575bc71487081f66ba0289
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.68.0
// flow-typed signature: 1b35fb2270b4bcb57ce6b8bfb2a33783
// flow-typed version: <<STUB>>/babel-plugin-transform-class-properties_v^6.24.1/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/downshift_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 5c0c870a9258a057ee8e7de8bd6de3e4
// flow-typed version: <<STUB>>/downshift_v^1.31.4/flow_v0.68.0
// flow-typed signature: b0a3aa04fc012b5832c6b2d494018748
// flow-typed version: <<STUB>>/downshift_v^1.31.6/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/enzyme-adapter-react-16_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d28eeb7e9183514ef88bf14f0a09eb86
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.1.1/flow_v0.68.0
// flow-typed signature: b55edbf3961daef0addd5d5576d8a0d3
// flow-typed version: <<STUB>>/enzyme-adapter-react-16_v^1.1.1/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-config-airbnb_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 72ba8dfd359cea3b8c1efd96827fc118
// flow-typed version: <<STUB>>/eslint-config-airbnb_v^16.1.0/flow_v0.68.0
// flow-typed signature: 71174ba6e931ea28e06ef48e6f17c8eb
// flow-typed version: <<STUB>>/eslint-config-airbnb_v^16.1.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-config-prettier_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 8cac323021e15c8d1101f2d8cd7f95ee
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.68.0
// flow-typed signature: 3711665c8cab1c09358ae8b972d2e47d
// flow-typed version: <<STUB>>/eslint-config-prettier_v^2.9.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-loader_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 139fd750143d31e5304b7f7ff3ceb2ae
// flow-typed version: <<STUB>>/eslint-loader_v^2.0.0/flow_v0.68.0
// flow-typed signature: 4f3836be9e0e2291e1915c6e4cae2e36
// flow-typed version: <<STUB>>/eslint-loader_v^2.0.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: aed7bd6de97be02cc57a3a88f6678e29
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.46.1/flow_v0.68.0
// flow-typed signature: b6cee62d06ad86db0962aa2f6179c48f
// flow-typed version: <<STUB>>/eslint-plugin-flowtype_v^2.46.1/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-plugin-import_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 0810dd73ad3bab5036b775f58bb42bb1
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.9.0/flow_v0.68.0
// flow-typed signature: b08c60e31b40293378121ae45473e66d
// flow-typed version: <<STUB>>/eslint-plugin-import_v^2.10.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-plugin-jsx-a11y_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: d23585c0713e9a1f229b346337433ac5
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^6.0.3/flow_v0.68.0
// flow-typed signature: e58338c3b1ebe48c746b2f26daec8a34
// flow-typed version: <<STUB>>/eslint-plugin-jsx-a11y_v^6.0.3/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-plugin-prettier_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: dee60c4349324456279e47a41c2aeeb4
// flow-typed version: <<STUB>>/eslint-plugin-prettier_v^2.6.0/flow_v0.68.0
// flow-typed signature: cd37a02f15baf69a6fe75f0a04e69870
// flow-typed version: <<STUB>>/eslint-plugin-prettier_v^2.6.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint-plugin-react_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: b175c2f772f4bb6912754eec1f40a8a8
// flow-typed version: <<STUB>>/eslint-plugin-react_v^7.7.0/flow_v0.68.0
// flow-typed signature: 678caaa4fa4b5b33412eaacde9704b2e
// flow-typed version: <<STUB>>/eslint-plugin-react_v^7.7.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: 9af9d34f693aa4bdd4ca6d78453e6627
// flow-typed version: <<STUB>>/eslint_v^4.18.2/flow_v0.68.0
// flow-typed signature: f844f7003cd5706d223638d7977f6285
// flow-typed version: <<STUB>>/eslint_v^4.19.1/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/fetch_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: e5d7ab0876f47a431953a20f5b1e7c3c
// flow-typed version: <<STUB>>/fetch_v^1.1.0/flow_v0.68.0
// flow-typed signature: 2f4422bc5dd795035a2ef2c1be18d4cb
// flow-typed version: <<STUB>>/fetch_v^1.1.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/flow-coverage-report_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: a80871017290816e3e230e2e3454f6a7
// flow-typed version: <<STUB>>/flow-coverage-report_v^0.5.0/flow_v0.68.0
// flow-typed signature: 2131d6d8b4d803a901fe6a230608af21
// flow-typed version: <<STUB>>/flow-coverage-report_v^0.5.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
4 changes: 2 additions & 2 deletions client-v2/flow-typed/npm/flow-typed_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: e8d7dbb588d418c516e0db0aa0f6becd
// flow-typed version: <<STUB>>/flow-typed_v^2.4.0/flow_v0.68.0
// flow-typed signature: 78a6d22874f3ad904d1ac98d2b3a7df3
// flow-typed version: <<STUB>>/flow-typed_v^2.4.0/flow_v0.69.0

/**
* This is an autogenerated libdef stub for:
Expand Down
52 changes: 49 additions & 3 deletions client-v2/flow-typed/npm/jest_v22.x.x.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// flow-typed signature: a952be01612bad0a20584bce33415d58
// flow-typed version: 0d3c93990f/jest_v22.x.x/flow_>=v0.39.x
// flow-typed signature: 17c6ca97e1e560b9bc0d3400f8b2882f
// flow-typed version: a5bbe16c29/jest_v22.x.x/flow_>=v0.39.x

type JestMockFn<TArguments: $ReadOnlyArray<*>, TReturn> = {
(...args: TArguments): TReturn,
Expand Down Expand Up @@ -569,14 +569,60 @@ declare var xit: typeof it;
/** A disabled individual test */
declare var xtest: typeof it;

type JestPrettyFormatColors = {
comment: { close: string, open: string },
content: { close: string, open: string },
prop: { close: string, open: string },
tag: { close: string, open: string },
value: { close: string, open: string },
};

type JestPrettyFormatIndent = string => string;
type JestPrettyFormatRefs = Array<any>;
type JestPrettyFormatPrint = any => string;
type JestPrettyFormatStringOrNull = string | null;

type JestPrettyFormatOptions = {|
callToJSON: boolean,
edgeSpacing: string,
escapeRegex: boolean,
highlight: boolean,
indent: number,
maxDepth: number,
min: boolean,
plugins: JestPrettyFormatPlugins,
printFunctionName: boolean,
spacing: string,
theme: {|
comment: string,
content: string,
prop: string,
tag: string,
value: string,
|},
|};

type JestPrettyFormatPlugin = {
print: (
val: any,
serialize: JestPrettyFormatPrint,
indent: JestPrettyFormatIndent,
opts: JestPrettyFormatOptions,
colors: JestPrettyFormatColors,
) => string,
test: any => boolean,
};

type JestPrettyFormatPlugins = Array<JestPrettyFormatPlugin>;

/** The expect function is used every time you want to test a value */
declare var expect: {
/** The object that you want to make assertions against */
(value: any): JestExpectType & JestPromiseType & EnzymeMatchersType & DomTestingLibraryType,
/** Add additional Jasmine matchers to Jest's roster */
extend(matchers: { [name: string]: JestMatcher }): void,
/** Add a module that formats application-specific data structures. */
addSnapshotSerializer(serializer: (input: Object) => string): void,
addSnapshotSerializer(pluginModule: JestPrettyFormatPlugin): void,
assertions(expectedAssertions: number): void,
hasAssertions(): void,
any(value: mixed): JestAsymmetricEqualityType,
Expand Down
Loading

0 comments on commit 0450f4d

Please sign in to comment.